diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/agent.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/agent.proto index 13368d0a90e..38d89f130cf 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/agent.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/agent.proto @@ -322,6 +322,21 @@ message ExportAgentResponse { // The request message for [Agents.RestoreAgent][google.cloud.dialogflow.cx.v3.Agents.RestoreAgent]. message RestoreAgentRequest { + // Restore option. + enum RestoreOption { + // Unspecified. Treated as KEEP. + RESTORE_OPTION_UNSPECIFIED = 0; + + // Always respect the settings from the exported agent file. It may cause + // a restoration failure if some settings (e.g. model type) are not + // supported in the target agent. + KEEP = 1; + + // Fallback to default settings if some settings are not supported in the + // target agent. + FALLBACK = 2; + } + // Required. The name of the agent to restore into. // Format: `projects//locations//agents/`. string name = 1 [ @@ -341,6 +356,9 @@ message RestoreAgentRequest { // Uncompressed raw byte content for agent. bytes agent_content = 3; } + + // Agent restore mode. If not specified, `KEEP` is assumed. + RestoreOption restore_option = 5; } // The request message for [Agents.ValidateAgent][google.cloud.dialogflow.cx.v3.Agents.ValidateAgent]. diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/environment.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/environment.proto index e04f1b9baa3..a1ac901e52d 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/environment.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/environment.proto @@ -20,6 +20,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/dialogflow/cx/v3/test_case.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/experiment.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/experiment.proto index 399ec1c27dc..4db6a9a641f 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/experiment.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/experiment.proto @@ -284,7 +284,9 @@ message Experiment { // Last update time of this experiment. google.protobuf.Timestamp last_update_time = 10; - // Maximum number of days to run the experiment. + // Maximum number of days to run the experiment/rollout. If auto-rollout is + // not enabled, default value and maximum will be 30 days. If auto-rollout is + // enabled, default value and maximum will be 6 days. google.protobuf.Duration experiment_length = 11; // The history of updates to the experiment variants. diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/response_message.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/response_message.proto index 53b720a6746..37a6ac65350 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/response_message.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/response_message.proto @@ -184,8 +184,8 @@ message ResponseMessage { // Output only. A signal that indicates the interaction with the Dialogflow agent has // ended. // This message is generated by Dialogflow only when the conversation - // reaches `END_SESSION` or `END_PAGE` page. It is not supposed to be - // defined by the user. + // reaches `END_SESSION` page. It is not supposed to be defined by the user. + // // It's guaranteed that there is at most one such message in each response. EndInteraction end_interaction = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/session.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/session.proto index a013a0f623e..2e485a56d6b 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/session.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/session.proto @@ -388,6 +388,9 @@ message QueryParameters { // - Else: parameter value google.protobuf.Struct parameters = 5; + // Whether to disable webhook calls for this request. + bool disable_webhook = 7; + // Configures whether sentiment analysis should be performed. If not // provided, sentiment analysis is not performed. bool analyze_query_text_sentiment = 8; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/agent.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/agent.proto index 543dfff5020..b142227644d 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/agent.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/agent.proto @@ -323,6 +323,21 @@ message ExportAgentResponse { // The request message for [Agents.RestoreAgent][google.cloud.dialogflow.cx.v3beta1.Agents.RestoreAgent]. message RestoreAgentRequest { + // Restore option. + enum RestoreOption { + // Unspecified. Treated as KEEP. + RESTORE_OPTION_UNSPECIFIED = 0; + + // Always respect the settings from the exported agent file. It may cause + // a restoration failure if some settings (e.g. model type) are not + // supported in the target agent. + KEEP = 1; + + // Fallback to default settings if some settings are not supported in the + // target agent. + FALLBACK = 2; + } + // Required. The name of the agent to restore into. // Format: `projects//locations//agents/`. string name = 1 [ @@ -342,6 +357,9 @@ message RestoreAgentRequest { // Uncompressed raw byte content for agent. bytes agent_content = 3; } + + // Agent restore mode. If not specified, `KEEP` is assumed. + RestoreOption restore_option = 5; } // The request message for [Agents.ValidateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.ValidateAgent]. diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/environment.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/environment.proto index feddb123a8a..33fd9e81676 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/environment.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/environment.proto @@ -20,6 +20,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/dialogflow/cx/v3beta1/test_case.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/experiment.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/experiment.proto index 7ae323b417f..ec9db312b01 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/experiment.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/experiment.proto @@ -284,7 +284,9 @@ message Experiment { // Last update time of this experiment. google.protobuf.Timestamp last_update_time = 10; - // Maximum number of days to run the experiment. + // Maximum number of days to run the experiment. If auto-rollout is + // not enabled, default value and maximum will be 30 days. If auto-rollout is + // enabled, default value and maximum will be 6 days. google.protobuf.Duration experiment_length = 11; // The history of updates to the experiment variants. diff --git a/packages/google-cloud-dialogflow-cx/protos/protos.d.ts b/packages/google-cloud-dialogflow-cx/protos/protos.d.ts index c7ac31dec95..e03a8569f7f 100644 --- a/packages/google-cloud-dialogflow-cx/protos/protos.d.ts +++ b/packages/google-cloud-dialogflow-cx/protos/protos.d.ts @@ -1258,6 +1258,9 @@ export namespace google { /** RestoreAgentRequest agentContent */ agentContent?: (Uint8Array|string|null); + + /** RestoreAgentRequest restoreOption */ + restoreOption?: (google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption|keyof typeof google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption|null); } /** Represents a RestoreAgentRequest. */ @@ -1278,6 +1281,9 @@ export namespace google { /** RestoreAgentRequest agentContent. */ public agentContent: (Uint8Array|string); + /** RestoreAgentRequest restoreOption. */ + public restoreOption: (google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption|keyof typeof google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption); + /** RestoreAgentRequest agent. */ public agent?: ("agentUri"|"agentContent"); @@ -1352,6 +1358,16 @@ export namespace google { public toJSON(): { [k: string]: any }; } + namespace RestoreAgentRequest { + + /** RestoreOption enum. */ + enum RestoreOption { + RESTORE_OPTION_UNSPECIFIED = 0, + KEEP = 1, + FALLBACK = 2 + } + } + /** Properties of a ValidateAgentRequest. */ interface IValidateAgentRequest { @@ -8881,11 +8897,11 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** Represents an Experiments */ - class Experiments extends $protobuf.rpc.Service { + /** Represents a TestCases */ + class TestCases extends $protobuf.rpc.Service { /** - * Constructs a new Experiments service. + * Constructs a new TestCases service. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited @@ -8893,12023 +8909,13066 @@ export namespace google { constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates new Experiments service using the specified rpc implementation. + * Creates new TestCases service using the specified rpc implementation. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Experiments; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): TestCases; /** - * Calls ListExperiments. - * @param request ListExperimentsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListExperimentsResponse + * Calls ListTestCases. + * @param request ListTestCasesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListTestCasesResponse */ - public listExperiments(request: google.cloud.dialogflow.cx.v3.IListExperimentsRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.ListExperimentsCallback): void; + public listTestCases(request: google.cloud.dialogflow.cx.v3.IListTestCasesRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.ListTestCasesCallback): void; /** - * Calls ListExperiments. - * @param request ListExperimentsRequest message or plain object + * Calls ListTestCases. + * @param request ListTestCasesRequest message or plain object * @returns Promise */ - public listExperiments(request: google.cloud.dialogflow.cx.v3.IListExperimentsRequest): Promise; + public listTestCases(request: google.cloud.dialogflow.cx.v3.IListTestCasesRequest): Promise; /** - * Calls GetExperiment. - * @param request GetExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Experiment + * Calls BatchDeleteTestCases. + * @param request BatchDeleteTestCasesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public getExperiment(request: google.cloud.dialogflow.cx.v3.IGetExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.GetExperimentCallback): void; + public batchDeleteTestCases(request: google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.BatchDeleteTestCasesCallback): void; /** - * Calls GetExperiment. - * @param request GetExperimentRequest message or plain object + * Calls BatchDeleteTestCases. + * @param request BatchDeleteTestCasesRequest message or plain object * @returns Promise */ - public getExperiment(request: google.cloud.dialogflow.cx.v3.IGetExperimentRequest): Promise; + public batchDeleteTestCases(request: google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest): Promise; /** - * Calls CreateExperiment. - * @param request CreateExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Experiment + * Calls GetTestCase. + * @param request GetTestCaseRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestCase */ - public createExperiment(request: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.CreateExperimentCallback): void; + public getTestCase(request: google.cloud.dialogflow.cx.v3.IGetTestCaseRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.GetTestCaseCallback): void; /** - * Calls CreateExperiment. - * @param request CreateExperimentRequest message or plain object + * Calls GetTestCase. + * @param request GetTestCaseRequest message or plain object * @returns Promise */ - public createExperiment(request: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest): Promise; + public getTestCase(request: google.cloud.dialogflow.cx.v3.IGetTestCaseRequest): Promise; /** - * Calls UpdateExperiment. - * @param request UpdateExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Experiment + * Calls CreateTestCase. + * @param request CreateTestCaseRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestCase */ - public updateExperiment(request: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.UpdateExperimentCallback): void; + public createTestCase(request: google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.CreateTestCaseCallback): void; /** - * Calls UpdateExperiment. - * @param request UpdateExperimentRequest message or plain object + * Calls CreateTestCase. + * @param request CreateTestCaseRequest message or plain object * @returns Promise */ - public updateExperiment(request: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest): Promise; + public createTestCase(request: google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest): Promise; /** - * Calls DeleteExperiment. - * @param request DeleteExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Calls UpdateTestCase. + * @param request UpdateTestCaseRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestCase */ - public deleteExperiment(request: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.DeleteExperimentCallback): void; + public updateTestCase(request: google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.UpdateTestCaseCallback): void; /** - * Calls DeleteExperiment. - * @param request DeleteExperimentRequest message or plain object + * Calls UpdateTestCase. + * @param request UpdateTestCaseRequest message or plain object * @returns Promise */ - public deleteExperiment(request: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest): Promise; + public updateTestCase(request: google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest): Promise; /** - * Calls StartExperiment. - * @param request StartExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Experiment + * Calls RunTestCase. + * @param request RunTestCaseRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public startExperiment(request: google.cloud.dialogflow.cx.v3.IStartExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.StartExperimentCallback): void; + public runTestCase(request: google.cloud.dialogflow.cx.v3.IRunTestCaseRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.RunTestCaseCallback): void; /** - * Calls StartExperiment. - * @param request StartExperimentRequest message or plain object + * Calls RunTestCase. + * @param request RunTestCaseRequest message or plain object * @returns Promise */ - public startExperiment(request: google.cloud.dialogflow.cx.v3.IStartExperimentRequest): Promise; + public runTestCase(request: google.cloud.dialogflow.cx.v3.IRunTestCaseRequest): Promise; /** - * Calls StopExperiment. - * @param request StopExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Experiment + * Calls BatchRunTestCases. + * @param request BatchRunTestCasesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public stopExperiment(request: google.cloud.dialogflow.cx.v3.IStopExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.StopExperimentCallback): void; + public batchRunTestCases(request: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.BatchRunTestCasesCallback): void; /** - * Calls StopExperiment. - * @param request StopExperimentRequest message or plain object + * Calls BatchRunTestCases. + * @param request BatchRunTestCasesRequest message or plain object * @returns Promise */ - public stopExperiment(request: google.cloud.dialogflow.cx.v3.IStopExperimentRequest): Promise; + public batchRunTestCases(request: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest): Promise; + + /** + * Calls CalculateCoverage. + * @param request CalculateCoverageRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CalculateCoverageResponse + */ + public calculateCoverage(request: google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.CalculateCoverageCallback): void; + + /** + * Calls CalculateCoverage. + * @param request CalculateCoverageRequest message or plain object + * @returns Promise + */ + public calculateCoverage(request: google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest): Promise; + + /** + * Calls ImportTestCases. + * @param request ImportTestCasesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public importTestCases(request: google.cloud.dialogflow.cx.v3.IImportTestCasesRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.ImportTestCasesCallback): void; + + /** + * Calls ImportTestCases. + * @param request ImportTestCasesRequest message or plain object + * @returns Promise + */ + public importTestCases(request: google.cloud.dialogflow.cx.v3.IImportTestCasesRequest): Promise; + + /** + * Calls ExportTestCases. + * @param request ExportTestCasesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public exportTestCases(request: google.cloud.dialogflow.cx.v3.IExportTestCasesRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.ExportTestCasesCallback): void; + + /** + * Calls ExportTestCases. + * @param request ExportTestCasesRequest message or plain object + * @returns Promise + */ + public exportTestCases(request: google.cloud.dialogflow.cx.v3.IExportTestCasesRequest): Promise; + + /** + * Calls ListTestCaseResults. + * @param request ListTestCaseResultsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListTestCaseResultsResponse + */ + public listTestCaseResults(request: google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.ListTestCaseResultsCallback): void; + + /** + * Calls ListTestCaseResults. + * @param request ListTestCaseResultsRequest message or plain object + * @returns Promise + */ + public listTestCaseResults(request: google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest): Promise; } - namespace Experiments { + namespace TestCases { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#listExperiments}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#listTestCases}. * @param error Error, if any - * @param [response] ListExperimentsResponse + * @param [response] ListTestCasesResponse */ - type ListExperimentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListExperimentsResponse) => void; + type ListTestCasesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListTestCasesResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#getExperiment}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#batchDeleteTestCases}. * @param error Error, if any - * @param [response] Experiment + * @param [response] Empty */ - type GetExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Experiment) => void; + type BatchDeleteTestCasesCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#createExperiment}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#getTestCase}. * @param error Error, if any - * @param [response] Experiment + * @param [response] TestCase */ - type CreateExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Experiment) => void; + type GetTestCaseCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.TestCase) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#updateExperiment}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#createTestCase}. * @param error Error, if any - * @param [response] Experiment + * @param [response] TestCase */ - type UpdateExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Experiment) => void; + type CreateTestCaseCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.TestCase) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#deleteExperiment}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#updateTestCase}. * @param error Error, if any - * @param [response] Empty + * @param [response] TestCase */ - type DeleteExperimentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + type UpdateTestCaseCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.TestCase) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#startExperiment}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#runTestCase}. * @param error Error, if any - * @param [response] Experiment + * @param [response] Operation */ - type StartExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Experiment) => void; + type RunTestCaseCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#stopExperiment}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#batchRunTestCases}. * @param error Error, if any - * @param [response] Experiment + * @param [response] Operation */ - type StopExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Experiment) => void; - } + type BatchRunTestCasesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** Properties of an Experiment. */ - interface IExperiment { + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#calculateCoverage}. + * @param error Error, if any + * @param [response] CalculateCoverageResponse + */ + type CalculateCoverageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.CalculateCoverageResponse) => void; - /** Experiment name */ - name?: (string|null); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#importTestCases}. + * @param error Error, if any + * @param [response] Operation + */ + type ImportTestCasesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** Experiment displayName */ - displayName?: (string|null); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#exportTestCases}. + * @param error Error, if any + * @param [response] Operation + */ + type ExportTestCasesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** Experiment description */ - description?: (string|null); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#listTestCaseResults}. + * @param error Error, if any + * @param [response] ListTestCaseResultsResponse + */ + type ListTestCaseResultsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse) => void; + } - /** Experiment state */ - state?: (google.cloud.dialogflow.cx.v3.Experiment.State|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.State|null); + /** Properties of a TestCase. */ + interface ITestCase { - /** Experiment definition */ - definition?: (google.cloud.dialogflow.cx.v3.Experiment.IDefinition|null); + /** TestCase name */ + name?: (string|null); - /** Experiment result */ - result?: (google.cloud.dialogflow.cx.v3.Experiment.IResult|null); + /** TestCase tags */ + tags?: (string[]|null); - /** Experiment createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** TestCase displayName */ + displayName?: (string|null); - /** Experiment startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** TestCase notes */ + notes?: (string|null); - /** Experiment endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** TestCase testConfig */ + testConfig?: (google.cloud.dialogflow.cx.v3.ITestConfig|null); - /** Experiment lastUpdateTime */ - lastUpdateTime?: (google.protobuf.ITimestamp|null); + /** TestCase testCaseConversationTurns */ + testCaseConversationTurns?: (google.cloud.dialogflow.cx.v3.IConversationTurn[]|null); - /** Experiment experimentLength */ - experimentLength?: (google.protobuf.IDuration|null); + /** TestCase creationTime */ + creationTime?: (google.protobuf.ITimestamp|null); - /** Experiment variantsHistory */ - variantsHistory?: (google.cloud.dialogflow.cx.v3.IVariantsHistory[]|null); + /** TestCase lastTestResult */ + lastTestResult?: (google.cloud.dialogflow.cx.v3.ITestCaseResult|null); } - /** Represents an Experiment. */ - class Experiment implements IExperiment { + /** Represents a TestCase. */ + class TestCase implements ITestCase { /** - * Constructs a new Experiment. + * Constructs a new TestCase. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IExperiment); + constructor(properties?: google.cloud.dialogflow.cx.v3.ITestCase); - /** Experiment name. */ + /** TestCase name. */ public name: string; - /** Experiment displayName. */ - public displayName: string; - - /** Experiment description. */ - public description: string; - - /** Experiment state. */ - public state: (google.cloud.dialogflow.cx.v3.Experiment.State|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.State); - - /** Experiment definition. */ - public definition?: (google.cloud.dialogflow.cx.v3.Experiment.IDefinition|null); - - /** Experiment result. */ - public result?: (google.cloud.dialogflow.cx.v3.Experiment.IResult|null); + /** TestCase tags. */ + public tags: string[]; - /** Experiment createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** TestCase displayName. */ + public displayName: string; - /** Experiment startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** TestCase notes. */ + public notes: string; - /** Experiment endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** TestCase testConfig. */ + public testConfig?: (google.cloud.dialogflow.cx.v3.ITestConfig|null); - /** Experiment lastUpdateTime. */ - public lastUpdateTime?: (google.protobuf.ITimestamp|null); + /** TestCase testCaseConversationTurns. */ + public testCaseConversationTurns: google.cloud.dialogflow.cx.v3.IConversationTurn[]; - /** Experiment experimentLength. */ - public experimentLength?: (google.protobuf.IDuration|null); + /** TestCase creationTime. */ + public creationTime?: (google.protobuf.ITimestamp|null); - /** Experiment variantsHistory. */ - public variantsHistory: google.cloud.dialogflow.cx.v3.IVariantsHistory[]; + /** TestCase lastTestResult. */ + public lastTestResult?: (google.cloud.dialogflow.cx.v3.ITestCaseResult|null); /** - * Creates a new Experiment instance using the specified properties. + * Creates a new TestCase instance using the specified properties. * @param [properties] Properties to set - * @returns Experiment instance + * @returns TestCase instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IExperiment): google.cloud.dialogflow.cx.v3.Experiment; + public static create(properties?: google.cloud.dialogflow.cx.v3.ITestCase): google.cloud.dialogflow.cx.v3.TestCase; /** - * Encodes the specified Experiment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.verify|verify} messages. - * @param message Experiment message or plain object to encode + * Encodes the specified TestCase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCase.verify|verify} messages. + * @param message TestCase message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IExperiment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ITestCase, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Experiment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.verify|verify} messages. - * @param message Experiment message or plain object to encode + * Encodes the specified TestCase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCase.verify|verify} messages. + * @param message TestCase message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IExperiment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITestCase, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Experiment message from the specified reader or buffer. + * Decodes a TestCase message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Experiment + * @returns TestCase * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Experiment; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TestCase; /** - * Decodes an Experiment message from the specified reader or buffer, length delimited. + * Decodes a TestCase message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Experiment + * @returns TestCase * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Experiment; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TestCase; /** - * Verifies an Experiment message. + * Verifies a TestCase message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an Experiment message from a plain object. Also converts values to their respective internal types. + * Creates a TestCase message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Experiment + * @returns TestCase */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Experiment; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TestCase; /** - * Creates a plain object from an Experiment message. Also converts values to other types if specified. - * @param message Experiment + * Creates a plain object from a TestCase message. Also converts values to other types if specified. + * @param message TestCase * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Experiment, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.TestCase, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Experiment to JSON. + * Converts this TestCase to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Experiment { - - /** Properties of a Definition. */ - interface IDefinition { + /** Properties of a TestCaseResult. */ + interface ITestCaseResult { - /** Definition condition */ - condition?: (string|null); + /** TestCaseResult name */ + name?: (string|null); - /** Definition versionVariants */ - versionVariants?: (google.cloud.dialogflow.cx.v3.IVersionVariants|null); - } + /** TestCaseResult environment */ + environment?: (string|null); - /** Represents a Definition. */ - class Definition implements IDefinition { + /** TestCaseResult conversationTurns */ + conversationTurns?: (google.cloud.dialogflow.cx.v3.IConversationTurn[]|null); - /** - * Constructs a new Definition. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Experiment.IDefinition); + /** TestCaseResult testResult */ + testResult?: (google.cloud.dialogflow.cx.v3.TestResult|keyof typeof google.cloud.dialogflow.cx.v3.TestResult|null); - /** Definition condition. */ - public condition: string; + /** TestCaseResult testTime */ + testTime?: (google.protobuf.ITimestamp|null); + } - /** Definition versionVariants. */ - public versionVariants?: (google.cloud.dialogflow.cx.v3.IVersionVariants|null); + /** Represents a TestCaseResult. */ + class TestCaseResult implements ITestCaseResult { - /** Definition variants. */ - public variants?: "versionVariants"; + /** + * Constructs a new TestCaseResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.ITestCaseResult); - /** - * Creates a new Definition instance using the specified properties. - * @param [properties] Properties to set - * @returns Definition instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.Experiment.IDefinition): google.cloud.dialogflow.cx.v3.Experiment.Definition; + /** TestCaseResult name. */ + public name: string; - /** - * Encodes the specified Definition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Definition.verify|verify} messages. - * @param message Definition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.Experiment.IDefinition, writer?: $protobuf.Writer): $protobuf.Writer; + /** TestCaseResult environment. */ + public environment: string; - /** - * Encodes the specified Definition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Definition.verify|verify} messages. - * @param message Definition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Experiment.IDefinition, writer?: $protobuf.Writer): $protobuf.Writer; + /** TestCaseResult conversationTurns. */ + public conversationTurns: google.cloud.dialogflow.cx.v3.IConversationTurn[]; - /** - * Decodes a Definition message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Definition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Experiment.Definition; + /** TestCaseResult testResult. */ + public testResult: (google.cloud.dialogflow.cx.v3.TestResult|keyof typeof google.cloud.dialogflow.cx.v3.TestResult); - /** - * Decodes a Definition message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Definition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Experiment.Definition; + /** TestCaseResult testTime. */ + public testTime?: (google.protobuf.ITimestamp|null); - /** - * Verifies a Definition message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a new TestCaseResult instance using the specified properties. + * @param [properties] Properties to set + * @returns TestCaseResult instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.ITestCaseResult): google.cloud.dialogflow.cx.v3.TestCaseResult; - /** - * Creates a Definition message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Definition - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Experiment.Definition; + /** + * Encodes the specified TestCaseResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCaseResult.verify|verify} messages. + * @param message TestCaseResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.ITestCaseResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a Definition message. Also converts values to other types if specified. - * @param message Definition - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Experiment.Definition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified TestCaseResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCaseResult.verify|verify} messages. + * @param message TestCaseResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITestCaseResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this Definition to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Decodes a TestCaseResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TestCaseResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TestCaseResult; - /** Properties of a Result. */ - interface IResult { + /** + * Decodes a TestCaseResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TestCaseResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TestCaseResult; - /** Result versionMetrics */ - versionMetrics?: (google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics[]|null); + /** + * Verifies a TestCaseResult message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Result lastUpdateTime */ - lastUpdateTime?: (google.protobuf.ITimestamp|null); + /** + * Creates a TestCaseResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TestCaseResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TestCaseResult; + + /** + * Creates a plain object from a TestCaseResult message. Also converts values to other types if specified. + * @param message TestCaseResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.TestCaseResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TestCaseResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a TestConfig. */ + interface ITestConfig { + + /** TestConfig trackingParameters */ + trackingParameters?: (string[]|null); + + /** TestConfig flow */ + flow?: (string|null); + } + + /** Represents a TestConfig. */ + class TestConfig implements ITestConfig { + + /** + * Constructs a new TestConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.ITestConfig); + + /** TestConfig trackingParameters. */ + public trackingParameters: string[]; + + /** TestConfig flow. */ + public flow: string; + + /** + * Creates a new TestConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns TestConfig instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.ITestConfig): google.cloud.dialogflow.cx.v3.TestConfig; + + /** + * Encodes the specified TestConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestConfig.verify|verify} messages. + * @param message TestConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.ITestConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TestConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestConfig.verify|verify} messages. + * @param message TestConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITestConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TestConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TestConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TestConfig; + + /** + * Decodes a TestConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TestConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TestConfig; + + /** + * Verifies a TestConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TestConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TestConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TestConfig; + + /** + * Creates a plain object from a TestConfig message. Also converts values to other types if specified. + * @param message TestConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.TestConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TestConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ConversationTurn. */ + interface IConversationTurn { + + /** ConversationTurn userInput */ + userInput?: (google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput|null); + + /** ConversationTurn virtualAgentOutput */ + virtualAgentOutput?: (google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput|null); + } + + /** Represents a ConversationTurn. */ + class ConversationTurn implements IConversationTurn { + + /** + * Constructs a new ConversationTurn. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IConversationTurn); + + /** ConversationTurn userInput. */ + public userInput?: (google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput|null); + + /** ConversationTurn virtualAgentOutput. */ + public virtualAgentOutput?: (google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput|null); + + /** + * Creates a new ConversationTurn instance using the specified properties. + * @param [properties] Properties to set + * @returns ConversationTurn instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IConversationTurn): google.cloud.dialogflow.cx.v3.ConversationTurn; + + /** + * Encodes the specified ConversationTurn message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.verify|verify} messages. + * @param message ConversationTurn message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IConversationTurn, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ConversationTurn message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.verify|verify} messages. + * @param message ConversationTurn message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IConversationTurn, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ConversationTurn message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConversationTurn + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ConversationTurn; + + /** + * Decodes a ConversationTurn message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ConversationTurn + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ConversationTurn; + + /** + * Verifies a ConversationTurn message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ConversationTurn message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConversationTurn + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ConversationTurn; + + /** + * Creates a plain object from a ConversationTurn message. Also converts values to other types if specified. + * @param message ConversationTurn + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.ConversationTurn, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ConversationTurn to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace ConversationTurn { + + /** Properties of a UserInput. */ + interface IUserInput { + + /** UserInput input */ + input?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); + + /** UserInput injectedParameters */ + injectedParameters?: (google.protobuf.IStruct|null); + + /** UserInput isWebhookEnabled */ + isWebhookEnabled?: (boolean|null); } - /** Represents a Result. */ - class Result implements IResult { + /** Represents a UserInput. */ + class UserInput implements IUserInput { /** - * Constructs a new Result. + * Constructs a new UserInput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Experiment.IResult); + constructor(properties?: google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput); - /** Result versionMetrics. */ - public versionMetrics: google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics[]; + /** UserInput input. */ + public input?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); - /** Result lastUpdateTime. */ - public lastUpdateTime?: (google.protobuf.ITimestamp|null); + /** UserInput injectedParameters. */ + public injectedParameters?: (google.protobuf.IStruct|null); + + /** UserInput isWebhookEnabled. */ + public isWebhookEnabled: boolean; /** - * Creates a new Result instance using the specified properties. + * Creates a new UserInput instance using the specified properties. * @param [properties] Properties to set - * @returns Result instance + * @returns UserInput instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.Experiment.IResult): google.cloud.dialogflow.cx.v3.Experiment.Result; + public static create(properties?: google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput): google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput; /** - * Encodes the specified Result message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.verify|verify} messages. - * @param message Result message or plain object to encode + * Encodes the specified UserInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.verify|verify} messages. + * @param message UserInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.Experiment.IResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Result message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.verify|verify} messages. - * @param message Result message or plain object to encode + * Encodes the specified UserInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.verify|verify} messages. + * @param message UserInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Experiment.IResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Result message from the specified reader or buffer. + * Decodes a UserInput message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Result + * @returns UserInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Experiment.Result; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput; /** - * Decodes a Result message from the specified reader or buffer, length delimited. + * Decodes a UserInput message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Result + * @returns UserInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Experiment.Result; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput; /** - * Verifies a Result message. + * Verifies a UserInput message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Result message from a plain object. Also converts values to their respective internal types. + * Creates a UserInput message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Result + * @returns UserInput */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Experiment.Result; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput; /** - * Creates a plain object from a Result message. Also converts values to other types if specified. - * @param message Result + * Creates a plain object from a UserInput message. Also converts values to other types if specified. + * @param message UserInput * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Experiment.Result, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Result to JSON. + * Converts this UserInput to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Result { - - /** Properties of a ConfidenceInterval. */ - interface IConfidenceInterval { - - /** ConfidenceInterval confidenceLevel */ - confidenceLevel?: (number|null); + /** Properties of a VirtualAgentOutput. */ + interface IVirtualAgentOutput { - /** ConfidenceInterval ratio */ - ratio?: (number|null); + /** VirtualAgentOutput sessionParameters */ + sessionParameters?: (google.protobuf.IStruct|null); - /** ConfidenceInterval lowerBound */ - lowerBound?: (number|null); + /** VirtualAgentOutput differences */ + differences?: (google.cloud.dialogflow.cx.v3.ITestRunDifference[]|null); - /** ConfidenceInterval upperBound */ - upperBound?: (number|null); - } + /** VirtualAgentOutput diagnosticInfo */ + diagnosticInfo?: (google.protobuf.IStruct|null); - /** Represents a ConfidenceInterval. */ - class ConfidenceInterval implements IConfidenceInterval { + /** VirtualAgentOutput triggeredIntent */ + triggeredIntent?: (google.cloud.dialogflow.cx.v3.IIntent|null); - /** - * Constructs a new ConfidenceInterval. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval); + /** VirtualAgentOutput currentPage */ + currentPage?: (google.cloud.dialogflow.cx.v3.IPage|null); - /** ConfidenceInterval confidenceLevel. */ - public confidenceLevel: number; + /** VirtualAgentOutput textResponses */ + textResponses?: (google.cloud.dialogflow.cx.v3.ResponseMessage.IText[]|null); - /** ConfidenceInterval ratio. */ - public ratio: number; + /** VirtualAgentOutput status */ + status?: (google.rpc.IStatus|null); + } - /** ConfidenceInterval lowerBound. */ - public lowerBound: number; + /** Represents a VirtualAgentOutput. */ + class VirtualAgentOutput implements IVirtualAgentOutput { - /** ConfidenceInterval upperBound. */ - public upperBound: number; + /** + * Constructs a new VirtualAgentOutput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput); - /** - * Creates a new ConfidenceInterval instance using the specified properties. - * @param [properties] Properties to set - * @returns ConfidenceInterval instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval): google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval; + /** VirtualAgentOutput sessionParameters. */ + public sessionParameters?: (google.protobuf.IStruct|null); - /** - * Encodes the specified ConfidenceInterval message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.verify|verify} messages. - * @param message ConfidenceInterval message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval, writer?: $protobuf.Writer): $protobuf.Writer; + /** VirtualAgentOutput differences. */ + public differences: google.cloud.dialogflow.cx.v3.ITestRunDifference[]; - /** - * Encodes the specified ConfidenceInterval message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.verify|verify} messages. - * @param message ConfidenceInterval message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval, writer?: $protobuf.Writer): $protobuf.Writer; + /** VirtualAgentOutput diagnosticInfo. */ + public diagnosticInfo?: (google.protobuf.IStruct|null); - /** - * Decodes a ConfidenceInterval message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ConfidenceInterval - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval; + /** VirtualAgentOutput triggeredIntent. */ + public triggeredIntent?: (google.cloud.dialogflow.cx.v3.IIntent|null); - /** - * Decodes a ConfidenceInterval message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ConfidenceInterval - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval; + /** VirtualAgentOutput currentPage. */ + public currentPage?: (google.cloud.dialogflow.cx.v3.IPage|null); - /** - * Verifies a ConfidenceInterval message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** VirtualAgentOutput textResponses. */ + public textResponses: google.cloud.dialogflow.cx.v3.ResponseMessage.IText[]; - /** - * Creates a ConfidenceInterval message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ConfidenceInterval - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval; + /** VirtualAgentOutput status. */ + public status?: (google.rpc.IStatus|null); - /** - * Creates a plain object from a ConfidenceInterval message. Also converts values to other types if specified. - * @param message ConfidenceInterval - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a new VirtualAgentOutput instance using the specified properties. + * @param [properties] Properties to set + * @returns VirtualAgentOutput instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput): google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput; - /** - * Converts this ConfidenceInterval to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Encodes the specified VirtualAgentOutput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.verify|verify} messages. + * @param message VirtualAgentOutput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a Metric. */ - interface IMetric { + /** + * Encodes the specified VirtualAgentOutput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.verify|verify} messages. + * @param message VirtualAgentOutput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput, writer?: $protobuf.Writer): $protobuf.Writer; - /** Metric type */ - type?: (google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType|null); + /** + * Decodes a VirtualAgentOutput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VirtualAgentOutput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput; - /** Metric countType */ - countType?: (google.cloud.dialogflow.cx.v3.Experiment.Result.CountType|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.Result.CountType|null); + /** + * Decodes a VirtualAgentOutput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VirtualAgentOutput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput; - /** Metric ratio */ - ratio?: (number|null); + /** + * Verifies a VirtualAgentOutput message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Metric count */ - count?: (number|null); + /** + * Creates a VirtualAgentOutput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VirtualAgentOutput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput; - /** Metric confidenceInterval */ - confidenceInterval?: (google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval|null); - } - - /** Represents a Metric. */ - class Metric implements IMetric { - - /** - * Constructs a new Metric. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric); - - /** Metric type. */ - public type: (google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType); - - /** Metric countType. */ - public countType: (google.cloud.dialogflow.cx.v3.Experiment.Result.CountType|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.Result.CountType); - - /** Metric ratio. */ - public ratio: number; - - /** Metric count. */ - public count: number; - - /** Metric confidenceInterval. */ - public confidenceInterval?: (google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval|null); - - /** Metric value. */ - public value?: ("ratio"|"count"); - - /** - * Creates a new Metric instance using the specified properties. - * @param [properties] Properties to set - * @returns Metric instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric): google.cloud.dialogflow.cx.v3.Experiment.Result.Metric; - - /** - * Encodes the specified Metric message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.verify|verify} messages. - * @param message Metric message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Metric message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.verify|verify} messages. - * @param message Metric message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Metric message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Metric - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Experiment.Result.Metric; - - /** - * Decodes a Metric message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Metric - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Experiment.Result.Metric; - - /** - * Verifies a Metric message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Metric message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Metric - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Experiment.Result.Metric; - - /** - * Creates a plain object from a Metric message. Also converts values to other types if specified. - * @param message Metric - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Experiment.Result.Metric, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Metric to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a VersionMetrics. */ - interface IVersionMetrics { - - /** VersionMetrics version */ - version?: (string|null); + /** + * Creates a plain object from a VirtualAgentOutput message. Also converts values to other types if specified. + * @param message VirtualAgentOutput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** VersionMetrics metrics */ - metrics?: (google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric[]|null); + /** + * Converts this VirtualAgentOutput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } - /** VersionMetrics sessionCount */ - sessionCount?: (number|null); - } + /** Properties of a TestRunDifference. */ + interface ITestRunDifference { - /** Represents a VersionMetrics. */ - class VersionMetrics implements IVersionMetrics { + /** TestRunDifference type */ + type?: (google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType|keyof typeof google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType|null); - /** - * Constructs a new VersionMetrics. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics); + /** TestRunDifference description */ + description?: (string|null); + } - /** VersionMetrics version. */ - public version: string; + /** Represents a TestRunDifference. */ + class TestRunDifference implements ITestRunDifference { - /** VersionMetrics metrics. */ - public metrics: google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric[]; + /** + * Constructs a new TestRunDifference. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.ITestRunDifference); - /** VersionMetrics sessionCount. */ - public sessionCount: number; + /** TestRunDifference type. */ + public type: (google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType|keyof typeof google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType); - /** - * Creates a new VersionMetrics instance using the specified properties. - * @param [properties] Properties to set - * @returns VersionMetrics instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics): google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics; + /** TestRunDifference description. */ + public description: string; - /** - * Encodes the specified VersionMetrics message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.verify|verify} messages. - * @param message VersionMetrics message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new TestRunDifference instance using the specified properties. + * @param [properties] Properties to set + * @returns TestRunDifference instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.ITestRunDifference): google.cloud.dialogflow.cx.v3.TestRunDifference; - /** - * Encodes the specified VersionMetrics message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.verify|verify} messages. - * @param message VersionMetrics message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified TestRunDifference message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestRunDifference.verify|verify} messages. + * @param message TestRunDifference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.ITestRunDifference, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a VersionMetrics message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VersionMetrics - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics; + /** + * Encodes the specified TestRunDifference message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestRunDifference.verify|verify} messages. + * @param message TestRunDifference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITestRunDifference, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a VersionMetrics message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VersionMetrics - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics; + /** + * Decodes a TestRunDifference message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TestRunDifference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TestRunDifference; - /** - * Verifies a VersionMetrics message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a TestRunDifference message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TestRunDifference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TestRunDifference; - /** - * Creates a VersionMetrics message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VersionMetrics - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics; + /** + * Verifies a TestRunDifference message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a plain object from a VersionMetrics message. Also converts values to other types if specified. - * @param message VersionMetrics - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a TestRunDifference message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TestRunDifference + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TestRunDifference; - /** - * Converts this VersionMetrics to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Creates a plain object from a TestRunDifference message. Also converts values to other types if specified. + * @param message TestRunDifference + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.TestRunDifference, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** MetricType enum. */ - enum MetricType { - METRIC_UNSPECIFIED = 0, - CONTAINED_SESSION_NO_CALLBACK_RATE = 1, - LIVE_AGENT_HANDOFF_RATE = 2, - CALLBACK_SESSION_RATE = 3, - ABANDONED_SESSION_RATE = 4, - SESSION_END_RATE = 5 - } + /** + * Converts this TestRunDifference to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** CountType enum. */ - enum CountType { - COUNT_TYPE_UNSPECIFIED = 0, - TOTAL_NO_MATCH_COUNT = 1, - TOTAL_TURN_COUNT = 2, - AVERAGE_TURN_COUNT = 3 - } - } + namespace TestRunDifference { - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - DRAFT = 1, - RUNNING = 2, - DONE = 3 + /** DiffType enum. */ + enum DiffType { + DIFF_TYPE_UNSPECIFIED = 0, + INTENT = 1, + PAGE = 2, + PARAMETERS = 3, + UTTERANCE = 4 } } - /** Properties of a VersionVariants. */ - interface IVersionVariants { + /** Properties of a TransitionCoverage. */ + interface ITransitionCoverage { - /** VersionVariants variants */ - variants?: (google.cloud.dialogflow.cx.v3.VersionVariants.IVariant[]|null); + /** TransitionCoverage transitions */ + transitions?: (google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition[]|null); + + /** TransitionCoverage coverageScore */ + coverageScore?: (number|null); } - /** Represents a VersionVariants. */ - class VersionVariants implements IVersionVariants { + /** Represents a TransitionCoverage. */ + class TransitionCoverage implements ITransitionCoverage { /** - * Constructs a new VersionVariants. + * Constructs a new TransitionCoverage. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IVersionVariants); + constructor(properties?: google.cloud.dialogflow.cx.v3.ITransitionCoverage); - /** VersionVariants variants. */ - public variants: google.cloud.dialogflow.cx.v3.VersionVariants.IVariant[]; + /** TransitionCoverage transitions. */ + public transitions: google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition[]; + + /** TransitionCoverage coverageScore. */ + public coverageScore: number; /** - * Creates a new VersionVariants instance using the specified properties. + * Creates a new TransitionCoverage instance using the specified properties. * @param [properties] Properties to set - * @returns VersionVariants instance + * @returns TransitionCoverage instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IVersionVariants): google.cloud.dialogflow.cx.v3.VersionVariants; + public static create(properties?: google.cloud.dialogflow.cx.v3.ITransitionCoverage): google.cloud.dialogflow.cx.v3.TransitionCoverage; /** - * Encodes the specified VersionVariants message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.verify|verify} messages. - * @param message VersionVariants message or plain object to encode + * Encodes the specified TransitionCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.verify|verify} messages. + * @param message TransitionCoverage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IVersionVariants, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ITransitionCoverage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VersionVariants message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.verify|verify} messages. - * @param message VersionVariants message or plain object to encode + * Encodes the specified TransitionCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.verify|verify} messages. + * @param message TransitionCoverage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IVersionVariants, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITransitionCoverage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VersionVariants message from the specified reader or buffer. + * Decodes a TransitionCoverage message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VersionVariants + * @returns TransitionCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.VersionVariants; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TransitionCoverage; /** - * Decodes a VersionVariants message from the specified reader or buffer, length delimited. + * Decodes a TransitionCoverage message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VersionVariants + * @returns TransitionCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.VersionVariants; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TransitionCoverage; /** - * Verifies a VersionVariants message. + * Verifies a TransitionCoverage message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a VersionVariants message from a plain object. Also converts values to their respective internal types. + * Creates a TransitionCoverage message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VersionVariants + * @returns TransitionCoverage */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.VersionVariants; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TransitionCoverage; /** - * Creates a plain object from a VersionVariants message. Also converts values to other types if specified. - * @param message VersionVariants + * Creates a plain object from a TransitionCoverage message. Also converts values to other types if specified. + * @param message TransitionCoverage * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.VersionVariants, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.TransitionCoverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VersionVariants to JSON. + * Converts this TransitionCoverage to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace VersionVariants { - - /** Properties of a Variant. */ - interface IVariant { + namespace TransitionCoverage { - /** Variant version */ - version?: (string|null); + /** Properties of a TransitionNode. */ + interface ITransitionNode { - /** Variant trafficAllocation */ - trafficAllocation?: (number|null); + /** TransitionNode page */ + page?: (google.cloud.dialogflow.cx.v3.IPage|null); - /** Variant isControlGroup */ - isControlGroup?: (boolean|null); + /** TransitionNode flow */ + flow?: (google.cloud.dialogflow.cx.v3.IFlow|null); } - /** Represents a Variant. */ - class Variant implements IVariant { + /** Represents a TransitionNode. */ + class TransitionNode implements ITransitionNode { /** - * Constructs a new Variant. + * Constructs a new TransitionNode. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.VersionVariants.IVariant); + constructor(properties?: google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode); - /** Variant version. */ - public version: string; + /** TransitionNode page. */ + public page?: (google.cloud.dialogflow.cx.v3.IPage|null); - /** Variant trafficAllocation. */ - public trafficAllocation: number; + /** TransitionNode flow. */ + public flow?: (google.cloud.dialogflow.cx.v3.IFlow|null); - /** Variant isControlGroup. */ - public isControlGroup: boolean; + /** TransitionNode kind. */ + public kind?: ("page"|"flow"); /** - * Creates a new Variant instance using the specified properties. + * Creates a new TransitionNode instance using the specified properties. * @param [properties] Properties to set - * @returns Variant instance + * @returns TransitionNode instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.VersionVariants.IVariant): google.cloud.dialogflow.cx.v3.VersionVariants.Variant; + public static create(properties?: google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode): google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode; /** - * Encodes the specified Variant message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.Variant.verify|verify} messages. - * @param message Variant message or plain object to encode + * Encodes the specified TransitionNode message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.verify|verify} messages. + * @param message TransitionNode message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.VersionVariants.IVariant, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Variant message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.Variant.verify|verify} messages. - * @param message Variant message or plain object to encode + * Encodes the specified TransitionNode message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.verify|verify} messages. + * @param message TransitionNode message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.VersionVariants.IVariant, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Variant message from the specified reader or buffer. + * Decodes a TransitionNode message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Variant + * @returns TransitionNode * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.VersionVariants.Variant; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode; /** - * Decodes a Variant message from the specified reader or buffer, length delimited. + * Decodes a TransitionNode message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Variant + * @returns TransitionNode * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.VersionVariants.Variant; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode; /** - * Verifies a Variant message. + * Verifies a TransitionNode message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Variant message from a plain object. Also converts values to their respective internal types. + * Creates a TransitionNode message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Variant + * @returns TransitionNode */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.VersionVariants.Variant; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode; /** - * Creates a plain object from a Variant message. Also converts values to other types if specified. - * @param message Variant + * Creates a plain object from a TransitionNode message. Also converts values to other types if specified. + * @param message TransitionNode * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.VersionVariants.Variant, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Variant to JSON. + * Converts this TransitionNode to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - } - - /** Properties of a VariantsHistory. */ - interface IVariantsHistory { - /** VariantsHistory versionVariants */ - versionVariants?: (google.cloud.dialogflow.cx.v3.IVersionVariants|null); + /** Properties of a Transition. */ + interface ITransition { - /** VariantsHistory updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - } + /** Transition source */ + source?: (google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode|null); - /** Represents a VariantsHistory. */ - class VariantsHistory implements IVariantsHistory { + /** Transition index */ + index?: (number|null); - /** - * Constructs a new VariantsHistory. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IVariantsHistory); + /** Transition target */ + target?: (google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode|null); - /** VariantsHistory versionVariants. */ - public versionVariants?: (google.cloud.dialogflow.cx.v3.IVersionVariants|null); + /** Transition covered */ + covered?: (boolean|null); - /** VariantsHistory updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** Transition transitionRoute */ + transitionRoute?: (google.cloud.dialogflow.cx.v3.ITransitionRoute|null); - /** VariantsHistory variants. */ - public variants?: "versionVariants"; + /** Transition eventHandler */ + eventHandler?: (google.cloud.dialogflow.cx.v3.IEventHandler|null); + } - /** - * Creates a new VariantsHistory instance using the specified properties. - * @param [properties] Properties to set - * @returns VariantsHistory instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IVariantsHistory): google.cloud.dialogflow.cx.v3.VariantsHistory; + /** Represents a Transition. */ + class Transition implements ITransition { - /** - * Encodes the specified VariantsHistory message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VariantsHistory.verify|verify} messages. - * @param message VariantsHistory message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.IVariantsHistory, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new Transition. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition); - /** - * Encodes the specified VariantsHistory message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VariantsHistory.verify|verify} messages. - * @param message VariantsHistory message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IVariantsHistory, writer?: $protobuf.Writer): $protobuf.Writer; + /** Transition source. */ + public source?: (google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode|null); - /** - * Decodes a VariantsHistory message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VariantsHistory - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.VariantsHistory; + /** Transition index. */ + public index: number; - /** - * Decodes a VariantsHistory message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VariantsHistory - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.VariantsHistory; + /** Transition target. */ + public target?: (google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode|null); - /** - * Verifies a VariantsHistory message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Transition covered. */ + public covered: boolean; - /** - * Creates a VariantsHistory message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VariantsHistory - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.VariantsHistory; + /** Transition transitionRoute. */ + public transitionRoute?: (google.cloud.dialogflow.cx.v3.ITransitionRoute|null); - /** - * Creates a plain object from a VariantsHistory message. Also converts values to other types if specified. - * @param message VariantsHistory - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.VariantsHistory, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Transition eventHandler. */ + public eventHandler?: (google.cloud.dialogflow.cx.v3.IEventHandler|null); - /** - * Converts this VariantsHistory to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Transition detail. */ + public detail?: ("transitionRoute"|"eventHandler"); - /** Properties of a ListExperimentsRequest. */ - interface IListExperimentsRequest { + /** + * Creates a new Transition instance using the specified properties. + * @param [properties] Properties to set + * @returns Transition instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition): google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition; - /** ListExperimentsRequest parent */ - parent?: (string|null); + /** + * Encodes the specified Transition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.verify|verify} messages. + * @param message Transition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition, writer?: $protobuf.Writer): $protobuf.Writer; - /** ListExperimentsRequest pageSize */ - pageSize?: (number|null); + /** + * Encodes the specified Transition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.verify|verify} messages. + * @param message Transition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition, writer?: $protobuf.Writer): $protobuf.Writer; - /** ListExperimentsRequest pageToken */ - pageToken?: (string|null); + /** + * Decodes a Transition message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Transition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition; + + /** + * Decodes a Transition message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Transition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition; + + /** + * Verifies a Transition message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Transition message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Transition + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition; + + /** + * Creates a plain object from a Transition message. Also converts values to other types if specified. + * @param message Transition + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Transition to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Represents a ListExperimentsRequest. */ - class ListExperimentsRequest implements IListExperimentsRequest { + /** Properties of a TransitionRouteGroupCoverage. */ + interface ITransitionRouteGroupCoverage { + + /** TransitionRouteGroupCoverage coverages */ + coverages?: (google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage[]|null); + + /** TransitionRouteGroupCoverage coverageScore */ + coverageScore?: (number|null); + } + + /** Represents a TransitionRouteGroupCoverage. */ + class TransitionRouteGroupCoverage implements ITransitionRouteGroupCoverage { /** - * Constructs a new ListExperimentsRequest. + * Constructs a new TransitionRouteGroupCoverage. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListExperimentsRequest); - - /** ListExperimentsRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage); - /** ListExperimentsRequest pageSize. */ - public pageSize: number; + /** TransitionRouteGroupCoverage coverages. */ + public coverages: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage[]; - /** ListExperimentsRequest pageToken. */ - public pageToken: string; + /** TransitionRouteGroupCoverage coverageScore. */ + public coverageScore: number; /** - * Creates a new ListExperimentsRequest instance using the specified properties. + * Creates a new TransitionRouteGroupCoverage instance using the specified properties. * @param [properties] Properties to set - * @returns ListExperimentsRequest instance + * @returns TransitionRouteGroupCoverage instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListExperimentsRequest): google.cloud.dialogflow.cx.v3.ListExperimentsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage; /** - * Encodes the specified ListExperimentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsRequest.verify|verify} messages. - * @param message ListExperimentsRequest message or plain object to encode + * Encodes the specified TransitionRouteGroupCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.verify|verify} messages. + * @param message TransitionRouteGroupCoverage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListExperimentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListExperimentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsRequest.verify|verify} messages. - * @param message ListExperimentsRequest message or plain object to encode + * Encodes the specified TransitionRouteGroupCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.verify|verify} messages. + * @param message TransitionRouteGroupCoverage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListExperimentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListExperimentsRequest message from the specified reader or buffer. + * Decodes a TransitionRouteGroupCoverage message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListExperimentsRequest + * @returns TransitionRouteGroupCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListExperimentsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage; /** - * Decodes a ListExperimentsRequest message from the specified reader or buffer, length delimited. + * Decodes a TransitionRouteGroupCoverage message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListExperimentsRequest + * @returns TransitionRouteGroupCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListExperimentsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage; /** - * Verifies a ListExperimentsRequest message. + * Verifies a TransitionRouteGroupCoverage message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListExperimentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TransitionRouteGroupCoverage message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListExperimentsRequest + * @returns TransitionRouteGroupCoverage */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListExperimentsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage; /** - * Creates a plain object from a ListExperimentsRequest message. Also converts values to other types if specified. - * @param message ListExperimentsRequest + * Creates a plain object from a TransitionRouteGroupCoverage message. Also converts values to other types if specified. + * @param message TransitionRouteGroupCoverage * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListExperimentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListExperimentsRequest to JSON. + * Converts this TransitionRouteGroupCoverage to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListExperimentsResponse. */ - interface IListExperimentsResponse { + namespace TransitionRouteGroupCoverage { - /** ListExperimentsResponse experiments */ - experiments?: (google.cloud.dialogflow.cx.v3.IExperiment[]|null); + /** Properties of a Coverage. */ + interface ICoverage { - /** ListExperimentsResponse nextPageToken */ - nextPageToken?: (string|null); + /** Coverage routeGroup */ + routeGroup?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null); + + /** Coverage transitions */ + transitions?: (google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition[]|null); + + /** Coverage coverageScore */ + coverageScore?: (number|null); + } + + /** Represents a Coverage. */ + class Coverage implements ICoverage { + + /** + * Constructs a new Coverage. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage); + + /** Coverage routeGroup. */ + public routeGroup?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null); + + /** Coverage transitions. */ + public transitions: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition[]; + + /** Coverage coverageScore. */ + public coverageScore: number; + + /** + * Creates a new Coverage instance using the specified properties. + * @param [properties] Properties to set + * @returns Coverage instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage; + + /** + * Encodes the specified Coverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.verify|verify} messages. + * @param message Coverage message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Coverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.verify|verify} messages. + * @param message Coverage message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Coverage message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Coverage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage; + + /** + * Decodes a Coverage message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Coverage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage; + + /** + * Verifies a Coverage message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Coverage message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Coverage + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage; + + /** + * Creates a plain object from a Coverage message. Also converts values to other types if specified. + * @param message Coverage + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Coverage to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace Coverage { + + /** Properties of a Transition. */ + interface ITransition { + + /** Transition transitionRoute */ + transitionRoute?: (google.cloud.dialogflow.cx.v3.ITransitionRoute|null); + + /** Transition covered */ + covered?: (boolean|null); + } + + /** Represents a Transition. */ + class Transition implements ITransition { + + /** + * Constructs a new Transition. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition); + + /** Transition transitionRoute. */ + public transitionRoute?: (google.cloud.dialogflow.cx.v3.ITransitionRoute|null); + + /** Transition covered. */ + public covered: boolean; + + /** + * Creates a new Transition instance using the specified properties. + * @param [properties] Properties to set + * @returns Transition instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition; + + /** + * Encodes the specified Transition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.verify|verify} messages. + * @param message Transition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Transition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.verify|verify} messages. + * @param message Transition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Transition message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Transition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition; + + /** + * Decodes a Transition message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Transition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition; + + /** + * Verifies a Transition message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Transition message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Transition + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition; + + /** + * Creates a plain object from a Transition message. Also converts values to other types if specified. + * @param message Transition + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Transition to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } } - /** Represents a ListExperimentsResponse. */ - class ListExperimentsResponse implements IListExperimentsResponse { + /** Properties of an IntentCoverage. */ + interface IIntentCoverage { + + /** IntentCoverage intents */ + intents?: (google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent[]|null); + + /** IntentCoverage coverageScore */ + coverageScore?: (number|null); + } + + /** Represents an IntentCoverage. */ + class IntentCoverage implements IIntentCoverage { /** - * Constructs a new ListExperimentsResponse. + * Constructs a new IntentCoverage. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListExperimentsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IIntentCoverage); - /** ListExperimentsResponse experiments. */ - public experiments: google.cloud.dialogflow.cx.v3.IExperiment[]; + /** IntentCoverage intents. */ + public intents: google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent[]; - /** ListExperimentsResponse nextPageToken. */ - public nextPageToken: string; + /** IntentCoverage coverageScore. */ + public coverageScore: number; /** - * Creates a new ListExperimentsResponse instance using the specified properties. + * Creates a new IntentCoverage instance using the specified properties. * @param [properties] Properties to set - * @returns ListExperimentsResponse instance + * @returns IntentCoverage instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListExperimentsResponse): google.cloud.dialogflow.cx.v3.ListExperimentsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IIntentCoverage): google.cloud.dialogflow.cx.v3.IntentCoverage; /** - * Encodes the specified ListExperimentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsResponse.verify|verify} messages. - * @param message ListExperimentsResponse message or plain object to encode + * Encodes the specified IntentCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentCoverage.verify|verify} messages. + * @param message IntentCoverage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListExperimentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IIntentCoverage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListExperimentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsResponse.verify|verify} messages. - * @param message ListExperimentsResponse message or plain object to encode + * Encodes the specified IntentCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentCoverage.verify|verify} messages. + * @param message IntentCoverage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListExperimentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IIntentCoverage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListExperimentsResponse message from the specified reader or buffer. + * Decodes an IntentCoverage message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListExperimentsResponse + * @returns IntentCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListExperimentsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.IntentCoverage; /** - * Decodes a ListExperimentsResponse message from the specified reader or buffer, length delimited. + * Decodes an IntentCoverage message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListExperimentsResponse + * @returns IntentCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListExperimentsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.IntentCoverage; /** - * Verifies a ListExperimentsResponse message. + * Verifies an IntentCoverage message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListExperimentsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an IntentCoverage message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListExperimentsResponse + * @returns IntentCoverage */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListExperimentsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.IntentCoverage; /** - * Creates a plain object from a ListExperimentsResponse message. Also converts values to other types if specified. - * @param message ListExperimentsResponse + * Creates a plain object from an IntentCoverage message. Also converts values to other types if specified. + * @param message IntentCoverage * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListExperimentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.IntentCoverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListExperimentsResponse to JSON. + * Converts this IntentCoverage to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetExperimentRequest. */ - interface IGetExperimentRequest { + namespace IntentCoverage { - /** GetExperimentRequest name */ - name?: (string|null); - } + /** Properties of an Intent. */ + interface IIntent { - /** Represents a GetExperimentRequest. */ - class GetExperimentRequest implements IGetExperimentRequest { + /** Intent intent */ + intent?: (string|null); + + /** Intent covered */ + covered?: (boolean|null); + } + + /** Represents an Intent. */ + class Intent implements IIntent { + + /** + * Constructs a new Intent. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent); + + /** Intent intent. */ + public intent: string; + + /** Intent covered. */ + public covered: boolean; + + /** + * Creates a new Intent instance using the specified properties. + * @param [properties] Properties to set + * @returns Intent instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent): google.cloud.dialogflow.cx.v3.IntentCoverage.Intent; + + /** + * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentCoverage.Intent.verify|verify} messages. + * @param message Intent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Intent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentCoverage.Intent.verify|verify} messages. + * @param message Intent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Intent message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Intent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.IntentCoverage.Intent; + + /** + * Decodes an Intent message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Intent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.IntentCoverage.Intent; + + /** + * Verifies an Intent message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an Intent message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Intent + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.IntentCoverage.Intent; + + /** + * Creates a plain object from an Intent message. Also converts values to other types if specified. + * @param message Intent + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.IntentCoverage.Intent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Intent to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a CalculateCoverageRequest. */ + interface ICalculateCoverageRequest { + + /** CalculateCoverageRequest agent */ + agent?: (string|null); + + /** CalculateCoverageRequest type */ + type?: (google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType|keyof typeof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType|null); + } + + /** Represents a CalculateCoverageRequest. */ + class CalculateCoverageRequest implements ICalculateCoverageRequest { /** - * Constructs a new GetExperimentRequest. + * Constructs a new CalculateCoverageRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IGetExperimentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest); - /** GetExperimentRequest name. */ - public name: string; + /** CalculateCoverageRequest agent. */ + public agent: string; + + /** CalculateCoverageRequest type. */ + public type: (google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType|keyof typeof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType); /** - * Creates a new GetExperimentRequest instance using the specified properties. + * Creates a new CalculateCoverageRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetExperimentRequest instance + * @returns CalculateCoverageRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IGetExperimentRequest): google.cloud.dialogflow.cx.v3.GetExperimentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest): google.cloud.dialogflow.cx.v3.CalculateCoverageRequest; /** - * Encodes the specified GetExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetExperimentRequest.verify|verify} messages. - * @param message GetExperimentRequest message or plain object to encode + * Encodes the specified CalculateCoverageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.verify|verify} messages. + * @param message CalculateCoverageRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IGetExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetExperimentRequest.verify|verify} messages. - * @param message GetExperimentRequest message or plain object to encode + * Encodes the specified CalculateCoverageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.verify|verify} messages. + * @param message CalculateCoverageRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetExperimentRequest message from the specified reader or buffer. + * Decodes a CalculateCoverageRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetExperimentRequest + * @returns CalculateCoverageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetExperimentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CalculateCoverageRequest; /** - * Decodes a GetExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a CalculateCoverageRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetExperimentRequest + * @returns CalculateCoverageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetExperimentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CalculateCoverageRequest; /** - * Verifies a GetExperimentRequest message. + * Verifies a CalculateCoverageRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CalculateCoverageRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetExperimentRequest + * @returns CalculateCoverageRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetExperimentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CalculateCoverageRequest; /** - * Creates a plain object from a GetExperimentRequest message. Also converts values to other types if specified. - * @param message GetExperimentRequest + * Creates a plain object from a CalculateCoverageRequest message. Also converts values to other types if specified. + * @param message CalculateCoverageRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.GetExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CalculateCoverageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetExperimentRequest to JSON. + * Converts this CalculateCoverageRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateExperimentRequest. */ - interface ICreateExperimentRequest { + namespace CalculateCoverageRequest { - /** CreateExperimentRequest parent */ - parent?: (string|null); + /** CoverageType enum. */ + enum CoverageType { + COVERAGE_TYPE_UNSPECIFIED = 0, + INTENT = 1, + PAGE_TRANSITION = 2, + TRANSITION_ROUTE_GROUP = 3 + } + } - /** CreateExperimentRequest experiment */ - experiment?: (google.cloud.dialogflow.cx.v3.IExperiment|null); + /** Properties of a CalculateCoverageResponse. */ + interface ICalculateCoverageResponse { + + /** CalculateCoverageResponse agent */ + agent?: (string|null); + + /** CalculateCoverageResponse intentCoverage */ + intentCoverage?: (google.cloud.dialogflow.cx.v3.IIntentCoverage|null); + + /** CalculateCoverageResponse transitionCoverage */ + transitionCoverage?: (google.cloud.dialogflow.cx.v3.ITransitionCoverage|null); + + /** CalculateCoverageResponse routeGroupCoverage */ + routeGroupCoverage?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage|null); } - /** Represents a CreateExperimentRequest. */ - class CreateExperimentRequest implements ICreateExperimentRequest { + /** Represents a CalculateCoverageResponse. */ + class CalculateCoverageResponse implements ICalculateCoverageResponse { /** - * Constructs a new CreateExperimentRequest. + * Constructs a new CalculateCoverageResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICalculateCoverageResponse); - /** CreateExperimentRequest parent. */ - public parent: string; + /** CalculateCoverageResponse agent. */ + public agent: string; - /** CreateExperimentRequest experiment. */ - public experiment?: (google.cloud.dialogflow.cx.v3.IExperiment|null); + /** CalculateCoverageResponse intentCoverage. */ + public intentCoverage?: (google.cloud.dialogflow.cx.v3.IIntentCoverage|null); + + /** CalculateCoverageResponse transitionCoverage. */ + public transitionCoverage?: (google.cloud.dialogflow.cx.v3.ITransitionCoverage|null); + + /** CalculateCoverageResponse routeGroupCoverage. */ + public routeGroupCoverage?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage|null); + + /** CalculateCoverageResponse coverageType. */ + public coverageType?: ("intentCoverage"|"transitionCoverage"|"routeGroupCoverage"); /** - * Creates a new CreateExperimentRequest instance using the specified properties. + * Creates a new CalculateCoverageResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateExperimentRequest instance + * @returns CalculateCoverageResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest): google.cloud.dialogflow.cx.v3.CreateExperimentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICalculateCoverageResponse): google.cloud.dialogflow.cx.v3.CalculateCoverageResponse; /** - * Encodes the specified CreateExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateExperimentRequest.verify|verify} messages. - * @param message CreateExperimentRequest message or plain object to encode + * Encodes the specified CalculateCoverageResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CalculateCoverageResponse.verify|verify} messages. + * @param message CalculateCoverageResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICalculateCoverageResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateExperimentRequest.verify|verify} messages. - * @param message CreateExperimentRequest message or plain object to encode + * Encodes the specified CalculateCoverageResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CalculateCoverageResponse.verify|verify} messages. + * @param message CalculateCoverageResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICalculateCoverageResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateExperimentRequest message from the specified reader or buffer. + * Decodes a CalculateCoverageResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateExperimentRequest + * @returns CalculateCoverageResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateExperimentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CalculateCoverageResponse; /** - * Decodes a CreateExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a CalculateCoverageResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateExperimentRequest + * @returns CalculateCoverageResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateExperimentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CalculateCoverageResponse; /** - * Verifies a CreateExperimentRequest message. + * Verifies a CalculateCoverageResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CalculateCoverageResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateExperimentRequest + * @returns CalculateCoverageResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateExperimentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CalculateCoverageResponse; /** - * Creates a plain object from a CreateExperimentRequest message. Also converts values to other types if specified. - * @param message CreateExperimentRequest + * Creates a plain object from a CalculateCoverageResponse message. Also converts values to other types if specified. + * @param message CalculateCoverageResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.CreateExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CalculateCoverageResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateExperimentRequest to JSON. + * Converts this CalculateCoverageResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateExperimentRequest. */ - interface IUpdateExperimentRequest { + /** Properties of a ListTestCasesRequest. */ + interface IListTestCasesRequest { - /** UpdateExperimentRequest experiment */ - experiment?: (google.cloud.dialogflow.cx.v3.IExperiment|null); + /** ListTestCasesRequest parent */ + parent?: (string|null); - /** UpdateExperimentRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** ListTestCasesRequest pageSize */ + pageSize?: (number|null); + + /** ListTestCasesRequest pageToken */ + pageToken?: (string|null); + + /** ListTestCasesRequest view */ + view?: (google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView|keyof typeof google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView|null); } - /** Represents an UpdateExperimentRequest. */ - class UpdateExperimentRequest implements IUpdateExperimentRequest { + /** Represents a ListTestCasesRequest. */ + class ListTestCasesRequest implements IListTestCasesRequest { /** - * Constructs a new UpdateExperimentRequest. + * Constructs a new ListTestCasesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListTestCasesRequest); - /** UpdateExperimentRequest experiment. */ - public experiment?: (google.cloud.dialogflow.cx.v3.IExperiment|null); + /** ListTestCasesRequest parent. */ + public parent: string; - /** UpdateExperimentRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** ListTestCasesRequest pageSize. */ + public pageSize: number; + + /** ListTestCasesRequest pageToken. */ + public pageToken: string; + + /** ListTestCasesRequest view. */ + public view: (google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView|keyof typeof google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView); /** - * Creates a new UpdateExperimentRequest instance using the specified properties. + * Creates a new ListTestCasesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateExperimentRequest instance + * @returns ListTestCasesRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest): google.cloud.dialogflow.cx.v3.UpdateExperimentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListTestCasesRequest): google.cloud.dialogflow.cx.v3.ListTestCasesRequest; /** - * Encodes the specified UpdateExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateExperimentRequest.verify|verify} messages. - * @param message UpdateExperimentRequest message or plain object to encode + * Encodes the specified ListTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCasesRequest.verify|verify} messages. + * @param message ListTestCasesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateExperimentRequest.verify|verify} messages. - * @param message UpdateExperimentRequest message or plain object to encode + * Encodes the specified ListTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCasesRequest.verify|verify} messages. + * @param message ListTestCasesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateExperimentRequest message from the specified reader or buffer. + * Decodes a ListTestCasesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateExperimentRequest + * @returns ListTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateExperimentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListTestCasesRequest; /** - * Decodes an UpdateExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a ListTestCasesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateExperimentRequest + * @returns ListTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateExperimentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListTestCasesRequest; /** - * Verifies an UpdateExperimentRequest message. + * Verifies a ListTestCasesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListTestCasesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateExperimentRequest + * @returns ListTestCasesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateExperimentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListTestCasesRequest; /** - * Creates a plain object from an UpdateExperimentRequest message. Also converts values to other types if specified. - * @param message UpdateExperimentRequest + * Creates a plain object from a ListTestCasesRequest message. Also converts values to other types if specified. + * @param message ListTestCasesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateExperimentRequest to JSON. + * Converts this ListTestCasesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteExperimentRequest. */ - interface IDeleteExperimentRequest { + namespace ListTestCasesRequest { - /** DeleteExperimentRequest name */ - name?: (string|null); + /** TestCaseView enum. */ + enum TestCaseView { + TEST_CASE_VIEW_UNSPECIFIED = 0, + BASIC = 1, + FULL = 2 + } } - /** Represents a DeleteExperimentRequest. */ - class DeleteExperimentRequest implements IDeleteExperimentRequest { + /** Properties of a ListTestCasesResponse. */ + interface IListTestCasesResponse { + + /** ListTestCasesResponse testCases */ + testCases?: (google.cloud.dialogflow.cx.v3.ITestCase[]|null); + + /** ListTestCasesResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListTestCasesResponse. */ + class ListTestCasesResponse implements IListTestCasesResponse { /** - * Constructs a new DeleteExperimentRequest. + * Constructs a new ListTestCasesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListTestCasesResponse); - /** DeleteExperimentRequest name. */ - public name: string; + /** ListTestCasesResponse testCases. */ + public testCases: google.cloud.dialogflow.cx.v3.ITestCase[]; + + /** ListTestCasesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new DeleteExperimentRequest instance using the specified properties. + * Creates a new ListTestCasesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteExperimentRequest instance + * @returns ListTestCasesResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest): google.cloud.dialogflow.cx.v3.DeleteExperimentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListTestCasesResponse): google.cloud.dialogflow.cx.v3.ListTestCasesResponse; /** - * Encodes the specified DeleteExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteExperimentRequest.verify|verify} messages. - * @param message DeleteExperimentRequest message or plain object to encode + * Encodes the specified ListTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCasesResponse.verify|verify} messages. + * @param message ListTestCasesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteExperimentRequest.verify|verify} messages. - * @param message DeleteExperimentRequest message or plain object to encode + * Encodes the specified ListTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCasesResponse.verify|verify} messages. + * @param message ListTestCasesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteExperimentRequest message from the specified reader or buffer. + * Decodes a ListTestCasesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteExperimentRequest + * @returns ListTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteExperimentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListTestCasesResponse; /** - * Decodes a DeleteExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a ListTestCasesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteExperimentRequest + * @returns ListTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteExperimentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListTestCasesResponse; /** - * Verifies a DeleteExperimentRequest message. + * Verifies a ListTestCasesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListTestCasesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteExperimentRequest + * @returns ListTestCasesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteExperimentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListTestCasesResponse; /** - * Creates a plain object from a DeleteExperimentRequest message. Also converts values to other types if specified. - * @param message DeleteExperimentRequest + * Creates a plain object from a ListTestCasesResponse message. Also converts values to other types if specified. + * @param message ListTestCasesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteExperimentRequest to JSON. + * Converts this ListTestCasesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a StartExperimentRequest. */ - interface IStartExperimentRequest { + /** Properties of a BatchDeleteTestCasesRequest. */ + interface IBatchDeleteTestCasesRequest { - /** StartExperimentRequest name */ - name?: (string|null); + /** BatchDeleteTestCasesRequest parent */ + parent?: (string|null); + + /** BatchDeleteTestCasesRequest names */ + names?: (string[]|null); } - /** Represents a StartExperimentRequest. */ - class StartExperimentRequest implements IStartExperimentRequest { + /** Represents a BatchDeleteTestCasesRequest. */ + class BatchDeleteTestCasesRequest implements IBatchDeleteTestCasesRequest { /** - * Constructs a new StartExperimentRequest. + * Constructs a new BatchDeleteTestCasesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IStartExperimentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest); - /** StartExperimentRequest name. */ - public name: string; + /** BatchDeleteTestCasesRequest parent. */ + public parent: string; + + /** BatchDeleteTestCasesRequest names. */ + public names: string[]; /** - * Creates a new StartExperimentRequest instance using the specified properties. + * Creates a new BatchDeleteTestCasesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns StartExperimentRequest instance + * @returns BatchDeleteTestCasesRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IStartExperimentRequest): google.cloud.dialogflow.cx.v3.StartExperimentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest): google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest; /** - * Encodes the specified StartExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StartExperimentRequest.verify|verify} messages. - * @param message StartExperimentRequest message or plain object to encode + * Encodes the specified BatchDeleteTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest.verify|verify} messages. + * @param message BatchDeleteTestCasesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IStartExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StartExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StartExperimentRequest.verify|verify} messages. - * @param message StartExperimentRequest message or plain object to encode + * Encodes the specified BatchDeleteTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest.verify|verify} messages. + * @param message BatchDeleteTestCasesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IStartExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StartExperimentRequest message from the specified reader or buffer. + * Decodes a BatchDeleteTestCasesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StartExperimentRequest + * @returns BatchDeleteTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.StartExperimentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest; /** - * Decodes a StartExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchDeleteTestCasesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StartExperimentRequest + * @returns BatchDeleteTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.StartExperimentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest; /** - * Verifies a StartExperimentRequest message. + * Verifies a BatchDeleteTestCasesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StartExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchDeleteTestCasesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StartExperimentRequest + * @returns BatchDeleteTestCasesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.StartExperimentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest; /** - * Creates a plain object from a StartExperimentRequest message. Also converts values to other types if specified. - * @param message StartExperimentRequest + * Creates a plain object from a BatchDeleteTestCasesRequest message. Also converts values to other types if specified. + * @param message BatchDeleteTestCasesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.StartExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StartExperimentRequest to JSON. + * Converts this BatchDeleteTestCasesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a StopExperimentRequest. */ - interface IStopExperimentRequest { + /** Properties of a CreateTestCaseRequest. */ + interface ICreateTestCaseRequest { - /** StopExperimentRequest name */ - name?: (string|null); - } + /** CreateTestCaseRequest parent */ + parent?: (string|null); - /** Represents a StopExperimentRequest. */ - class StopExperimentRequest implements IStopExperimentRequest { + /** CreateTestCaseRequest testCase */ + testCase?: (google.cloud.dialogflow.cx.v3.ITestCase|null); + } + + /** Represents a CreateTestCaseRequest. */ + class CreateTestCaseRequest implements ICreateTestCaseRequest { /** - * Constructs a new StopExperimentRequest. + * Constructs a new CreateTestCaseRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IStopExperimentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest); - /** StopExperimentRequest name. */ - public name: string; + /** CreateTestCaseRequest parent. */ + public parent: string; + + /** CreateTestCaseRequest testCase. */ + public testCase?: (google.cloud.dialogflow.cx.v3.ITestCase|null); /** - * Creates a new StopExperimentRequest instance using the specified properties. + * Creates a new CreateTestCaseRequest instance using the specified properties. * @param [properties] Properties to set - * @returns StopExperimentRequest instance + * @returns CreateTestCaseRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IStopExperimentRequest): google.cloud.dialogflow.cx.v3.StopExperimentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest): google.cloud.dialogflow.cx.v3.CreateTestCaseRequest; /** - * Encodes the specified StopExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StopExperimentRequest.verify|verify} messages. - * @param message StopExperimentRequest message or plain object to encode + * Encodes the specified CreateTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTestCaseRequest.verify|verify} messages. + * @param message CreateTestCaseRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IStopExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StopExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StopExperimentRequest.verify|verify} messages. - * @param message StopExperimentRequest message or plain object to encode + * Encodes the specified CreateTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTestCaseRequest.verify|verify} messages. + * @param message CreateTestCaseRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IStopExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StopExperimentRequest message from the specified reader or buffer. + * Decodes a CreateTestCaseRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StopExperimentRequest + * @returns CreateTestCaseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.StopExperimentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateTestCaseRequest; /** - * Decodes a StopExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateTestCaseRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StopExperimentRequest + * @returns CreateTestCaseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.StopExperimentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateTestCaseRequest; /** - * Verifies a StopExperimentRequest message. + * Verifies a CreateTestCaseRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StopExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateTestCaseRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StopExperimentRequest + * @returns CreateTestCaseRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.StopExperimentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateTestCaseRequest; /** - * Creates a plain object from a StopExperimentRequest message. Also converts values to other types if specified. - * @param message StopExperimentRequest + * Creates a plain object from a CreateTestCaseRequest message. Also converts values to other types if specified. + * @param message CreateTestCaseRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.StopExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StopExperimentRequest to JSON. + * Converts this CreateTestCaseRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents an Intents */ - class Intents extends $protobuf.rpc.Service { + /** Properties of an UpdateTestCaseRequest. */ + interface IUpdateTestCaseRequest { + + /** UpdateTestCaseRequest testCase */ + testCase?: (google.cloud.dialogflow.cx.v3.ITestCase|null); + + /** UpdateTestCaseRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateTestCaseRequest. */ + class UpdateTestCaseRequest implements IUpdateTestCaseRequest { /** - * Constructs a new Intents service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited + * Constructs a new UpdateTestCaseRequest. + * @param [properties] Properties to set */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest); + + /** UpdateTestCaseRequest testCase. */ + public testCase?: (google.cloud.dialogflow.cx.v3.ITestCase|null); + + /** UpdateTestCaseRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates new Intents service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. + * Creates a new UpdateTestCaseRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateTestCaseRequest instance */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Intents; + public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest): google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest; /** - * Calls ListIntents. - * @param request ListIntentsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListIntentsResponse + * Encodes the specified UpdateTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest.verify|verify} messages. + * @param message UpdateTestCaseRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listIntents(request: google.cloud.dialogflow.cx.v3.IListIntentsRequest, callback: google.cloud.dialogflow.cx.v3.Intents.ListIntentsCallback): void; + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListIntents. - * @param request ListIntentsRequest message or plain object - * @returns Promise + * Encodes the specified UpdateTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest.verify|verify} messages. + * @param message UpdateTestCaseRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listIntents(request: google.cloud.dialogflow.cx.v3.IListIntentsRequest): Promise; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetIntent. - * @param request GetIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Intent + * Decodes an UpdateTestCaseRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateTestCaseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getIntent(request: google.cloud.dialogflow.cx.v3.IGetIntentRequest, callback: google.cloud.dialogflow.cx.v3.Intents.GetIntentCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest; /** - * Calls GetIntent. - * @param request GetIntentRequest message or plain object - * @returns Promise + * Decodes an UpdateTestCaseRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateTestCaseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getIntent(request: google.cloud.dialogflow.cx.v3.IGetIntentRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest; /** - * Calls CreateIntent. - * @param request CreateIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Intent + * Verifies an UpdateTestCaseRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public createIntent(request: google.cloud.dialogflow.cx.v3.ICreateIntentRequest, callback: google.cloud.dialogflow.cx.v3.Intents.CreateIntentCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls CreateIntent. - * @param request CreateIntentRequest message or plain object - * @returns Promise + * Creates an UpdateTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateTestCaseRequest */ - public createIntent(request: google.cloud.dialogflow.cx.v3.ICreateIntentRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest; /** - * Calls UpdateIntent. - * @param request UpdateIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Intent + * Creates a plain object from an UpdateTestCaseRequest message. Also converts values to other types if specified. + * @param message UpdateTestCaseRequest + * @param [options] Conversion options + * @returns Plain object */ - public updateIntent(request: google.cloud.dialogflow.cx.v3.IUpdateIntentRequest, callback: google.cloud.dialogflow.cx.v3.Intents.UpdateIntentCallback): void; + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls UpdateIntent. - * @param request UpdateIntentRequest message or plain object - * @returns Promise + * Converts this UpdateTestCaseRequest to JSON. + * @returns JSON object */ - public updateIntent(request: google.cloud.dialogflow.cx.v3.IUpdateIntentRequest): Promise; + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetTestCaseRequest. */ + interface IGetTestCaseRequest { + + /** GetTestCaseRequest name */ + name?: (string|null); + } + + /** Represents a GetTestCaseRequest. */ + class GetTestCaseRequest implements IGetTestCaseRequest { /** - * Calls DeleteIntent. - * @param request DeleteIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Constructs a new GetTestCaseRequest. + * @param [properties] Properties to set */ - public deleteIntent(request: google.cloud.dialogflow.cx.v3.IDeleteIntentRequest, callback: google.cloud.dialogflow.cx.v3.Intents.DeleteIntentCallback): void; + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetTestCaseRequest); + + /** GetTestCaseRequest name. */ + public name: string; /** - * Calls DeleteIntent. - * @param request DeleteIntentRequest message or plain object - * @returns Promise + * Creates a new GetTestCaseRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTestCaseRequest instance */ - public deleteIntent(request: google.cloud.dialogflow.cx.v3.IDeleteIntentRequest): Promise; - } + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetTestCaseRequest): google.cloud.dialogflow.cx.v3.GetTestCaseRequest; - namespace Intents { + /** + * Encodes the specified GetTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTestCaseRequest.verify|verify} messages. + * @param message GetTestCaseRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IGetTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#listIntents}. - * @param error Error, if any - * @param [response] ListIntentsResponse + * Encodes the specified GetTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTestCaseRequest.verify|verify} messages. + * @param message GetTestCaseRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type ListIntentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListIntentsResponse) => void; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#getIntent}. - * @param error Error, if any - * @param [response] Intent + * Decodes a GetTestCaseRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTestCaseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type GetIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Intent) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetTestCaseRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#createIntent}. - * @param error Error, if any - * @param [response] Intent + * Decodes a GetTestCaseRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetTestCaseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type CreateIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Intent) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetTestCaseRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#updateIntent}. - * @param error Error, if any - * @param [response] Intent + * Verifies a GetTestCaseRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type UpdateIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Intent) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#deleteIntent}. - * @param error Error, if any - * @param [response] Empty + * Creates a GetTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetTestCaseRequest */ - type DeleteIntentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetTestCaseRequest; + + /** + * Creates a plain object from a GetTestCaseRequest message. Also converts values to other types if specified. + * @param message GetTestCaseRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.GetTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetTestCaseRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Properties of an Intent. */ - interface IIntent { + /** Properties of a RunTestCaseRequest. */ + interface IRunTestCaseRequest { - /** Intent name */ + /** RunTestCaseRequest name */ name?: (string|null); - /** Intent displayName */ - displayName?: (string|null); + /** RunTestCaseRequest environment */ + environment?: (string|null); + } - /** Intent trainingPhrases */ - trainingPhrases?: (google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase[]|null); + /** Represents a RunTestCaseRequest. */ + class RunTestCaseRequest implements IRunTestCaseRequest { - /** Intent parameters */ - parameters?: (google.cloud.dialogflow.cx.v3.Intent.IParameter[]|null); + /** + * Constructs a new RunTestCaseRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IRunTestCaseRequest); - /** Intent priority */ - priority?: (number|null); + /** RunTestCaseRequest name. */ + public name: string; - /** Intent isFallback */ - isFallback?: (boolean|null); + /** RunTestCaseRequest environment. */ + public environment: string; - /** Intent labels */ - labels?: ({ [k: string]: string }|null); + /** + * Creates a new RunTestCaseRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RunTestCaseRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IRunTestCaseRequest): google.cloud.dialogflow.cx.v3.RunTestCaseRequest; - /** Intent description */ - description?: (string|null); - } + /** + * Encodes the specified RunTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseRequest.verify|verify} messages. + * @param message RunTestCaseRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IRunTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents an Intent. */ - class Intent implements IIntent { + /** + * Encodes the specified RunTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseRequest.verify|verify} messages. + * @param message RunTestCaseRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IRunTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Constructs a new Intent. - * @param [properties] Properties to set + * Decodes a RunTestCaseRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RunTestCaseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IIntent); + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.RunTestCaseRequest; - /** Intent name. */ - public name: string; + /** + * Decodes a RunTestCaseRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RunTestCaseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.RunTestCaseRequest; - /** Intent displayName. */ - public displayName: string; + /** + * Verifies a RunTestCaseRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Intent trainingPhrases. */ - public trainingPhrases: google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase[]; + /** + * Creates a RunTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RunTestCaseRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.RunTestCaseRequest; - /** Intent parameters. */ - public parameters: google.cloud.dialogflow.cx.v3.Intent.IParameter[]; + /** + * Creates a plain object from a RunTestCaseRequest message. Also converts values to other types if specified. + * @param message RunTestCaseRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.RunTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Intent priority. */ - public priority: number; + /** + * Converts this RunTestCaseRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Intent isFallback. */ - public isFallback: boolean; + /** Properties of a RunTestCaseResponse. */ + interface IRunTestCaseResponse { - /** Intent labels. */ - public labels: { [k: string]: string }; + /** RunTestCaseResponse result */ + result?: (google.cloud.dialogflow.cx.v3.ITestCaseResult|null); + } - /** Intent description. */ - public description: string; + /** Represents a RunTestCaseResponse. */ + class RunTestCaseResponse implements IRunTestCaseResponse { /** - * Creates a new Intent instance using the specified properties. + * Constructs a new RunTestCaseResponse. * @param [properties] Properties to set - * @returns Intent instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IIntent): google.cloud.dialogflow.cx.v3.Intent; + constructor(properties?: google.cloud.dialogflow.cx.v3.IRunTestCaseResponse); + + /** RunTestCaseResponse result. */ + public result?: (google.cloud.dialogflow.cx.v3.ITestCaseResult|null); /** - * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.verify|verify} messages. - * @param message Intent message or plain object to encode + * Creates a new RunTestCaseResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RunTestCaseResponse instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IRunTestCaseResponse): google.cloud.dialogflow.cx.v3.RunTestCaseResponse; + + /** + * Encodes the specified RunTestCaseResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseResponse.verify|verify} messages. + * @param message RunTestCaseResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IRunTestCaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Intent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.verify|verify} messages. - * @param message Intent message or plain object to encode + * Encodes the specified RunTestCaseResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseResponse.verify|verify} messages. + * @param message RunTestCaseResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IRunTestCaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Intent message from the specified reader or buffer. + * Decodes a RunTestCaseResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Intent + * @returns RunTestCaseResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Intent; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.RunTestCaseResponse; /** - * Decodes an Intent message from the specified reader or buffer, length delimited. + * Decodes a RunTestCaseResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Intent + * @returns RunTestCaseResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Intent; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.RunTestCaseResponse; /** - * Verifies an Intent message. + * Verifies a RunTestCaseResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an Intent message from a plain object. Also converts values to their respective internal types. + * Creates a RunTestCaseResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Intent + * @returns RunTestCaseResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Intent; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.RunTestCaseResponse; /** - * Creates a plain object from an Intent message. Also converts values to other types if specified. - * @param message Intent + * Creates a plain object from a RunTestCaseResponse message. Also converts values to other types if specified. + * @param message RunTestCaseResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Intent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.RunTestCaseResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Intent to JSON. + * Converts this RunTestCaseResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Intent { - - /** Properties of a TrainingPhrase. */ - interface ITrainingPhrase { - - /** TrainingPhrase id */ - id?: (string|null); + /** Properties of a RunTestCaseMetadata. */ + interface IRunTestCaseMetadata { + } - /** TrainingPhrase parts */ - parts?: (google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart[]|null); + /** Represents a RunTestCaseMetadata. */ + class RunTestCaseMetadata implements IRunTestCaseMetadata { - /** TrainingPhrase repeatCount */ - repeatCount?: (number|null); - } + /** + * Constructs a new RunTestCaseMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IRunTestCaseMetadata); - /** Represents a TrainingPhrase. */ - class TrainingPhrase implements ITrainingPhrase { + /** + * Creates a new RunTestCaseMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns RunTestCaseMetadata instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IRunTestCaseMetadata): google.cloud.dialogflow.cx.v3.RunTestCaseMetadata; - /** - * Constructs a new TrainingPhrase. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase); + /** + * Encodes the specified RunTestCaseMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseMetadata.verify|verify} messages. + * @param message RunTestCaseMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IRunTestCaseMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** TrainingPhrase id. */ - public id: string; + /** + * Encodes the specified RunTestCaseMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseMetadata.verify|verify} messages. + * @param message RunTestCaseMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IRunTestCaseMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** TrainingPhrase parts. */ - public parts: google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart[]; + /** + * Decodes a RunTestCaseMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RunTestCaseMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.RunTestCaseMetadata; - /** TrainingPhrase repeatCount. */ - public repeatCount: number; - - /** - * Creates a new TrainingPhrase instance using the specified properties. - * @param [properties] Properties to set - * @returns TrainingPhrase instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase; - - /** - * Encodes the specified TrainingPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.verify|verify} messages. - * @param message TrainingPhrase message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified TrainingPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.verify|verify} messages. - * @param message TrainingPhrase message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TrainingPhrase message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TrainingPhrase - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase; - - /** - * Decodes a TrainingPhrase message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TrainingPhrase - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase; - - /** - * Verifies a TrainingPhrase message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a TrainingPhrase message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TrainingPhrase - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase; - - /** - * Creates a plain object from a TrainingPhrase message. Also converts values to other types if specified. - * @param message TrainingPhrase - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this TrainingPhrase to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace TrainingPhrase { - - /** Properties of a Part. */ - interface IPart { - - /** Part text */ - text?: (string|null); - - /** Part parameterId */ - parameterId?: (string|null); - } - - /** Represents a Part. */ - class Part implements IPart { - - /** - * Constructs a new Part. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart); - - /** Part text. */ - public text: string; - - /** Part parameterId. */ - public parameterId: string; - - /** - * Creates a new Part instance using the specified properties. - * @param [properties] Properties to set - * @returns Part instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part; - - /** - * Encodes the specified Part message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.verify|verify} messages. - * @param message Part message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Part message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.verify|verify} messages. - * @param message Part message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Part message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Part - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part; - - /** - * Decodes a Part message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Part - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part; - - /** - * Verifies a Part message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Part message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Part - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part; - - /** - * Creates a plain object from a Part message. Also converts values to other types if specified. - * @param message Part - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Part to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of a Parameter. */ - interface IParameter { - - /** Parameter id */ - id?: (string|null); - - /** Parameter entityType */ - entityType?: (string|null); - - /** Parameter isList */ - isList?: (boolean|null); - - /** Parameter redact */ - redact?: (boolean|null); - } - - /** Represents a Parameter. */ - class Parameter implements IParameter { - - /** - * Constructs a new Parameter. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Intent.IParameter); - - /** Parameter id. */ - public id: string; - - /** Parameter entityType. */ - public entityType: string; - - /** Parameter isList. */ - public isList: boolean; - - /** Parameter redact. */ - public redact: boolean; - - /** - * Creates a new Parameter instance using the specified properties. - * @param [properties] Properties to set - * @returns Parameter instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.Intent.IParameter): google.cloud.dialogflow.cx.v3.Intent.Parameter; - - /** - * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.Parameter.verify|verify} messages. - * @param message Parameter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.Intent.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.Parameter.verify|verify} messages. - * @param message Parameter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Intent.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Parameter message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Parameter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Intent.Parameter; - - /** - * Decodes a Parameter message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Parameter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Intent.Parameter; + /** + * Decodes a RunTestCaseMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RunTestCaseMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.RunTestCaseMetadata; - /** - * Verifies a Parameter message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Verifies a RunTestCaseMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a Parameter message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Parameter - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Intent.Parameter; + /** + * Creates a RunTestCaseMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RunTestCaseMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.RunTestCaseMetadata; - /** - * Creates a plain object from a Parameter message. Also converts values to other types if specified. - * @param message Parameter - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Intent.Parameter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a RunTestCaseMetadata message. Also converts values to other types if specified. + * @param message RunTestCaseMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.RunTestCaseMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this Parameter to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Converts this RunTestCaseMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Properties of a ListIntentsRequest. */ - interface IListIntentsRequest { + /** Properties of a BatchRunTestCasesRequest. */ + interface IBatchRunTestCasesRequest { - /** ListIntentsRequest parent */ + /** BatchRunTestCasesRequest parent */ parent?: (string|null); - /** ListIntentsRequest languageCode */ - languageCode?: (string|null); - - /** ListIntentsRequest intentView */ - intentView?: (google.cloud.dialogflow.cx.v3.IntentView|keyof typeof google.cloud.dialogflow.cx.v3.IntentView|null); - - /** ListIntentsRequest pageSize */ - pageSize?: (number|null); + /** BatchRunTestCasesRequest environment */ + environment?: (string|null); - /** ListIntentsRequest pageToken */ - pageToken?: (string|null); + /** BatchRunTestCasesRequest testCases */ + testCases?: (string[]|null); } - /** Represents a ListIntentsRequest. */ - class ListIntentsRequest implements IListIntentsRequest { + /** Represents a BatchRunTestCasesRequest. */ + class BatchRunTestCasesRequest implements IBatchRunTestCasesRequest { /** - * Constructs a new ListIntentsRequest. + * Constructs a new BatchRunTestCasesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListIntentsRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest); - /** ListIntentsRequest parent. */ + /** BatchRunTestCasesRequest parent. */ public parent: string; - /** ListIntentsRequest languageCode. */ - public languageCode: string; - - /** ListIntentsRequest intentView. */ - public intentView: (google.cloud.dialogflow.cx.v3.IntentView|keyof typeof google.cloud.dialogflow.cx.v3.IntentView); - - /** ListIntentsRequest pageSize. */ - public pageSize: number; + /** BatchRunTestCasesRequest environment. */ + public environment: string; - /** ListIntentsRequest pageToken. */ - public pageToken: string; + /** BatchRunTestCasesRequest testCases. */ + public testCases: string[]; /** - * Creates a new ListIntentsRequest instance using the specified properties. + * Creates a new BatchRunTestCasesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListIntentsRequest instance + * @returns BatchRunTestCasesRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListIntentsRequest): google.cloud.dialogflow.cx.v3.ListIntentsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest): google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest; /** - * Encodes the specified ListIntentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsRequest.verify|verify} messages. - * @param message ListIntentsRequest message or plain object to encode + * Encodes the specified BatchRunTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest.verify|verify} messages. + * @param message BatchRunTestCasesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListIntentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListIntentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsRequest.verify|verify} messages. - * @param message ListIntentsRequest message or plain object to encode + * Encodes the specified BatchRunTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest.verify|verify} messages. + * @param message BatchRunTestCasesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListIntentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListIntentsRequest message from the specified reader or buffer. + * Decodes a BatchRunTestCasesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListIntentsRequest + * @returns BatchRunTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListIntentsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest; /** - * Decodes a ListIntentsRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchRunTestCasesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListIntentsRequest + * @returns BatchRunTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListIntentsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest; /** - * Verifies a ListIntentsRequest message. + * Verifies a BatchRunTestCasesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListIntentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchRunTestCasesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListIntentsRequest + * @returns BatchRunTestCasesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListIntentsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest; /** - * Creates a plain object from a ListIntentsRequest message. Also converts values to other types if specified. - * @param message ListIntentsRequest + * Creates a plain object from a BatchRunTestCasesRequest message. Also converts values to other types if specified. + * @param message BatchRunTestCasesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListIntentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListIntentsRequest to JSON. + * Converts this BatchRunTestCasesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListIntentsResponse. */ - interface IListIntentsResponse { - - /** ListIntentsResponse intents */ - intents?: (google.cloud.dialogflow.cx.v3.IIntent[]|null); + /** Properties of a BatchRunTestCasesResponse. */ + interface IBatchRunTestCasesResponse { - /** ListIntentsResponse nextPageToken */ - nextPageToken?: (string|null); + /** BatchRunTestCasesResponse results */ + results?: (google.cloud.dialogflow.cx.v3.ITestCaseResult[]|null); } - /** Represents a ListIntentsResponse. */ - class ListIntentsResponse implements IListIntentsResponse { + /** Represents a BatchRunTestCasesResponse. */ + class BatchRunTestCasesResponse implements IBatchRunTestCasesResponse { /** - * Constructs a new ListIntentsResponse. + * Constructs a new BatchRunTestCasesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListIntentsResponse); - - /** ListIntentsResponse intents. */ - public intents: google.cloud.dialogflow.cx.v3.IIntent[]; + constructor(properties?: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesResponse); - /** ListIntentsResponse nextPageToken. */ - public nextPageToken: string; + /** BatchRunTestCasesResponse results. */ + public results: google.cloud.dialogflow.cx.v3.ITestCaseResult[]; /** - * Creates a new ListIntentsResponse instance using the specified properties. + * Creates a new BatchRunTestCasesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListIntentsResponse instance + * @returns BatchRunTestCasesResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListIntentsResponse): google.cloud.dialogflow.cx.v3.ListIntentsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesResponse): google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse; /** - * Encodes the specified ListIntentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsResponse.verify|verify} messages. - * @param message ListIntentsResponse message or plain object to encode + * Encodes the specified BatchRunTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse.verify|verify} messages. + * @param message BatchRunTestCasesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListIntentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListIntentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsResponse.verify|verify} messages. - * @param message ListIntentsResponse message or plain object to encode + * Encodes the specified BatchRunTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse.verify|verify} messages. + * @param message BatchRunTestCasesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListIntentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListIntentsResponse message from the specified reader or buffer. + * Decodes a BatchRunTestCasesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListIntentsResponse + * @returns BatchRunTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListIntentsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse; /** - * Decodes a ListIntentsResponse message from the specified reader or buffer, length delimited. + * Decodes a BatchRunTestCasesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListIntentsResponse + * @returns BatchRunTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListIntentsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse; /** - * Verifies a ListIntentsResponse message. + * Verifies a BatchRunTestCasesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListIntentsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BatchRunTestCasesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListIntentsResponse + * @returns BatchRunTestCasesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListIntentsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse; /** - * Creates a plain object from a ListIntentsResponse message. Also converts values to other types if specified. - * @param message ListIntentsResponse + * Creates a plain object from a BatchRunTestCasesResponse message. Also converts values to other types if specified. + * @param message BatchRunTestCasesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListIntentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListIntentsResponse to JSON. + * Converts this BatchRunTestCasesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetIntentRequest. */ - interface IGetIntentRequest { - - /** GetIntentRequest name */ - name?: (string|null); + /** Properties of a BatchRunTestCasesMetadata. */ + interface IBatchRunTestCasesMetadata { - /** GetIntentRequest languageCode */ - languageCode?: (string|null); + /** BatchRunTestCasesMetadata errors */ + errors?: (google.cloud.dialogflow.cx.v3.ITestError[]|null); } - /** Represents a GetIntentRequest. */ - class GetIntentRequest implements IGetIntentRequest { + /** Represents a BatchRunTestCasesMetadata. */ + class BatchRunTestCasesMetadata implements IBatchRunTestCasesMetadata { /** - * Constructs a new GetIntentRequest. + * Constructs a new BatchRunTestCasesMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IGetIntentRequest); - - /** GetIntentRequest name. */ - public name: string; + constructor(properties?: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesMetadata); - /** GetIntentRequest languageCode. */ - public languageCode: string; + /** BatchRunTestCasesMetadata errors. */ + public errors: google.cloud.dialogflow.cx.v3.ITestError[]; /** - * Creates a new GetIntentRequest instance using the specified properties. + * Creates a new BatchRunTestCasesMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns GetIntentRequest instance + * @returns BatchRunTestCasesMetadata instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IGetIntentRequest): google.cloud.dialogflow.cx.v3.GetIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesMetadata): google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata; /** - * Encodes the specified GetIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetIntentRequest.verify|verify} messages. - * @param message GetIntentRequest message or plain object to encode + * Encodes the specified BatchRunTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata.verify|verify} messages. + * @param message BatchRunTestCasesMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IGetIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetIntentRequest.verify|verify} messages. - * @param message GetIntentRequest message or plain object to encode + * Encodes the specified BatchRunTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata.verify|verify} messages. + * @param message BatchRunTestCasesMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetIntentRequest message from the specified reader or buffer. + * Decodes a BatchRunTestCasesMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetIntentRequest + * @returns BatchRunTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata; /** - * Decodes a GetIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchRunTestCasesMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetIntentRequest + * @returns BatchRunTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata; /** - * Verifies a GetIntentRequest message. + * Verifies a BatchRunTestCasesMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchRunTestCasesMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetIntentRequest + * @returns BatchRunTestCasesMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata; /** - * Creates a plain object from a GetIntentRequest message. Also converts values to other types if specified. - * @param message GetIntentRequest + * Creates a plain object from a BatchRunTestCasesMetadata message. Also converts values to other types if specified. + * @param message BatchRunTestCasesMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.GetIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetIntentRequest to JSON. + * Converts this BatchRunTestCasesMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateIntentRequest. */ - interface ICreateIntentRequest { + /** Properties of a TestError. */ + interface ITestError { - /** CreateIntentRequest parent */ - parent?: (string|null); + /** TestError testCase */ + testCase?: (string|null); - /** CreateIntentRequest intent */ - intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); + /** TestError status */ + status?: (google.rpc.IStatus|null); - /** CreateIntentRequest languageCode */ - languageCode?: (string|null); + /** TestError testTime */ + testTime?: (google.protobuf.ITimestamp|null); } - /** Represents a CreateIntentRequest. */ - class CreateIntentRequest implements ICreateIntentRequest { + /** Represents a TestError. */ + class TestError implements ITestError { /** - * Constructs a new CreateIntentRequest. + * Constructs a new TestError. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateIntentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ITestError); - /** CreateIntentRequest parent. */ - public parent: string; + /** TestError testCase. */ + public testCase: string; - /** CreateIntentRequest intent. */ - public intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); + /** TestError status. */ + public status?: (google.rpc.IStatus|null); - /** CreateIntentRequest languageCode. */ - public languageCode: string; + /** TestError testTime. */ + public testTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new CreateIntentRequest instance using the specified properties. + * Creates a new TestError instance using the specified properties. * @param [properties] Properties to set - * @returns CreateIntentRequest instance + * @returns TestError instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateIntentRequest): google.cloud.dialogflow.cx.v3.CreateIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ITestError): google.cloud.dialogflow.cx.v3.TestError; /** - * Encodes the specified CreateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateIntentRequest.verify|verify} messages. - * @param message CreateIntentRequest message or plain object to encode + * Encodes the specified TestError message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestError.verify|verify} messages. + * @param message TestError message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ICreateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ITestError, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateIntentRequest.verify|verify} messages. - * @param message CreateIntentRequest message or plain object to encode + * Encodes the specified TestError message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestError.verify|verify} messages. + * @param message TestError message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITestError, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateIntentRequest message from the specified reader or buffer. + * Decodes a TestError message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateIntentRequest + * @returns TestError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TestError; /** - * Decodes a CreateIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a TestError message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateIntentRequest + * @returns TestError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TestError; /** - * Verifies a CreateIntentRequest message. + * Verifies a TestError message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestError message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateIntentRequest + * @returns TestError */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TestError; /** - * Creates a plain object from a CreateIntentRequest message. Also converts values to other types if specified. - * @param message CreateIntentRequest + * Creates a plain object from a TestError message. Also converts values to other types if specified. + * @param message TestError * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.CreateIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.TestError, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateIntentRequest to JSON. + * Converts this TestError to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateIntentRequest. */ - interface IUpdateIntentRequest { + /** Properties of an ImportTestCasesRequest. */ + interface IImportTestCasesRequest { - /** UpdateIntentRequest intent */ - intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); + /** ImportTestCasesRequest parent */ + parent?: (string|null); - /** UpdateIntentRequest languageCode */ - languageCode?: (string|null); + /** ImportTestCasesRequest gcsUri */ + gcsUri?: (string|null); - /** UpdateIntentRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** ImportTestCasesRequest content */ + content?: (Uint8Array|string|null); } - /** Represents an UpdateIntentRequest. */ - class UpdateIntentRequest implements IUpdateIntentRequest { + /** Represents an ImportTestCasesRequest. */ + class ImportTestCasesRequest implements IImportTestCasesRequest { /** - * Constructs a new UpdateIntentRequest. + * Constructs a new ImportTestCasesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateIntentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IImportTestCasesRequest); - /** UpdateIntentRequest intent. */ - public intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); + /** ImportTestCasesRequest parent. */ + public parent: string; - /** UpdateIntentRequest languageCode. */ - public languageCode: string; + /** ImportTestCasesRequest gcsUri. */ + public gcsUri: string; - /** UpdateIntentRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** ImportTestCasesRequest content. */ + public content: (Uint8Array|string); + + /** ImportTestCasesRequest source. */ + public source?: ("gcsUri"|"content"); /** - * Creates a new UpdateIntentRequest instance using the specified properties. + * Creates a new ImportTestCasesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateIntentRequest instance + * @returns ImportTestCasesRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateIntentRequest): google.cloud.dialogflow.cx.v3.UpdateIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IImportTestCasesRequest): google.cloud.dialogflow.cx.v3.ImportTestCasesRequest; /** - * Encodes the specified UpdateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateIntentRequest.verify|verify} messages. - * @param message UpdateIntentRequest message or plain object to encode + * Encodes the specified ImportTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesRequest.verify|verify} messages. + * @param message ImportTestCasesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IImportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateIntentRequest.verify|verify} messages. - * @param message UpdateIntentRequest message or plain object to encode + * Encodes the specified ImportTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesRequest.verify|verify} messages. + * @param message ImportTestCasesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IImportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateIntentRequest message from the specified reader or buffer. + * Decodes an ImportTestCasesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateIntentRequest + * @returns ImportTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ImportTestCasesRequest; /** - * Decodes an UpdateIntentRequest message from the specified reader or buffer, length delimited. + * Decodes an ImportTestCasesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateIntentRequest + * @returns ImportTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ImportTestCasesRequest; /** - * Verifies an UpdateIntentRequest message. + * Verifies an ImportTestCasesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ImportTestCasesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateIntentRequest + * @returns ImportTestCasesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ImportTestCasesRequest; /** - * Creates a plain object from an UpdateIntentRequest message. Also converts values to other types if specified. - * @param message UpdateIntentRequest + * Creates a plain object from an ImportTestCasesRequest message. Also converts values to other types if specified. + * @param message ImportTestCasesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ImportTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateIntentRequest to JSON. + * Converts this ImportTestCasesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteIntentRequest. */ - interface IDeleteIntentRequest { + /** Properties of an ImportTestCasesResponse. */ + interface IImportTestCasesResponse { - /** DeleteIntentRequest name */ - name?: (string|null); + /** ImportTestCasesResponse names */ + names?: (string[]|null); } - /** Represents a DeleteIntentRequest. */ - class DeleteIntentRequest implements IDeleteIntentRequest { + /** Represents an ImportTestCasesResponse. */ + class ImportTestCasesResponse implements IImportTestCasesResponse { /** - * Constructs a new DeleteIntentRequest. + * Constructs a new ImportTestCasesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteIntentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IImportTestCasesResponse); - /** DeleteIntentRequest name. */ - public name: string; + /** ImportTestCasesResponse names. */ + public names: string[]; /** - * Creates a new DeleteIntentRequest instance using the specified properties. + * Creates a new ImportTestCasesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteIntentRequest instance + * @returns ImportTestCasesResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteIntentRequest): google.cloud.dialogflow.cx.v3.DeleteIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IImportTestCasesResponse): google.cloud.dialogflow.cx.v3.ImportTestCasesResponse; /** - * Encodes the specified DeleteIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteIntentRequest.verify|verify} messages. - * @param message DeleteIntentRequest message or plain object to encode + * Encodes the specified ImportTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesResponse.verify|verify} messages. + * @param message ImportTestCasesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IImportTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteIntentRequest.verify|verify} messages. - * @param message DeleteIntentRequest message or plain object to encode + * Encodes the specified ImportTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesResponse.verify|verify} messages. + * @param message ImportTestCasesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IImportTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteIntentRequest message from the specified reader or buffer. + * Decodes an ImportTestCasesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteIntentRequest + * @returns ImportTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ImportTestCasesResponse; /** - * Decodes a DeleteIntentRequest message from the specified reader or buffer, length delimited. + * Decodes an ImportTestCasesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteIntentRequest + * @returns ImportTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ImportTestCasesResponse; /** - * Verifies a DeleteIntentRequest message. + * Verifies an ImportTestCasesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ImportTestCasesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteIntentRequest + * @returns ImportTestCasesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ImportTestCasesResponse; /** - * Creates a plain object from a DeleteIntentRequest message. Also converts values to other types if specified. - * @param message DeleteIntentRequest + * Creates a plain object from an ImportTestCasesResponse message. Also converts values to other types if specified. + * @param message ImportTestCasesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ImportTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteIntentRequest to JSON. + * Converts this ImportTestCasesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** IntentView enum. */ - enum IntentView { - INTENT_VIEW_UNSPECIFIED = 0, - INTENT_VIEW_PARTIAL = 1, - INTENT_VIEW_FULL = 2 - } + /** Properties of an ImportTestCasesMetadata. */ + interface IImportTestCasesMetadata { - /** Represents a SecuritySettingsService */ - class SecuritySettingsService extends $protobuf.rpc.Service { + /** ImportTestCasesMetadata errors */ + errors?: (google.cloud.dialogflow.cx.v3.ITestCaseError[]|null); + } - /** - * Constructs a new SecuritySettingsService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** Represents an ImportTestCasesMetadata. */ + class ImportTestCasesMetadata implements IImportTestCasesMetadata { /** - * Creates new SecuritySettingsService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. + * Constructs a new ImportTestCasesMetadata. + * @param [properties] Properties to set */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SecuritySettingsService; + constructor(properties?: google.cloud.dialogflow.cx.v3.IImportTestCasesMetadata); - /** - * Calls CreateSecuritySettings. - * @param request CreateSecuritySettingsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SecuritySettings - */ - public createSecuritySettings(request: google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest, callback: google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettingsCallback): void; + /** ImportTestCasesMetadata errors. */ + public errors: google.cloud.dialogflow.cx.v3.ITestCaseError[]; /** - * Calls CreateSecuritySettings. - * @param request CreateSecuritySettingsRequest message or plain object - * @returns Promise + * Creates a new ImportTestCasesMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns ImportTestCasesMetadata instance */ - public createSecuritySettings(request: google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest): Promise; + public static create(properties?: google.cloud.dialogflow.cx.v3.IImportTestCasesMetadata): google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata; /** - * Calls GetSecuritySettings. - * @param request GetSecuritySettingsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SecuritySettings + * Encodes the specified ImportTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata.verify|verify} messages. + * @param message ImportTestCasesMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getSecuritySettings(request: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest, callback: google.cloud.dialogflow.cx.v3.SecuritySettingsService.GetSecuritySettingsCallback): void; + public static encode(message: google.cloud.dialogflow.cx.v3.IImportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetSecuritySettings. - * @param request GetSecuritySettingsRequest message or plain object - * @returns Promise + * Encodes the specified ImportTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata.verify|verify} messages. + * @param message ImportTestCasesMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getSecuritySettings(request: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest): Promise; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IImportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdateSecuritySettings. - * @param request UpdateSecuritySettingsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SecuritySettings + * Decodes an ImportTestCasesMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImportTestCasesMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public updateSecuritySettings(request: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest, callback: google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettingsCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata; /** - * Calls UpdateSecuritySettings. - * @param request UpdateSecuritySettingsRequest message or plain object - * @returns Promise + * Decodes an ImportTestCasesMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImportTestCasesMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public updateSecuritySettings(request: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata; /** - * Calls ListSecuritySettings. - * @param request ListSecuritySettingsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListSecuritySettingsResponse + * Verifies an ImportTestCasesMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public listSecuritySettings(request: google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest, callback: google.cloud.dialogflow.cx.v3.SecuritySettingsService.ListSecuritySettingsCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls ListSecuritySettings. - * @param request ListSecuritySettingsRequest message or plain object - * @returns Promise + * Creates an ImportTestCasesMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImportTestCasesMetadata */ - public listSecuritySettings(request: google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata; /** - * Calls DeleteSecuritySettings. - * @param request DeleteSecuritySettingsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Creates a plain object from an ImportTestCasesMetadata message. Also converts values to other types if specified. + * @param message ImportTestCasesMetadata + * @param [options] Conversion options + * @returns Plain object */ - public deleteSecuritySettings(request: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest, callback: google.cloud.dialogflow.cx.v3.SecuritySettingsService.DeleteSecuritySettingsCallback): void; + public static toObject(message: google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls DeleteSecuritySettings. - * @param request DeleteSecuritySettingsRequest message or plain object - * @returns Promise + * Converts this ImportTestCasesMetadata to JSON. + * @returns JSON object */ - public deleteSecuritySettings(request: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest): Promise; + public toJSON(): { [k: string]: any }; } - namespace SecuritySettingsService { - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#createSecuritySettings}. - * @param error Error, if any - * @param [response] SecuritySettings - */ - type CreateSecuritySettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SecuritySettings) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#getSecuritySettings}. - * @param error Error, if any - * @param [response] SecuritySettings - */ - type GetSecuritySettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SecuritySettings) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#updateSecuritySettings}. - * @param error Error, if any - * @param [response] SecuritySettings - */ - type UpdateSecuritySettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SecuritySettings) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#listSecuritySettings}. - * @param error Error, if any - * @param [response] ListSecuritySettingsResponse - */ - type ListSecuritySettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#deleteSecuritySettings}. - * @param error Error, if any - * @param [response] Empty - */ - type DeleteSecuritySettingsCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - } + /** Properties of a TestCaseError. */ + interface ITestCaseError { - /** Properties of a GetSecuritySettingsRequest. */ - interface IGetSecuritySettingsRequest { + /** TestCaseError testCase */ + testCase?: (google.cloud.dialogflow.cx.v3.ITestCase|null); - /** GetSecuritySettingsRequest name */ - name?: (string|null); + /** TestCaseError status */ + status?: (google.rpc.IStatus|null); } - /** Represents a GetSecuritySettingsRequest. */ - class GetSecuritySettingsRequest implements IGetSecuritySettingsRequest { + /** Represents a TestCaseError. */ + class TestCaseError implements ITestCaseError { /** - * Constructs a new GetSecuritySettingsRequest. + * Constructs a new TestCaseError. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ITestCaseError); - /** GetSecuritySettingsRequest name. */ - public name: string; + /** TestCaseError testCase. */ + public testCase?: (google.cloud.dialogflow.cx.v3.ITestCase|null); + + /** TestCaseError status. */ + public status?: (google.rpc.IStatus|null); /** - * Creates a new GetSecuritySettingsRequest instance using the specified properties. + * Creates a new TestCaseError instance using the specified properties. * @param [properties] Properties to set - * @returns GetSecuritySettingsRequest instance + * @returns TestCaseError instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest): google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ITestCaseError): google.cloud.dialogflow.cx.v3.TestCaseError; /** - * Encodes the specified GetSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest.verify|verify} messages. - * @param message GetSecuritySettingsRequest message or plain object to encode + * Encodes the specified TestCaseError message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCaseError.verify|verify} messages. + * @param message TestCaseError message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ITestCaseError, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest.verify|verify} messages. - * @param message GetSecuritySettingsRequest message or plain object to encode + * Encodes the specified TestCaseError message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCaseError.verify|verify} messages. + * @param message TestCaseError message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITestCaseError, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSecuritySettingsRequest message from the specified reader or buffer. + * Decodes a TestCaseError message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetSecuritySettingsRequest + * @returns TestCaseError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TestCaseError; /** - * Decodes a GetSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a TestCaseError message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetSecuritySettingsRequest + * @returns TestCaseError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TestCaseError; /** - * Verifies a GetSecuritySettingsRequest message. + * Verifies a TestCaseError message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestCaseError message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetSecuritySettingsRequest + * @returns TestCaseError */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TestCaseError; /** - * Creates a plain object from a GetSecuritySettingsRequest message. Also converts values to other types if specified. - * @param message GetSecuritySettingsRequest + * Creates a plain object from a TestCaseError message. Also converts values to other types if specified. + * @param message TestCaseError * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.TestCaseError, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSecuritySettingsRequest to JSON. + * Converts this TestCaseError to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateSecuritySettingsRequest. */ - interface IUpdateSecuritySettingsRequest { + /** Properties of an ExportTestCasesRequest. */ + interface IExportTestCasesRequest { - /** UpdateSecuritySettingsRequest securitySettings */ - securitySettings?: (google.cloud.dialogflow.cx.v3.ISecuritySettings|null); + /** ExportTestCasesRequest parent */ + parent?: (string|null); - /** UpdateSecuritySettingsRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** ExportTestCasesRequest gcsUri */ + gcsUri?: (string|null); + + /** ExportTestCasesRequest dataFormat */ + dataFormat?: (google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat|keyof typeof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat|null); + + /** ExportTestCasesRequest filter */ + filter?: (string|null); } - /** Represents an UpdateSecuritySettingsRequest. */ - class UpdateSecuritySettingsRequest implements IUpdateSecuritySettingsRequest { + /** Represents an ExportTestCasesRequest. */ + class ExportTestCasesRequest implements IExportTestCasesRequest { /** - * Constructs a new UpdateSecuritySettingsRequest. + * Constructs a new ExportTestCasesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IExportTestCasesRequest); - /** UpdateSecuritySettingsRequest securitySettings. */ - public securitySettings?: (google.cloud.dialogflow.cx.v3.ISecuritySettings|null); + /** ExportTestCasesRequest parent. */ + public parent: string; - /** UpdateSecuritySettingsRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** ExportTestCasesRequest gcsUri. */ + public gcsUri: string; + + /** ExportTestCasesRequest dataFormat. */ + public dataFormat: (google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat|keyof typeof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat); + + /** ExportTestCasesRequest filter. */ + public filter: string; + + /** ExportTestCasesRequest destination. */ + public destination?: "gcsUri"; /** - * Creates a new UpdateSecuritySettingsRequest instance using the specified properties. + * Creates a new ExportTestCasesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateSecuritySettingsRequest instance + * @returns ExportTestCasesRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest): google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IExportTestCasesRequest): google.cloud.dialogflow.cx.v3.ExportTestCasesRequest; /** - * Encodes the specified UpdateSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest.verify|verify} messages. - * @param message UpdateSecuritySettingsRequest message or plain object to encode + * Encodes the specified ExportTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.verify|verify} messages. + * @param message ExportTestCasesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IExportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest.verify|verify} messages. - * @param message UpdateSecuritySettingsRequest message or plain object to encode + * Encodes the specified ExportTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.verify|verify} messages. + * @param message ExportTestCasesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IExportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateSecuritySettingsRequest message from the specified reader or buffer. + * Decodes an ExportTestCasesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateSecuritySettingsRequest + * @returns ExportTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ExportTestCasesRequest; /** - * Decodes an UpdateSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * Decodes an ExportTestCasesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateSecuritySettingsRequest + * @returns ExportTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ExportTestCasesRequest; /** - * Verifies an UpdateSecuritySettingsRequest message. + * Verifies an ExportTestCasesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExportTestCasesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateSecuritySettingsRequest + * @returns ExportTestCasesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ExportTestCasesRequest; /** - * Creates a plain object from an UpdateSecuritySettingsRequest message. Also converts values to other types if specified. - * @param message UpdateSecuritySettingsRequest + * Creates a plain object from an ExportTestCasesRequest message. Also converts values to other types if specified. + * @param message ExportTestCasesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ExportTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateSecuritySettingsRequest to JSON. + * Converts this ExportTestCasesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListSecuritySettingsRequest. */ - interface IListSecuritySettingsRequest { + namespace ExportTestCasesRequest { - /** ListSecuritySettingsRequest parent */ - parent?: (string|null); + /** DataFormat enum. */ + enum DataFormat { + DATA_FORMAT_UNSPECIFIED = 0, + BLOB = 1, + JSON = 2 + } + } - /** ListSecuritySettingsRequest pageSize */ - pageSize?: (number|null); + /** Properties of an ExportTestCasesResponse. */ + interface IExportTestCasesResponse { - /** ListSecuritySettingsRequest pageToken */ - pageToken?: (string|null); + /** ExportTestCasesResponse gcsUri */ + gcsUri?: (string|null); + + /** ExportTestCasesResponse content */ + content?: (Uint8Array|string|null); } - /** Represents a ListSecuritySettingsRequest. */ - class ListSecuritySettingsRequest implements IListSecuritySettingsRequest { + /** Represents an ExportTestCasesResponse. */ + class ExportTestCasesResponse implements IExportTestCasesResponse { /** - * Constructs a new ListSecuritySettingsRequest. + * Constructs a new ExportTestCasesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IExportTestCasesResponse); - /** ListSecuritySettingsRequest parent. */ - public parent: string; + /** ExportTestCasesResponse gcsUri. */ + public gcsUri: string; - /** ListSecuritySettingsRequest pageSize. */ - public pageSize: number; + /** ExportTestCasesResponse content. */ + public content: (Uint8Array|string); - /** ListSecuritySettingsRequest pageToken. */ - public pageToken: string; + /** ExportTestCasesResponse destination. */ + public destination?: ("gcsUri"|"content"); /** - * Creates a new ListSecuritySettingsRequest instance using the specified properties. + * Creates a new ExportTestCasesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListSecuritySettingsRequest instance + * @returns ExportTestCasesResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest): google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IExportTestCasesResponse): google.cloud.dialogflow.cx.v3.ExportTestCasesResponse; /** - * Encodes the specified ListSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest.verify|verify} messages. - * @param message ListSecuritySettingsRequest message or plain object to encode + * Encodes the specified ExportTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesResponse.verify|verify} messages. + * @param message ExportTestCasesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IExportTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest.verify|verify} messages. - * @param message ListSecuritySettingsRequest message or plain object to encode + * Encodes the specified ExportTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesResponse.verify|verify} messages. + * @param message ExportTestCasesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IExportTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListSecuritySettingsRequest message from the specified reader or buffer. + * Decodes an ExportTestCasesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListSecuritySettingsRequest + * @returns ExportTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ExportTestCasesResponse; /** - * Decodes a ListSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * Decodes an ExportTestCasesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListSecuritySettingsRequest + * @returns ExportTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ExportTestCasesResponse; /** - * Verifies a ListSecuritySettingsRequest message. + * Verifies an ExportTestCasesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExportTestCasesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListSecuritySettingsRequest + * @returns ExportTestCasesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ExportTestCasesResponse; /** - * Creates a plain object from a ListSecuritySettingsRequest message. Also converts values to other types if specified. - * @param message ListSecuritySettingsRequest + * Creates a plain object from an ExportTestCasesResponse message. Also converts values to other types if specified. + * @param message ExportTestCasesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ExportTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListSecuritySettingsRequest to JSON. + * Converts this ExportTestCasesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListSecuritySettingsResponse. */ - interface IListSecuritySettingsResponse { - - /** ListSecuritySettingsResponse securitySettings */ - securitySettings?: (google.cloud.dialogflow.cx.v3.ISecuritySettings[]|null); - - /** ListSecuritySettingsResponse nextPageToken */ - nextPageToken?: (string|null); + /** Properties of an ExportTestCasesMetadata. */ + interface IExportTestCasesMetadata { } - /** Represents a ListSecuritySettingsResponse. */ - class ListSecuritySettingsResponse implements IListSecuritySettingsResponse { + /** Represents an ExportTestCasesMetadata. */ + class ExportTestCasesMetadata implements IExportTestCasesMetadata { /** - * Constructs a new ListSecuritySettingsResponse. + * Constructs a new ExportTestCasesMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse); - - /** ListSecuritySettingsResponse securitySettings. */ - public securitySettings: google.cloud.dialogflow.cx.v3.ISecuritySettings[]; - - /** ListSecuritySettingsResponse nextPageToken. */ - public nextPageToken: string; + constructor(properties?: google.cloud.dialogflow.cx.v3.IExportTestCasesMetadata); /** - * Creates a new ListSecuritySettingsResponse instance using the specified properties. + * Creates a new ExportTestCasesMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ListSecuritySettingsResponse instance + * @returns ExportTestCasesMetadata instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse): google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IExportTestCasesMetadata): google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata; /** - * Encodes the specified ListSecuritySettingsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse.verify|verify} messages. - * @param message ListSecuritySettingsResponse message or plain object to encode + * Encodes the specified ExportTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata.verify|verify} messages. + * @param message ExportTestCasesMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IExportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListSecuritySettingsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse.verify|verify} messages. - * @param message ListSecuritySettingsResponse message or plain object to encode + * Encodes the specified ExportTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata.verify|verify} messages. + * @param message ExportTestCasesMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IExportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListSecuritySettingsResponse message from the specified reader or buffer. + * Decodes an ExportTestCasesMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListSecuritySettingsResponse + * @returns ExportTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata; /** - * Decodes a ListSecuritySettingsResponse message from the specified reader or buffer, length delimited. + * Decodes an ExportTestCasesMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListSecuritySettingsResponse + * @returns ExportTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata; /** - * Verifies a ListSecuritySettingsResponse message. + * Verifies an ExportTestCasesMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListSecuritySettingsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExportTestCasesMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListSecuritySettingsResponse + * @returns ExportTestCasesMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata; /** - * Creates a plain object from a ListSecuritySettingsResponse message. Also converts values to other types if specified. - * @param message ListSecuritySettingsResponse + * Creates a plain object from an ExportTestCasesMetadata message. Also converts values to other types if specified. + * @param message ExportTestCasesMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListSecuritySettingsResponse to JSON. + * Converts this ExportTestCasesMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateSecuritySettingsRequest. */ - interface ICreateSecuritySettingsRequest { + /** Properties of a ListTestCaseResultsRequest. */ + interface IListTestCaseResultsRequest { - /** CreateSecuritySettingsRequest parent */ + /** ListTestCaseResultsRequest parent */ parent?: (string|null); - /** CreateSecuritySettingsRequest securitySettings */ - securitySettings?: (google.cloud.dialogflow.cx.v3.ISecuritySettings|null); + /** ListTestCaseResultsRequest pageSize */ + pageSize?: (number|null); + + /** ListTestCaseResultsRequest pageToken */ + pageToken?: (string|null); + + /** ListTestCaseResultsRequest filter */ + filter?: (string|null); } - /** Represents a CreateSecuritySettingsRequest. */ - class CreateSecuritySettingsRequest implements ICreateSecuritySettingsRequest { + /** Represents a ListTestCaseResultsRequest. */ + class ListTestCaseResultsRequest implements IListTestCaseResultsRequest { /** - * Constructs a new CreateSecuritySettingsRequest. + * Constructs a new ListTestCaseResultsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest); - /** CreateSecuritySettingsRequest parent. */ + /** ListTestCaseResultsRequest parent. */ public parent: string; - /** CreateSecuritySettingsRequest securitySettings. */ - public securitySettings?: (google.cloud.dialogflow.cx.v3.ISecuritySettings|null); + /** ListTestCaseResultsRequest pageSize. */ + public pageSize: number; + + /** ListTestCaseResultsRequest pageToken. */ + public pageToken: string; + + /** ListTestCaseResultsRequest filter. */ + public filter: string; /** - * Creates a new CreateSecuritySettingsRequest instance using the specified properties. + * Creates a new ListTestCaseResultsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateSecuritySettingsRequest instance + * @returns ListTestCaseResultsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest): google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest): google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest; /** - * Encodes the specified CreateSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest.verify|verify} messages. - * @param message CreateSecuritySettingsRequest message or plain object to encode + * Encodes the specified ListTestCaseResultsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest.verify|verify} messages. + * @param message ListTestCaseResultsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest.verify|verify} messages. - * @param message CreateSecuritySettingsRequest message or plain object to encode + * Encodes the specified ListTestCaseResultsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest.verify|verify} messages. + * @param message ListTestCaseResultsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateSecuritySettingsRequest message from the specified reader or buffer. + * Decodes a ListTestCaseResultsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateSecuritySettingsRequest + * @returns ListTestCaseResultsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest; /** - * Decodes a CreateSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListTestCaseResultsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateSecuritySettingsRequest + * @returns ListTestCaseResultsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest; /** - * Verifies a CreateSecuritySettingsRequest message. + * Verifies a ListTestCaseResultsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListTestCaseResultsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateSecuritySettingsRequest + * @returns ListTestCaseResultsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest; /** - * Creates a plain object from a CreateSecuritySettingsRequest message. Also converts values to other types if specified. - * @param message CreateSecuritySettingsRequest + * Creates a plain object from a ListTestCaseResultsRequest message. Also converts values to other types if specified. + * @param message ListTestCaseResultsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateSecuritySettingsRequest to JSON. + * Converts this ListTestCaseResultsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteSecuritySettingsRequest. */ - interface IDeleteSecuritySettingsRequest { + /** Properties of a ListTestCaseResultsResponse. */ + interface IListTestCaseResultsResponse { - /** DeleteSecuritySettingsRequest name */ - name?: (string|null); + /** ListTestCaseResultsResponse testCaseResults */ + testCaseResults?: (google.cloud.dialogflow.cx.v3.ITestCaseResult[]|null); + + /** ListTestCaseResultsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a DeleteSecuritySettingsRequest. */ - class DeleteSecuritySettingsRequest implements IDeleteSecuritySettingsRequest { + /** Represents a ListTestCaseResultsResponse. */ + class ListTestCaseResultsResponse implements IListTestCaseResultsResponse { /** - * Constructs a new DeleteSecuritySettingsRequest. + * Constructs a new ListTestCaseResultsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListTestCaseResultsResponse); - /** DeleteSecuritySettingsRequest name. */ - public name: string; + /** ListTestCaseResultsResponse testCaseResults. */ + public testCaseResults: google.cloud.dialogflow.cx.v3.ITestCaseResult[]; + + /** ListTestCaseResultsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new DeleteSecuritySettingsRequest instance using the specified properties. + * Creates a new ListTestCaseResultsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteSecuritySettingsRequest instance + * @returns ListTestCaseResultsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest): google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListTestCaseResultsResponse): google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse; /** - * Encodes the specified DeleteSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest.verify|verify} messages. - * @param message DeleteSecuritySettingsRequest message or plain object to encode + * Encodes the specified ListTestCaseResultsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse.verify|verify} messages. + * @param message ListTestCaseResultsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListTestCaseResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest.verify|verify} messages. - * @param message DeleteSecuritySettingsRequest message or plain object to encode + * Encodes the specified ListTestCaseResultsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse.verify|verify} messages. + * @param message ListTestCaseResultsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListTestCaseResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteSecuritySettingsRequest message from the specified reader or buffer. + * Decodes a ListTestCaseResultsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteSecuritySettingsRequest + * @returns ListTestCaseResultsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse; /** - * Decodes a DeleteSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListTestCaseResultsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteSecuritySettingsRequest + * @returns ListTestCaseResultsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse; /** - * Verifies a DeleteSecuritySettingsRequest message. + * Verifies a ListTestCaseResultsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListTestCaseResultsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteSecuritySettingsRequest + * @returns ListTestCaseResultsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse; /** - * Creates a plain object from a DeleteSecuritySettingsRequest message. Also converts values to other types if specified. - * @param message DeleteSecuritySettingsRequest + * Creates a plain object from a ListTestCaseResultsResponse message. Also converts values to other types if specified. + * @param message ListTestCaseResultsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteSecuritySettingsRequest to JSON. + * Converts this ListTestCaseResultsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SecuritySettings. */ - interface ISecuritySettings { - - /** SecuritySettings name */ - name?: (string|null); - - /** SecuritySettings displayName */ - displayName?: (string|null); - - /** SecuritySettings redactionStrategy */ - redactionStrategy?: (google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy|keyof typeof google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy|null); - - /** SecuritySettings redactionScope */ - redactionScope?: (google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope|keyof typeof google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope|null); - - /** SecuritySettings inspectTemplate */ - inspectTemplate?: (string|null); - - /** SecuritySettings retentionWindowDays */ - retentionWindowDays?: (number|null); - - /** SecuritySettings purgeDataTypes */ - purgeDataTypes?: (google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType[]|null); + /** TestResult enum. */ + enum TestResult { + TEST_RESULT_UNSPECIFIED = 0, + PASSED = 1, + FAILED = 2 } - /** Represents a SecuritySettings. */ - class SecuritySettings implements ISecuritySettings { + /** Represents an Intents */ + class Intents extends $protobuf.rpc.Service { /** - * Constructs a new SecuritySettings. - * @param [properties] Properties to set + * Constructs a new Intents service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ISecuritySettings); - - /** SecuritySettings name. */ - public name: string; - - /** SecuritySettings displayName. */ - public displayName: string; - - /** SecuritySettings redactionStrategy. */ - public redactionStrategy: (google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy|keyof typeof google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy); - - /** SecuritySettings redactionScope. */ - public redactionScope: (google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope|keyof typeof google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope); - - /** SecuritySettings inspectTemplate. */ - public inspectTemplate: string; - - /** SecuritySettings retentionWindowDays. */ - public retentionWindowDays: number; - - /** SecuritySettings purgeDataTypes. */ - public purgeDataTypes: google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType[]; - - /** SecuritySettings dataRetention. */ - public dataRetention?: "retentionWindowDays"; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates a new SecuritySettings instance using the specified properties. - * @param [properties] Properties to set - * @returns SecuritySettings instance + * Creates new Intents service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ISecuritySettings): google.cloud.dialogflow.cx.v3.SecuritySettings; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Intents; /** - * Encodes the specified SecuritySettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.verify|verify} messages. - * @param message SecuritySettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ListIntents. + * @param request ListIntentsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListIntentsResponse */ - public static encode(message: google.cloud.dialogflow.cx.v3.ISecuritySettings, writer?: $protobuf.Writer): $protobuf.Writer; + public listIntents(request: google.cloud.dialogflow.cx.v3.IListIntentsRequest, callback: google.cloud.dialogflow.cx.v3.Intents.ListIntentsCallback): void; /** - * Encodes the specified SecuritySettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.verify|verify} messages. - * @param message SecuritySettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ListIntents. + * @param request ListIntentsRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ISecuritySettings, writer?: $protobuf.Writer): $protobuf.Writer; + public listIntents(request: google.cloud.dialogflow.cx.v3.IListIntentsRequest): Promise; /** - * Decodes a SecuritySettings message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SecuritySettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetIntent. + * @param request GetIntentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Intent */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.SecuritySettings; + public getIntent(request: google.cloud.dialogflow.cx.v3.IGetIntentRequest, callback: google.cloud.dialogflow.cx.v3.Intents.GetIntentCallback): void; /** - * Decodes a SecuritySettings message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SecuritySettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetIntent. + * @param request GetIntentRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.SecuritySettings; + public getIntent(request: google.cloud.dialogflow.cx.v3.IGetIntentRequest): Promise; /** - * Verifies a SecuritySettings message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls CreateIntent. + * @param request CreateIntentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Intent */ - public static verify(message: { [k: string]: any }): (string|null); + public createIntent(request: google.cloud.dialogflow.cx.v3.ICreateIntentRequest, callback: google.cloud.dialogflow.cx.v3.Intents.CreateIntentCallback): void; /** - * Creates a SecuritySettings message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SecuritySettings + * Calls CreateIntent. + * @param request CreateIntentRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SecuritySettings; + public createIntent(request: google.cloud.dialogflow.cx.v3.ICreateIntentRequest): Promise; /** - * Creates a plain object from a SecuritySettings message. Also converts values to other types if specified. - * @param message SecuritySettings - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.SecuritySettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SecuritySettings to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace SecuritySettings { - - /** RedactionStrategy enum. */ - enum RedactionStrategy { - REDACTION_STRATEGY_UNSPECIFIED = 0, - REDACT_WITH_SERVICE = 1 - } - - /** RedactionScope enum. */ - enum RedactionScope { - REDACTION_SCOPE_UNSPECIFIED = 0, - REDACT_DISK_STORAGE = 2 - } - - /** PurgeDataType enum. */ - enum PurgeDataType { - PURGE_DATA_TYPE_UNSPECIFIED = 0, - DIALOGFLOW_HISTORY = 1 - } - } - - /** Represents a Sessions */ - class Sessions extends $protobuf.rpc.Service { - - /** - * Constructs a new Sessions service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new Sessions service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Sessions; - - /** - * Calls DetectIntent. - * @param request DetectIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DetectIntentResponse - */ - public detectIntent(request: google.cloud.dialogflow.cx.v3.IDetectIntentRequest, callback: google.cloud.dialogflow.cx.v3.Sessions.DetectIntentCallback): void; - - /** - * Calls DetectIntent. - * @param request DetectIntentRequest message or plain object - * @returns Promise - */ - public detectIntent(request: google.cloud.dialogflow.cx.v3.IDetectIntentRequest): Promise; - - /** - * Calls StreamingDetectIntent. - * @param request StreamingDetectIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and StreamingDetectIntentResponse + * Calls UpdateIntent. + * @param request UpdateIntentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Intent */ - public streamingDetectIntent(request: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest, callback: google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntentCallback): void; + public updateIntent(request: google.cloud.dialogflow.cx.v3.IUpdateIntentRequest, callback: google.cloud.dialogflow.cx.v3.Intents.UpdateIntentCallback): void; /** - * Calls StreamingDetectIntent. - * @param request StreamingDetectIntentRequest message or plain object + * Calls UpdateIntent. + * @param request UpdateIntentRequest message or plain object * @returns Promise */ - public streamingDetectIntent(request: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest): Promise; + public updateIntent(request: google.cloud.dialogflow.cx.v3.IUpdateIntentRequest): Promise; /** - * Calls MatchIntent. - * @param request MatchIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and MatchIntentResponse + * Calls DeleteIntent. + * @param request DeleteIntentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public matchIntent(request: google.cloud.dialogflow.cx.v3.IMatchIntentRequest, callback: google.cloud.dialogflow.cx.v3.Sessions.MatchIntentCallback): void; + public deleteIntent(request: google.cloud.dialogflow.cx.v3.IDeleteIntentRequest, callback: google.cloud.dialogflow.cx.v3.Intents.DeleteIntentCallback): void; /** - * Calls MatchIntent. - * @param request MatchIntentRequest message or plain object + * Calls DeleteIntent. + * @param request DeleteIntentRequest message or plain object * @returns Promise */ - public matchIntent(request: google.cloud.dialogflow.cx.v3.IMatchIntentRequest): Promise; + public deleteIntent(request: google.cloud.dialogflow.cx.v3.IDeleteIntentRequest): Promise; + } - /** - * Calls FulfillIntent. - * @param request FulfillIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and FulfillIntentResponse - */ - public fulfillIntent(request: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest, callback: google.cloud.dialogflow.cx.v3.Sessions.FulfillIntentCallback): void; + namespace Intents { /** - * Calls FulfillIntent. - * @param request FulfillIntentRequest message or plain object - * @returns Promise + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#listIntents}. + * @param error Error, if any + * @param [response] ListIntentsResponse */ - public fulfillIntent(request: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest): Promise; - } - - namespace Sessions { + type ListIntentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListIntentsResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#detectIntent}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#getIntent}. * @param error Error, if any - * @param [response] DetectIntentResponse + * @param [response] Intent */ - type DetectIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.DetectIntentResponse) => void; + type GetIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Intent) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#streamingDetectIntent}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#createIntent}. * @param error Error, if any - * @param [response] StreamingDetectIntentResponse + * @param [response] Intent */ - type StreamingDetectIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse) => void; + type CreateIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Intent) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#matchIntent}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#updateIntent}. * @param error Error, if any - * @param [response] MatchIntentResponse + * @param [response] Intent */ - type MatchIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.MatchIntentResponse) => void; + type UpdateIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Intent) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#fulfillIntent}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#deleteIntent}. * @param error Error, if any - * @param [response] FulfillIntentResponse + * @param [response] Empty */ - type FulfillIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.FulfillIntentResponse) => void; + type DeleteIntentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; } - /** Properties of a DetectIntentRequest. */ - interface IDetectIntentRequest { + /** Properties of an Intent. */ + interface IIntent { - /** DetectIntentRequest session */ - session?: (string|null); + /** Intent name */ + name?: (string|null); - /** DetectIntentRequest queryParams */ - queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); + /** Intent displayName */ + displayName?: (string|null); - /** DetectIntentRequest queryInput */ - queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); + /** Intent trainingPhrases */ + trainingPhrases?: (google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase[]|null); - /** DetectIntentRequest outputAudioConfig */ - outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); + /** Intent parameters */ + parameters?: (google.cloud.dialogflow.cx.v3.Intent.IParameter[]|null); + + /** Intent priority */ + priority?: (number|null); + + /** Intent isFallback */ + isFallback?: (boolean|null); + + /** Intent labels */ + labels?: ({ [k: string]: string }|null); + + /** Intent description */ + description?: (string|null); } - /** Represents a DetectIntentRequest. */ - class DetectIntentRequest implements IDetectIntentRequest { + /** Represents an Intent. */ + class Intent implements IIntent { /** - * Constructs a new DetectIntentRequest. + * Constructs a new Intent. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDetectIntentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IIntent); - /** DetectIntentRequest session. */ - public session: string; + /** Intent name. */ + public name: string; - /** DetectIntentRequest queryParams. */ - public queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); + /** Intent displayName. */ + public displayName: string; - /** DetectIntentRequest queryInput. */ - public queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); + /** Intent trainingPhrases. */ + public trainingPhrases: google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase[]; - /** DetectIntentRequest outputAudioConfig. */ - public outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); + /** Intent parameters. */ + public parameters: google.cloud.dialogflow.cx.v3.Intent.IParameter[]; + + /** Intent priority. */ + public priority: number; + + /** Intent isFallback. */ + public isFallback: boolean; + + /** Intent labels. */ + public labels: { [k: string]: string }; + + /** Intent description. */ + public description: string; /** - * Creates a new DetectIntentRequest instance using the specified properties. + * Creates a new Intent instance using the specified properties. * @param [properties] Properties to set - * @returns DetectIntentRequest instance + * @returns Intent instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IDetectIntentRequest): google.cloud.dialogflow.cx.v3.DetectIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IIntent): google.cloud.dialogflow.cx.v3.Intent; /** - * Encodes the specified DetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentRequest.verify|verify} messages. - * @param message DetectIntentRequest message or plain object to encode + * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.verify|verify} messages. + * @param message Intent message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentRequest.verify|verify} messages. - * @param message DetectIntentRequest message or plain object to encode + * Encodes the specified Intent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.verify|verify} messages. + * @param message Intent message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DetectIntentRequest message from the specified reader or buffer. + * Decodes an Intent message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DetectIntentRequest + * @returns Intent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DetectIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Intent; /** - * Decodes a DetectIntentRequest message from the specified reader or buffer, length delimited. + * Decodes an Intent message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DetectIntentRequest + * @returns Intent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DetectIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Intent; /** - * Verifies a DetectIntentRequest message. + * Verifies an Intent message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DetectIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates an Intent message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DetectIntentRequest + * @returns Intent */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DetectIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Intent; /** - * Creates a plain object from a DetectIntentRequest message. Also converts values to other types if specified. - * @param message DetectIntentRequest + * Creates a plain object from an Intent message. Also converts values to other types if specified. + * @param message Intent * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.DetectIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Intent, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DetectIntentRequest to JSON. + * Converts this Intent to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DetectIntentResponse. */ - interface IDetectIntentResponse { + namespace Intent { - /** DetectIntentResponse responseId */ - responseId?: (string|null); + /** Properties of a TrainingPhrase. */ + interface ITrainingPhrase { - /** DetectIntentResponse queryResult */ - queryResult?: (google.cloud.dialogflow.cx.v3.IQueryResult|null); + /** TrainingPhrase id */ + id?: (string|null); - /** DetectIntentResponse outputAudio */ - outputAudio?: (Uint8Array|string|null); + /** TrainingPhrase parts */ + parts?: (google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart[]|null); - /** DetectIntentResponse outputAudioConfig */ - outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); - } + /** TrainingPhrase repeatCount */ + repeatCount?: (number|null); + } - /** Represents a DetectIntentResponse. */ - class DetectIntentResponse implements IDetectIntentResponse { + /** Represents a TrainingPhrase. */ + class TrainingPhrase implements ITrainingPhrase { - /** - * Constructs a new DetectIntentResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDetectIntentResponse); + /** + * Constructs a new TrainingPhrase. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase); - /** DetectIntentResponse responseId. */ - public responseId: string; + /** TrainingPhrase id. */ + public id: string; - /** DetectIntentResponse queryResult. */ - public queryResult?: (google.cloud.dialogflow.cx.v3.IQueryResult|null); + /** TrainingPhrase parts. */ + public parts: google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart[]; - /** DetectIntentResponse outputAudio. */ - public outputAudio: (Uint8Array|string); + /** TrainingPhrase repeatCount. */ + public repeatCount: number; - /** DetectIntentResponse outputAudioConfig. */ - public outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); + /** + * Creates a new TrainingPhrase instance using the specified properties. + * @param [properties] Properties to set + * @returns TrainingPhrase instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase; - /** - * Creates a new DetectIntentResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns DetectIntentResponse instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IDetectIntentResponse): google.cloud.dialogflow.cx.v3.DetectIntentResponse; + /** + * Encodes the specified TrainingPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.verify|verify} messages. + * @param message TrainingPhrase message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentResponse.verify|verify} messages. - * @param message DetectIntentResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.IDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified TrainingPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.verify|verify} messages. + * @param message TrainingPhrase message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentResponse.verify|verify} messages. - * @param message DetectIntentResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a TrainingPhrase message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TrainingPhrase + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase; - /** - * Decodes a DetectIntentResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DetectIntentResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DetectIntentResponse; + /** + * Decodes a TrainingPhrase message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TrainingPhrase + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase; - /** - * Decodes a DetectIntentResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DetectIntentResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DetectIntentResponse; + /** + * Verifies a TrainingPhrase message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Verifies a DetectIntentResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a TrainingPhrase message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TrainingPhrase + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase; - /** - * Creates a DetectIntentResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DetectIntentResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DetectIntentResponse; + /** + * Creates a plain object from a TrainingPhrase message. Also converts values to other types if specified. + * @param message TrainingPhrase + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a plain object from a DetectIntentResponse message. Also converts values to other types if specified. - * @param message DetectIntentResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.DetectIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Converts this TrainingPhrase to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Converts this DetectIntentResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + namespace TrainingPhrase { - /** Properties of a StreamingDetectIntentRequest. */ - interface IStreamingDetectIntentRequest { + /** Properties of a Part. */ + interface IPart { - /** StreamingDetectIntentRequest session */ - session?: (string|null); + /** Part text */ + text?: (string|null); - /** StreamingDetectIntentRequest queryParams */ - queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); + /** Part parameterId */ + parameterId?: (string|null); + } - /** StreamingDetectIntentRequest queryInput */ - queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); + /** Represents a Part. */ + class Part implements IPart { - /** StreamingDetectIntentRequest outputAudioConfig */ - outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); - } + /** + * Constructs a new Part. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart); - /** Represents a StreamingDetectIntentRequest. */ - class StreamingDetectIntentRequest implements IStreamingDetectIntentRequest { + /** Part text. */ + public text: string; - /** - * Constructs a new StreamingDetectIntentRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest); + /** Part parameterId. */ + public parameterId: string; - /** StreamingDetectIntentRequest session. */ - public session: string; + /** + * Creates a new Part instance using the specified properties. + * @param [properties] Properties to set + * @returns Part instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part; - /** StreamingDetectIntentRequest queryParams. */ - public queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); + /** + * Encodes the specified Part message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.verify|verify} messages. + * @param message Part message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart, writer?: $protobuf.Writer): $protobuf.Writer; - /** StreamingDetectIntentRequest queryInput. */ - public queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); + /** + * Encodes the specified Part message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.verify|verify} messages. + * @param message Part message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart, writer?: $protobuf.Writer): $protobuf.Writer; - /** StreamingDetectIntentRequest outputAudioConfig. */ - public outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); + /** + * Decodes a Part message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Part + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part; - /** - * Creates a new StreamingDetectIntentRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns StreamingDetectIntentRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest): google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest; + /** + * Decodes a Part message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Part + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part; + + /** + * Verifies a Part message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Part message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Part + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part; + + /** + * Creates a plain object from a Part message. Also converts values to other types if specified. + * @param message Part + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Part to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a Parameter. */ + interface IParameter { + + /** Parameter id */ + id?: (string|null); + + /** Parameter entityType */ + entityType?: (string|null); + + /** Parameter isList */ + isList?: (boolean|null); + + /** Parameter redact */ + redact?: (boolean|null); + } + + /** Represents a Parameter. */ + class Parameter implements IParameter { + + /** + * Constructs a new Parameter. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.Intent.IParameter); + + /** Parameter id. */ + public id: string; + + /** Parameter entityType. */ + public entityType: string; + + /** Parameter isList. */ + public isList: boolean; + + /** Parameter redact. */ + public redact: boolean; + + /** + * Creates a new Parameter instance using the specified properties. + * @param [properties] Properties to set + * @returns Parameter instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.Intent.IParameter): google.cloud.dialogflow.cx.v3.Intent.Parameter; + + /** + * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.Parameter.verify|verify} messages. + * @param message Parameter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.Intent.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.Parameter.verify|verify} messages. + * @param message Parameter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Intent.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Parameter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Parameter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Intent.Parameter; + + /** + * Decodes a Parameter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Parameter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Intent.Parameter; + + /** + * Verifies a Parameter message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Parameter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Parameter + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Intent.Parameter; + + /** + * Creates a plain object from a Parameter message. Also converts values to other types if specified. + * @param message Parameter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.Intent.Parameter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Parameter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a ListIntentsRequest. */ + interface IListIntentsRequest { + + /** ListIntentsRequest parent */ + parent?: (string|null); + + /** ListIntentsRequest languageCode */ + languageCode?: (string|null); + + /** ListIntentsRequest intentView */ + intentView?: (google.cloud.dialogflow.cx.v3.IntentView|keyof typeof google.cloud.dialogflow.cx.v3.IntentView|null); + + /** ListIntentsRequest pageSize */ + pageSize?: (number|null); + + /** ListIntentsRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListIntentsRequest. */ + class ListIntentsRequest implements IListIntentsRequest { /** - * Encodes the specified StreamingDetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.verify|verify} messages. - * @param message StreamingDetectIntentRequest message or plain object to encode + * Constructs a new ListIntentsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IListIntentsRequest); + + /** ListIntentsRequest parent. */ + public parent: string; + + /** ListIntentsRequest languageCode. */ + public languageCode: string; + + /** ListIntentsRequest intentView. */ + public intentView: (google.cloud.dialogflow.cx.v3.IntentView|keyof typeof google.cloud.dialogflow.cx.v3.IntentView); + + /** ListIntentsRequest pageSize. */ + public pageSize: number; + + /** ListIntentsRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListIntentsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListIntentsRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IListIntentsRequest): google.cloud.dialogflow.cx.v3.ListIntentsRequest; + + /** + * Encodes the specified ListIntentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsRequest.verify|verify} messages. + * @param message ListIntentsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListIntentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StreamingDetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.verify|verify} messages. - * @param message StreamingDetectIntentRequest message or plain object to encode + * Encodes the specified ListIntentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsRequest.verify|verify} messages. + * @param message ListIntentsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListIntentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer. + * Decodes a ListIntentsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StreamingDetectIntentRequest + * @returns ListIntentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListIntentsRequest; /** - * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a ListIntentsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StreamingDetectIntentRequest + * @returns ListIntentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListIntentsRequest; /** - * Verifies a StreamingDetectIntentRequest message. + * Verifies a ListIntentsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StreamingDetectIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListIntentsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StreamingDetectIntentRequest + * @returns ListIntentsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListIntentsRequest; /** - * Creates a plain object from a StreamingDetectIntentRequest message. Also converts values to other types if specified. - * @param message StreamingDetectIntentRequest + * Creates a plain object from a ListIntentsRequest message. Also converts values to other types if specified. + * @param message ListIntentsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListIntentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StreamingDetectIntentRequest to JSON. + * Converts this ListIntentsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a StreamingDetectIntentResponse. */ - interface IStreamingDetectIntentResponse { + /** Properties of a ListIntentsResponse. */ + interface IListIntentsResponse { - /** StreamingDetectIntentResponse recognitionResult */ - recognitionResult?: (google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult|null); + /** ListIntentsResponse intents */ + intents?: (google.cloud.dialogflow.cx.v3.IIntent[]|null); - /** StreamingDetectIntentResponse detectIntentResponse */ - detectIntentResponse?: (google.cloud.dialogflow.cx.v3.IDetectIntentResponse|null); + /** ListIntentsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a StreamingDetectIntentResponse. */ - class StreamingDetectIntentResponse implements IStreamingDetectIntentResponse { + /** Represents a ListIntentsResponse. */ + class ListIntentsResponse implements IListIntentsResponse { /** - * Constructs a new StreamingDetectIntentResponse. + * Constructs a new ListIntentsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse); - - /** StreamingDetectIntentResponse recognitionResult. */ - public recognitionResult?: (google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult|null); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListIntentsResponse); - /** StreamingDetectIntentResponse detectIntentResponse. */ - public detectIntentResponse?: (google.cloud.dialogflow.cx.v3.IDetectIntentResponse|null); + /** ListIntentsResponse intents. */ + public intents: google.cloud.dialogflow.cx.v3.IIntent[]; - /** StreamingDetectIntentResponse response. */ - public response?: ("recognitionResult"|"detectIntentResponse"); + /** ListIntentsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new StreamingDetectIntentResponse instance using the specified properties. + * Creates a new ListIntentsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns StreamingDetectIntentResponse instance + * @returns ListIntentsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse): google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListIntentsResponse): google.cloud.dialogflow.cx.v3.ListIntentsResponse; /** - * Encodes the specified StreamingDetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse.verify|verify} messages. - * @param message StreamingDetectIntentResponse message or plain object to encode + * Encodes the specified ListIntentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsResponse.verify|verify} messages. + * @param message ListIntentsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListIntentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StreamingDetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse.verify|verify} messages. - * @param message StreamingDetectIntentResponse message or plain object to encode + * Encodes the specified ListIntentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsResponse.verify|verify} messages. + * @param message ListIntentsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListIntentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer. + * Decodes a ListIntentsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StreamingDetectIntentResponse + * @returns ListIntentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListIntentsResponse; /** - * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer, length delimited. + * Decodes a ListIntentsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StreamingDetectIntentResponse + * @returns ListIntentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListIntentsResponse; /** - * Verifies a StreamingDetectIntentResponse message. + * Verifies a ListIntentsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StreamingDetectIntentResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListIntentsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StreamingDetectIntentResponse + * @returns ListIntentsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListIntentsResponse; /** - * Creates a plain object from a StreamingDetectIntentResponse message. Also converts values to other types if specified. - * @param message StreamingDetectIntentResponse + * Creates a plain object from a ListIntentsResponse message. Also converts values to other types if specified. + * @param message ListIntentsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListIntentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StreamingDetectIntentResponse to JSON. + * Converts this ListIntentsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a StreamingRecognitionResult. */ - interface IStreamingRecognitionResult { - - /** StreamingRecognitionResult messageType */ - messageType?: (google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType|keyof typeof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType|null); - - /** StreamingRecognitionResult transcript */ - transcript?: (string|null); - - /** StreamingRecognitionResult isFinal */ - isFinal?: (boolean|null); - - /** StreamingRecognitionResult confidence */ - confidence?: (number|null); - - /** StreamingRecognitionResult stability */ - stability?: (number|null); + /** Properties of a GetIntentRequest. */ + interface IGetIntentRequest { - /** StreamingRecognitionResult speechWordInfo */ - speechWordInfo?: (google.cloud.dialogflow.cx.v3.ISpeechWordInfo[]|null); + /** GetIntentRequest name */ + name?: (string|null); - /** StreamingRecognitionResult speechEndOffset */ - speechEndOffset?: (google.protobuf.IDuration|null); + /** GetIntentRequest languageCode */ + languageCode?: (string|null); } - /** Represents a StreamingRecognitionResult. */ - class StreamingRecognitionResult implements IStreamingRecognitionResult { + /** Represents a GetIntentRequest. */ + class GetIntentRequest implements IGetIntentRequest { /** - * Constructs a new StreamingRecognitionResult. + * Constructs a new GetIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult); - - /** StreamingRecognitionResult messageType. */ - public messageType: (google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType|keyof typeof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType); - - /** StreamingRecognitionResult transcript. */ - public transcript: string; - - /** StreamingRecognitionResult isFinal. */ - public isFinal: boolean; - - /** StreamingRecognitionResult confidence. */ - public confidence: number; - - /** StreamingRecognitionResult stability. */ - public stability: number; + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetIntentRequest); - /** StreamingRecognitionResult speechWordInfo. */ - public speechWordInfo: google.cloud.dialogflow.cx.v3.ISpeechWordInfo[]; + /** GetIntentRequest name. */ + public name: string; - /** StreamingRecognitionResult speechEndOffset. */ - public speechEndOffset?: (google.protobuf.IDuration|null); + /** GetIntentRequest languageCode. */ + public languageCode: string; /** - * Creates a new StreamingRecognitionResult instance using the specified properties. + * Creates a new GetIntentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns StreamingRecognitionResult instance + * @returns GetIntentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult): google.cloud.dialogflow.cx.v3.StreamingRecognitionResult; + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetIntentRequest): google.cloud.dialogflow.cx.v3.GetIntentRequest; /** - * Encodes the specified StreamingRecognitionResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.verify|verify} messages. - * @param message StreamingRecognitionResult message or plain object to encode + * Encodes the specified GetIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetIntentRequest.verify|verify} messages. + * @param message GetIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IGetIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StreamingRecognitionResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.verify|verify} messages. - * @param message StreamingRecognitionResult message or plain object to encode + * Encodes the specified GetIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetIntentRequest.verify|verify} messages. + * @param message GetIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StreamingRecognitionResult message from the specified reader or buffer. + * Decodes a GetIntentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StreamingRecognitionResult + * @returns GetIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.StreamingRecognitionResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetIntentRequest; /** - * Decodes a StreamingRecognitionResult message from the specified reader or buffer, length delimited. + * Decodes a GetIntentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StreamingRecognitionResult + * @returns GetIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.StreamingRecognitionResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetIntentRequest; /** - * Verifies a StreamingRecognitionResult message. + * Verifies a GetIntentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StreamingRecognitionResult message from a plain object. Also converts values to their respective internal types. + * Creates a GetIntentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StreamingRecognitionResult + * @returns GetIntentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.StreamingRecognitionResult; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetIntentRequest; /** - * Creates a plain object from a StreamingRecognitionResult message. Also converts values to other types if specified. - * @param message StreamingRecognitionResult + * Creates a plain object from a GetIntentRequest message. Also converts values to other types if specified. + * @param message GetIntentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.StreamingRecognitionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.GetIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StreamingRecognitionResult to JSON. + * Converts this GetIntentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace StreamingRecognitionResult { - - /** MessageType enum. */ - enum MessageType { - MESSAGE_TYPE_UNSPECIFIED = 0, - TRANSCRIPT = 1, - END_OF_SINGLE_UTTERANCE = 2 - } - } - - /** Properties of a QueryParameters. */ - interface IQueryParameters { - - /** QueryParameters timeZone */ - timeZone?: (string|null); - - /** QueryParameters geoLocation */ - geoLocation?: (google.type.ILatLng|null); - - /** QueryParameters sessionEntityTypes */ - sessionEntityTypes?: (google.cloud.dialogflow.cx.v3.ISessionEntityType[]|null); - - /** QueryParameters payload */ - payload?: (google.protobuf.IStruct|null); + /** Properties of a CreateIntentRequest. */ + interface ICreateIntentRequest { - /** QueryParameters parameters */ - parameters?: (google.protobuf.IStruct|null); + /** CreateIntentRequest parent */ + parent?: (string|null); - /** QueryParameters analyzeQueryTextSentiment */ - analyzeQueryTextSentiment?: (boolean|null); + /** CreateIntentRequest intent */ + intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); - /** QueryParameters webhookHeaders */ - webhookHeaders?: ({ [k: string]: string }|null); + /** CreateIntentRequest languageCode */ + languageCode?: (string|null); } - /** Represents a QueryParameters. */ - class QueryParameters implements IQueryParameters { + /** Represents a CreateIntentRequest. */ + class CreateIntentRequest implements ICreateIntentRequest { /** - * Constructs a new QueryParameters. + * Constructs a new CreateIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IQueryParameters); - - /** QueryParameters timeZone. */ - public timeZone: string; - - /** QueryParameters geoLocation. */ - public geoLocation?: (google.type.ILatLng|null); - - /** QueryParameters sessionEntityTypes. */ - public sessionEntityTypes: google.cloud.dialogflow.cx.v3.ISessionEntityType[]; - - /** QueryParameters payload. */ - public payload?: (google.protobuf.IStruct|null); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateIntentRequest); - /** QueryParameters parameters. */ - public parameters?: (google.protobuf.IStruct|null); + /** CreateIntentRequest parent. */ + public parent: string; - /** QueryParameters analyzeQueryTextSentiment. */ - public analyzeQueryTextSentiment: boolean; + /** CreateIntentRequest intent. */ + public intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); - /** QueryParameters webhookHeaders. */ - public webhookHeaders: { [k: string]: string }; + /** CreateIntentRequest languageCode. */ + public languageCode: string; /** - * Creates a new QueryParameters instance using the specified properties. + * Creates a new CreateIntentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns QueryParameters instance + * @returns CreateIntentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IQueryParameters): google.cloud.dialogflow.cx.v3.QueryParameters; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateIntentRequest): google.cloud.dialogflow.cx.v3.CreateIntentRequest; /** - * Encodes the specified QueryParameters message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryParameters.verify|verify} messages. - * @param message QueryParameters message or plain object to encode + * Encodes the specified CreateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateIntentRequest.verify|verify} messages. + * @param message CreateIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IQueryParameters, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryParameters message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryParameters.verify|verify} messages. - * @param message QueryParameters message or plain object to encode + * Encodes the specified CreateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateIntentRequest.verify|verify} messages. + * @param message CreateIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IQueryParameters, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryParameters message from the specified reader or buffer. + * Decodes a CreateIntentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryParameters + * @returns CreateIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.QueryParameters; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateIntentRequest; /** - * Decodes a QueryParameters message from the specified reader or buffer, length delimited. + * Decodes a CreateIntentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryParameters + * @returns CreateIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.QueryParameters; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateIntentRequest; /** - * Verifies a QueryParameters message. + * Verifies a CreateIntentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryParameters message from a plain object. Also converts values to their respective internal types. + * Creates a CreateIntentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryParameters + * @returns CreateIntentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.QueryParameters; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateIntentRequest; /** - * Creates a plain object from a QueryParameters message. Also converts values to other types if specified. - * @param message QueryParameters + * Creates a plain object from a CreateIntentRequest message. Also converts values to other types if specified. + * @param message CreateIntentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.QueryParameters, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryParameters to JSON. + * Converts this CreateIntentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryInput. */ - interface IQueryInput { - - /** QueryInput text */ - text?: (google.cloud.dialogflow.cx.v3.ITextInput|null); - - /** QueryInput intent */ - intent?: (google.cloud.dialogflow.cx.v3.IIntentInput|null); - - /** QueryInput audio */ - audio?: (google.cloud.dialogflow.cx.v3.IAudioInput|null); - - /** QueryInput event */ - event?: (google.cloud.dialogflow.cx.v3.IEventInput|null); + /** Properties of an UpdateIntentRequest. */ + interface IUpdateIntentRequest { - /** QueryInput dtmf */ - dtmf?: (google.cloud.dialogflow.cx.v3.IDtmfInput|null); + /** UpdateIntentRequest intent */ + intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); - /** QueryInput languageCode */ + /** UpdateIntentRequest languageCode */ languageCode?: (string|null); + + /** UpdateIntentRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a QueryInput. */ - class QueryInput implements IQueryInput { + /** Represents an UpdateIntentRequest. */ + class UpdateIntentRequest implements IUpdateIntentRequest { /** - * Constructs a new QueryInput. + * Constructs a new UpdateIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IQueryInput); - - /** QueryInput text. */ - public text?: (google.cloud.dialogflow.cx.v3.ITextInput|null); - - /** QueryInput intent. */ - public intent?: (google.cloud.dialogflow.cx.v3.IIntentInput|null); - - /** QueryInput audio. */ - public audio?: (google.cloud.dialogflow.cx.v3.IAudioInput|null); - - /** QueryInput event. */ - public event?: (google.cloud.dialogflow.cx.v3.IEventInput|null); + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateIntentRequest); - /** QueryInput dtmf. */ - public dtmf?: (google.cloud.dialogflow.cx.v3.IDtmfInput|null); + /** UpdateIntentRequest intent. */ + public intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); - /** QueryInput languageCode. */ + /** UpdateIntentRequest languageCode. */ public languageCode: string; - /** QueryInput input. */ - public input?: ("text"|"intent"|"audio"|"event"|"dtmf"); + /** UpdateIntentRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new QueryInput instance using the specified properties. + * Creates a new UpdateIntentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns QueryInput instance + * @returns UpdateIntentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IQueryInput): google.cloud.dialogflow.cx.v3.QueryInput; + public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateIntentRequest): google.cloud.dialogflow.cx.v3.UpdateIntentRequest; /** - * Encodes the specified QueryInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryInput.verify|verify} messages. - * @param message QueryInput message or plain object to encode + * Encodes the specified UpdateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateIntentRequest.verify|verify} messages. + * @param message UpdateIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IQueryInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryInput.verify|verify} messages. - * @param message QueryInput message or plain object to encode + * Encodes the specified UpdateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateIntentRequest.verify|verify} messages. + * @param message UpdateIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IQueryInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryInput message from the specified reader or buffer. + * Decodes an UpdateIntentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryInput + * @returns UpdateIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.QueryInput; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateIntentRequest; /** - * Decodes a QueryInput message from the specified reader or buffer, length delimited. + * Decodes an UpdateIntentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryInput + * @returns UpdateIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.QueryInput; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateIntentRequest; /** - * Verifies a QueryInput message. + * Verifies an UpdateIntentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryInput message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateIntentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryInput + * @returns UpdateIntentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.QueryInput; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateIntentRequest; /** - * Creates a plain object from a QueryInput message. Also converts values to other types if specified. - * @param message QueryInput + * Creates a plain object from an UpdateIntentRequest message. Also converts values to other types if specified. + * @param message UpdateIntentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.QueryInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryInput to JSON. + * Converts this UpdateIntentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryResult. */ - interface IQueryResult { - - /** QueryResult text */ - text?: (string|null); - - /** QueryResult triggerIntent */ - triggerIntent?: (string|null); - - /** QueryResult transcript */ - transcript?: (string|null); - - /** QueryResult triggerEvent */ - triggerEvent?: (string|null); - - /** QueryResult languageCode */ - languageCode?: (string|null); - - /** QueryResult parameters */ - parameters?: (google.protobuf.IStruct|null); - - /** QueryResult responseMessages */ - responseMessages?: (google.cloud.dialogflow.cx.v3.IResponseMessage[]|null); - - /** QueryResult webhookStatuses */ - webhookStatuses?: (google.rpc.IStatus[]|null); - - /** QueryResult webhookPayloads */ - webhookPayloads?: (google.protobuf.IStruct[]|null); - - /** QueryResult currentPage */ - currentPage?: (google.cloud.dialogflow.cx.v3.IPage|null); - - /** QueryResult intent */ - intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); - - /** QueryResult intentDetectionConfidence */ - intentDetectionConfidence?: (number|null); - - /** QueryResult match */ - match?: (google.cloud.dialogflow.cx.v3.IMatch|null); - - /** QueryResult diagnosticInfo */ - diagnosticInfo?: (google.protobuf.IStruct|null); + /** Properties of a DeleteIntentRequest. */ + interface IDeleteIntentRequest { - /** QueryResult sentimentAnalysisResult */ - sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult|null); + /** DeleteIntentRequest name */ + name?: (string|null); } - /** Represents a QueryResult. */ - class QueryResult implements IQueryResult { + /** Represents a DeleteIntentRequest. */ + class DeleteIntentRequest implements IDeleteIntentRequest { /** - * Constructs a new QueryResult. + * Constructs a new DeleteIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IQueryResult); - - /** QueryResult text. */ - public text: string; - - /** QueryResult triggerIntent. */ - public triggerIntent: string; - - /** QueryResult transcript. */ - public transcript: string; - - /** QueryResult triggerEvent. */ - public triggerEvent: string; - - /** QueryResult languageCode. */ - public languageCode: string; - - /** QueryResult parameters. */ - public parameters?: (google.protobuf.IStruct|null); - - /** QueryResult responseMessages. */ - public responseMessages: google.cloud.dialogflow.cx.v3.IResponseMessage[]; - - /** QueryResult webhookStatuses. */ - public webhookStatuses: google.rpc.IStatus[]; - - /** QueryResult webhookPayloads. */ - public webhookPayloads: google.protobuf.IStruct[]; - - /** QueryResult currentPage. */ - public currentPage?: (google.cloud.dialogflow.cx.v3.IPage|null); - - /** QueryResult intent. */ - public intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); - - /** QueryResult intentDetectionConfidence. */ - public intentDetectionConfidence: number; - - /** QueryResult match. */ - public match?: (google.cloud.dialogflow.cx.v3.IMatch|null); - - /** QueryResult diagnosticInfo. */ - public diagnosticInfo?: (google.protobuf.IStruct|null); - - /** QueryResult sentimentAnalysisResult. */ - public sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult|null); + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteIntentRequest); - /** QueryResult query. */ - public query?: ("text"|"triggerIntent"|"transcript"|"triggerEvent"); + /** DeleteIntentRequest name. */ + public name: string; /** - * Creates a new QueryResult instance using the specified properties. + * Creates a new DeleteIntentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns QueryResult instance + * @returns DeleteIntentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IQueryResult): google.cloud.dialogflow.cx.v3.QueryResult; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteIntentRequest): google.cloud.dialogflow.cx.v3.DeleteIntentRequest; /** - * Encodes the specified QueryResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryResult.verify|verify} messages. - * @param message QueryResult message or plain object to encode + * Encodes the specified DeleteIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteIntentRequest.verify|verify} messages. + * @param message DeleteIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryResult.verify|verify} messages. - * @param message QueryResult message or plain object to encode + * Encodes the specified DeleteIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteIntentRequest.verify|verify} messages. + * @param message DeleteIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryResult message from the specified reader or buffer. + * Decodes a DeleteIntentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryResult + * @returns DeleteIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.QueryResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteIntentRequest; /** - * Decodes a QueryResult message from the specified reader or buffer, length delimited. + * Decodes a DeleteIntentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryResult + * @returns DeleteIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.QueryResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteIntentRequest; /** - * Verifies a QueryResult message. + * Verifies a DeleteIntentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryResult message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteIntentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryResult + * @returns DeleteIntentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.QueryResult; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteIntentRequest; /** - * Creates a plain object from a QueryResult message. Also converts values to other types if specified. - * @param message QueryResult + * Creates a plain object from a DeleteIntentRequest message. Also converts values to other types if specified. + * @param message DeleteIntentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.QueryResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryResult to JSON. + * Converts this DeleteIntentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TextInput. */ - interface ITextInput { - - /** TextInput text */ - text?: (string|null); + /** IntentView enum. */ + enum IntentView { + INTENT_VIEW_UNSPECIFIED = 0, + INTENT_VIEW_PARTIAL = 1, + INTENT_VIEW_FULL = 2 } - /** Represents a TextInput. */ - class TextInput implements ITextInput { + /** Represents a Sessions */ + class Sessions extends $protobuf.rpc.Service { /** - * Constructs a new TextInput. - * @param [properties] Properties to set + * Constructs a new Sessions service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ITextInput); + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** TextInput text. */ - public text: string; + /** + * Creates new Sessions service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Sessions; /** - * Creates a new TextInput instance using the specified properties. - * @param [properties] Properties to set - * @returns TextInput instance + * Calls DetectIntent. + * @param request DetectIntentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DetectIntentResponse */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ITextInput): google.cloud.dialogflow.cx.v3.TextInput; + public detectIntent(request: google.cloud.dialogflow.cx.v3.IDetectIntentRequest, callback: google.cloud.dialogflow.cx.v3.Sessions.DetectIntentCallback): void; /** - * Encodes the specified TextInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TextInput.verify|verify} messages. - * @param message TextInput message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls DetectIntent. + * @param request DetectIntentRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.dialogflow.cx.v3.ITextInput, writer?: $protobuf.Writer): $protobuf.Writer; + public detectIntent(request: google.cloud.dialogflow.cx.v3.IDetectIntentRequest): Promise; /** - * Encodes the specified TextInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TextInput.verify|verify} messages. - * @param message TextInput message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls StreamingDetectIntent. + * @param request StreamingDetectIntentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and StreamingDetectIntentResponse */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITextInput, writer?: $protobuf.Writer): $protobuf.Writer; + public streamingDetectIntent(request: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest, callback: google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntentCallback): void; /** - * Decodes a TextInput message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TextInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls StreamingDetectIntent. + * @param request StreamingDetectIntentRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TextInput; + public streamingDetectIntent(request: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest): Promise; /** - * Decodes a TextInput message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TextInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls MatchIntent. + * @param request MatchIntentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and MatchIntentResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TextInput; + public matchIntent(request: google.cloud.dialogflow.cx.v3.IMatchIntentRequest, callback: google.cloud.dialogflow.cx.v3.Sessions.MatchIntentCallback): void; /** - * Verifies a TextInput message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls MatchIntent. + * @param request MatchIntentRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public matchIntent(request: google.cloud.dialogflow.cx.v3.IMatchIntentRequest): Promise; /** - * Creates a TextInput message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TextInput + * Calls FulfillIntent. + * @param request FulfillIntentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and FulfillIntentResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TextInput; + public fulfillIntent(request: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest, callback: google.cloud.dialogflow.cx.v3.Sessions.FulfillIntentCallback): void; /** - * Creates a plain object from a TextInput message. Also converts values to other types if specified. - * @param message TextInput - * @param [options] Conversion options - * @returns Plain object + * Calls FulfillIntent. + * @param request FulfillIntentRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.dialogflow.cx.v3.TextInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public fulfillIntent(request: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest): Promise; + } + + namespace Sessions { /** - * Converts this TextInput to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#detectIntent}. + * @param error Error, if any + * @param [response] DetectIntentResponse */ - public toJSON(): { [k: string]: any }; + type DetectIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.DetectIntentResponse) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#streamingDetectIntent}. + * @param error Error, if any + * @param [response] StreamingDetectIntentResponse + */ + type StreamingDetectIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#matchIntent}. + * @param error Error, if any + * @param [response] MatchIntentResponse + */ + type MatchIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.MatchIntentResponse) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#fulfillIntent}. + * @param error Error, if any + * @param [response] FulfillIntentResponse + */ + type FulfillIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.FulfillIntentResponse) => void; } - /** Properties of an IntentInput. */ - interface IIntentInput { + /** Properties of a DetectIntentRequest. */ + interface IDetectIntentRequest { - /** IntentInput intent */ - intent?: (string|null); + /** DetectIntentRequest session */ + session?: (string|null); + + /** DetectIntentRequest queryParams */ + queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); + + /** DetectIntentRequest queryInput */ + queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); + + /** DetectIntentRequest outputAudioConfig */ + outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); } - /** Represents an IntentInput. */ - class IntentInput implements IIntentInput { + /** Represents a DetectIntentRequest. */ + class DetectIntentRequest implements IDetectIntentRequest { /** - * Constructs a new IntentInput. + * Constructs a new DetectIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IIntentInput); + constructor(properties?: google.cloud.dialogflow.cx.v3.IDetectIntentRequest); - /** IntentInput intent. */ - public intent: string; + /** DetectIntentRequest session. */ + public session: string; + + /** DetectIntentRequest queryParams. */ + public queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); + + /** DetectIntentRequest queryInput. */ + public queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); + + /** DetectIntentRequest outputAudioConfig. */ + public outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); /** - * Creates a new IntentInput instance using the specified properties. + * Creates a new DetectIntentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns IntentInput instance + * @returns DetectIntentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IIntentInput): google.cloud.dialogflow.cx.v3.IntentInput; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDetectIntentRequest): google.cloud.dialogflow.cx.v3.DetectIntentRequest; /** - * Encodes the specified IntentInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentInput.verify|verify} messages. - * @param message IntentInput message or plain object to encode + * Encodes the specified DetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentRequest.verify|verify} messages. + * @param message DetectIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IIntentInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified IntentInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentInput.verify|verify} messages. - * @param message IntentInput message or plain object to encode + * Encodes the specified DetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentRequest.verify|verify} messages. + * @param message DetectIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IIntentInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IntentInput message from the specified reader or buffer. + * Decodes a DetectIntentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns IntentInput + * @returns DetectIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.IntentInput; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DetectIntentRequest; /** - * Decodes an IntentInput message from the specified reader or buffer, length delimited. + * Decodes a DetectIntentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns IntentInput + * @returns DetectIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.IntentInput; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DetectIntentRequest; /** - * Verifies an IntentInput message. + * Verifies a DetectIntentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an IntentInput message from a plain object. Also converts values to their respective internal types. + * Creates a DetectIntentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns IntentInput + * @returns DetectIntentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.IntentInput; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DetectIntentRequest; /** - * Creates a plain object from an IntentInput message. Also converts values to other types if specified. - * @param message IntentInput + * Creates a plain object from a DetectIntentRequest message. Also converts values to other types if specified. + * @param message DetectIntentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.IntentInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DetectIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IntentInput to JSON. + * Converts this DetectIntentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an AudioInput. */ - interface IAudioInput { + /** Properties of a DetectIntentResponse. */ + interface IDetectIntentResponse { - /** AudioInput config */ - config?: (google.cloud.dialogflow.cx.v3.IInputAudioConfig|null); + /** DetectIntentResponse responseId */ + responseId?: (string|null); - /** AudioInput audio */ - audio?: (Uint8Array|string|null); + /** DetectIntentResponse queryResult */ + queryResult?: (google.cloud.dialogflow.cx.v3.IQueryResult|null); + + /** DetectIntentResponse outputAudio */ + outputAudio?: (Uint8Array|string|null); + + /** DetectIntentResponse outputAudioConfig */ + outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); } - /** Represents an AudioInput. */ - class AudioInput implements IAudioInput { + /** Represents a DetectIntentResponse. */ + class DetectIntentResponse implements IDetectIntentResponse { /** - * Constructs a new AudioInput. + * Constructs a new DetectIntentResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IAudioInput); + constructor(properties?: google.cloud.dialogflow.cx.v3.IDetectIntentResponse); - /** AudioInput config. */ - public config?: (google.cloud.dialogflow.cx.v3.IInputAudioConfig|null); + /** DetectIntentResponse responseId. */ + public responseId: string; - /** AudioInput audio. */ - public audio: (Uint8Array|string); + /** DetectIntentResponse queryResult. */ + public queryResult?: (google.cloud.dialogflow.cx.v3.IQueryResult|null); + + /** DetectIntentResponse outputAudio. */ + public outputAudio: (Uint8Array|string); + + /** DetectIntentResponse outputAudioConfig. */ + public outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); /** - * Creates a new AudioInput instance using the specified properties. + * Creates a new DetectIntentResponse instance using the specified properties. * @param [properties] Properties to set - * @returns AudioInput instance + * @returns DetectIntentResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IAudioInput): google.cloud.dialogflow.cx.v3.AudioInput; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDetectIntentResponse): google.cloud.dialogflow.cx.v3.DetectIntentResponse; /** - * Encodes the specified AudioInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.AudioInput.verify|verify} messages. - * @param message AudioInput message or plain object to encode + * Encodes the specified DetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentResponse.verify|verify} messages. + * @param message DetectIntentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IAudioInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AudioInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.AudioInput.verify|verify} messages. - * @param message AudioInput message or plain object to encode + * Encodes the specified DetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentResponse.verify|verify} messages. + * @param message DetectIntentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IAudioInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AudioInput message from the specified reader or buffer. + * Decodes a DetectIntentResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AudioInput + * @returns DetectIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.AudioInput; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DetectIntentResponse; /** - * Decodes an AudioInput message from the specified reader or buffer, length delimited. + * Decodes a DetectIntentResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AudioInput + * @returns DetectIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.AudioInput; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DetectIntentResponse; /** - * Verifies an AudioInput message. + * Verifies a DetectIntentResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an AudioInput message from a plain object. Also converts values to their respective internal types. + * Creates a DetectIntentResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AudioInput + * @returns DetectIntentResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.AudioInput; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DetectIntentResponse; /** - * Creates a plain object from an AudioInput message. Also converts values to other types if specified. - * @param message AudioInput + * Creates a plain object from a DetectIntentResponse message. Also converts values to other types if specified. + * @param message DetectIntentResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.AudioInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DetectIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AudioInput to JSON. + * Converts this DetectIntentResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an EventInput. */ - interface IEventInput { + /** Properties of a StreamingDetectIntentRequest. */ + interface IStreamingDetectIntentRequest { - /** EventInput event */ - event?: (string|null); + /** StreamingDetectIntentRequest session */ + session?: (string|null); + + /** StreamingDetectIntentRequest queryParams */ + queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); + + /** StreamingDetectIntentRequest queryInput */ + queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); + + /** StreamingDetectIntentRequest outputAudioConfig */ + outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); } - /** Represents an EventInput. */ - class EventInput implements IEventInput { + /** Represents a StreamingDetectIntentRequest. */ + class StreamingDetectIntentRequest implements IStreamingDetectIntentRequest { /** - * Constructs a new EventInput. + * Constructs a new StreamingDetectIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IEventInput); + constructor(properties?: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest); - /** EventInput event. */ - public event: string; + /** StreamingDetectIntentRequest session. */ + public session: string; + + /** StreamingDetectIntentRequest queryParams. */ + public queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); + + /** StreamingDetectIntentRequest queryInput. */ + public queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); + + /** StreamingDetectIntentRequest outputAudioConfig. */ + public outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); /** - * Creates a new EventInput instance using the specified properties. + * Creates a new StreamingDetectIntentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns EventInput instance + * @returns StreamingDetectIntentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IEventInput): google.cloud.dialogflow.cx.v3.EventInput; + public static create(properties?: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest): google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest; /** - * Encodes the specified EventInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EventInput.verify|verify} messages. - * @param message EventInput message or plain object to encode + * Encodes the specified StreamingDetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.verify|verify} messages. + * @param message StreamingDetectIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IEventInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EventInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EventInput.verify|verify} messages. - * @param message EventInput message or plain object to encode + * Encodes the specified StreamingDetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.verify|verify} messages. + * @param message StreamingDetectIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IEventInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EventInput message from the specified reader or buffer. + * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EventInput + * @returns StreamingDetectIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.EventInput; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest; /** - * Decodes an EventInput message from the specified reader or buffer, length delimited. + * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EventInput + * @returns StreamingDetectIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.EventInput; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest; /** - * Verifies an EventInput message. + * Verifies a StreamingDetectIntentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an EventInput message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingDetectIntentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EventInput + * @returns StreamingDetectIntentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.EventInput; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest; /** - * Creates a plain object from an EventInput message. Also converts values to other types if specified. - * @param message EventInput + * Creates a plain object from a StreamingDetectIntentRequest message. Also converts values to other types if specified. + * @param message StreamingDetectIntentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.EventInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EventInput to JSON. + * Converts this StreamingDetectIntentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DtmfInput. */ - interface IDtmfInput { + /** Properties of a StreamingDetectIntentResponse. */ + interface IStreamingDetectIntentResponse { - /** DtmfInput digits */ - digits?: (string|null); + /** StreamingDetectIntentResponse recognitionResult */ + recognitionResult?: (google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult|null); - /** DtmfInput finishDigit */ - finishDigit?: (string|null); + /** StreamingDetectIntentResponse detectIntentResponse */ + detectIntentResponse?: (google.cloud.dialogflow.cx.v3.IDetectIntentResponse|null); } - /** Represents a DtmfInput. */ - class DtmfInput implements IDtmfInput { + /** Represents a StreamingDetectIntentResponse. */ + class StreamingDetectIntentResponse implements IStreamingDetectIntentResponse { /** - * Constructs a new DtmfInput. + * Constructs a new StreamingDetectIntentResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDtmfInput); + constructor(properties?: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse); - /** DtmfInput digits. */ - public digits: string; + /** StreamingDetectIntentResponse recognitionResult. */ + public recognitionResult?: (google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult|null); - /** DtmfInput finishDigit. */ - public finishDigit: string; + /** StreamingDetectIntentResponse detectIntentResponse. */ + public detectIntentResponse?: (google.cloud.dialogflow.cx.v3.IDetectIntentResponse|null); + + /** StreamingDetectIntentResponse response. */ + public response?: ("recognitionResult"|"detectIntentResponse"); /** - * Creates a new DtmfInput instance using the specified properties. + * Creates a new StreamingDetectIntentResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DtmfInput instance + * @returns StreamingDetectIntentResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IDtmfInput): google.cloud.dialogflow.cx.v3.DtmfInput; + public static create(properties?: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse): google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse; /** - * Encodes the specified DtmfInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DtmfInput.verify|verify} messages. - * @param message DtmfInput message or plain object to encode + * Encodes the specified StreamingDetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse.verify|verify} messages. + * @param message StreamingDetectIntentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IDtmfInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DtmfInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DtmfInput.verify|verify} messages. - * @param message DtmfInput message or plain object to encode + * Encodes the specified StreamingDetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse.verify|verify} messages. + * @param message StreamingDetectIntentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDtmfInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DtmfInput message from the specified reader or buffer. + * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DtmfInput + * @returns StreamingDetectIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DtmfInput; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse; /** - * Decodes a DtmfInput message from the specified reader or buffer, length delimited. + * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DtmfInput + * @returns StreamingDetectIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DtmfInput; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse; /** - * Verifies a DtmfInput message. + * Verifies a StreamingDetectIntentResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DtmfInput message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingDetectIntentResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DtmfInput + * @returns StreamingDetectIntentResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DtmfInput; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse; /** - * Creates a plain object from a DtmfInput message. Also converts values to other types if specified. - * @param message DtmfInput + * Creates a plain object from a StreamingDetectIntentResponse message. Also converts values to other types if specified. + * @param message StreamingDetectIntentResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.DtmfInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DtmfInput to JSON. + * Converts this StreamingDetectIntentResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Match. */ - interface IMatch { + /** Properties of a StreamingRecognitionResult. */ + interface IStreamingRecognitionResult { - /** Match intent */ - intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); + /** StreamingRecognitionResult messageType */ + messageType?: (google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType|keyof typeof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType|null); - /** Match event */ - event?: (string|null); + /** StreamingRecognitionResult transcript */ + transcript?: (string|null); - /** Match parameters */ - parameters?: (google.protobuf.IStruct|null); + /** StreamingRecognitionResult isFinal */ + isFinal?: (boolean|null); - /** Match resolvedInput */ - resolvedInput?: (string|null); + /** StreamingRecognitionResult confidence */ + confidence?: (number|null); - /** Match matchType */ - matchType?: (google.cloud.dialogflow.cx.v3.Match.MatchType|keyof typeof google.cloud.dialogflow.cx.v3.Match.MatchType|null); + /** StreamingRecognitionResult stability */ + stability?: (number|null); - /** Match confidence */ - confidence?: (number|null); + /** StreamingRecognitionResult speechWordInfo */ + speechWordInfo?: (google.cloud.dialogflow.cx.v3.ISpeechWordInfo[]|null); + + /** StreamingRecognitionResult speechEndOffset */ + speechEndOffset?: (google.protobuf.IDuration|null); } - /** Represents a Match. */ - class Match implements IMatch { + /** Represents a StreamingRecognitionResult. */ + class StreamingRecognitionResult implements IStreamingRecognitionResult { /** - * Constructs a new Match. + * Constructs a new StreamingRecognitionResult. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IMatch); + constructor(properties?: google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult); - /** Match intent. */ - public intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); + /** StreamingRecognitionResult messageType. */ + public messageType: (google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType|keyof typeof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType); - /** Match event. */ - public event: string; + /** StreamingRecognitionResult transcript. */ + public transcript: string; - /** Match parameters. */ - public parameters?: (google.protobuf.IStruct|null); + /** StreamingRecognitionResult isFinal. */ + public isFinal: boolean; - /** Match resolvedInput. */ - public resolvedInput: string; + /** StreamingRecognitionResult confidence. */ + public confidence: number; - /** Match matchType. */ - public matchType: (google.cloud.dialogflow.cx.v3.Match.MatchType|keyof typeof google.cloud.dialogflow.cx.v3.Match.MatchType); + /** StreamingRecognitionResult stability. */ + public stability: number; - /** Match confidence. */ - public confidence: number; + /** StreamingRecognitionResult speechWordInfo. */ + public speechWordInfo: google.cloud.dialogflow.cx.v3.ISpeechWordInfo[]; + + /** StreamingRecognitionResult speechEndOffset. */ + public speechEndOffset?: (google.protobuf.IDuration|null); /** - * Creates a new Match instance using the specified properties. + * Creates a new StreamingRecognitionResult instance using the specified properties. * @param [properties] Properties to set - * @returns Match instance + * @returns StreamingRecognitionResult instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IMatch): google.cloud.dialogflow.cx.v3.Match; + public static create(properties?: google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult): google.cloud.dialogflow.cx.v3.StreamingRecognitionResult; /** - * Encodes the specified Match message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Match.verify|verify} messages. - * @param message Match message or plain object to encode + * Encodes the specified StreamingRecognitionResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.verify|verify} messages. + * @param message StreamingRecognitionResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IMatch, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Match message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Match.verify|verify} messages. - * @param message Match message or plain object to encode + * Encodes the specified StreamingRecognitionResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.verify|verify} messages. + * @param message StreamingRecognitionResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IMatch, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Match message from the specified reader or buffer. + * Decodes a StreamingRecognitionResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Match + * @returns StreamingRecognitionResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Match; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.StreamingRecognitionResult; /** - * Decodes a Match message from the specified reader or buffer, length delimited. + * Decodes a StreamingRecognitionResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Match + * @returns StreamingRecognitionResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Match; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.StreamingRecognitionResult; /** - * Verifies a Match message. + * Verifies a StreamingRecognitionResult message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Match message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingRecognitionResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Match + * @returns StreamingRecognitionResult */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Match; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.StreamingRecognitionResult; /** - * Creates a plain object from a Match message. Also converts values to other types if specified. - * @param message Match + * Creates a plain object from a StreamingRecognitionResult message. Also converts values to other types if specified. + * @param message StreamingRecognitionResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Match, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.StreamingRecognitionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Match to JSON. + * Converts this StreamingRecognitionResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Match { + namespace StreamingRecognitionResult { - /** MatchType enum. */ - enum MatchType { - MATCH_TYPE_UNSPECIFIED = 0, - INTENT = 1, - DIRECT_INTENT = 2, - PARAMETER_FILLING = 3, - NO_MATCH = 4, - NO_INPUT = 5, - EVENT = 6 + /** MessageType enum. */ + enum MessageType { + MESSAGE_TYPE_UNSPECIFIED = 0, + TRANSCRIPT = 1, + END_OF_SINGLE_UTTERANCE = 2 } } - /** Properties of a MatchIntentRequest. */ - interface IMatchIntentRequest { + /** Properties of a QueryParameters. */ + interface IQueryParameters { - /** MatchIntentRequest session */ - session?: (string|null); + /** QueryParameters timeZone */ + timeZone?: (string|null); - /** MatchIntentRequest queryParams */ - queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); + /** QueryParameters geoLocation */ + geoLocation?: (google.type.ILatLng|null); - /** MatchIntentRequest queryInput */ - queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); + /** QueryParameters sessionEntityTypes */ + sessionEntityTypes?: (google.cloud.dialogflow.cx.v3.ISessionEntityType[]|null); + + /** QueryParameters payload */ + payload?: (google.protobuf.IStruct|null); + + /** QueryParameters parameters */ + parameters?: (google.protobuf.IStruct|null); + + /** QueryParameters disableWebhook */ + disableWebhook?: (boolean|null); + + /** QueryParameters analyzeQueryTextSentiment */ + analyzeQueryTextSentiment?: (boolean|null); + + /** QueryParameters webhookHeaders */ + webhookHeaders?: ({ [k: string]: string }|null); } - /** Represents a MatchIntentRequest. */ - class MatchIntentRequest implements IMatchIntentRequest { + /** Represents a QueryParameters. */ + class QueryParameters implements IQueryParameters { /** - * Constructs a new MatchIntentRequest. + * Constructs a new QueryParameters. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IMatchIntentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IQueryParameters); - /** MatchIntentRequest session. */ - public session: string; + /** QueryParameters timeZone. */ + public timeZone: string; - /** MatchIntentRequest queryParams. */ - public queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); + /** QueryParameters geoLocation. */ + public geoLocation?: (google.type.ILatLng|null); - /** MatchIntentRequest queryInput. */ - public queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); + /** QueryParameters sessionEntityTypes. */ + public sessionEntityTypes: google.cloud.dialogflow.cx.v3.ISessionEntityType[]; + + /** QueryParameters payload. */ + public payload?: (google.protobuf.IStruct|null); + + /** QueryParameters parameters. */ + public parameters?: (google.protobuf.IStruct|null); + + /** QueryParameters disableWebhook. */ + public disableWebhook: boolean; + + /** QueryParameters analyzeQueryTextSentiment. */ + public analyzeQueryTextSentiment: boolean; + + /** QueryParameters webhookHeaders. */ + public webhookHeaders: { [k: string]: string }; /** - * Creates a new MatchIntentRequest instance using the specified properties. + * Creates a new QueryParameters instance using the specified properties. * @param [properties] Properties to set - * @returns MatchIntentRequest instance + * @returns QueryParameters instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IMatchIntentRequest): google.cloud.dialogflow.cx.v3.MatchIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IQueryParameters): google.cloud.dialogflow.cx.v3.QueryParameters; /** - * Encodes the specified MatchIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentRequest.verify|verify} messages. - * @param message MatchIntentRequest message or plain object to encode + * Encodes the specified QueryParameters message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryParameters.verify|verify} messages. + * @param message QueryParameters message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IMatchIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IQueryParameters, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MatchIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentRequest.verify|verify} messages. - * @param message MatchIntentRequest message or plain object to encode + * Encodes the specified QueryParameters message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryParameters.verify|verify} messages. + * @param message QueryParameters message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IMatchIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IQueryParameters, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MatchIntentRequest message from the specified reader or buffer. + * Decodes a QueryParameters message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MatchIntentRequest + * @returns QueryParameters * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.MatchIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.QueryParameters; /** - * Decodes a MatchIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryParameters message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MatchIntentRequest + * @returns QueryParameters * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.MatchIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.QueryParameters; /** - * Verifies a MatchIntentRequest message. + * Verifies a QueryParameters message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MatchIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryParameters message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MatchIntentRequest + * @returns QueryParameters */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.MatchIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.QueryParameters; /** - * Creates a plain object from a MatchIntentRequest message. Also converts values to other types if specified. - * @param message MatchIntentRequest + * Creates a plain object from a QueryParameters message. Also converts values to other types if specified. + * @param message QueryParameters * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.MatchIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.QueryParameters, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MatchIntentRequest to JSON. + * Converts this QueryParameters to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MatchIntentResponse. */ - interface IMatchIntentResponse { + /** Properties of a QueryInput. */ + interface IQueryInput { - /** MatchIntentResponse text */ - text?: (string|null); + /** QueryInput text */ + text?: (google.cloud.dialogflow.cx.v3.ITextInput|null); - /** MatchIntentResponse triggerIntent */ - triggerIntent?: (string|null); + /** QueryInput intent */ + intent?: (google.cloud.dialogflow.cx.v3.IIntentInput|null); - /** MatchIntentResponse transcript */ - transcript?: (string|null); + /** QueryInput audio */ + audio?: (google.cloud.dialogflow.cx.v3.IAudioInput|null); - /** MatchIntentResponse triggerEvent */ - triggerEvent?: (string|null); + /** QueryInput event */ + event?: (google.cloud.dialogflow.cx.v3.IEventInput|null); - /** MatchIntentResponse matches */ - matches?: (google.cloud.dialogflow.cx.v3.IMatch[]|null); + /** QueryInput dtmf */ + dtmf?: (google.cloud.dialogflow.cx.v3.IDtmfInput|null); - /** MatchIntentResponse currentPage */ - currentPage?: (google.cloud.dialogflow.cx.v3.IPage|null); + /** QueryInput languageCode */ + languageCode?: (string|null); } - /** Represents a MatchIntentResponse. */ - class MatchIntentResponse implements IMatchIntentResponse { + /** Represents a QueryInput. */ + class QueryInput implements IQueryInput { /** - * Constructs a new MatchIntentResponse. + * Constructs a new QueryInput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IMatchIntentResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IQueryInput); - /** MatchIntentResponse text. */ - public text: string; + /** QueryInput text. */ + public text?: (google.cloud.dialogflow.cx.v3.ITextInput|null); - /** MatchIntentResponse triggerIntent. */ - public triggerIntent: string; + /** QueryInput intent. */ + public intent?: (google.cloud.dialogflow.cx.v3.IIntentInput|null); - /** MatchIntentResponse transcript. */ - public transcript: string; + /** QueryInput audio. */ + public audio?: (google.cloud.dialogflow.cx.v3.IAudioInput|null); - /** MatchIntentResponse triggerEvent. */ - public triggerEvent: string; + /** QueryInput event. */ + public event?: (google.cloud.dialogflow.cx.v3.IEventInput|null); - /** MatchIntentResponse matches. */ - public matches: google.cloud.dialogflow.cx.v3.IMatch[]; + /** QueryInput dtmf. */ + public dtmf?: (google.cloud.dialogflow.cx.v3.IDtmfInput|null); - /** MatchIntentResponse currentPage. */ - public currentPage?: (google.cloud.dialogflow.cx.v3.IPage|null); + /** QueryInput languageCode. */ + public languageCode: string; - /** MatchIntentResponse query. */ - public query?: ("text"|"triggerIntent"|"transcript"|"triggerEvent"); + /** QueryInput input. */ + public input?: ("text"|"intent"|"audio"|"event"|"dtmf"); /** - * Creates a new MatchIntentResponse instance using the specified properties. + * Creates a new QueryInput instance using the specified properties. * @param [properties] Properties to set - * @returns MatchIntentResponse instance + * @returns QueryInput instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IMatchIntentResponse): google.cloud.dialogflow.cx.v3.MatchIntentResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IQueryInput): google.cloud.dialogflow.cx.v3.QueryInput; /** - * Encodes the specified MatchIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentResponse.verify|verify} messages. - * @param message MatchIntentResponse message or plain object to encode + * Encodes the specified QueryInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryInput.verify|verify} messages. + * @param message QueryInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IMatchIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IQueryInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MatchIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentResponse.verify|verify} messages. - * @param message MatchIntentResponse message or plain object to encode + * Encodes the specified QueryInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryInput.verify|verify} messages. + * @param message QueryInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IMatchIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IQueryInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MatchIntentResponse message from the specified reader or buffer. + * Decodes a QueryInput message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MatchIntentResponse + * @returns QueryInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.MatchIntentResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.QueryInput; /** - * Decodes a MatchIntentResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryInput message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MatchIntentResponse + * @returns QueryInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.MatchIntentResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.QueryInput; /** - * Verifies a MatchIntentResponse message. + * Verifies a QueryInput message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MatchIntentResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryInput message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MatchIntentResponse + * @returns QueryInput */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.MatchIntentResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.QueryInput; /** - * Creates a plain object from a MatchIntentResponse message. Also converts values to other types if specified. - * @param message MatchIntentResponse + * Creates a plain object from a QueryInput message. Also converts values to other types if specified. + * @param message QueryInput * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.MatchIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.QueryInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MatchIntentResponse to JSON. + * Converts this QueryInput to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a FulfillIntentRequest. */ - interface IFulfillIntentRequest { + /** Properties of a QueryResult. */ + interface IQueryResult { - /** FulfillIntentRequest matchIntentRequest */ - matchIntentRequest?: (google.cloud.dialogflow.cx.v3.IMatchIntentRequest|null); + /** QueryResult text */ + text?: (string|null); - /** FulfillIntentRequest match */ + /** QueryResult triggerIntent */ + triggerIntent?: (string|null); + + /** QueryResult transcript */ + transcript?: (string|null); + + /** QueryResult triggerEvent */ + triggerEvent?: (string|null); + + /** QueryResult languageCode */ + languageCode?: (string|null); + + /** QueryResult parameters */ + parameters?: (google.protobuf.IStruct|null); + + /** QueryResult responseMessages */ + responseMessages?: (google.cloud.dialogflow.cx.v3.IResponseMessage[]|null); + + /** QueryResult webhookStatuses */ + webhookStatuses?: (google.rpc.IStatus[]|null); + + /** QueryResult webhookPayloads */ + webhookPayloads?: (google.protobuf.IStruct[]|null); + + /** QueryResult currentPage */ + currentPage?: (google.cloud.dialogflow.cx.v3.IPage|null); + + /** QueryResult intent */ + intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); + + /** QueryResult intentDetectionConfidence */ + intentDetectionConfidence?: (number|null); + + /** QueryResult match */ match?: (google.cloud.dialogflow.cx.v3.IMatch|null); - /** FulfillIntentRequest outputAudioConfig */ - outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); + /** QueryResult diagnosticInfo */ + diagnosticInfo?: (google.protobuf.IStruct|null); + + /** QueryResult sentimentAnalysisResult */ + sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult|null); } - /** Represents a FulfillIntentRequest. */ - class FulfillIntentRequest implements IFulfillIntentRequest { + /** Represents a QueryResult. */ + class QueryResult implements IQueryResult { /** - * Constructs a new FulfillIntentRequest. + * Constructs a new QueryResult. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IQueryResult); - /** FulfillIntentRequest matchIntentRequest. */ - public matchIntentRequest?: (google.cloud.dialogflow.cx.v3.IMatchIntentRequest|null); + /** QueryResult text. */ + public text: string; - /** FulfillIntentRequest match. */ + /** QueryResult triggerIntent. */ + public triggerIntent: string; + + /** QueryResult transcript. */ + public transcript: string; + + /** QueryResult triggerEvent. */ + public triggerEvent: string; + + /** QueryResult languageCode. */ + public languageCode: string; + + /** QueryResult parameters. */ + public parameters?: (google.protobuf.IStruct|null); + + /** QueryResult responseMessages. */ + public responseMessages: google.cloud.dialogflow.cx.v3.IResponseMessage[]; + + /** QueryResult webhookStatuses. */ + public webhookStatuses: google.rpc.IStatus[]; + + /** QueryResult webhookPayloads. */ + public webhookPayloads: google.protobuf.IStruct[]; + + /** QueryResult currentPage. */ + public currentPage?: (google.cloud.dialogflow.cx.v3.IPage|null); + + /** QueryResult intent. */ + public intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); + + /** QueryResult intentDetectionConfidence. */ + public intentDetectionConfidence: number; + + /** QueryResult match. */ public match?: (google.cloud.dialogflow.cx.v3.IMatch|null); - /** FulfillIntentRequest outputAudioConfig. */ - public outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); + /** QueryResult diagnosticInfo. */ + public diagnosticInfo?: (google.protobuf.IStruct|null); + + /** QueryResult sentimentAnalysisResult. */ + public sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult|null); + + /** QueryResult query. */ + public query?: ("text"|"triggerIntent"|"transcript"|"triggerEvent"); /** - * Creates a new FulfillIntentRequest instance using the specified properties. + * Creates a new QueryResult instance using the specified properties. * @param [properties] Properties to set - * @returns FulfillIntentRequest instance + * @returns QueryResult instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest): google.cloud.dialogflow.cx.v3.FulfillIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IQueryResult): google.cloud.dialogflow.cx.v3.QueryResult; /** - * Encodes the specified FulfillIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentRequest.verify|verify} messages. - * @param message FulfillIntentRequest message or plain object to encode + * Encodes the specified QueryResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryResult.verify|verify} messages. + * @param message QueryResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FulfillIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentRequest.verify|verify} messages. - * @param message FulfillIntentRequest message or plain object to encode + * Encodes the specified QueryResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryResult.verify|verify} messages. + * @param message QueryResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FulfillIntentRequest message from the specified reader or buffer. + * Decodes a QueryResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FulfillIntentRequest + * @returns QueryResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.FulfillIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.QueryResult; /** - * Decodes a FulfillIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FulfillIntentRequest + * @returns QueryResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.FulfillIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.QueryResult; /** - * Verifies a FulfillIntentRequest message. + * Verifies a QueryResult message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FulfillIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FulfillIntentRequest + * @returns QueryResult */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.FulfillIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.QueryResult; /** - * Creates a plain object from a FulfillIntentRequest message. Also converts values to other types if specified. - * @param message FulfillIntentRequest + * Creates a plain object from a QueryResult message. Also converts values to other types if specified. + * @param message QueryResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.FulfillIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.QueryResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FulfillIntentRequest to JSON. + * Converts this QueryResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a FulfillIntentResponse. */ - interface IFulfillIntentResponse { - - /** FulfillIntentResponse responseId */ - responseId?: (string|null); - - /** FulfillIntentResponse queryResult */ - queryResult?: (google.cloud.dialogflow.cx.v3.IQueryResult|null); - - /** FulfillIntentResponse outputAudio */ - outputAudio?: (Uint8Array|string|null); + /** Properties of a TextInput. */ + interface ITextInput { - /** FulfillIntentResponse outputAudioConfig */ - outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); + /** TextInput text */ + text?: (string|null); } - /** Represents a FulfillIntentResponse. */ - class FulfillIntentResponse implements IFulfillIntentResponse { + /** Represents a TextInput. */ + class TextInput implements ITextInput { /** - * Constructs a new FulfillIntentResponse. + * Constructs a new TextInput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IFulfillIntentResponse); - - /** FulfillIntentResponse responseId. */ - public responseId: string; - - /** FulfillIntentResponse queryResult. */ - public queryResult?: (google.cloud.dialogflow.cx.v3.IQueryResult|null); - - /** FulfillIntentResponse outputAudio. */ - public outputAudio: (Uint8Array|string); + constructor(properties?: google.cloud.dialogflow.cx.v3.ITextInput); - /** FulfillIntentResponse outputAudioConfig. */ - public outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); + /** TextInput text. */ + public text: string; /** - * Creates a new FulfillIntentResponse instance using the specified properties. + * Creates a new TextInput instance using the specified properties. * @param [properties] Properties to set - * @returns FulfillIntentResponse instance + * @returns TextInput instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IFulfillIntentResponse): google.cloud.dialogflow.cx.v3.FulfillIntentResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.ITextInput): google.cloud.dialogflow.cx.v3.TextInput; /** - * Encodes the specified FulfillIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentResponse.verify|verify} messages. - * @param message FulfillIntentResponse message or plain object to encode + * Encodes the specified TextInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TextInput.verify|verify} messages. + * @param message TextInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IFulfillIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ITextInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FulfillIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentResponse.verify|verify} messages. - * @param message FulfillIntentResponse message or plain object to encode + * Encodes the specified TextInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TextInput.verify|verify} messages. + * @param message TextInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IFulfillIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITextInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FulfillIntentResponse message from the specified reader or buffer. + * Decodes a TextInput message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FulfillIntentResponse + * @returns TextInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.FulfillIntentResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TextInput; /** - * Decodes a FulfillIntentResponse message from the specified reader or buffer, length delimited. + * Decodes a TextInput message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FulfillIntentResponse + * @returns TextInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.FulfillIntentResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TextInput; /** - * Verifies a FulfillIntentResponse message. + * Verifies a TextInput message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FulfillIntentResponse message from a plain object. Also converts values to their respective internal types. + * Creates a TextInput message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FulfillIntentResponse + * @returns TextInput */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.FulfillIntentResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TextInput; /** - * Creates a plain object from a FulfillIntentResponse message. Also converts values to other types if specified. - * @param message FulfillIntentResponse + * Creates a plain object from a TextInput message. Also converts values to other types if specified. + * @param message TextInput * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.FulfillIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.TextInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FulfillIntentResponse to JSON. + * Converts this TextInput to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SentimentAnalysisResult. */ - interface ISentimentAnalysisResult { - - /** SentimentAnalysisResult score */ - score?: (number|null); + /** Properties of an IntentInput. */ + interface IIntentInput { - /** SentimentAnalysisResult magnitude */ - magnitude?: (number|null); + /** IntentInput intent */ + intent?: (string|null); } - /** Represents a SentimentAnalysisResult. */ - class SentimentAnalysisResult implements ISentimentAnalysisResult { + /** Represents an IntentInput. */ + class IntentInput implements IIntentInput { /** - * Constructs a new SentimentAnalysisResult. + * Constructs a new IntentInput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult); - - /** SentimentAnalysisResult score. */ - public score: number; + constructor(properties?: google.cloud.dialogflow.cx.v3.IIntentInput); - /** SentimentAnalysisResult magnitude. */ - public magnitude: number; + /** IntentInput intent. */ + public intent: string; /** - * Creates a new SentimentAnalysisResult instance using the specified properties. + * Creates a new IntentInput instance using the specified properties. * @param [properties] Properties to set - * @returns SentimentAnalysisResult instance + * @returns IntentInput instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult): google.cloud.dialogflow.cx.v3.SentimentAnalysisResult; + public static create(properties?: google.cloud.dialogflow.cx.v3.IIntentInput): google.cloud.dialogflow.cx.v3.IntentInput; /** - * Encodes the specified SentimentAnalysisResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.verify|verify} messages. - * @param message SentimentAnalysisResult message or plain object to encode + * Encodes the specified IntentInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentInput.verify|verify} messages. + * @param message IntentInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IIntentInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SentimentAnalysisResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.verify|verify} messages. - * @param message SentimentAnalysisResult message or plain object to encode + * Encodes the specified IntentInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentInput.verify|verify} messages. + * @param message IntentInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IIntentInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SentimentAnalysisResult message from the specified reader or buffer. + * Decodes an IntentInput message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SentimentAnalysisResult + * @returns IntentInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.SentimentAnalysisResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.IntentInput; /** - * Decodes a SentimentAnalysisResult message from the specified reader or buffer, length delimited. + * Decodes an IntentInput message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SentimentAnalysisResult + * @returns IntentInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.SentimentAnalysisResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.IntentInput; /** - * Verifies a SentimentAnalysisResult message. + * Verifies an IntentInput message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SentimentAnalysisResult message from a plain object. Also converts values to their respective internal types. + * Creates an IntentInput message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SentimentAnalysisResult + * @returns IntentInput */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SentimentAnalysisResult; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.IntentInput; /** - * Creates a plain object from a SentimentAnalysisResult message. Also converts values to other types if specified. - * @param message SentimentAnalysisResult + * Creates a plain object from an IntentInput message. Also converts values to other types if specified. + * @param message IntentInput * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.SentimentAnalysisResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.IntentInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SentimentAnalysisResult to JSON. + * Converts this IntentInput to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a SessionEntityTypes */ - class SessionEntityTypes extends $protobuf.rpc.Service { + /** Properties of an AudioInput. */ + interface IAudioInput { - /** - * Constructs a new SessionEntityTypes service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** AudioInput config */ + config?: (google.cloud.dialogflow.cx.v3.IInputAudioConfig|null); - /** - * Creates new SessionEntityTypes service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SessionEntityTypes; + /** AudioInput audio */ + audio?: (Uint8Array|string|null); + } + + /** Represents an AudioInput. */ + class AudioInput implements IAudioInput { /** - * Calls ListSessionEntityTypes. - * @param request ListSessionEntityTypesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListSessionEntityTypesResponse + * Constructs a new AudioInput. + * @param [properties] Properties to set */ - public listSessionEntityTypes(request: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypesCallback): void; + constructor(properties?: google.cloud.dialogflow.cx.v3.IAudioInput); + + /** AudioInput config. */ + public config?: (google.cloud.dialogflow.cx.v3.IInputAudioConfig|null); + + /** AudioInput audio. */ + public audio: (Uint8Array|string); /** - * Calls ListSessionEntityTypes. - * @param request ListSessionEntityTypesRequest message or plain object - * @returns Promise + * Creates a new AudioInput instance using the specified properties. + * @param [properties] Properties to set + * @returns AudioInput instance */ - public listSessionEntityTypes(request: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest): Promise; + public static create(properties?: google.cloud.dialogflow.cx.v3.IAudioInput): google.cloud.dialogflow.cx.v3.AudioInput; /** - * Calls GetSessionEntityType. - * @param request GetSessionEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SessionEntityType + * Encodes the specified AudioInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.AudioInput.verify|verify} messages. + * @param message AudioInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getSessionEntityType(request: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.GetSessionEntityTypeCallback): void; + public static encode(message: google.cloud.dialogflow.cx.v3.IAudioInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetSessionEntityType. - * @param request GetSessionEntityTypeRequest message or plain object - * @returns Promise + * Encodes the specified AudioInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.AudioInput.verify|verify} messages. + * @param message AudioInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getSessionEntityType(request: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest): Promise; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IAudioInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateSessionEntityType. - * @param request CreateSessionEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SessionEntityType + * Decodes an AudioInput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AudioInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public createSessionEntityType(request: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.CreateSessionEntityTypeCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.AudioInput; /** - * Calls CreateSessionEntityType. - * @param request CreateSessionEntityTypeRequest message or plain object - * @returns Promise + * Decodes an AudioInput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AudioInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public createSessionEntityType(request: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.AudioInput; /** - * Calls UpdateSessionEntityType. - * @param request UpdateSessionEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SessionEntityType + * Verifies an AudioInput message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public updateSessionEntityType(request: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.UpdateSessionEntityTypeCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls UpdateSessionEntityType. - * @param request UpdateSessionEntityTypeRequest message or plain object - * @returns Promise + * Creates an AudioInput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AudioInput */ - public updateSessionEntityType(request: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.AudioInput; /** - * Calls DeleteSessionEntityType. - * @param request DeleteSessionEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Creates a plain object from an AudioInput message. Also converts values to other types if specified. + * @param message AudioInput + * @param [options] Conversion options + * @returns Plain object */ - public deleteSessionEntityType(request: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.DeleteSessionEntityTypeCallback): void; + public static toObject(message: google.cloud.dialogflow.cx.v3.AudioInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls DeleteSessionEntityType. - * @param request DeleteSessionEntityTypeRequest message or plain object - * @returns Promise + * Converts this AudioInput to JSON. + * @returns JSON object */ - public deleteSessionEntityType(request: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest): Promise; + public toJSON(): { [k: string]: any }; } - namespace SessionEntityTypes { + /** Properties of an EventInput. */ + interface IEventInput { - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#listSessionEntityTypes}. - * @param error Error, if any - * @param [response] ListSessionEntityTypesResponse - */ - type ListSessionEntityTypesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse) => void; + /** EventInput event */ + event?: (string|null); + } + + /** Represents an EventInput. */ + class EventInput implements IEventInput { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#getSessionEntityType}. - * @param error Error, if any - * @param [response] SessionEntityType + * Constructs a new EventInput. + * @param [properties] Properties to set */ - type GetSessionEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SessionEntityType) => void; + constructor(properties?: google.cloud.dialogflow.cx.v3.IEventInput); - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#createSessionEntityType}. - * @param error Error, if any - * @param [response] SessionEntityType - */ - type CreateSessionEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SessionEntityType) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#updateSessionEntityType}. - * @param error Error, if any - * @param [response] SessionEntityType - */ - type UpdateSessionEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SessionEntityType) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#deleteSessionEntityType}. - * @param error Error, if any - * @param [response] Empty - */ - type DeleteSessionEntityTypeCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - } - - /** Properties of a SessionEntityType. */ - interface ISessionEntityType { - - /** SessionEntityType name */ - name?: (string|null); - - /** SessionEntityType entityOverrideMode */ - entityOverrideMode?: (google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode|keyof typeof google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode|null); - - /** SessionEntityType entities */ - entities?: (google.cloud.dialogflow.cx.v3.EntityType.IEntity[]|null); - } - - /** Represents a SessionEntityType. */ - class SessionEntityType implements ISessionEntityType { - - /** - * Constructs a new SessionEntityType. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ISessionEntityType); - - /** SessionEntityType name. */ - public name: string; - - /** SessionEntityType entityOverrideMode. */ - public entityOverrideMode: (google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode|keyof typeof google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode); - - /** SessionEntityType entities. */ - public entities: google.cloud.dialogflow.cx.v3.EntityType.IEntity[]; + /** EventInput event. */ + public event: string; /** - * Creates a new SessionEntityType instance using the specified properties. + * Creates a new EventInput instance using the specified properties. * @param [properties] Properties to set - * @returns SessionEntityType instance + * @returns EventInput instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ISessionEntityType): google.cloud.dialogflow.cx.v3.SessionEntityType; + public static create(properties?: google.cloud.dialogflow.cx.v3.IEventInput): google.cloud.dialogflow.cx.v3.EventInput; /** - * Encodes the specified SessionEntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionEntityType.verify|verify} messages. - * @param message SessionEntityType message or plain object to encode + * Encodes the specified EventInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EventInput.verify|verify} messages. + * @param message EventInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ISessionEntityType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IEventInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SessionEntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionEntityType.verify|verify} messages. - * @param message SessionEntityType message or plain object to encode + * Encodes the specified EventInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EventInput.verify|verify} messages. + * @param message EventInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ISessionEntityType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IEventInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SessionEntityType message from the specified reader or buffer. + * Decodes an EventInput message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SessionEntityType + * @returns EventInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.SessionEntityType; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.EventInput; /** - * Decodes a SessionEntityType message from the specified reader or buffer, length delimited. + * Decodes an EventInput message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SessionEntityType + * @returns EventInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.SessionEntityType; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.EventInput; /** - * Verifies a SessionEntityType message. + * Verifies an EventInput message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SessionEntityType message from a plain object. Also converts values to their respective internal types. + * Creates an EventInput message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SessionEntityType + * @returns EventInput */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SessionEntityType; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.EventInput; /** - * Creates a plain object from a SessionEntityType message. Also converts values to other types if specified. - * @param message SessionEntityType + * Creates a plain object from an EventInput message. Also converts values to other types if specified. + * @param message EventInput * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.SessionEntityType, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.EventInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SessionEntityType to JSON. + * Converts this EventInput to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace SessionEntityType { - - /** EntityOverrideMode enum. */ - enum EntityOverrideMode { - ENTITY_OVERRIDE_MODE_UNSPECIFIED = 0, - ENTITY_OVERRIDE_MODE_OVERRIDE = 1, - ENTITY_OVERRIDE_MODE_SUPPLEMENT = 2 - } - } - - /** Properties of a ListSessionEntityTypesRequest. */ - interface IListSessionEntityTypesRequest { - - /** ListSessionEntityTypesRequest parent */ - parent?: (string|null); + /** Properties of a DtmfInput. */ + interface IDtmfInput { - /** ListSessionEntityTypesRequest pageSize */ - pageSize?: (number|null); + /** DtmfInput digits */ + digits?: (string|null); - /** ListSessionEntityTypesRequest pageToken */ - pageToken?: (string|null); + /** DtmfInput finishDigit */ + finishDigit?: (string|null); } - /** Represents a ListSessionEntityTypesRequest. */ - class ListSessionEntityTypesRequest implements IListSessionEntityTypesRequest { + /** Represents a DtmfInput. */ + class DtmfInput implements IDtmfInput { /** - * Constructs a new ListSessionEntityTypesRequest. + * Constructs a new DtmfInput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest); - - /** ListSessionEntityTypesRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.dialogflow.cx.v3.IDtmfInput); - /** ListSessionEntityTypesRequest pageSize. */ - public pageSize: number; + /** DtmfInput digits. */ + public digits: string; - /** ListSessionEntityTypesRequest pageToken. */ - public pageToken: string; + /** DtmfInput finishDigit. */ + public finishDigit: string; /** - * Creates a new ListSessionEntityTypesRequest instance using the specified properties. + * Creates a new DtmfInput instance using the specified properties. * @param [properties] Properties to set - * @returns ListSessionEntityTypesRequest instance + * @returns DtmfInput instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDtmfInput): google.cloud.dialogflow.cx.v3.DtmfInput; /** - * Encodes the specified ListSessionEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest.verify|verify} messages. - * @param message ListSessionEntityTypesRequest message or plain object to encode + * Encodes the specified DtmfInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DtmfInput.verify|verify} messages. + * @param message DtmfInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDtmfInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListSessionEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest.verify|verify} messages. - * @param message ListSessionEntityTypesRequest message or plain object to encode + * Encodes the specified DtmfInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DtmfInput.verify|verify} messages. + * @param message DtmfInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDtmfInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer. + * Decodes a DtmfInput message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListSessionEntityTypesRequest + * @returns DtmfInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DtmfInput; /** - * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer, length delimited. + * Decodes a DtmfInput message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListSessionEntityTypesRequest + * @returns DtmfInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DtmfInput; /** - * Verifies a ListSessionEntityTypesRequest message. + * Verifies a DtmfInput message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListSessionEntityTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DtmfInput message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListSessionEntityTypesRequest + * @returns DtmfInput */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DtmfInput; /** - * Creates a plain object from a ListSessionEntityTypesRequest message. Also converts values to other types if specified. - * @param message ListSessionEntityTypesRequest + * Creates a plain object from a DtmfInput message. Also converts values to other types if specified. + * @param message DtmfInput * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DtmfInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListSessionEntityTypesRequest to JSON. + * Converts this DtmfInput to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListSessionEntityTypesResponse. */ - interface IListSessionEntityTypesResponse { + /** Properties of a Match. */ + interface IMatch { - /** ListSessionEntityTypesResponse sessionEntityTypes */ - sessionEntityTypes?: (google.cloud.dialogflow.cx.v3.ISessionEntityType[]|null); + /** Match intent */ + intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); - /** ListSessionEntityTypesResponse nextPageToken */ - nextPageToken?: (string|null); + /** Match event */ + event?: (string|null); + + /** Match parameters */ + parameters?: (google.protobuf.IStruct|null); + + /** Match resolvedInput */ + resolvedInput?: (string|null); + + /** Match matchType */ + matchType?: (google.cloud.dialogflow.cx.v3.Match.MatchType|keyof typeof google.cloud.dialogflow.cx.v3.Match.MatchType|null); + + /** Match confidence */ + confidence?: (number|null); } - /** Represents a ListSessionEntityTypesResponse. */ - class ListSessionEntityTypesResponse implements IListSessionEntityTypesResponse { + /** Represents a Match. */ + class Match implements IMatch { /** - * Constructs a new ListSessionEntityTypesResponse. + * Constructs a new Match. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IMatch); - /** ListSessionEntityTypesResponse sessionEntityTypes. */ - public sessionEntityTypes: google.cloud.dialogflow.cx.v3.ISessionEntityType[]; + /** Match intent. */ + public intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); - /** ListSessionEntityTypesResponse nextPageToken. */ - public nextPageToken: string; + /** Match event. */ + public event: string; + + /** Match parameters. */ + public parameters?: (google.protobuf.IStruct|null); + + /** Match resolvedInput. */ + public resolvedInput: string; + + /** Match matchType. */ + public matchType: (google.cloud.dialogflow.cx.v3.Match.MatchType|keyof typeof google.cloud.dialogflow.cx.v3.Match.MatchType); + + /** Match confidence. */ + public confidence: number; /** - * Creates a new ListSessionEntityTypesResponse instance using the specified properties. + * Creates a new Match instance using the specified properties. * @param [properties] Properties to set - * @returns ListSessionEntityTypesResponse instance + * @returns Match instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IMatch): google.cloud.dialogflow.cx.v3.Match; /** - * Encodes the specified ListSessionEntityTypesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse.verify|verify} messages. - * @param message ListSessionEntityTypesResponse message or plain object to encode + * Encodes the specified Match message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Match.verify|verify} messages. + * @param message Match message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IMatch, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListSessionEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse.verify|verify} messages. - * @param message ListSessionEntityTypesResponse message or plain object to encode + * Encodes the specified Match message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Match.verify|verify} messages. + * @param message Match message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IMatch, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListSessionEntityTypesResponse message from the specified reader or buffer. + * Decodes a Match message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListSessionEntityTypesResponse + * @returns Match * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Match; /** - * Decodes a ListSessionEntityTypesResponse message from the specified reader or buffer, length delimited. + * Decodes a Match message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListSessionEntityTypesResponse + * @returns Match * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Match; /** - * Verifies a ListSessionEntityTypesResponse message. + * Verifies a Match message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListSessionEntityTypesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Match message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListSessionEntityTypesResponse + * @returns Match */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Match; /** - * Creates a plain object from a ListSessionEntityTypesResponse message. Also converts values to other types if specified. - * @param message ListSessionEntityTypesResponse + * Creates a plain object from a Match message. Also converts values to other types if specified. + * @param message Match * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Match, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListSessionEntityTypesResponse to JSON. + * Converts this Match to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetSessionEntityTypeRequest. */ - interface IGetSessionEntityTypeRequest { + namespace Match { - /** GetSessionEntityTypeRequest name */ - name?: (string|null); + /** MatchType enum. */ + enum MatchType { + MATCH_TYPE_UNSPECIFIED = 0, + INTENT = 1, + DIRECT_INTENT = 2, + PARAMETER_FILLING = 3, + NO_MATCH = 4, + NO_INPUT = 5, + EVENT = 6 + } } - /** Represents a GetSessionEntityTypeRequest. */ - class GetSessionEntityTypeRequest implements IGetSessionEntityTypeRequest { + /** Properties of a MatchIntentRequest. */ + interface IMatchIntentRequest { + + /** MatchIntentRequest session */ + session?: (string|null); + + /** MatchIntentRequest queryParams */ + queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); + + /** MatchIntentRequest queryInput */ + queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); + } + + /** Represents a MatchIntentRequest. */ + class MatchIntentRequest implements IMatchIntentRequest { /** - * Constructs a new GetSessionEntityTypeRequest. + * Constructs a new MatchIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IMatchIntentRequest); - /** GetSessionEntityTypeRequest name. */ - public name: string; + /** MatchIntentRequest session. */ + public session: string; + + /** MatchIntentRequest queryParams. */ + public queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); + + /** MatchIntentRequest queryInput. */ + public queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); /** - * Creates a new GetSessionEntityTypeRequest instance using the specified properties. + * Creates a new MatchIntentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetSessionEntityTypeRequest instance + * @returns MatchIntentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IMatchIntentRequest): google.cloud.dialogflow.cx.v3.MatchIntentRequest; /** - * Encodes the specified GetSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest.verify|verify} messages. - * @param message GetSessionEntityTypeRequest message or plain object to encode + * Encodes the specified MatchIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentRequest.verify|verify} messages. + * @param message MatchIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IMatchIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest.verify|verify} messages. - * @param message GetSessionEntityTypeRequest message or plain object to encode + * Encodes the specified MatchIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentRequest.verify|verify} messages. + * @param message MatchIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IMatchIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer. + * Decodes a MatchIntentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetSessionEntityTypeRequest + * @returns MatchIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.MatchIntentRequest; /** - * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a MatchIntentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetSessionEntityTypeRequest + * @returns MatchIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.MatchIntentRequest; /** - * Verifies a GetSessionEntityTypeRequest message. + * Verifies a MatchIntentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MatchIntentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetSessionEntityTypeRequest + * @returns MatchIntentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.MatchIntentRequest; /** - * Creates a plain object from a GetSessionEntityTypeRequest message. Also converts values to other types if specified. - * @param message GetSessionEntityTypeRequest + * Creates a plain object from a MatchIntentRequest message. Also converts values to other types if specified. + * @param message MatchIntentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.MatchIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSessionEntityTypeRequest to JSON. + * Converts this MatchIntentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateSessionEntityTypeRequest. */ - interface ICreateSessionEntityTypeRequest { + /** Properties of a MatchIntentResponse. */ + interface IMatchIntentResponse { - /** CreateSessionEntityTypeRequest parent */ - parent?: (string|null); + /** MatchIntentResponse text */ + text?: (string|null); - /** CreateSessionEntityTypeRequest sessionEntityType */ - sessionEntityType?: (google.cloud.dialogflow.cx.v3.ISessionEntityType|null); + /** MatchIntentResponse triggerIntent */ + triggerIntent?: (string|null); + + /** MatchIntentResponse transcript */ + transcript?: (string|null); + + /** MatchIntentResponse triggerEvent */ + triggerEvent?: (string|null); + + /** MatchIntentResponse matches */ + matches?: (google.cloud.dialogflow.cx.v3.IMatch[]|null); + + /** MatchIntentResponse currentPage */ + currentPage?: (google.cloud.dialogflow.cx.v3.IPage|null); } - /** Represents a CreateSessionEntityTypeRequest. */ - class CreateSessionEntityTypeRequest implements ICreateSessionEntityTypeRequest { + /** Represents a MatchIntentResponse. */ + class MatchIntentResponse implements IMatchIntentResponse { /** - * Constructs a new CreateSessionEntityTypeRequest. + * Constructs a new MatchIntentResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IMatchIntentResponse); - /** CreateSessionEntityTypeRequest parent. */ - public parent: string; + /** MatchIntentResponse text. */ + public text: string; - /** CreateSessionEntityTypeRequest sessionEntityType. */ - public sessionEntityType?: (google.cloud.dialogflow.cx.v3.ISessionEntityType|null); + /** MatchIntentResponse triggerIntent. */ + public triggerIntent: string; + + /** MatchIntentResponse transcript. */ + public transcript: string; + + /** MatchIntentResponse triggerEvent. */ + public triggerEvent: string; + + /** MatchIntentResponse matches. */ + public matches: google.cloud.dialogflow.cx.v3.IMatch[]; + + /** MatchIntentResponse currentPage. */ + public currentPage?: (google.cloud.dialogflow.cx.v3.IPage|null); + + /** MatchIntentResponse query. */ + public query?: ("text"|"triggerIntent"|"transcript"|"triggerEvent"); /** - * Creates a new CreateSessionEntityTypeRequest instance using the specified properties. + * Creates a new MatchIntentResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateSessionEntityTypeRequest instance + * @returns MatchIntentResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IMatchIntentResponse): google.cloud.dialogflow.cx.v3.MatchIntentResponse; /** - * Encodes the specified CreateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest.verify|verify} messages. - * @param message CreateSessionEntityTypeRequest message or plain object to encode + * Encodes the specified MatchIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentResponse.verify|verify} messages. + * @param message MatchIntentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IMatchIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest.verify|verify} messages. - * @param message CreateSessionEntityTypeRequest message or plain object to encode + * Encodes the specified MatchIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentResponse.verify|verify} messages. + * @param message MatchIntentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IMatchIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer. + * Decodes a MatchIntentResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateSessionEntityTypeRequest + * @returns MatchIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.MatchIntentResponse; /** - * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a MatchIntentResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateSessionEntityTypeRequest + * @returns MatchIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.MatchIntentResponse; /** - * Verifies a CreateSessionEntityTypeRequest message. + * Verifies a MatchIntentResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MatchIntentResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateSessionEntityTypeRequest + * @returns MatchIntentResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.MatchIntentResponse; /** - * Creates a plain object from a CreateSessionEntityTypeRequest message. Also converts values to other types if specified. - * @param message CreateSessionEntityTypeRequest + * Creates a plain object from a MatchIntentResponse message. Also converts values to other types if specified. + * @param message MatchIntentResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.MatchIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateSessionEntityTypeRequest to JSON. + * Converts this MatchIntentResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateSessionEntityTypeRequest. */ - interface IUpdateSessionEntityTypeRequest { + /** Properties of a FulfillIntentRequest. */ + interface IFulfillIntentRequest { - /** UpdateSessionEntityTypeRequest sessionEntityType */ - sessionEntityType?: (google.cloud.dialogflow.cx.v3.ISessionEntityType|null); + /** FulfillIntentRequest matchIntentRequest */ + matchIntentRequest?: (google.cloud.dialogflow.cx.v3.IMatchIntentRequest|null); - /** UpdateSessionEntityTypeRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** FulfillIntentRequest match */ + match?: (google.cloud.dialogflow.cx.v3.IMatch|null); + + /** FulfillIntentRequest outputAudioConfig */ + outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); } - /** Represents an UpdateSessionEntityTypeRequest. */ - class UpdateSessionEntityTypeRequest implements IUpdateSessionEntityTypeRequest { + /** Represents a FulfillIntentRequest. */ + class FulfillIntentRequest implements IFulfillIntentRequest { /** - * Constructs a new UpdateSessionEntityTypeRequest. + * Constructs a new FulfillIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest); - /** UpdateSessionEntityTypeRequest sessionEntityType. */ - public sessionEntityType?: (google.cloud.dialogflow.cx.v3.ISessionEntityType|null); + /** FulfillIntentRequest matchIntentRequest. */ + public matchIntentRequest?: (google.cloud.dialogflow.cx.v3.IMatchIntentRequest|null); - /** UpdateSessionEntityTypeRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** FulfillIntentRequest match. */ + public match?: (google.cloud.dialogflow.cx.v3.IMatch|null); - /** - * Creates a new UpdateSessionEntityTypeRequest instance using the specified properties. + /** FulfillIntentRequest outputAudioConfig. */ + public outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); + + /** + * Creates a new FulfillIntentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateSessionEntityTypeRequest instance + * @returns FulfillIntentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest): google.cloud.dialogflow.cx.v3.FulfillIntentRequest; /** - * Encodes the specified UpdateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest.verify|verify} messages. - * @param message UpdateSessionEntityTypeRequest message or plain object to encode + * Encodes the specified FulfillIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentRequest.verify|verify} messages. + * @param message FulfillIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest.verify|verify} messages. - * @param message UpdateSessionEntityTypeRequest message or plain object to encode + * Encodes the specified FulfillIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentRequest.verify|verify} messages. + * @param message FulfillIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateSessionEntityTypeRequest message from the specified reader or buffer. + * Decodes a FulfillIntentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateSessionEntityTypeRequest + * @returns FulfillIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.FulfillIntentRequest; /** - * Decodes an UpdateSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a FulfillIntentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateSessionEntityTypeRequest + * @returns FulfillIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.FulfillIntentRequest; /** - * Verifies an UpdateSessionEntityTypeRequest message. + * Verifies a FulfillIntentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FulfillIntentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateSessionEntityTypeRequest + * @returns FulfillIntentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.FulfillIntentRequest; /** - * Creates a plain object from an UpdateSessionEntityTypeRequest message. Also converts values to other types if specified. - * @param message UpdateSessionEntityTypeRequest + * Creates a plain object from a FulfillIntentRequest message. Also converts values to other types if specified. + * @param message FulfillIntentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.FulfillIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateSessionEntityTypeRequest to JSON. + * Converts this FulfillIntentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteSessionEntityTypeRequest. */ - interface IDeleteSessionEntityTypeRequest { + /** Properties of a FulfillIntentResponse. */ + interface IFulfillIntentResponse { - /** DeleteSessionEntityTypeRequest name */ - name?: (string|null); + /** FulfillIntentResponse responseId */ + responseId?: (string|null); + + /** FulfillIntentResponse queryResult */ + queryResult?: (google.cloud.dialogflow.cx.v3.IQueryResult|null); + + /** FulfillIntentResponse outputAudio */ + outputAudio?: (Uint8Array|string|null); + + /** FulfillIntentResponse outputAudioConfig */ + outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); } - /** Represents a DeleteSessionEntityTypeRequest. */ - class DeleteSessionEntityTypeRequest implements IDeleteSessionEntityTypeRequest { + /** Represents a FulfillIntentResponse. */ + class FulfillIntentResponse implements IFulfillIntentResponse { /** - * Constructs a new DeleteSessionEntityTypeRequest. + * Constructs a new FulfillIntentResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IFulfillIntentResponse); - /** DeleteSessionEntityTypeRequest name. */ - public name: string; + /** FulfillIntentResponse responseId. */ + public responseId: string; + + /** FulfillIntentResponse queryResult. */ + public queryResult?: (google.cloud.dialogflow.cx.v3.IQueryResult|null); + + /** FulfillIntentResponse outputAudio. */ + public outputAudio: (Uint8Array|string); + + /** FulfillIntentResponse outputAudioConfig. */ + public outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); /** - * Creates a new DeleteSessionEntityTypeRequest instance using the specified properties. + * Creates a new FulfillIntentResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteSessionEntityTypeRequest instance + * @returns FulfillIntentResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IFulfillIntentResponse): google.cloud.dialogflow.cx.v3.FulfillIntentResponse; /** - * Encodes the specified DeleteSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest.verify|verify} messages. - * @param message DeleteSessionEntityTypeRequest message or plain object to encode + * Encodes the specified FulfillIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentResponse.verify|verify} messages. + * @param message FulfillIntentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IFulfillIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest.verify|verify} messages. - * @param message DeleteSessionEntityTypeRequest message or plain object to encode + * Encodes the specified FulfillIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentResponse.verify|verify} messages. + * @param message FulfillIntentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IFulfillIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer. + * Decodes a FulfillIntentResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteSessionEntityTypeRequest + * @returns FulfillIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.FulfillIntentResponse; /** - * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a FulfillIntentResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteSessionEntityTypeRequest + * @returns FulfillIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.FulfillIntentResponse; /** - * Verifies a DeleteSessionEntityTypeRequest message. + * Verifies a FulfillIntentResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FulfillIntentResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteSessionEntityTypeRequest + * @returns FulfillIntentResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.FulfillIntentResponse; /** - * Creates a plain object from a DeleteSessionEntityTypeRequest message. Also converts values to other types if specified. - * @param message DeleteSessionEntityTypeRequest + * Creates a plain object from a FulfillIntentResponse message. Also converts values to other types if specified. + * @param message FulfillIntentResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.FulfillIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteSessionEntityTypeRequest to JSON. + * Converts this FulfillIntentResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a TestCases */ - class TestCases extends $protobuf.rpc.Service { + /** Properties of a SentimentAnalysisResult. */ + interface ISentimentAnalysisResult { - /** - * Constructs a new TestCases service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** SentimentAnalysisResult score */ + score?: (number|null); - /** - * Creates new TestCases service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): TestCases; + /** SentimentAnalysisResult magnitude */ + magnitude?: (number|null); + } - /** - * Calls ListTestCases. - * @param request ListTestCasesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListTestCasesResponse - */ - public listTestCases(request: google.cloud.dialogflow.cx.v3.IListTestCasesRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.ListTestCasesCallback): void; + /** Represents a SentimentAnalysisResult. */ + class SentimentAnalysisResult implements ISentimentAnalysisResult { /** - * Calls ListTestCases. - * @param request ListTestCasesRequest message or plain object - * @returns Promise + * Constructs a new SentimentAnalysisResult. + * @param [properties] Properties to set */ - public listTestCases(request: google.cloud.dialogflow.cx.v3.IListTestCasesRequest): Promise; + constructor(properties?: google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult); - /** - * Calls BatchDeleteTestCases. - * @param request BatchDeleteTestCasesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public batchDeleteTestCases(request: google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.BatchDeleteTestCasesCallback): void; + /** SentimentAnalysisResult score. */ + public score: number; - /** - * Calls BatchDeleteTestCases. - * @param request BatchDeleteTestCasesRequest message or plain object - * @returns Promise - */ - public batchDeleteTestCases(request: google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest): Promise; + /** SentimentAnalysisResult magnitude. */ + public magnitude: number; /** - * Calls GetTestCase. - * @param request GetTestCaseRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TestCase + * Creates a new SentimentAnalysisResult instance using the specified properties. + * @param [properties] Properties to set + * @returns SentimentAnalysisResult instance */ - public getTestCase(request: google.cloud.dialogflow.cx.v3.IGetTestCaseRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.GetTestCaseCallback): void; + public static create(properties?: google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult): google.cloud.dialogflow.cx.v3.SentimentAnalysisResult; /** - * Calls GetTestCase. - * @param request GetTestCaseRequest message or plain object - * @returns Promise + * Encodes the specified SentimentAnalysisResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.verify|verify} messages. + * @param message SentimentAnalysisResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getTestCase(request: google.cloud.dialogflow.cx.v3.IGetTestCaseRequest): Promise; + public static encode(message: google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateTestCase. - * @param request CreateTestCaseRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TestCase + * Encodes the specified SentimentAnalysisResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.verify|verify} messages. + * @param message SentimentAnalysisResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public createTestCase(request: google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.CreateTestCaseCallback): void; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateTestCase. - * @param request CreateTestCaseRequest message or plain object - * @returns Promise + * Decodes a SentimentAnalysisResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SentimentAnalysisResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public createTestCase(request: google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.SentimentAnalysisResult; /** - * Calls UpdateTestCase. - * @param request UpdateTestCaseRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TestCase + * Decodes a SentimentAnalysisResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SentimentAnalysisResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public updateTestCase(request: google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.UpdateTestCaseCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.SentimentAnalysisResult; /** - * Calls UpdateTestCase. - * @param request UpdateTestCaseRequest message or plain object - * @returns Promise + * Verifies a SentimentAnalysisResult message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public updateTestCase(request: google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls RunTestCase. - * @param request RunTestCaseRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a SentimentAnalysisResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SentimentAnalysisResult */ - public runTestCase(request: google.cloud.dialogflow.cx.v3.IRunTestCaseRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.RunTestCaseCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SentimentAnalysisResult; /** - * Calls RunTestCase. - * @param request RunTestCaseRequest message or plain object - * @returns Promise + * Creates a plain object from a SentimentAnalysisResult message. Also converts values to other types if specified. + * @param message SentimentAnalysisResult + * @param [options] Conversion options + * @returns Plain object */ - public runTestCase(request: google.cloud.dialogflow.cx.v3.IRunTestCaseRequest): Promise; + public static toObject(message: google.cloud.dialogflow.cx.v3.SentimentAnalysisResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls BatchRunTestCases. - * @param request BatchRunTestCasesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Converts this SentimentAnalysisResult to JSON. + * @returns JSON object */ - public batchRunTestCases(request: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.BatchRunTestCasesCallback): void; + public toJSON(): { [k: string]: any }; + } - /** - * Calls BatchRunTestCases. - * @param request BatchRunTestCasesRequest message or plain object - * @returns Promise - */ - public batchRunTestCases(request: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest): Promise; + /** Represents a SessionEntityTypes */ + class SessionEntityTypes extends $protobuf.rpc.Service { /** - * Calls CalculateCoverage. - * @param request CalculateCoverageRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CalculateCoverageResponse + * Constructs a new SessionEntityTypes service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited */ - public calculateCoverage(request: google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.CalculateCoverageCallback): void; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Calls CalculateCoverage. - * @param request CalculateCoverageRequest message or plain object - * @returns Promise + * Creates new SessionEntityTypes service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. */ - public calculateCoverage(request: google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest): Promise; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SessionEntityTypes; /** - * Calls ImportTestCases. - * @param request ImportTestCasesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Calls ListSessionEntityTypes. + * @param request ListSessionEntityTypesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListSessionEntityTypesResponse */ - public importTestCases(request: google.cloud.dialogflow.cx.v3.IImportTestCasesRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.ImportTestCasesCallback): void; + public listSessionEntityTypes(request: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypesCallback): void; /** - * Calls ImportTestCases. - * @param request ImportTestCasesRequest message or plain object + * Calls ListSessionEntityTypes. + * @param request ListSessionEntityTypesRequest message or plain object * @returns Promise */ - public importTestCases(request: google.cloud.dialogflow.cx.v3.IImportTestCasesRequest): Promise; + public listSessionEntityTypes(request: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest): Promise; /** - * Calls ExportTestCases. - * @param request ExportTestCasesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Calls GetSessionEntityType. + * @param request GetSessionEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SessionEntityType */ - public exportTestCases(request: google.cloud.dialogflow.cx.v3.IExportTestCasesRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.ExportTestCasesCallback): void; + public getSessionEntityType(request: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.GetSessionEntityTypeCallback): void; /** - * Calls ExportTestCases. - * @param request ExportTestCasesRequest message or plain object + * Calls GetSessionEntityType. + * @param request GetSessionEntityTypeRequest message or plain object * @returns Promise */ - public exportTestCases(request: google.cloud.dialogflow.cx.v3.IExportTestCasesRequest): Promise; + public getSessionEntityType(request: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest): Promise; /** - * Calls ListTestCaseResults. - * @param request ListTestCaseResultsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListTestCaseResultsResponse + * Calls CreateSessionEntityType. + * @param request CreateSessionEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SessionEntityType */ - public listTestCaseResults(request: google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.ListTestCaseResultsCallback): void; + public createSessionEntityType(request: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.CreateSessionEntityTypeCallback): void; /** - * Calls ListTestCaseResults. - * @param request ListTestCaseResultsRequest message or plain object + * Calls CreateSessionEntityType. + * @param request CreateSessionEntityTypeRequest message or plain object * @returns Promise */ - public listTestCaseResults(request: google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest): Promise; - } - - namespace TestCases { - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#listTestCases}. - * @param error Error, if any - * @param [response] ListTestCasesResponse - */ - type ListTestCasesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListTestCasesResponse) => void; + public createSessionEntityType(request: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest): Promise; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#batchDeleteTestCases}. - * @param error Error, if any - * @param [response] Empty + * Calls UpdateSessionEntityType. + * @param request UpdateSessionEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SessionEntityType */ - type BatchDeleteTestCasesCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public updateSessionEntityType(request: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.UpdateSessionEntityTypeCallback): void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#getTestCase}. - * @param error Error, if any - * @param [response] TestCase + * Calls UpdateSessionEntityType. + * @param request UpdateSessionEntityTypeRequest message or plain object + * @returns Promise */ - type GetTestCaseCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.TestCase) => void; + public updateSessionEntityType(request: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest): Promise; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#createTestCase}. - * @param error Error, if any - * @param [response] TestCase + * Calls DeleteSessionEntityType. + * @param request DeleteSessionEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - type CreateTestCaseCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.TestCase) => void; + public deleteSessionEntityType(request: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.DeleteSessionEntityTypeCallback): void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#updateTestCase}. - * @param error Error, if any - * @param [response] TestCase + * Calls DeleteSessionEntityType. + * @param request DeleteSessionEntityTypeRequest message or plain object + * @returns Promise */ - type UpdateTestCaseCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.TestCase) => void; + public deleteSessionEntityType(request: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest): Promise; + } - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#runTestCase}. - * @param error Error, if any - * @param [response] Operation - */ - type RunTestCaseCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + namespace SessionEntityTypes { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#batchRunTestCases}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#listSessionEntityTypes}. * @param error Error, if any - * @param [response] Operation + * @param [response] ListSessionEntityTypesResponse */ - type BatchRunTestCasesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + type ListSessionEntityTypesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#calculateCoverage}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#getSessionEntityType}. * @param error Error, if any - * @param [response] CalculateCoverageResponse + * @param [response] SessionEntityType */ - type CalculateCoverageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.CalculateCoverageResponse) => void; + type GetSessionEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SessionEntityType) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#importTestCases}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#createSessionEntityType}. * @param error Error, if any - * @param [response] Operation + * @param [response] SessionEntityType */ - type ImportTestCasesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + type CreateSessionEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SessionEntityType) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#exportTestCases}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#updateSessionEntityType}. * @param error Error, if any - * @param [response] Operation + * @param [response] SessionEntityType */ - type ExportTestCasesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + type UpdateSessionEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SessionEntityType) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#listTestCaseResults}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#deleteSessionEntityType}. * @param error Error, if any - * @param [response] ListTestCaseResultsResponse + * @param [response] Empty */ - type ListTestCaseResultsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse) => void; + type DeleteSessionEntityTypeCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; } - /** Properties of a TestCase. */ - interface ITestCase { + /** Properties of a SessionEntityType. */ + interface ISessionEntityType { - /** TestCase name */ + /** SessionEntityType name */ name?: (string|null); - /** TestCase tags */ - tags?: (string[]|null); - - /** TestCase displayName */ - displayName?: (string|null); - - /** TestCase notes */ - notes?: (string|null); - - /** TestCase testConfig */ - testConfig?: (google.cloud.dialogflow.cx.v3.ITestConfig|null); - - /** TestCase testCaseConversationTurns */ - testCaseConversationTurns?: (google.cloud.dialogflow.cx.v3.IConversationTurn[]|null); - - /** TestCase creationTime */ - creationTime?: (google.protobuf.ITimestamp|null); + /** SessionEntityType entityOverrideMode */ + entityOverrideMode?: (google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode|keyof typeof google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode|null); - /** TestCase lastTestResult */ - lastTestResult?: (google.cloud.dialogflow.cx.v3.ITestCaseResult|null); + /** SessionEntityType entities */ + entities?: (google.cloud.dialogflow.cx.v3.EntityType.IEntity[]|null); } - /** Represents a TestCase. */ - class TestCase implements ITestCase { + /** Represents a SessionEntityType. */ + class SessionEntityType implements ISessionEntityType { /** - * Constructs a new TestCase. + * Constructs a new SessionEntityType. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ITestCase); + constructor(properties?: google.cloud.dialogflow.cx.v3.ISessionEntityType); - /** TestCase name. */ + /** SessionEntityType name. */ public name: string; - /** TestCase tags. */ - public tags: string[]; - - /** TestCase displayName. */ - public displayName: string; - - /** TestCase notes. */ - public notes: string; - - /** TestCase testConfig. */ - public testConfig?: (google.cloud.dialogflow.cx.v3.ITestConfig|null); - - /** TestCase testCaseConversationTurns. */ - public testCaseConversationTurns: google.cloud.dialogflow.cx.v3.IConversationTurn[]; - - /** TestCase creationTime. */ - public creationTime?: (google.protobuf.ITimestamp|null); + /** SessionEntityType entityOverrideMode. */ + public entityOverrideMode: (google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode|keyof typeof google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode); - /** TestCase lastTestResult. */ - public lastTestResult?: (google.cloud.dialogflow.cx.v3.ITestCaseResult|null); + /** SessionEntityType entities. */ + public entities: google.cloud.dialogflow.cx.v3.EntityType.IEntity[]; /** - * Creates a new TestCase instance using the specified properties. + * Creates a new SessionEntityType instance using the specified properties. * @param [properties] Properties to set - * @returns TestCase instance + * @returns SessionEntityType instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ITestCase): google.cloud.dialogflow.cx.v3.TestCase; + public static create(properties?: google.cloud.dialogflow.cx.v3.ISessionEntityType): google.cloud.dialogflow.cx.v3.SessionEntityType; /** - * Encodes the specified TestCase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCase.verify|verify} messages. - * @param message TestCase message or plain object to encode + * Encodes the specified SessionEntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionEntityType.verify|verify} messages. + * @param message SessionEntityType message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ITestCase, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ISessionEntityType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TestCase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCase.verify|verify} messages. - * @param message TestCase message or plain object to encode + * Encodes the specified SessionEntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionEntityType.verify|verify} messages. + * @param message SessionEntityType message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITestCase, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ISessionEntityType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TestCase message from the specified reader or buffer. + * Decodes a SessionEntityType message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TestCase + * @returns SessionEntityType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TestCase; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.SessionEntityType; /** - * Decodes a TestCase message from the specified reader or buffer, length delimited. + * Decodes a SessionEntityType message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TestCase + * @returns SessionEntityType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TestCase; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.SessionEntityType; /** - * Verifies a TestCase message. + * Verifies a SessionEntityType message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TestCase message from a plain object. Also converts values to their respective internal types. + * Creates a SessionEntityType message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TestCase + * @returns SessionEntityType */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TestCase; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SessionEntityType; /** - * Creates a plain object from a TestCase message. Also converts values to other types if specified. - * @param message TestCase + * Creates a plain object from a SessionEntityType message. Also converts values to other types if specified. + * @param message SessionEntityType * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.TestCase, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.SessionEntityType, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TestCase to JSON. + * Converts this SessionEntityType to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TestCaseResult. */ - interface ITestCaseResult { + namespace SessionEntityType { - /** TestCaseResult name */ - name?: (string|null); + /** EntityOverrideMode enum. */ + enum EntityOverrideMode { + ENTITY_OVERRIDE_MODE_UNSPECIFIED = 0, + ENTITY_OVERRIDE_MODE_OVERRIDE = 1, + ENTITY_OVERRIDE_MODE_SUPPLEMENT = 2 + } + } - /** TestCaseResult environment */ - environment?: (string|null); + /** Properties of a ListSessionEntityTypesRequest. */ + interface IListSessionEntityTypesRequest { - /** TestCaseResult conversationTurns */ - conversationTurns?: (google.cloud.dialogflow.cx.v3.IConversationTurn[]|null); + /** ListSessionEntityTypesRequest parent */ + parent?: (string|null); - /** TestCaseResult testResult */ - testResult?: (google.cloud.dialogflow.cx.v3.TestResult|keyof typeof google.cloud.dialogflow.cx.v3.TestResult|null); + /** ListSessionEntityTypesRequest pageSize */ + pageSize?: (number|null); - /** TestCaseResult testTime */ - testTime?: (google.protobuf.ITimestamp|null); + /** ListSessionEntityTypesRequest pageToken */ + pageToken?: (string|null); } - /** Represents a TestCaseResult. */ - class TestCaseResult implements ITestCaseResult { + /** Represents a ListSessionEntityTypesRequest. */ + class ListSessionEntityTypesRequest implements IListSessionEntityTypesRequest { /** - * Constructs a new TestCaseResult. + * Constructs a new ListSessionEntityTypesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ITestCaseResult); - - /** TestCaseResult name. */ - public name: string; - - /** TestCaseResult environment. */ - public environment: string; + constructor(properties?: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest); - /** TestCaseResult conversationTurns. */ - public conversationTurns: google.cloud.dialogflow.cx.v3.IConversationTurn[]; + /** ListSessionEntityTypesRequest parent. */ + public parent: string; - /** TestCaseResult testResult. */ - public testResult: (google.cloud.dialogflow.cx.v3.TestResult|keyof typeof google.cloud.dialogflow.cx.v3.TestResult); + /** ListSessionEntityTypesRequest pageSize. */ + public pageSize: number; - /** TestCaseResult testTime. */ - public testTime?: (google.protobuf.ITimestamp|null); + /** ListSessionEntityTypesRequest pageToken. */ + public pageToken: string; /** - * Creates a new TestCaseResult instance using the specified properties. + * Creates a new ListSessionEntityTypesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TestCaseResult instance + * @returns ListSessionEntityTypesRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ITestCaseResult): google.cloud.dialogflow.cx.v3.TestCaseResult; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest; /** - * Encodes the specified TestCaseResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCaseResult.verify|verify} messages. - * @param message TestCaseResult message or plain object to encode + * Encodes the specified ListSessionEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest.verify|verify} messages. + * @param message ListSessionEntityTypesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ITestCaseResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TestCaseResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCaseResult.verify|verify} messages. - * @param message TestCaseResult message or plain object to encode + * Encodes the specified ListSessionEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest.verify|verify} messages. + * @param message ListSessionEntityTypesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITestCaseResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TestCaseResult message from the specified reader or buffer. + * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TestCaseResult + * @returns ListSessionEntityTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TestCaseResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest; /** - * Decodes a TestCaseResult message from the specified reader or buffer, length delimited. + * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TestCaseResult + * @returns ListSessionEntityTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TestCaseResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest; /** - * Verifies a TestCaseResult message. + * Verifies a ListSessionEntityTypesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TestCaseResult message from a plain object. Also converts values to their respective internal types. + * Creates a ListSessionEntityTypesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TestCaseResult + * @returns ListSessionEntityTypesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TestCaseResult; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest; /** - * Creates a plain object from a TestCaseResult message. Also converts values to other types if specified. - * @param message TestCaseResult + * Creates a plain object from a ListSessionEntityTypesRequest message. Also converts values to other types if specified. + * @param message ListSessionEntityTypesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.TestCaseResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TestCaseResult to JSON. + * Converts this ListSessionEntityTypesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TestConfig. */ - interface ITestConfig { + /** Properties of a ListSessionEntityTypesResponse. */ + interface IListSessionEntityTypesResponse { - /** TestConfig trackingParameters */ - trackingParameters?: (string[]|null); + /** ListSessionEntityTypesResponse sessionEntityTypes */ + sessionEntityTypes?: (google.cloud.dialogflow.cx.v3.ISessionEntityType[]|null); - /** TestConfig flow */ - flow?: (string|null); + /** ListSessionEntityTypesResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a TestConfig. */ - class TestConfig implements ITestConfig { + /** Represents a ListSessionEntityTypesResponse. */ + class ListSessionEntityTypesResponse implements IListSessionEntityTypesResponse { /** - * Constructs a new TestConfig. + * Constructs a new ListSessionEntityTypesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ITestConfig); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse); - /** TestConfig trackingParameters. */ - public trackingParameters: string[]; + /** ListSessionEntityTypesResponse sessionEntityTypes. */ + public sessionEntityTypes: google.cloud.dialogflow.cx.v3.ISessionEntityType[]; - /** TestConfig flow. */ - public flow: string; + /** ListSessionEntityTypesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new TestConfig instance using the specified properties. + * Creates a new ListSessionEntityTypesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns TestConfig instance + * @returns ListSessionEntityTypesResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ITestConfig): google.cloud.dialogflow.cx.v3.TestConfig; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse; /** - * Encodes the specified TestConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestConfig.verify|verify} messages. - * @param message TestConfig message or plain object to encode + * Encodes the specified ListSessionEntityTypesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse.verify|verify} messages. + * @param message ListSessionEntityTypesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ITestConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TestConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestConfig.verify|verify} messages. - * @param message TestConfig message or plain object to encode + * Encodes the specified ListSessionEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse.verify|verify} messages. + * @param message ListSessionEntityTypesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITestConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TestConfig message from the specified reader or buffer. + * Decodes a ListSessionEntityTypesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TestConfig + * @returns ListSessionEntityTypesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TestConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse; /** - * Decodes a TestConfig message from the specified reader or buffer, length delimited. + * Decodes a ListSessionEntityTypesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TestConfig + * @returns ListSessionEntityTypesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TestConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse; /** - * Verifies a TestConfig message. + * Verifies a ListSessionEntityTypesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TestConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ListSessionEntityTypesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TestConfig + * @returns ListSessionEntityTypesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TestConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse; /** - * Creates a plain object from a TestConfig message. Also converts values to other types if specified. - * @param message TestConfig + * Creates a plain object from a ListSessionEntityTypesResponse message. Also converts values to other types if specified. + * @param message ListSessionEntityTypesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.TestConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TestConfig to JSON. + * Converts this ListSessionEntityTypesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ConversationTurn. */ - interface IConversationTurn { - - /** ConversationTurn userInput */ - userInput?: (google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput|null); + /** Properties of a GetSessionEntityTypeRequest. */ + interface IGetSessionEntityTypeRequest { - /** ConversationTurn virtualAgentOutput */ - virtualAgentOutput?: (google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput|null); + /** GetSessionEntityTypeRequest name */ + name?: (string|null); } - /** Represents a ConversationTurn. */ - class ConversationTurn implements IConversationTurn { + /** Represents a GetSessionEntityTypeRequest. */ + class GetSessionEntityTypeRequest implements IGetSessionEntityTypeRequest { /** - * Constructs a new ConversationTurn. + * Constructs a new GetSessionEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IConversationTurn); - - /** ConversationTurn userInput. */ - public userInput?: (google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput|null); + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest); - /** ConversationTurn virtualAgentOutput. */ - public virtualAgentOutput?: (google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput|null); + /** GetSessionEntityTypeRequest name. */ + public name: string; /** - * Creates a new ConversationTurn instance using the specified properties. + * Creates a new GetSessionEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ConversationTurn instance + * @returns GetSessionEntityTypeRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IConversationTurn): google.cloud.dialogflow.cx.v3.ConversationTurn; + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest; /** - * Encodes the specified ConversationTurn message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.verify|verify} messages. - * @param message ConversationTurn message or plain object to encode + * Encodes the specified GetSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest.verify|verify} messages. + * @param message GetSessionEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IConversationTurn, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ConversationTurn message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.verify|verify} messages. - * @param message ConversationTurn message or plain object to encode + * Encodes the specified GetSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest.verify|verify} messages. + * @param message GetSessionEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IConversationTurn, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ConversationTurn message from the specified reader or buffer. + * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ConversationTurn + * @returns GetSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ConversationTurn; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest; /** - * Decodes a ConversationTurn message from the specified reader or buffer, length delimited. + * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ConversationTurn + * @returns GetSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ConversationTurn; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest; /** - * Verifies a ConversationTurn message. + * Verifies a GetSessionEntityTypeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ConversationTurn message from a plain object. Also converts values to their respective internal types. + * Creates a GetSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ConversationTurn + * @returns GetSessionEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ConversationTurn; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest; /** - * Creates a plain object from a ConversationTurn message. Also converts values to other types if specified. - * @param message ConversationTurn + * Creates a plain object from a GetSessionEntityTypeRequest message. Also converts values to other types if specified. + * @param message GetSessionEntityTypeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ConversationTurn, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ConversationTurn to JSON. + * Converts this GetSessionEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace ConversationTurn { - - /** Properties of a UserInput. */ - interface IUserInput { + /** Properties of a CreateSessionEntityTypeRequest. */ + interface ICreateSessionEntityTypeRequest { - /** UserInput input */ - input?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); + /** CreateSessionEntityTypeRequest parent */ + parent?: (string|null); - /** UserInput injectedParameters */ - injectedParameters?: (google.protobuf.IStruct|null); + /** CreateSessionEntityTypeRequest sessionEntityType */ + sessionEntityType?: (google.cloud.dialogflow.cx.v3.ISessionEntityType|null); + } - /** UserInput isWebhookEnabled */ - isWebhookEnabled?: (boolean|null); - } + /** Represents a CreateSessionEntityTypeRequest. */ + class CreateSessionEntityTypeRequest implements ICreateSessionEntityTypeRequest { - /** Represents a UserInput. */ - class UserInput implements IUserInput { + /** + * Constructs a new CreateSessionEntityTypeRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest); - /** - * Constructs a new UserInput. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput); + /** CreateSessionEntityTypeRequest parent. */ + public parent: string; - /** UserInput input. */ - public input?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); + /** CreateSessionEntityTypeRequest sessionEntityType. */ + public sessionEntityType?: (google.cloud.dialogflow.cx.v3.ISessionEntityType|null); - /** UserInput injectedParameters. */ - public injectedParameters?: (google.protobuf.IStruct|null); + /** + * Creates a new CreateSessionEntityTypeRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateSessionEntityTypeRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest; - /** UserInput isWebhookEnabled. */ - public isWebhookEnabled: boolean; + /** + * Encodes the specified CreateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest.verify|verify} messages. + * @param message CreateSessionEntityTypeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new UserInput instance using the specified properties. - * @param [properties] Properties to set - * @returns UserInput instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput): google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput; + /** + * Encodes the specified CreateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest.verify|verify} messages. + * @param message CreateSessionEntityTypeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UserInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.verify|verify} messages. - * @param message UserInput message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateSessionEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest; - /** - * Encodes the specified UserInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.verify|verify} messages. - * @param message UserInput message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateSessionEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest; - /** - * Decodes a UserInput message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UserInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput; + /** + * Verifies a CreateSessionEntityTypeRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes a UserInput message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput; + /** + * Creates a CreateSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateSessionEntityTypeRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest; - /** - * Verifies a UserInput message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a plain object from a CreateSessionEntityTypeRequest message. Also converts values to other types if specified. + * @param message CreateSessionEntityTypeRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a UserInput message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UserInput - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput; + /** + * Converts this CreateSessionEntityTypeRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Creates a plain object from a UserInput message. Also converts values to other types if specified. - * @param message UserInput - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of an UpdateSessionEntityTypeRequest. */ + interface IUpdateSessionEntityTypeRequest { - /** - * Converts this UserInput to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** UpdateSessionEntityTypeRequest sessionEntityType */ + sessionEntityType?: (google.cloud.dialogflow.cx.v3.ISessionEntityType|null); - /** Properties of a VirtualAgentOutput. */ - interface IVirtualAgentOutput { + /** UpdateSessionEntityTypeRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } - /** VirtualAgentOutput sessionParameters */ - sessionParameters?: (google.protobuf.IStruct|null); + /** Represents an UpdateSessionEntityTypeRequest. */ + class UpdateSessionEntityTypeRequest implements IUpdateSessionEntityTypeRequest { - /** VirtualAgentOutput differences */ - differences?: (google.cloud.dialogflow.cx.v3.ITestRunDifference[]|null); + /** + * Constructs a new UpdateSessionEntityTypeRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest); - /** VirtualAgentOutput diagnosticInfo */ - diagnosticInfo?: (google.protobuf.IStruct|null); + /** UpdateSessionEntityTypeRequest sessionEntityType. */ + public sessionEntityType?: (google.cloud.dialogflow.cx.v3.ISessionEntityType|null); - /** VirtualAgentOutput triggeredIntent */ - triggeredIntent?: (google.cloud.dialogflow.cx.v3.IIntent|null); + /** UpdateSessionEntityTypeRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** VirtualAgentOutput currentPage */ - currentPage?: (google.cloud.dialogflow.cx.v3.IPage|null); + /** + * Creates a new UpdateSessionEntityTypeRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateSessionEntityTypeRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest; - /** VirtualAgentOutput textResponses */ - textResponses?: (google.cloud.dialogflow.cx.v3.ResponseMessage.IText[]|null); + /** + * Encodes the specified UpdateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest.verify|verify} messages. + * @param message UpdateSessionEntityTypeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** VirtualAgentOutput status */ - status?: (google.rpc.IStatus|null); - } + /** + * Encodes the specified UpdateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest.verify|verify} messages. + * @param message UpdateSessionEntityTypeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a VirtualAgentOutput. */ - class VirtualAgentOutput implements IVirtualAgentOutput { + /** + * Decodes an UpdateSessionEntityTypeRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateSessionEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest; - /** - * Constructs a new VirtualAgentOutput. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput); + /** + * Decodes an UpdateSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateSessionEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest; - /** VirtualAgentOutput sessionParameters. */ - public sessionParameters?: (google.protobuf.IStruct|null); + /** + * Verifies an UpdateSessionEntityTypeRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** VirtualAgentOutput differences. */ - public differences: google.cloud.dialogflow.cx.v3.ITestRunDifference[]; + /** + * Creates an UpdateSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateSessionEntityTypeRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest; - /** VirtualAgentOutput diagnosticInfo. */ - public diagnosticInfo?: (google.protobuf.IStruct|null); + /** + * Creates a plain object from an UpdateSessionEntityTypeRequest message. Also converts values to other types if specified. + * @param message UpdateSessionEntityTypeRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** VirtualAgentOutput triggeredIntent. */ - public triggeredIntent?: (google.cloud.dialogflow.cx.v3.IIntent|null); + /** + * Converts this UpdateSessionEntityTypeRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** VirtualAgentOutput currentPage. */ - public currentPage?: (google.cloud.dialogflow.cx.v3.IPage|null); + /** Properties of a DeleteSessionEntityTypeRequest. */ + interface IDeleteSessionEntityTypeRequest { - /** VirtualAgentOutput textResponses. */ - public textResponses: google.cloud.dialogflow.cx.v3.ResponseMessage.IText[]; + /** DeleteSessionEntityTypeRequest name */ + name?: (string|null); + } - /** VirtualAgentOutput status. */ - public status?: (google.rpc.IStatus|null); + /** Represents a DeleteSessionEntityTypeRequest. */ + class DeleteSessionEntityTypeRequest implements IDeleteSessionEntityTypeRequest { - /** - * Creates a new VirtualAgentOutput instance using the specified properties. - * @param [properties] Properties to set - * @returns VirtualAgentOutput instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput): google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput; + /** + * Constructs a new DeleteSessionEntityTypeRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest); - /** - * Encodes the specified VirtualAgentOutput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.verify|verify} messages. - * @param message VirtualAgentOutput message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput, writer?: $protobuf.Writer): $protobuf.Writer; + /** DeleteSessionEntityTypeRequest name. */ + public name: string; - /** - * Encodes the specified VirtualAgentOutput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.verify|verify} messages. - * @param message VirtualAgentOutput message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new DeleteSessionEntityTypeRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteSessionEntityTypeRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest; - /** - * Decodes a VirtualAgentOutput message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VirtualAgentOutput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput; + /** + * Encodes the specified DeleteSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest.verify|verify} messages. + * @param message DeleteSessionEntityTypeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a VirtualAgentOutput message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VirtualAgentOutput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput; + /** + * Encodes the specified DeleteSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest.verify|verify} messages. + * @param message DeleteSessionEntityTypeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a VirtualAgentOutput message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteSessionEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest; - /** - * Creates a VirtualAgentOutput message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VirtualAgentOutput - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput; + /** + * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteSessionEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest; - /** - * Creates a plain object from a VirtualAgentOutput message. Also converts values to other types if specified. - * @param message VirtualAgentOutput - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Verifies a DeleteSessionEntityTypeRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Converts this VirtualAgentOutput to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Creates a DeleteSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteSessionEntityTypeRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest; + + /** + * Creates a plain object from a DeleteSessionEntityTypeRequest message. Also converts values to other types if specified. + * @param message DeleteSessionEntityTypeRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteSessionEntityTypeRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Properties of a TestRunDifference. */ - interface ITestRunDifference { + /** Represents a TransitionRouteGroups */ + class TransitionRouteGroups extends $protobuf.rpc.Service { - /** TestRunDifference type */ - type?: (google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType|keyof typeof google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType|null); + /** + * Constructs a new TransitionRouteGroups service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** TestRunDifference description */ - description?: (string|null); + /** + * Creates new TransitionRouteGroups service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): TransitionRouteGroups; + + /** + * Calls ListTransitionRouteGroups. + * @param request ListTransitionRouteGroupsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListTransitionRouteGroupsResponse + */ + public listTransitionRouteGroups(request: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest, callback: google.cloud.dialogflow.cx.v3.TransitionRouteGroups.ListTransitionRouteGroupsCallback): void; + + /** + * Calls ListTransitionRouteGroups. + * @param request ListTransitionRouteGroupsRequest message or plain object + * @returns Promise + */ + public listTransitionRouteGroups(request: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest): Promise; + + /** + * Calls GetTransitionRouteGroup. + * @param request GetTransitionRouteGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TransitionRouteGroup + */ + public getTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3.TransitionRouteGroups.GetTransitionRouteGroupCallback): void; + + /** + * Calls GetTransitionRouteGroup. + * @param request GetTransitionRouteGroupRequest message or plain object + * @returns Promise + */ + public getTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest): Promise; + + /** + * Calls CreateTransitionRouteGroup. + * @param request CreateTransitionRouteGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TransitionRouteGroup + */ + public createTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroupCallback): void; + + /** + * Calls CreateTransitionRouteGroup. + * @param request CreateTransitionRouteGroupRequest message or plain object + * @returns Promise + */ + public createTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest): Promise; + + /** + * Calls UpdateTransitionRouteGroup. + * @param request UpdateTransitionRouteGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TransitionRouteGroup + */ + public updateTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3.TransitionRouteGroups.UpdateTransitionRouteGroupCallback): void; + + /** + * Calls UpdateTransitionRouteGroup. + * @param request UpdateTransitionRouteGroupRequest message or plain object + * @returns Promise + */ + public updateTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest): Promise; + + /** + * Calls DeleteTransitionRouteGroup. + * @param request DeleteTransitionRouteGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3.TransitionRouteGroups.DeleteTransitionRouteGroupCallback): void; + + /** + * Calls DeleteTransitionRouteGroup. + * @param request DeleteTransitionRouteGroupRequest message or plain object + * @returns Promise + */ + public deleteTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest): Promise; } - /** Represents a TestRunDifference. */ - class TestRunDifference implements ITestRunDifference { + namespace TransitionRouteGroups { /** - * Constructs a new TestRunDifference. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#listTransitionRouteGroups}. + * @param error Error, if any + * @param [response] ListTransitionRouteGroupsResponse + */ + type ListTransitionRouteGroupsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#getTransitionRouteGroup}. + * @param error Error, if any + * @param [response] TransitionRouteGroup + */ + type GetTransitionRouteGroupCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.TransitionRouteGroup) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#createTransitionRouteGroup}. + * @param error Error, if any + * @param [response] TransitionRouteGroup + */ + type CreateTransitionRouteGroupCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.TransitionRouteGroup) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#updateTransitionRouteGroup}. + * @param error Error, if any + * @param [response] TransitionRouteGroup + */ + type UpdateTransitionRouteGroupCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.TransitionRouteGroup) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#deleteTransitionRouteGroup}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteTransitionRouteGroupCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + } + + /** Properties of a TransitionRouteGroup. */ + interface ITransitionRouteGroup { + + /** TransitionRouteGroup name */ + name?: (string|null); + + /** TransitionRouteGroup displayName */ + displayName?: (string|null); + + /** TransitionRouteGroup transitionRoutes */ + transitionRoutes?: (google.cloud.dialogflow.cx.v3.ITransitionRoute[]|null); + } + + /** Represents a TransitionRouteGroup. */ + class TransitionRouteGroup implements ITransitionRouteGroup { + + /** + * Constructs a new TransitionRouteGroup. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ITestRunDifference); + constructor(properties?: google.cloud.dialogflow.cx.v3.ITransitionRouteGroup); - /** TestRunDifference type. */ - public type: (google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType|keyof typeof google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType); + /** TransitionRouteGroup name. */ + public name: string; - /** TestRunDifference description. */ - public description: string; + /** TransitionRouteGroup displayName. */ + public displayName: string; + + /** TransitionRouteGroup transitionRoutes. */ + public transitionRoutes: google.cloud.dialogflow.cx.v3.ITransitionRoute[]; /** - * Creates a new TestRunDifference instance using the specified properties. + * Creates a new TransitionRouteGroup instance using the specified properties. * @param [properties] Properties to set - * @returns TestRunDifference instance + * @returns TransitionRouteGroup instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ITestRunDifference): google.cloud.dialogflow.cx.v3.TestRunDifference; + public static create(properties?: google.cloud.dialogflow.cx.v3.ITransitionRouteGroup): google.cloud.dialogflow.cx.v3.TransitionRouteGroup; /** - * Encodes the specified TestRunDifference message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestRunDifference.verify|verify} messages. - * @param message TestRunDifference message or plain object to encode + * Encodes the specified TransitionRouteGroup message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify|verify} messages. + * @param message TransitionRouteGroup message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ITestRunDifference, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ITransitionRouteGroup, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TestRunDifference message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestRunDifference.verify|verify} messages. - * @param message TestRunDifference message or plain object to encode + * Encodes the specified TransitionRouteGroup message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify|verify} messages. + * @param message TransitionRouteGroup message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITestRunDifference, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITransitionRouteGroup, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TestRunDifference message from the specified reader or buffer. + * Decodes a TransitionRouteGroup message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TestRunDifference + * @returns TransitionRouteGroup * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TestRunDifference; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TransitionRouteGroup; /** - * Decodes a TestRunDifference message from the specified reader or buffer, length delimited. + * Decodes a TransitionRouteGroup message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TestRunDifference + * @returns TransitionRouteGroup * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TestRunDifference; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TransitionRouteGroup; /** - * Verifies a TestRunDifference message. + * Verifies a TransitionRouteGroup message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TestRunDifference message from a plain object. Also converts values to their respective internal types. + * Creates a TransitionRouteGroup message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TestRunDifference + * @returns TransitionRouteGroup */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TestRunDifference; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TransitionRouteGroup; /** - * Creates a plain object from a TestRunDifference message. Also converts values to other types if specified. - * @param message TestRunDifference + * Creates a plain object from a TransitionRouteGroup message. Also converts values to other types if specified. + * @param message TransitionRouteGroup * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.TestRunDifference, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.TransitionRouteGroup, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TestRunDifference to JSON. + * Converts this TransitionRouteGroup to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace TestRunDifference { + /** Properties of a ListTransitionRouteGroupsRequest. */ + interface IListTransitionRouteGroupsRequest { - /** DiffType enum. */ - enum DiffType { - DIFF_TYPE_UNSPECIFIED = 0, - INTENT = 1, - PAGE = 2, - PARAMETERS = 3, - UTTERANCE = 4 - } - } + /** ListTransitionRouteGroupsRequest parent */ + parent?: (string|null); - /** Properties of a TransitionCoverage. */ - interface ITransitionCoverage { + /** ListTransitionRouteGroupsRequest pageSize */ + pageSize?: (number|null); - /** TransitionCoverage transitions */ - transitions?: (google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition[]|null); + /** ListTransitionRouteGroupsRequest pageToken */ + pageToken?: (string|null); - /** TransitionCoverage coverageScore */ - coverageScore?: (number|null); + /** ListTransitionRouteGroupsRequest languageCode */ + languageCode?: (string|null); } - /** Represents a TransitionCoverage. */ - class TransitionCoverage implements ITransitionCoverage { + /** Represents a ListTransitionRouteGroupsRequest. */ + class ListTransitionRouteGroupsRequest implements IListTransitionRouteGroupsRequest { /** - * Constructs a new TransitionCoverage. + * Constructs a new ListTransitionRouteGroupsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ITransitionCoverage); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest); - /** TransitionCoverage transitions. */ - public transitions: google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition[]; + /** ListTransitionRouteGroupsRequest parent. */ + public parent: string; - /** TransitionCoverage coverageScore. */ - public coverageScore: number; + /** ListTransitionRouteGroupsRequest pageSize. */ + public pageSize: number; + + /** ListTransitionRouteGroupsRequest pageToken. */ + public pageToken: string; + + /** ListTransitionRouteGroupsRequest languageCode. */ + public languageCode: string; /** - * Creates a new TransitionCoverage instance using the specified properties. + * Creates a new ListTransitionRouteGroupsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TransitionCoverage instance + * @returns ListTransitionRouteGroupsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ITransitionCoverage): google.cloud.dialogflow.cx.v3.TransitionCoverage; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest; /** - * Encodes the specified TransitionCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.verify|verify} messages. - * @param message TransitionCoverage message or plain object to encode + * Encodes the specified ListTransitionRouteGroupsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest.verify|verify} messages. + * @param message ListTransitionRouteGroupsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ITransitionCoverage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TransitionCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.verify|verify} messages. - * @param message TransitionCoverage message or plain object to encode + * Encodes the specified ListTransitionRouteGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest.verify|verify} messages. + * @param message ListTransitionRouteGroupsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITransitionCoverage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TransitionCoverage message from the specified reader or buffer. + * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TransitionCoverage + * @returns ListTransitionRouteGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TransitionCoverage; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest; /** - * Decodes a TransitionCoverage message from the specified reader or buffer, length delimited. + * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TransitionCoverage + * @returns ListTransitionRouteGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TransitionCoverage; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest; /** - * Verifies a TransitionCoverage message. + * Verifies a ListTransitionRouteGroupsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TransitionCoverage message from a plain object. Also converts values to their respective internal types. + * Creates a ListTransitionRouteGroupsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TransitionCoverage + * @returns ListTransitionRouteGroupsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TransitionCoverage; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest; /** - * Creates a plain object from a TransitionCoverage message. Also converts values to other types if specified. - * @param message TransitionCoverage + * Creates a plain object from a ListTransitionRouteGroupsRequest message. Also converts values to other types if specified. + * @param message ListTransitionRouteGroupsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.TransitionCoverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TransitionCoverage to JSON. + * Converts this ListTransitionRouteGroupsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace TransitionCoverage { - - /** Properties of a TransitionNode. */ - interface ITransitionNode { + /** Properties of a ListTransitionRouteGroupsResponse. */ + interface IListTransitionRouteGroupsResponse { - /** TransitionNode page */ - page?: (google.cloud.dialogflow.cx.v3.IPage|null); + /** ListTransitionRouteGroupsResponse transitionRouteGroups */ + transitionRouteGroups?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup[]|null); - /** TransitionNode flow */ - flow?: (google.cloud.dialogflow.cx.v3.IFlow|null); - } + /** ListTransitionRouteGroupsResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** Represents a TransitionNode. */ - class TransitionNode implements ITransitionNode { + /** Represents a ListTransitionRouteGroupsResponse. */ + class ListTransitionRouteGroupsResponse implements IListTransitionRouteGroupsResponse { - /** - * Constructs a new TransitionNode. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode); + /** + * Constructs a new ListTransitionRouteGroupsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse); - /** TransitionNode page. */ - public page?: (google.cloud.dialogflow.cx.v3.IPage|null); + /** ListTransitionRouteGroupsResponse transitionRouteGroups. */ + public transitionRouteGroups: google.cloud.dialogflow.cx.v3.ITransitionRouteGroup[]; - /** TransitionNode flow. */ - public flow?: (google.cloud.dialogflow.cx.v3.IFlow|null); + /** ListTransitionRouteGroupsResponse nextPageToken. */ + public nextPageToken: string; - /** TransitionNode kind. */ - public kind?: ("page"|"flow"); + /** + * Creates a new ListTransitionRouteGroupsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListTransitionRouteGroupsResponse instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse; - /** - * Creates a new TransitionNode instance using the specified properties. - * @param [properties] Properties to set - * @returns TransitionNode instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode): google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode; + /** + * Encodes the specified ListTransitionRouteGroupsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse.verify|verify} messages. + * @param message ListTransitionRouteGroupsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TransitionNode message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.verify|verify} messages. - * @param message TransitionNode message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ListTransitionRouteGroupsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse.verify|verify} messages. + * @param message ListTransitionRouteGroupsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TransitionNode message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.verify|verify} messages. - * @param message TransitionNode message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a ListTransitionRouteGroupsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListTransitionRouteGroupsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse; - /** - * Decodes a TransitionNode message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TransitionNode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode; + /** + * Decodes a ListTransitionRouteGroupsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListTransitionRouteGroupsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse; - /** - * Decodes a TransitionNode message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TransitionNode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode; + /** + * Verifies a ListTransitionRouteGroupsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Verifies a TransitionNode message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a ListTransitionRouteGroupsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListTransitionRouteGroupsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse; - /** - * Creates a TransitionNode message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TransitionNode - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode; + /** + * Creates a plain object from a ListTransitionRouteGroupsResponse message. Also converts values to other types if specified. + * @param message ListTransitionRouteGroupsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a plain object from a TransitionNode message. Also converts values to other types if specified. - * @param message TransitionNode - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Converts this ListTransitionRouteGroupsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Converts this TransitionNode to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Properties of a GetTransitionRouteGroupRequest. */ + interface IGetTransitionRouteGroupRequest { - /** Properties of a Transition. */ - interface ITransition { + /** GetTransitionRouteGroupRequest name */ + name?: (string|null); - /** Transition source */ - source?: (google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode|null); + /** GetTransitionRouteGroupRequest languageCode */ + languageCode?: (string|null); + } - /** Transition index */ - index?: (number|null); + /** Represents a GetTransitionRouteGroupRequest. */ + class GetTransitionRouteGroupRequest implements IGetTransitionRouteGroupRequest { - /** Transition target */ - target?: (google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode|null); + /** + * Constructs a new GetTransitionRouteGroupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest); - /** Transition covered */ - covered?: (boolean|null); + /** GetTransitionRouteGroupRequest name. */ + public name: string; - /** Transition transitionRoute */ - transitionRoute?: (google.cloud.dialogflow.cx.v3.ITransitionRoute|null); + /** GetTransitionRouteGroupRequest languageCode. */ + public languageCode: string; - /** Transition eventHandler */ - eventHandler?: (google.cloud.dialogflow.cx.v3.IEventHandler|null); - } + /** + * Creates a new GetTransitionRouteGroupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTransitionRouteGroupRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest; - /** Represents a Transition. */ - class Transition implements ITransition { + /** + * Encodes the specified GetTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest.verify|verify} messages. + * @param message GetTransitionRouteGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new Transition. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition); + /** + * Encodes the specified GetTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest.verify|verify} messages. + * @param message GetTransitionRouteGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Transition source. */ - public source?: (google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode|null); + /** + * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTransitionRouteGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest; - /** Transition index. */ - public index: number; + /** + * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetTransitionRouteGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest; - /** Transition target. */ - public target?: (google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode|null); + /** + * Verifies a GetTransitionRouteGroupRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Transition covered. */ - public covered: boolean; + /** + * Creates a GetTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetTransitionRouteGroupRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest; - /** Transition transitionRoute. */ - public transitionRoute?: (google.cloud.dialogflow.cx.v3.ITransitionRoute|null); + /** + * Creates a plain object from a GetTransitionRouteGroupRequest message. Also converts values to other types if specified. + * @param message GetTransitionRouteGroupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Transition eventHandler. */ - public eventHandler?: (google.cloud.dialogflow.cx.v3.IEventHandler|null); + /** + * Converts this GetTransitionRouteGroupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Transition detail. */ - public detail?: ("transitionRoute"|"eventHandler"); + /** Properties of a CreateTransitionRouteGroupRequest. */ + interface ICreateTransitionRouteGroupRequest { - /** - * Creates a new Transition instance using the specified properties. - * @param [properties] Properties to set - * @returns Transition instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition): google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition; + /** CreateTransitionRouteGroupRequest parent */ + parent?: (string|null); - /** - * Encodes the specified Transition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.verify|verify} messages. - * @param message Transition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition, writer?: $protobuf.Writer): $protobuf.Writer; + /** CreateTransitionRouteGroupRequest transitionRouteGroup */ + transitionRouteGroup?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null); - /** - * Encodes the specified Transition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.verify|verify} messages. - * @param message Transition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition, writer?: $protobuf.Writer): $protobuf.Writer; + /** CreateTransitionRouteGroupRequest languageCode */ + languageCode?: (string|null); + } - /** - * Decodes a Transition message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Transition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition; + /** Represents a CreateTransitionRouteGroupRequest. */ + class CreateTransitionRouteGroupRequest implements ICreateTransitionRouteGroupRequest { - /** - * Decodes a Transition message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Transition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition; + /** + * Constructs a new CreateTransitionRouteGroupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest); - /** - * Verifies a Transition message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** CreateTransitionRouteGroupRequest parent. */ + public parent: string; - /** - * Creates a Transition message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Transition - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition; + /** CreateTransitionRouteGroupRequest transitionRouteGroup. */ + public transitionRouteGroup?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null); - /** - * Creates a plain object from a Transition message. Also converts values to other types if specified. - * @param message Transition - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** CreateTransitionRouteGroupRequest languageCode. */ + public languageCode: string; - /** - * Converts this Transition to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Creates a new CreateTransitionRouteGroupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateTransitionRouteGroupRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest; + + /** + * Encodes the specified CreateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest.verify|verify} messages. + * @param message CreateTransitionRouteGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest.verify|verify} messages. + * @param message CreateTransitionRouteGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateTransitionRouteGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest; + + /** + * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateTransitionRouteGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest; + + /** + * Verifies a CreateTransitionRouteGroupRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateTransitionRouteGroupRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest; + + /** + * Creates a plain object from a CreateTransitionRouteGroupRequest message. Also converts values to other types if specified. + * @param message CreateTransitionRouteGroupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateTransitionRouteGroupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Properties of a TransitionRouteGroupCoverage. */ - interface ITransitionRouteGroupCoverage { + /** Properties of an UpdateTransitionRouteGroupRequest. */ + interface IUpdateTransitionRouteGroupRequest { - /** TransitionRouteGroupCoverage coverages */ - coverages?: (google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage[]|null); + /** UpdateTransitionRouteGroupRequest transitionRouteGroup */ + transitionRouteGroup?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null); - /** TransitionRouteGroupCoverage coverageScore */ - coverageScore?: (number|null); + /** UpdateTransitionRouteGroupRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateTransitionRouteGroupRequest languageCode */ + languageCode?: (string|null); } - /** Represents a TransitionRouteGroupCoverage. */ - class TransitionRouteGroupCoverage implements ITransitionRouteGroupCoverage { + /** Represents an UpdateTransitionRouteGroupRequest. */ + class UpdateTransitionRouteGroupRequest implements IUpdateTransitionRouteGroupRequest { /** - * Constructs a new TransitionRouteGroupCoverage. + * Constructs a new UpdateTransitionRouteGroupRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage); + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest); - /** TransitionRouteGroupCoverage coverages. */ - public coverages: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage[]; + /** UpdateTransitionRouteGroupRequest transitionRouteGroup. */ + public transitionRouteGroup?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null); - /** TransitionRouteGroupCoverage coverageScore. */ - public coverageScore: number; + /** UpdateTransitionRouteGroupRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateTransitionRouteGroupRequest languageCode. */ + public languageCode: string; /** - * Creates a new TransitionRouteGroupCoverage instance using the specified properties. + * Creates a new UpdateTransitionRouteGroupRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TransitionRouteGroupCoverage instance + * @returns UpdateTransitionRouteGroupRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage; + public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest; /** - * Encodes the specified TransitionRouteGroupCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.verify|verify} messages. - * @param message TransitionRouteGroupCoverage message or plain object to encode + * Encodes the specified UpdateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest.verify|verify} messages. + * @param message UpdateTransitionRouteGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TransitionRouteGroupCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.verify|verify} messages. - * @param message TransitionRouteGroupCoverage message or plain object to encode + * Encodes the specified UpdateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest.verify|verify} messages. + * @param message UpdateTransitionRouteGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TransitionRouteGroupCoverage message from the specified reader or buffer. + * Decodes an UpdateTransitionRouteGroupRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TransitionRouteGroupCoverage + * @returns UpdateTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest; /** - * Decodes a TransitionRouteGroupCoverage message from the specified reader or buffer, length delimited. + * Decodes an UpdateTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TransitionRouteGroupCoverage + * @returns UpdateTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest; /** - * Verifies a TransitionRouteGroupCoverage message. + * Verifies an UpdateTransitionRouteGroupRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TransitionRouteGroupCoverage message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TransitionRouteGroupCoverage + * @returns UpdateTransitionRouteGroupRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest; /** - * Creates a plain object from a TransitionRouteGroupCoverage message. Also converts values to other types if specified. - * @param message TransitionRouteGroupCoverage + * Creates a plain object from an UpdateTransitionRouteGroupRequest message. Also converts values to other types if specified. + * @param message UpdateTransitionRouteGroupRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TransitionRouteGroupCoverage to JSON. + * Converts this UpdateTransitionRouteGroupRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace TransitionRouteGroupCoverage { - - /** Properties of a Coverage. */ - interface ICoverage { + /** Properties of a DeleteTransitionRouteGroupRequest. */ + interface IDeleteTransitionRouteGroupRequest { - /** Coverage routeGroup */ - routeGroup?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null); + /** DeleteTransitionRouteGroupRequest name */ + name?: (string|null); - /** Coverage transitions */ - transitions?: (google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition[]|null); + /** DeleteTransitionRouteGroupRequest force */ + force?: (boolean|null); + } - /** Coverage coverageScore */ - coverageScore?: (number|null); - } + /** Represents a DeleteTransitionRouteGroupRequest. */ + class DeleteTransitionRouteGroupRequest implements IDeleteTransitionRouteGroupRequest { - /** Represents a Coverage. */ - class Coverage implements ICoverage { + /** + * Constructs a new DeleteTransitionRouteGroupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest); - /** - * Constructs a new Coverage. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage); + /** DeleteTransitionRouteGroupRequest name. */ + public name: string; - /** Coverage routeGroup. */ - public routeGroup?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null); + /** DeleteTransitionRouteGroupRequest force. */ + public force: boolean; - /** Coverage transitions. */ - public transitions: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition[]; + /** + * Creates a new DeleteTransitionRouteGroupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteTransitionRouteGroupRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest; - /** Coverage coverageScore. */ - public coverageScore: number; + /** + * Encodes the specified DeleteTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest.verify|verify} messages. + * @param message DeleteTransitionRouteGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new Coverage instance using the specified properties. - * @param [properties] Properties to set - * @returns Coverage instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage; + /** + * Encodes the specified DeleteTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest.verify|verify} messages. + * @param message DeleteTransitionRouteGroupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Coverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.verify|verify} messages. - * @param message Coverage message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteTransitionRouteGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest; - /** - * Encodes the specified Coverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.verify|verify} messages. - * @param message Coverage message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteTransitionRouteGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest; - /** - * Decodes a Coverage message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Coverage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage; + /** + * Verifies a DeleteTransitionRouteGroupRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes a Coverage message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Coverage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage; + /** + * Creates a DeleteTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteTransitionRouteGroupRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest; - /** - * Verifies a Coverage message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a plain object from a DeleteTransitionRouteGroupRequest message. Also converts values to other types if specified. + * @param message DeleteTransitionRouteGroupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a Coverage message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Coverage - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage; + /** + * Converts this DeleteTransitionRouteGroupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Creates a plain object from a Coverage message. Also converts values to other types if specified. - * @param message Coverage - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents an Experiments */ + class Experiments extends $protobuf.rpc.Service { - /** - * Converts this Coverage to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Constructs a new Experiments service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - namespace Coverage { + /** + * Creates new Experiments service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Experiments; - /** Properties of a Transition. */ - interface ITransition { + /** + * Calls ListExperiments. + * @param request ListExperimentsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListExperimentsResponse + */ + public listExperiments(request: google.cloud.dialogflow.cx.v3.IListExperimentsRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.ListExperimentsCallback): void; - /** Transition transitionRoute */ - transitionRoute?: (google.cloud.dialogflow.cx.v3.ITransitionRoute|null); + /** + * Calls ListExperiments. + * @param request ListExperimentsRequest message or plain object + * @returns Promise + */ + public listExperiments(request: google.cloud.dialogflow.cx.v3.IListExperimentsRequest): Promise; - /** Transition covered */ - covered?: (boolean|null); - } + /** + * Calls GetExperiment. + * @param request GetExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Experiment + */ + public getExperiment(request: google.cloud.dialogflow.cx.v3.IGetExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.GetExperimentCallback): void; - /** Represents a Transition. */ - class Transition implements ITransition { + /** + * Calls GetExperiment. + * @param request GetExperimentRequest message or plain object + * @returns Promise + */ + public getExperiment(request: google.cloud.dialogflow.cx.v3.IGetExperimentRequest): Promise; - /** - * Constructs a new Transition. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition); + /** + * Calls CreateExperiment. + * @param request CreateExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Experiment + */ + public createExperiment(request: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.CreateExperimentCallback): void; - /** Transition transitionRoute. */ - public transitionRoute?: (google.cloud.dialogflow.cx.v3.ITransitionRoute|null); + /** + * Calls CreateExperiment. + * @param request CreateExperimentRequest message or plain object + * @returns Promise + */ + public createExperiment(request: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest): Promise; - /** Transition covered. */ - public covered: boolean; + /** + * Calls UpdateExperiment. + * @param request UpdateExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Experiment + */ + public updateExperiment(request: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.UpdateExperimentCallback): void; - /** - * Creates a new Transition instance using the specified properties. - * @param [properties] Properties to set - * @returns Transition instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition; + /** + * Calls UpdateExperiment. + * @param request UpdateExperimentRequest message or plain object + * @returns Promise + */ + public updateExperiment(request: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest): Promise; - /** - * Encodes the specified Transition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.verify|verify} messages. - * @param message Transition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Calls DeleteExperiment. + * @param request DeleteExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteExperiment(request: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.DeleteExperimentCallback): void; - /** - * Encodes the specified Transition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.verify|verify} messages. - * @param message Transition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Calls DeleteExperiment. + * @param request DeleteExperimentRequest message or plain object + * @returns Promise + */ + public deleteExperiment(request: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest): Promise; - /** - * Decodes a Transition message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Transition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition; + /** + * Calls StartExperiment. + * @param request StartExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Experiment + */ + public startExperiment(request: google.cloud.dialogflow.cx.v3.IStartExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.StartExperimentCallback): void; - /** - * Decodes a Transition message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Transition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition; + /** + * Calls StartExperiment. + * @param request StartExperimentRequest message or plain object + * @returns Promise + */ + public startExperiment(request: google.cloud.dialogflow.cx.v3.IStartExperimentRequest): Promise; - /** - * Verifies a Transition message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Calls StopExperiment. + * @param request StopExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Experiment + */ + public stopExperiment(request: google.cloud.dialogflow.cx.v3.IStopExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.StopExperimentCallback): void; - /** - * Creates a Transition message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Transition - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition; + /** + * Calls StopExperiment. + * @param request StopExperimentRequest message or plain object + * @returns Promise + */ + public stopExperiment(request: google.cloud.dialogflow.cx.v3.IStopExperimentRequest): Promise; + } - /** - * Creates a plain object from a Transition message. Also converts values to other types if specified. - * @param message Transition - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + namespace Experiments { - /** - * Converts this Transition to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#listExperiments}. + * @param error Error, if any + * @param [response] ListExperimentsResponse + */ + type ListExperimentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListExperimentsResponse) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#getExperiment}. + * @param error Error, if any + * @param [response] Experiment + */ + type GetExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Experiment) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#createExperiment}. + * @param error Error, if any + * @param [response] Experiment + */ + type CreateExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Experiment) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#updateExperiment}. + * @param error Error, if any + * @param [response] Experiment + */ + type UpdateExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Experiment) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#deleteExperiment}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteExperimentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#startExperiment}. + * @param error Error, if any + * @param [response] Experiment + */ + type StartExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Experiment) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#stopExperiment}. + * @param error Error, if any + * @param [response] Experiment + */ + type StopExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Experiment) => void; } - /** Properties of an IntentCoverage. */ - interface IIntentCoverage { + /** Properties of an Experiment. */ + interface IExperiment { - /** IntentCoverage intents */ - intents?: (google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent[]|null); + /** Experiment name */ + name?: (string|null); - /** IntentCoverage coverageScore */ - coverageScore?: (number|null); + /** Experiment displayName */ + displayName?: (string|null); + + /** Experiment description */ + description?: (string|null); + + /** Experiment state */ + state?: (google.cloud.dialogflow.cx.v3.Experiment.State|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.State|null); + + /** Experiment definition */ + definition?: (google.cloud.dialogflow.cx.v3.Experiment.IDefinition|null); + + /** Experiment result */ + result?: (google.cloud.dialogflow.cx.v3.Experiment.IResult|null); + + /** Experiment createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Experiment startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** Experiment endTime */ + endTime?: (google.protobuf.ITimestamp|null); + + /** Experiment lastUpdateTime */ + lastUpdateTime?: (google.protobuf.ITimestamp|null); + + /** Experiment experimentLength */ + experimentLength?: (google.protobuf.IDuration|null); + + /** Experiment variantsHistory */ + variantsHistory?: (google.cloud.dialogflow.cx.v3.IVariantsHistory[]|null); } - /** Represents an IntentCoverage. */ - class IntentCoverage implements IIntentCoverage { + /** Represents an Experiment. */ + class Experiment implements IExperiment { /** - * Constructs a new IntentCoverage. + * Constructs a new Experiment. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IIntentCoverage); + constructor(properties?: google.cloud.dialogflow.cx.v3.IExperiment); - /** IntentCoverage intents. */ - public intents: google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent[]; + /** Experiment name. */ + public name: string; - /** IntentCoverage coverageScore. */ - public coverageScore: number; + /** Experiment displayName. */ + public displayName: string; + + /** Experiment description. */ + public description: string; + + /** Experiment state. */ + public state: (google.cloud.dialogflow.cx.v3.Experiment.State|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.State); + + /** Experiment definition. */ + public definition?: (google.cloud.dialogflow.cx.v3.Experiment.IDefinition|null); + + /** Experiment result. */ + public result?: (google.cloud.dialogflow.cx.v3.Experiment.IResult|null); + + /** Experiment createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Experiment startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** Experiment endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** Experiment lastUpdateTime. */ + public lastUpdateTime?: (google.protobuf.ITimestamp|null); + + /** Experiment experimentLength. */ + public experimentLength?: (google.protobuf.IDuration|null); + + /** Experiment variantsHistory. */ + public variantsHistory: google.cloud.dialogflow.cx.v3.IVariantsHistory[]; /** - * Creates a new IntentCoverage instance using the specified properties. + * Creates a new Experiment instance using the specified properties. * @param [properties] Properties to set - * @returns IntentCoverage instance + * @returns Experiment instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IIntentCoverage): google.cloud.dialogflow.cx.v3.IntentCoverage; + public static create(properties?: google.cloud.dialogflow.cx.v3.IExperiment): google.cloud.dialogflow.cx.v3.Experiment; /** - * Encodes the specified IntentCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentCoverage.verify|verify} messages. - * @param message IntentCoverage message or plain object to encode + * Encodes the specified Experiment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.verify|verify} messages. + * @param message Experiment message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IIntentCoverage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IExperiment, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified IntentCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentCoverage.verify|verify} messages. - * @param message IntentCoverage message or plain object to encode + * Encodes the specified Experiment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.verify|verify} messages. + * @param message Experiment message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IIntentCoverage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IExperiment, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IntentCoverage message from the specified reader or buffer. + * Decodes an Experiment message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns IntentCoverage + * @returns Experiment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.IntentCoverage; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Experiment; /** - * Decodes an IntentCoverage message from the specified reader or buffer, length delimited. + * Decodes an Experiment message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns IntentCoverage + * @returns Experiment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.IntentCoverage; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Experiment; /** - * Verifies an IntentCoverage message. + * Verifies an Experiment message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an IntentCoverage message from a plain object. Also converts values to their respective internal types. + * Creates an Experiment message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns IntentCoverage + * @returns Experiment */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.IntentCoverage; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Experiment; /** - * Creates a plain object from an IntentCoverage message. Also converts values to other types if specified. - * @param message IntentCoverage + * Creates a plain object from an Experiment message. Also converts values to other types if specified. + * @param message Experiment * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.IntentCoverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Experiment, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IntentCoverage to JSON. + * Converts this Experiment to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace IntentCoverage { + namespace Experiment { - /** Properties of an Intent. */ - interface IIntent { + /** Properties of a Definition. */ + interface IDefinition { - /** Intent intent */ - intent?: (string|null); + /** Definition condition */ + condition?: (string|null); - /** Intent covered */ - covered?: (boolean|null); + /** Definition versionVariants */ + versionVariants?: (google.cloud.dialogflow.cx.v3.IVersionVariants|null); } - /** Represents an Intent. */ - class Intent implements IIntent { - + /** Represents a Definition. */ + class Definition implements IDefinition { + /** - * Constructs a new Intent. + * Constructs a new Definition. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent); + constructor(properties?: google.cloud.dialogflow.cx.v3.Experiment.IDefinition); - /** Intent intent. */ - public intent: string; + /** Definition condition. */ + public condition: string; - /** Intent covered. */ - public covered: boolean; + /** Definition versionVariants. */ + public versionVariants?: (google.cloud.dialogflow.cx.v3.IVersionVariants|null); + + /** Definition variants. */ + public variants?: "versionVariants"; /** - * Creates a new Intent instance using the specified properties. + * Creates a new Definition instance using the specified properties. * @param [properties] Properties to set - * @returns Intent instance + * @returns Definition instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent): google.cloud.dialogflow.cx.v3.IntentCoverage.Intent; + public static create(properties?: google.cloud.dialogflow.cx.v3.Experiment.IDefinition): google.cloud.dialogflow.cx.v3.Experiment.Definition; /** - * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentCoverage.Intent.verify|verify} messages. - * @param message Intent message or plain object to encode + * Encodes the specified Definition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Definition.verify|verify} messages. + * @param message Definition message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.Experiment.IDefinition, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Intent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentCoverage.Intent.verify|verify} messages. - * @param message Intent message or plain object to encode + * Encodes the specified Definition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Definition.verify|verify} messages. + * @param message Definition message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Experiment.IDefinition, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Intent message from the specified reader or buffer. + * Decodes a Definition message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Intent + * @returns Definition * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.IntentCoverage.Intent; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Experiment.Definition; /** - * Decodes an Intent message from the specified reader or buffer, length delimited. + * Decodes a Definition message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Intent + * @returns Definition * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.IntentCoverage.Intent; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Experiment.Definition; /** - * Verifies an Intent message. + * Verifies a Definition message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an Intent message from a plain object. Also converts values to their respective internal types. + * Creates a Definition message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Intent + * @returns Definition */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.IntentCoverage.Intent; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Experiment.Definition; /** - * Creates a plain object from an Intent message. Also converts values to other types if specified. - * @param message Intent + * Creates a plain object from a Definition message. Also converts values to other types if specified. + * @param message Definition * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.IntentCoverage.Intent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Experiment.Definition, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Intent to JSON. + * Converts this Definition to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - } - - /** Properties of a CalculateCoverageRequest. */ - interface ICalculateCoverageRequest { - /** CalculateCoverageRequest agent */ - agent?: (string|null); - - /** CalculateCoverageRequest type */ - type?: (google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType|keyof typeof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType|null); - } + /** Properties of a Result. */ + interface IResult { - /** Represents a CalculateCoverageRequest. */ - class CalculateCoverageRequest implements ICalculateCoverageRequest { + /** Result versionMetrics */ + versionMetrics?: (google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics[]|null); - /** - * Constructs a new CalculateCoverageRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest); + /** Result lastUpdateTime */ + lastUpdateTime?: (google.protobuf.ITimestamp|null); + } - /** CalculateCoverageRequest agent. */ - public agent: string; + /** Represents a Result. */ + class Result implements IResult { - /** CalculateCoverageRequest type. */ - public type: (google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType|keyof typeof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType); + /** + * Constructs a new Result. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.Experiment.IResult); - /** - * Creates a new CalculateCoverageRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CalculateCoverageRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest): google.cloud.dialogflow.cx.v3.CalculateCoverageRequest; + /** Result versionMetrics. */ + public versionMetrics: google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics[]; - /** - * Encodes the specified CalculateCoverageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.verify|verify} messages. - * @param message CalculateCoverageRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Result lastUpdateTime. */ + public lastUpdateTime?: (google.protobuf.ITimestamp|null); - /** - * Encodes the specified CalculateCoverageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.verify|verify} messages. - * @param message CalculateCoverageRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new Result instance using the specified properties. + * @param [properties] Properties to set + * @returns Result instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.Experiment.IResult): google.cloud.dialogflow.cx.v3.Experiment.Result; - /** - * Decodes a CalculateCoverageRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CalculateCoverageRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CalculateCoverageRequest; + /** + * Encodes the specified Result message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.verify|verify} messages. + * @param message Result message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.Experiment.IResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a CalculateCoverageRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CalculateCoverageRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CalculateCoverageRequest; + /** + * Encodes the specified Result message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.verify|verify} messages. + * @param message Result message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Experiment.IResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a CalculateCoverageRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a Result message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Result + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Experiment.Result; - /** - * Creates a CalculateCoverageRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CalculateCoverageRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CalculateCoverageRequest; + /** + * Decodes a Result message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Result + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Experiment.Result; - /** - * Creates a plain object from a CalculateCoverageRequest message. Also converts values to other types if specified. - * @param message CalculateCoverageRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.CalculateCoverageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Verifies a Result message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Converts this CalculateCoverageRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Creates a Result message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Result + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Experiment.Result; - namespace CalculateCoverageRequest { + /** + * Creates a plain object from a Result message. Also converts values to other types if specified. + * @param message Result + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.Experiment.Result, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** CoverageType enum. */ - enum CoverageType { - COVERAGE_TYPE_UNSPECIFIED = 0, - INTENT = 1, - PAGE_TRANSITION = 2, - TRANSITION_ROUTE_GROUP = 3 + /** + * Converts this Result to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - } - /** Properties of a CalculateCoverageResponse. */ - interface ICalculateCoverageResponse { + namespace Result { - /** CalculateCoverageResponse agent */ - agent?: (string|null); + /** Properties of a ConfidenceInterval. */ + interface IConfidenceInterval { - /** CalculateCoverageResponse intentCoverage */ - intentCoverage?: (google.cloud.dialogflow.cx.v3.IIntentCoverage|null); + /** ConfidenceInterval confidenceLevel */ + confidenceLevel?: (number|null); - /** CalculateCoverageResponse transitionCoverage */ - transitionCoverage?: (google.cloud.dialogflow.cx.v3.ITransitionCoverage|null); + /** ConfidenceInterval ratio */ + ratio?: (number|null); - /** CalculateCoverageResponse routeGroupCoverage */ - routeGroupCoverage?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage|null); - } + /** ConfidenceInterval lowerBound */ + lowerBound?: (number|null); - /** Represents a CalculateCoverageResponse. */ - class CalculateCoverageResponse implements ICalculateCoverageResponse { + /** ConfidenceInterval upperBound */ + upperBound?: (number|null); + } - /** - * Constructs a new CalculateCoverageResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICalculateCoverageResponse); + /** Represents a ConfidenceInterval. */ + class ConfidenceInterval implements IConfidenceInterval { - /** CalculateCoverageResponse agent. */ - public agent: string; + /** + * Constructs a new ConfidenceInterval. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval); - /** CalculateCoverageResponse intentCoverage. */ - public intentCoverage?: (google.cloud.dialogflow.cx.v3.IIntentCoverage|null); + /** ConfidenceInterval confidenceLevel. */ + public confidenceLevel: number; - /** CalculateCoverageResponse transitionCoverage. */ - public transitionCoverage?: (google.cloud.dialogflow.cx.v3.ITransitionCoverage|null); + /** ConfidenceInterval ratio. */ + public ratio: number; - /** CalculateCoverageResponse routeGroupCoverage. */ - public routeGroupCoverage?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage|null); + /** ConfidenceInterval lowerBound. */ + public lowerBound: number; - /** CalculateCoverageResponse coverageType. */ - public coverageType?: ("intentCoverage"|"transitionCoverage"|"routeGroupCoverage"); + /** ConfidenceInterval upperBound. */ + public upperBound: number; - /** - * Creates a new CalculateCoverageResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns CalculateCoverageResponse instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ICalculateCoverageResponse): google.cloud.dialogflow.cx.v3.CalculateCoverageResponse; + /** + * Creates a new ConfidenceInterval instance using the specified properties. + * @param [properties] Properties to set + * @returns ConfidenceInterval instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval): google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval; - /** - * Encodes the specified CalculateCoverageResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CalculateCoverageResponse.verify|verify} messages. - * @param message CalculateCoverageResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.ICalculateCoverageResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ConfidenceInterval message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.verify|verify} messages. + * @param message ConfidenceInterval message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified CalculateCoverageResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CalculateCoverageResponse.verify|verify} messages. - * @param message CalculateCoverageResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICalculateCoverageResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ConfidenceInterval message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.verify|verify} messages. + * @param message ConfidenceInterval message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a CalculateCoverageResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CalculateCoverageResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CalculateCoverageResponse; + /** + * Decodes a ConfidenceInterval message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConfidenceInterval + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval; - /** - * Decodes a CalculateCoverageResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CalculateCoverageResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CalculateCoverageResponse; + /** + * Decodes a ConfidenceInterval message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ConfidenceInterval + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval; - /** - * Verifies a CalculateCoverageResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Verifies a ConfidenceInterval message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a CalculateCoverageResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CalculateCoverageResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CalculateCoverageResponse; + /** + * Creates a ConfidenceInterval message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConfidenceInterval + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval; - /** - * Creates a plain object from a CalculateCoverageResponse message. Also converts values to other types if specified. - * @param message CalculateCoverageResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.CalculateCoverageResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a ConfidenceInterval message. Also converts values to other types if specified. + * @param message ConfidenceInterval + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this CalculateCoverageResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Converts this ConfidenceInterval to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Properties of a ListTestCasesRequest. */ - interface IListTestCasesRequest { + /** Properties of a Metric. */ + interface IMetric { - /** ListTestCasesRequest parent */ - parent?: (string|null); + /** Metric type */ + type?: (google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType|null); - /** ListTestCasesRequest pageSize */ - pageSize?: (number|null); + /** Metric countType */ + countType?: (google.cloud.dialogflow.cx.v3.Experiment.Result.CountType|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.Result.CountType|null); - /** ListTestCasesRequest pageToken */ - pageToken?: (string|null); + /** Metric ratio */ + ratio?: (number|null); - /** ListTestCasesRequest view */ - view?: (google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView|keyof typeof google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView|null); - } + /** Metric count */ + count?: (number|null); - /** Represents a ListTestCasesRequest. */ - class ListTestCasesRequest implements IListTestCasesRequest { + /** Metric confidenceInterval */ + confidenceInterval?: (google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval|null); + } - /** - * Constructs a new ListTestCasesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListTestCasesRequest); + /** Represents a Metric. */ + class Metric implements IMetric { - /** ListTestCasesRequest parent. */ - public parent: string; + /** + * Constructs a new Metric. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric); - /** ListTestCasesRequest pageSize. */ - public pageSize: number; + /** Metric type. */ + public type: (google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType); - /** ListTestCasesRequest pageToken. */ - public pageToken: string; + /** Metric countType. */ + public countType: (google.cloud.dialogflow.cx.v3.Experiment.Result.CountType|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.Result.CountType); - /** ListTestCasesRequest view. */ - public view: (google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView|keyof typeof google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView); + /** Metric ratio. */ + public ratio: number; - /** - * Creates a new ListTestCasesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListTestCasesRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListTestCasesRequest): google.cloud.dialogflow.cx.v3.ListTestCasesRequest; + /** Metric count. */ + public count: number; - /** - * Encodes the specified ListTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCasesRequest.verify|verify} messages. - * @param message ListTestCasesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Metric confidenceInterval. */ + public confidenceInterval?: (google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval|null); - /** - * Encodes the specified ListTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCasesRequest.verify|verify} messages. - * @param message ListTestCasesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Metric value. */ + public value?: ("ratio"|"count"); - /** - * Decodes a ListTestCasesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListTestCasesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListTestCasesRequest; + /** + * Creates a new Metric instance using the specified properties. + * @param [properties] Properties to set + * @returns Metric instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric): google.cloud.dialogflow.cx.v3.Experiment.Result.Metric; - /** - * Decodes a ListTestCasesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListTestCasesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListTestCasesRequest; + /** + * Encodes the specified Metric message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.verify|verify} messages. + * @param message Metric message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a ListTestCasesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Encodes the specified Metric message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.verify|verify} messages. + * @param message Metric message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a ListTestCasesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListTestCasesRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListTestCasesRequest; + /** + * Decodes a Metric message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Metric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Experiment.Result.Metric; - /** - * Creates a plain object from a ListTestCasesRequest message. Also converts values to other types if specified. - * @param message ListTestCasesRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a Metric message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Metric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Experiment.Result.Metric; - /** - * Converts this ListTestCasesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Verifies a Metric message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - namespace ListTestCasesRequest { + /** + * Creates a Metric message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Metric + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Experiment.Result.Metric; - /** TestCaseView enum. */ - enum TestCaseView { - TEST_CASE_VIEW_UNSPECIFIED = 0, - BASIC = 1, - FULL = 2 + /** + * Creates a plain object from a Metric message. Also converts values to other types if specified. + * @param message Metric + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.Experiment.Result.Metric, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Metric to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a VersionMetrics. */ + interface IVersionMetrics { + + /** VersionMetrics version */ + version?: (string|null); + + /** VersionMetrics metrics */ + metrics?: (google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric[]|null); + + /** VersionMetrics sessionCount */ + sessionCount?: (number|null); + } + + /** Represents a VersionMetrics. */ + class VersionMetrics implements IVersionMetrics { + + /** + * Constructs a new VersionMetrics. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics); + + /** VersionMetrics version. */ + public version: string; + + /** VersionMetrics metrics. */ + public metrics: google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric[]; + + /** VersionMetrics sessionCount. */ + public sessionCount: number; + + /** + * Creates a new VersionMetrics instance using the specified properties. + * @param [properties] Properties to set + * @returns VersionMetrics instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics): google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics; + + /** + * Encodes the specified VersionMetrics message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.verify|verify} messages. + * @param message VersionMetrics message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VersionMetrics message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.verify|verify} messages. + * @param message VersionMetrics message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VersionMetrics message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VersionMetrics + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics; + + /** + * Decodes a VersionMetrics message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VersionMetrics + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics; + + /** + * Verifies a VersionMetrics message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VersionMetrics message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VersionMetrics + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics; + + /** + * Creates a plain object from a VersionMetrics message. Also converts values to other types if specified. + * @param message VersionMetrics + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VersionMetrics to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** MetricType enum. */ + enum MetricType { + METRIC_UNSPECIFIED = 0, + CONTAINED_SESSION_NO_CALLBACK_RATE = 1, + LIVE_AGENT_HANDOFF_RATE = 2, + CALLBACK_SESSION_RATE = 3, + ABANDONED_SESSION_RATE = 4, + SESSION_END_RATE = 5 + } + + /** CountType enum. */ + enum CountType { + COUNT_TYPE_UNSPECIFIED = 0, + TOTAL_NO_MATCH_COUNT = 1, + TOTAL_TURN_COUNT = 2, + AVERAGE_TURN_COUNT = 3 + } } - } - /** Properties of a ListTestCasesResponse. */ - interface IListTestCasesResponse { + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + DRAFT = 1, + RUNNING = 2, + DONE = 3 + } + } - /** ListTestCasesResponse testCases */ - testCases?: (google.cloud.dialogflow.cx.v3.ITestCase[]|null); + /** Properties of a VersionVariants. */ + interface IVersionVariants { - /** ListTestCasesResponse nextPageToken */ - nextPageToken?: (string|null); + /** VersionVariants variants */ + variants?: (google.cloud.dialogflow.cx.v3.VersionVariants.IVariant[]|null); } - /** Represents a ListTestCasesResponse. */ - class ListTestCasesResponse implements IListTestCasesResponse { + /** Represents a VersionVariants. */ + class VersionVariants implements IVersionVariants { /** - * Constructs a new ListTestCasesResponse. + * Constructs a new VersionVariants. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListTestCasesResponse); - - /** ListTestCasesResponse testCases. */ - public testCases: google.cloud.dialogflow.cx.v3.ITestCase[]; + constructor(properties?: google.cloud.dialogflow.cx.v3.IVersionVariants); - /** ListTestCasesResponse nextPageToken. */ - public nextPageToken: string; + /** VersionVariants variants. */ + public variants: google.cloud.dialogflow.cx.v3.VersionVariants.IVariant[]; /** - * Creates a new ListTestCasesResponse instance using the specified properties. + * Creates a new VersionVariants instance using the specified properties. * @param [properties] Properties to set - * @returns ListTestCasesResponse instance + * @returns VersionVariants instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListTestCasesResponse): google.cloud.dialogflow.cx.v3.ListTestCasesResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IVersionVariants): google.cloud.dialogflow.cx.v3.VersionVariants; /** - * Encodes the specified ListTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCasesResponse.verify|verify} messages. - * @param message ListTestCasesResponse message or plain object to encode + * Encodes the specified VersionVariants message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.verify|verify} messages. + * @param message VersionVariants message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IVersionVariants, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCasesResponse.verify|verify} messages. - * @param message ListTestCasesResponse message or plain object to encode + * Encodes the specified VersionVariants message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.verify|verify} messages. + * @param message VersionVariants message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IVersionVariants, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTestCasesResponse message from the specified reader or buffer. + * Decodes a VersionVariants message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTestCasesResponse + * @returns VersionVariants * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListTestCasesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.VersionVariants; /** - * Decodes a ListTestCasesResponse message from the specified reader or buffer, length delimited. + * Decodes a VersionVariants message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTestCasesResponse + * @returns VersionVariants * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListTestCasesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.VersionVariants; /** - * Verifies a ListTestCasesResponse message. + * Verifies a VersionVariants message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListTestCasesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VersionVariants message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTestCasesResponse + * @returns VersionVariants */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListTestCasesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.VersionVariants; /** - * Creates a plain object from a ListTestCasesResponse message. Also converts values to other types if specified. - * @param message ListTestCasesResponse + * Creates a plain object from a VersionVariants message. Also converts values to other types if specified. + * @param message VersionVariants * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.VersionVariants, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTestCasesResponse to JSON. + * Converts this VersionVariants to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BatchDeleteTestCasesRequest. */ - interface IBatchDeleteTestCasesRequest { + namespace VersionVariants { - /** BatchDeleteTestCasesRequest parent */ - parent?: (string|null); + /** Properties of a Variant. */ + interface IVariant { - /** BatchDeleteTestCasesRequest names */ - names?: (string[]|null); + /** Variant version */ + version?: (string|null); + + /** Variant trafficAllocation */ + trafficAllocation?: (number|null); + + /** Variant isControlGroup */ + isControlGroup?: (boolean|null); + } + + /** Represents a Variant. */ + class Variant implements IVariant { + + /** + * Constructs a new Variant. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.VersionVariants.IVariant); + + /** Variant version. */ + public version: string; + + /** Variant trafficAllocation. */ + public trafficAllocation: number; + + /** Variant isControlGroup. */ + public isControlGroup: boolean; + + /** + * Creates a new Variant instance using the specified properties. + * @param [properties] Properties to set + * @returns Variant instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.VersionVariants.IVariant): google.cloud.dialogflow.cx.v3.VersionVariants.Variant; + + /** + * Encodes the specified Variant message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.Variant.verify|verify} messages. + * @param message Variant message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.VersionVariants.IVariant, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Variant message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.Variant.verify|verify} messages. + * @param message Variant message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.VersionVariants.IVariant, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Variant message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Variant + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.VersionVariants.Variant; + + /** + * Decodes a Variant message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Variant + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.VersionVariants.Variant; + + /** + * Verifies a Variant message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Variant message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Variant + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.VersionVariants.Variant; + + /** + * Creates a plain object from a Variant message. Also converts values to other types if specified. + * @param message Variant + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.VersionVariants.Variant, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Variant to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Represents a BatchDeleteTestCasesRequest. */ - class BatchDeleteTestCasesRequest implements IBatchDeleteTestCasesRequest { + /** Properties of a VariantsHistory. */ + interface IVariantsHistory { + + /** VariantsHistory versionVariants */ + versionVariants?: (google.cloud.dialogflow.cx.v3.IVersionVariants|null); + + /** VariantsHistory updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a VariantsHistory. */ + class VariantsHistory implements IVariantsHistory { /** - * Constructs a new BatchDeleteTestCasesRequest. + * Constructs a new VariantsHistory. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IVariantsHistory); - /** BatchDeleteTestCasesRequest parent. */ - public parent: string; + /** VariantsHistory versionVariants. */ + public versionVariants?: (google.cloud.dialogflow.cx.v3.IVersionVariants|null); - /** BatchDeleteTestCasesRequest names. */ - public names: string[]; + /** VariantsHistory updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** VariantsHistory variants. */ + public variants?: "versionVariants"; /** - * Creates a new BatchDeleteTestCasesRequest instance using the specified properties. + * Creates a new VariantsHistory instance using the specified properties. * @param [properties] Properties to set - * @returns BatchDeleteTestCasesRequest instance + * @returns VariantsHistory instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest): google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IVariantsHistory): google.cloud.dialogflow.cx.v3.VariantsHistory; /** - * Encodes the specified BatchDeleteTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest.verify|verify} messages. - * @param message BatchDeleteTestCasesRequest message or plain object to encode + * Encodes the specified VariantsHistory message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VariantsHistory.verify|verify} messages. + * @param message VariantsHistory message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IVariantsHistory, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchDeleteTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest.verify|verify} messages. - * @param message BatchDeleteTestCasesRequest message or plain object to encode + * Encodes the specified VariantsHistory message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VariantsHistory.verify|verify} messages. + * @param message VariantsHistory message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IVariantsHistory, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchDeleteTestCasesRequest message from the specified reader or buffer. + * Decodes a VariantsHistory message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchDeleteTestCasesRequest + * @returns VariantsHistory * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.VariantsHistory; /** - * Decodes a BatchDeleteTestCasesRequest message from the specified reader or buffer, length delimited. + * Decodes a VariantsHistory message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchDeleteTestCasesRequest + * @returns VariantsHistory * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.VariantsHistory; /** - * Verifies a BatchDeleteTestCasesRequest message. + * Verifies a VariantsHistory message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchDeleteTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VariantsHistory message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchDeleteTestCasesRequest + * @returns VariantsHistory */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.VariantsHistory; /** - * Creates a plain object from a BatchDeleteTestCasesRequest message. Also converts values to other types if specified. - * @param message BatchDeleteTestCasesRequest + * Creates a plain object from a VariantsHistory message. Also converts values to other types if specified. + * @param message VariantsHistory * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.VariantsHistory, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchDeleteTestCasesRequest to JSON. + * Converts this VariantsHistory to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateTestCaseRequest. */ - interface ICreateTestCaseRequest { + /** Properties of a ListExperimentsRequest. */ + interface IListExperimentsRequest { - /** CreateTestCaseRequest parent */ + /** ListExperimentsRequest parent */ parent?: (string|null); - /** CreateTestCaseRequest testCase */ - testCase?: (google.cloud.dialogflow.cx.v3.ITestCase|null); + /** ListExperimentsRequest pageSize */ + pageSize?: (number|null); + + /** ListExperimentsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a CreateTestCaseRequest. */ - class CreateTestCaseRequest implements ICreateTestCaseRequest { + /** Represents a ListExperimentsRequest. */ + class ListExperimentsRequest implements IListExperimentsRequest { /** - * Constructs a new CreateTestCaseRequest. + * Constructs a new ListExperimentsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListExperimentsRequest); - /** CreateTestCaseRequest parent. */ + /** ListExperimentsRequest parent. */ public parent: string; - /** CreateTestCaseRequest testCase. */ - public testCase?: (google.cloud.dialogflow.cx.v3.ITestCase|null); + /** ListExperimentsRequest pageSize. */ + public pageSize: number; + + /** ListExperimentsRequest pageToken. */ + public pageToken: string; /** - * Creates a new CreateTestCaseRequest instance using the specified properties. + * Creates a new ListExperimentsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateTestCaseRequest instance + * @returns ListExperimentsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest): google.cloud.dialogflow.cx.v3.CreateTestCaseRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListExperimentsRequest): google.cloud.dialogflow.cx.v3.ListExperimentsRequest; /** - * Encodes the specified CreateTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTestCaseRequest.verify|verify} messages. - * @param message CreateTestCaseRequest message or plain object to encode + * Encodes the specified ListExperimentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsRequest.verify|verify} messages. + * @param message ListExperimentsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListExperimentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTestCaseRequest.verify|verify} messages. - * @param message CreateTestCaseRequest message or plain object to encode + * Encodes the specified ListExperimentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsRequest.verify|verify} messages. + * @param message ListExperimentsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListExperimentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateTestCaseRequest message from the specified reader or buffer. + * Decodes a ListExperimentsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateTestCaseRequest + * @returns ListExperimentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateTestCaseRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListExperimentsRequest; /** - * Decodes a CreateTestCaseRequest message from the specified reader or buffer, length delimited. + * Decodes a ListExperimentsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateTestCaseRequest + * @returns ListExperimentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateTestCaseRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListExperimentsRequest; /** - * Verifies a CreateTestCaseRequest message. + * Verifies a ListExperimentsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListExperimentsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateTestCaseRequest + * @returns ListExperimentsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateTestCaseRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListExperimentsRequest; /** - * Creates a plain object from a CreateTestCaseRequest message. Also converts values to other types if specified. - * @param message CreateTestCaseRequest + * Creates a plain object from a ListExperimentsRequest message. Also converts values to other types if specified. + * @param message ListExperimentsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.CreateTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListExperimentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateTestCaseRequest to JSON. + * Converts this ListExperimentsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateTestCaseRequest. */ - interface IUpdateTestCaseRequest { + /** Properties of a ListExperimentsResponse. */ + interface IListExperimentsResponse { - /** UpdateTestCaseRequest testCase */ - testCase?: (google.cloud.dialogflow.cx.v3.ITestCase|null); + /** ListExperimentsResponse experiments */ + experiments?: (google.cloud.dialogflow.cx.v3.IExperiment[]|null); - /** UpdateTestCaseRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** ListExperimentsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an UpdateTestCaseRequest. */ - class UpdateTestCaseRequest implements IUpdateTestCaseRequest { + /** Represents a ListExperimentsResponse. */ + class ListExperimentsResponse implements IListExperimentsResponse { /** - * Constructs a new UpdateTestCaseRequest. + * Constructs a new ListExperimentsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListExperimentsResponse); - /** UpdateTestCaseRequest testCase. */ - public testCase?: (google.cloud.dialogflow.cx.v3.ITestCase|null); + /** ListExperimentsResponse experiments. */ + public experiments: google.cloud.dialogflow.cx.v3.IExperiment[]; - /** UpdateTestCaseRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** ListExperimentsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new UpdateTestCaseRequest instance using the specified properties. + * Creates a new ListExperimentsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateTestCaseRequest instance + * @returns ListExperimentsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest): google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListExperimentsResponse): google.cloud.dialogflow.cx.v3.ListExperimentsResponse; /** - * Encodes the specified UpdateTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest.verify|verify} messages. - * @param message UpdateTestCaseRequest message or plain object to encode + * Encodes the specified ListExperimentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsResponse.verify|verify} messages. + * @param message ListExperimentsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListExperimentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest.verify|verify} messages. - * @param message UpdateTestCaseRequest message or plain object to encode + * Encodes the specified ListExperimentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsResponse.verify|verify} messages. + * @param message ListExperimentsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListExperimentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateTestCaseRequest message from the specified reader or buffer. + * Decodes a ListExperimentsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateTestCaseRequest + * @returns ListExperimentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListExperimentsResponse; /** - * Decodes an UpdateTestCaseRequest message from the specified reader or buffer, length delimited. + * Decodes a ListExperimentsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateTestCaseRequest + * @returns ListExperimentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListExperimentsResponse; /** - * Verifies an UpdateTestCaseRequest message. + * Verifies a ListExperimentsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListExperimentsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateTestCaseRequest + * @returns ListExperimentsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListExperimentsResponse; /** - * Creates a plain object from an UpdateTestCaseRequest message. Also converts values to other types if specified. - * @param message UpdateTestCaseRequest + * Creates a plain object from a ListExperimentsResponse message. Also converts values to other types if specified. + * @param message ListExperimentsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListExperimentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateTestCaseRequest to JSON. + * Converts this ListExperimentsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetTestCaseRequest. */ - interface IGetTestCaseRequest { + /** Properties of a GetExperimentRequest. */ + interface IGetExperimentRequest { - /** GetTestCaseRequest name */ + /** GetExperimentRequest name */ name?: (string|null); } - /** Represents a GetTestCaseRequest. */ - class GetTestCaseRequest implements IGetTestCaseRequest { + /** Represents a GetExperimentRequest. */ + class GetExperimentRequest implements IGetExperimentRequest { /** - * Constructs a new GetTestCaseRequest. + * Constructs a new GetExperimentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IGetTestCaseRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetExperimentRequest); - /** GetTestCaseRequest name. */ + /** GetExperimentRequest name. */ public name: string; /** - * Creates a new GetTestCaseRequest instance using the specified properties. + * Creates a new GetExperimentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetTestCaseRequest instance + * @returns GetExperimentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IGetTestCaseRequest): google.cloud.dialogflow.cx.v3.GetTestCaseRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetExperimentRequest): google.cloud.dialogflow.cx.v3.GetExperimentRequest; /** - * Encodes the specified GetTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTestCaseRequest.verify|verify} messages. - * @param message GetTestCaseRequest message or plain object to encode + * Encodes the specified GetExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetExperimentRequest.verify|verify} messages. + * @param message GetExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IGetTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IGetExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTestCaseRequest.verify|verify} messages. - * @param message GetTestCaseRequest message or plain object to encode + * Encodes the specified GetExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetExperimentRequest.verify|verify} messages. + * @param message GetExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTestCaseRequest message from the specified reader or buffer. + * Decodes a GetExperimentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetTestCaseRequest + * @returns GetExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetTestCaseRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetExperimentRequest; /** - * Decodes a GetTestCaseRequest message from the specified reader or buffer, length delimited. + * Decodes a GetExperimentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTestCaseRequest + * @returns GetExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetTestCaseRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetExperimentRequest; /** - * Verifies a GetTestCaseRequest message. + * Verifies a GetExperimentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetExperimentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTestCaseRequest + * @returns GetExperimentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetTestCaseRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetExperimentRequest; /** - * Creates a plain object from a GetTestCaseRequest message. Also converts values to other types if specified. - * @param message GetTestCaseRequest + * Creates a plain object from a GetExperimentRequest message. Also converts values to other types if specified. + * @param message GetExperimentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.GetTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.GetExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTestCaseRequest to JSON. + * Converts this GetExperimentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RunTestCaseRequest. */ - interface IRunTestCaseRequest { + /** Properties of a CreateExperimentRequest. */ + interface ICreateExperimentRequest { - /** RunTestCaseRequest name */ - name?: (string|null); + /** CreateExperimentRequest parent */ + parent?: (string|null); - /** RunTestCaseRequest environment */ - environment?: (string|null); + /** CreateExperimentRequest experiment */ + experiment?: (google.cloud.dialogflow.cx.v3.IExperiment|null); } - /** Represents a RunTestCaseRequest. */ - class RunTestCaseRequest implements IRunTestCaseRequest { + /** Represents a CreateExperimentRequest. */ + class CreateExperimentRequest implements ICreateExperimentRequest { /** - * Constructs a new RunTestCaseRequest. + * Constructs a new CreateExperimentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IRunTestCaseRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest); - /** RunTestCaseRequest name. */ - public name: string; + /** CreateExperimentRequest parent. */ + public parent: string; - /** RunTestCaseRequest environment. */ - public environment: string; + /** CreateExperimentRequest experiment. */ + public experiment?: (google.cloud.dialogflow.cx.v3.IExperiment|null); /** - * Creates a new RunTestCaseRequest instance using the specified properties. + * Creates a new CreateExperimentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RunTestCaseRequest instance + * @returns CreateExperimentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IRunTestCaseRequest): google.cloud.dialogflow.cx.v3.RunTestCaseRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest): google.cloud.dialogflow.cx.v3.CreateExperimentRequest; /** - * Encodes the specified RunTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseRequest.verify|verify} messages. - * @param message RunTestCaseRequest message or plain object to encode + * Encodes the specified CreateExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateExperimentRequest.verify|verify} messages. + * @param message CreateExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IRunTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RunTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseRequest.verify|verify} messages. - * @param message RunTestCaseRequest message or plain object to encode + * Encodes the specified CreateExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateExperimentRequest.verify|verify} messages. + * @param message CreateExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IRunTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RunTestCaseRequest message from the specified reader or buffer. + * Decodes a CreateExperimentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RunTestCaseRequest + * @returns CreateExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.RunTestCaseRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateExperimentRequest; /** - * Decodes a RunTestCaseRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateExperimentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RunTestCaseRequest + * @returns CreateExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.RunTestCaseRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateExperimentRequest; /** - * Verifies a RunTestCaseRequest message. + * Verifies a CreateExperimentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RunTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateExperimentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RunTestCaseRequest + * @returns CreateExperimentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.RunTestCaseRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateExperimentRequest; /** - * Creates a plain object from a RunTestCaseRequest message. Also converts values to other types if specified. - * @param message RunTestCaseRequest + * Creates a plain object from a CreateExperimentRequest message. Also converts values to other types if specified. + * @param message CreateExperimentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.RunTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RunTestCaseRequest to JSON. + * Converts this CreateExperimentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RunTestCaseResponse. */ - interface IRunTestCaseResponse { + /** Properties of an UpdateExperimentRequest. */ + interface IUpdateExperimentRequest { - /** RunTestCaseResponse result */ - result?: (google.cloud.dialogflow.cx.v3.ITestCaseResult|null); + /** UpdateExperimentRequest experiment */ + experiment?: (google.cloud.dialogflow.cx.v3.IExperiment|null); + + /** UpdateExperimentRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a RunTestCaseResponse. */ - class RunTestCaseResponse implements IRunTestCaseResponse { + /** Represents an UpdateExperimentRequest. */ + class UpdateExperimentRequest implements IUpdateExperimentRequest { /** - * Constructs a new RunTestCaseResponse. + * Constructs a new UpdateExperimentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IRunTestCaseResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest); - /** RunTestCaseResponse result. */ - public result?: (google.cloud.dialogflow.cx.v3.ITestCaseResult|null); + /** UpdateExperimentRequest experiment. */ + public experiment?: (google.cloud.dialogflow.cx.v3.IExperiment|null); + + /** UpdateExperimentRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new RunTestCaseResponse instance using the specified properties. + * Creates a new UpdateExperimentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RunTestCaseResponse instance + * @returns UpdateExperimentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IRunTestCaseResponse): google.cloud.dialogflow.cx.v3.RunTestCaseResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest): google.cloud.dialogflow.cx.v3.UpdateExperimentRequest; /** - * Encodes the specified RunTestCaseResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseResponse.verify|verify} messages. - * @param message RunTestCaseResponse message or plain object to encode + * Encodes the specified UpdateExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateExperimentRequest.verify|verify} messages. + * @param message UpdateExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IRunTestCaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RunTestCaseResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseResponse.verify|verify} messages. - * @param message RunTestCaseResponse message or plain object to encode + * Encodes the specified UpdateExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateExperimentRequest.verify|verify} messages. + * @param message UpdateExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IRunTestCaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RunTestCaseResponse message from the specified reader or buffer. + * Decodes an UpdateExperimentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RunTestCaseResponse + * @returns UpdateExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.RunTestCaseResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateExperimentRequest; /** - * Decodes a RunTestCaseResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateExperimentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RunTestCaseResponse + * @returns UpdateExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.RunTestCaseResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateExperimentRequest; /** - * Verifies a RunTestCaseResponse message. + * Verifies an UpdateExperimentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RunTestCaseResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateExperimentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RunTestCaseResponse + * @returns UpdateExperimentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.RunTestCaseResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateExperimentRequest; /** - * Creates a plain object from a RunTestCaseResponse message. Also converts values to other types if specified. - * @param message RunTestCaseResponse + * Creates a plain object from an UpdateExperimentRequest message. Also converts values to other types if specified. + * @param message UpdateExperimentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.RunTestCaseResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RunTestCaseResponse to JSON. + * Converts this UpdateExperimentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RunTestCaseMetadata. */ - interface IRunTestCaseMetadata { + /** Properties of a DeleteExperimentRequest. */ + interface IDeleteExperimentRequest { + + /** DeleteExperimentRequest name */ + name?: (string|null); } - /** Represents a RunTestCaseMetadata. */ - class RunTestCaseMetadata implements IRunTestCaseMetadata { + /** Represents a DeleteExperimentRequest. */ + class DeleteExperimentRequest implements IDeleteExperimentRequest { /** - * Constructs a new RunTestCaseMetadata. + * Constructs a new DeleteExperimentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IRunTestCaseMetadata); + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest); + + /** DeleteExperimentRequest name. */ + public name: string; /** - * Creates a new RunTestCaseMetadata instance using the specified properties. + * Creates a new DeleteExperimentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RunTestCaseMetadata instance + * @returns DeleteExperimentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IRunTestCaseMetadata): google.cloud.dialogflow.cx.v3.RunTestCaseMetadata; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest): google.cloud.dialogflow.cx.v3.DeleteExperimentRequest; /** - * Encodes the specified RunTestCaseMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseMetadata.verify|verify} messages. - * @param message RunTestCaseMetadata message or plain object to encode + * Encodes the specified DeleteExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteExperimentRequest.verify|verify} messages. + * @param message DeleteExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IRunTestCaseMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RunTestCaseMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseMetadata.verify|verify} messages. - * @param message RunTestCaseMetadata message or plain object to encode + * Encodes the specified DeleteExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteExperimentRequest.verify|verify} messages. + * @param message DeleteExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IRunTestCaseMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RunTestCaseMetadata message from the specified reader or buffer. + * Decodes a DeleteExperimentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RunTestCaseMetadata + * @returns DeleteExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.RunTestCaseMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteExperimentRequest; /** - * Decodes a RunTestCaseMetadata message from the specified reader or buffer, length delimited. + * Decodes a DeleteExperimentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RunTestCaseMetadata + * @returns DeleteExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.RunTestCaseMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteExperimentRequest; /** - * Verifies a RunTestCaseMetadata message. + * Verifies a DeleteExperimentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RunTestCaseMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteExperimentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RunTestCaseMetadata + * @returns DeleteExperimentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.RunTestCaseMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteExperimentRequest; /** - * Creates a plain object from a RunTestCaseMetadata message. Also converts values to other types if specified. - * @param message RunTestCaseMetadata + * Creates a plain object from a DeleteExperimentRequest message. Also converts values to other types if specified. + * @param message DeleteExperimentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.RunTestCaseMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RunTestCaseMetadata to JSON. + * Converts this DeleteExperimentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BatchRunTestCasesRequest. */ - interface IBatchRunTestCasesRequest { - - /** BatchRunTestCasesRequest parent */ - parent?: (string|null); - - /** BatchRunTestCasesRequest environment */ - environment?: (string|null); + /** Properties of a StartExperimentRequest. */ + interface IStartExperimentRequest { - /** BatchRunTestCasesRequest testCases */ - testCases?: (string[]|null); + /** StartExperimentRequest name */ + name?: (string|null); } - /** Represents a BatchRunTestCasesRequest. */ - class BatchRunTestCasesRequest implements IBatchRunTestCasesRequest { + /** Represents a StartExperimentRequest. */ + class StartExperimentRequest implements IStartExperimentRequest { /** - * Constructs a new BatchRunTestCasesRequest. + * Constructs a new StartExperimentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest); - - /** BatchRunTestCasesRequest parent. */ - public parent: string; - - /** BatchRunTestCasesRequest environment. */ - public environment: string; + constructor(properties?: google.cloud.dialogflow.cx.v3.IStartExperimentRequest); - /** BatchRunTestCasesRequest testCases. */ - public testCases: string[]; + /** StartExperimentRequest name. */ + public name: string; /** - * Creates a new BatchRunTestCasesRequest instance using the specified properties. + * Creates a new StartExperimentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BatchRunTestCasesRequest instance + * @returns StartExperimentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest): google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IStartExperimentRequest): google.cloud.dialogflow.cx.v3.StartExperimentRequest; /** - * Encodes the specified BatchRunTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest.verify|verify} messages. - * @param message BatchRunTestCasesRequest message or plain object to encode + * Encodes the specified StartExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StartExperimentRequest.verify|verify} messages. + * @param message StartExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IStartExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchRunTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest.verify|verify} messages. - * @param message BatchRunTestCasesRequest message or plain object to encode + * Encodes the specified StartExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StartExperimentRequest.verify|verify} messages. + * @param message StartExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IStartExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchRunTestCasesRequest message from the specified reader or buffer. + * Decodes a StartExperimentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchRunTestCasesRequest + * @returns StartExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.StartExperimentRequest; /** - * Decodes a BatchRunTestCasesRequest message from the specified reader or buffer, length delimited. + * Decodes a StartExperimentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchRunTestCasesRequest + * @returns StartExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.StartExperimentRequest; /** - * Verifies a BatchRunTestCasesRequest message. + * Verifies a StartExperimentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchRunTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StartExperimentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchRunTestCasesRequest + * @returns StartExperimentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.StartExperimentRequest; /** - * Creates a plain object from a BatchRunTestCasesRequest message. Also converts values to other types if specified. - * @param message BatchRunTestCasesRequest + * Creates a plain object from a StartExperimentRequest message. Also converts values to other types if specified. + * @param message StartExperimentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.StartExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchRunTestCasesRequest to JSON. + * Converts this StartExperimentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BatchRunTestCasesResponse. */ - interface IBatchRunTestCasesResponse { + /** Properties of a StopExperimentRequest. */ + interface IStopExperimentRequest { - /** BatchRunTestCasesResponse results */ - results?: (google.cloud.dialogflow.cx.v3.ITestCaseResult[]|null); + /** StopExperimentRequest name */ + name?: (string|null); } - /** Represents a BatchRunTestCasesResponse. */ - class BatchRunTestCasesResponse implements IBatchRunTestCasesResponse { + /** Represents a StopExperimentRequest. */ + class StopExperimentRequest implements IStopExperimentRequest { /** - * Constructs a new BatchRunTestCasesResponse. + * Constructs a new StopExperimentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IStopExperimentRequest); - /** BatchRunTestCasesResponse results. */ - public results: google.cloud.dialogflow.cx.v3.ITestCaseResult[]; + /** StopExperimentRequest name. */ + public name: string; /** - * Creates a new BatchRunTestCasesResponse instance using the specified properties. + * Creates a new StopExperimentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BatchRunTestCasesResponse instance + * @returns StopExperimentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesResponse): google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IStopExperimentRequest): google.cloud.dialogflow.cx.v3.StopExperimentRequest; /** - * Encodes the specified BatchRunTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse.verify|verify} messages. - * @param message BatchRunTestCasesResponse message or plain object to encode + * Encodes the specified StopExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StopExperimentRequest.verify|verify} messages. + * @param message StopExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IStopExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchRunTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse.verify|verify} messages. - * @param message BatchRunTestCasesResponse message or plain object to encode + * Encodes the specified StopExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StopExperimentRequest.verify|verify} messages. + * @param message StopExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IStopExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchRunTestCasesResponse message from the specified reader or buffer. + * Decodes a StopExperimentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchRunTestCasesResponse + * @returns StopExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.StopExperimentRequest; /** - * Decodes a BatchRunTestCasesResponse message from the specified reader or buffer, length delimited. + * Decodes a StopExperimentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchRunTestCasesResponse + * @returns StopExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.StopExperimentRequest; /** - * Verifies a BatchRunTestCasesResponse message. + * Verifies a StopExperimentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchRunTestCasesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StopExperimentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchRunTestCasesResponse + * @returns StopExperimentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.StopExperimentRequest; /** - * Creates a plain object from a BatchRunTestCasesResponse message. Also converts values to other types if specified. - * @param message BatchRunTestCasesResponse + * Creates a plain object from a StopExperimentRequest message. Also converts values to other types if specified. + * @param message StopExperimentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.StopExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchRunTestCasesResponse to JSON. + * Converts this StopExperimentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BatchRunTestCasesMetadata. */ - interface IBatchRunTestCasesMetadata { + /** Represents a SecuritySettingsService */ + class SecuritySettingsService extends $protobuf.rpc.Service { - /** BatchRunTestCasesMetadata errors */ - errors?: (google.cloud.dialogflow.cx.v3.ITestError[]|null); + /** + * Constructs a new SecuritySettingsService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new SecuritySettingsService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SecuritySettingsService; + + /** + * Calls CreateSecuritySettings. + * @param request CreateSecuritySettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SecuritySettings + */ + public createSecuritySettings(request: google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest, callback: google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettingsCallback): void; + + /** + * Calls CreateSecuritySettings. + * @param request CreateSecuritySettingsRequest message or plain object + * @returns Promise + */ + public createSecuritySettings(request: google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest): Promise; + + /** + * Calls GetSecuritySettings. + * @param request GetSecuritySettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SecuritySettings + */ + public getSecuritySettings(request: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest, callback: google.cloud.dialogflow.cx.v3.SecuritySettingsService.GetSecuritySettingsCallback): void; + + /** + * Calls GetSecuritySettings. + * @param request GetSecuritySettingsRequest message or plain object + * @returns Promise + */ + public getSecuritySettings(request: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest): Promise; + + /** + * Calls UpdateSecuritySettings. + * @param request UpdateSecuritySettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SecuritySettings + */ + public updateSecuritySettings(request: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest, callback: google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettingsCallback): void; + + /** + * Calls UpdateSecuritySettings. + * @param request UpdateSecuritySettingsRequest message or plain object + * @returns Promise + */ + public updateSecuritySettings(request: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest): Promise; + + /** + * Calls ListSecuritySettings. + * @param request ListSecuritySettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListSecuritySettingsResponse + */ + public listSecuritySettings(request: google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest, callback: google.cloud.dialogflow.cx.v3.SecuritySettingsService.ListSecuritySettingsCallback): void; + + /** + * Calls ListSecuritySettings. + * @param request ListSecuritySettingsRequest message or plain object + * @returns Promise + */ + public listSecuritySettings(request: google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest): Promise; + + /** + * Calls DeleteSecuritySettings. + * @param request DeleteSecuritySettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteSecuritySettings(request: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest, callback: google.cloud.dialogflow.cx.v3.SecuritySettingsService.DeleteSecuritySettingsCallback): void; + + /** + * Calls DeleteSecuritySettings. + * @param request DeleteSecuritySettingsRequest message or plain object + * @returns Promise + */ + public deleteSecuritySettings(request: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest): Promise; } - /** Represents a BatchRunTestCasesMetadata. */ - class BatchRunTestCasesMetadata implements IBatchRunTestCasesMetadata { + namespace SecuritySettingsService { /** - * Constructs a new BatchRunTestCasesMetadata. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#createSecuritySettings}. + * @param error Error, if any + * @param [response] SecuritySettings + */ + type CreateSecuritySettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SecuritySettings) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#getSecuritySettings}. + * @param error Error, if any + * @param [response] SecuritySettings + */ + type GetSecuritySettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SecuritySettings) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#updateSecuritySettings}. + * @param error Error, if any + * @param [response] SecuritySettings + */ + type UpdateSecuritySettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SecuritySettings) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#listSecuritySettings}. + * @param error Error, if any + * @param [response] ListSecuritySettingsResponse + */ + type ListSecuritySettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#deleteSecuritySettings}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteSecuritySettingsCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + } + + /** Properties of a GetSecuritySettingsRequest. */ + interface IGetSecuritySettingsRequest { + + /** GetSecuritySettingsRequest name */ + name?: (string|null); + } + + /** Represents a GetSecuritySettingsRequest. */ + class GetSecuritySettingsRequest implements IGetSecuritySettingsRequest { + + /** + * Constructs a new GetSecuritySettingsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesMetadata); + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest); - /** BatchRunTestCasesMetadata errors. */ - public errors: google.cloud.dialogflow.cx.v3.ITestError[]; + /** GetSecuritySettingsRequest name. */ + public name: string; /** - * Creates a new BatchRunTestCasesMetadata instance using the specified properties. + * Creates a new GetSecuritySettingsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BatchRunTestCasesMetadata instance + * @returns GetSecuritySettingsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesMetadata): google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata; + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest): google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest; /** - * Encodes the specified BatchRunTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata.verify|verify} messages. - * @param message BatchRunTestCasesMetadata message or plain object to encode + * Encodes the specified GetSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest.verify|verify} messages. + * @param message GetSecuritySettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchRunTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata.verify|verify} messages. - * @param message BatchRunTestCasesMetadata message or plain object to encode + * Encodes the specified GetSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest.verify|verify} messages. + * @param message GetSecuritySettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchRunTestCasesMetadata message from the specified reader or buffer. + * Decodes a GetSecuritySettingsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchRunTestCasesMetadata + * @returns GetSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest; /** - * Decodes a BatchRunTestCasesMetadata message from the specified reader or buffer, length delimited. + * Decodes a GetSecuritySettingsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchRunTestCasesMetadata + * @returns GetSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest; /** - * Verifies a BatchRunTestCasesMetadata message. + * Verifies a GetSecuritySettingsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchRunTestCasesMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a GetSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchRunTestCasesMetadata + * @returns GetSecuritySettingsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest; /** - * Creates a plain object from a BatchRunTestCasesMetadata message. Also converts values to other types if specified. - * @param message BatchRunTestCasesMetadata + * Creates a plain object from a GetSecuritySettingsRequest message. Also converts values to other types if specified. + * @param message GetSecuritySettingsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchRunTestCasesMetadata to JSON. + * Converts this GetSecuritySettingsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TestError. */ - interface ITestError { - - /** TestError testCase */ - testCase?: (string|null); + /** Properties of an UpdateSecuritySettingsRequest. */ + interface IUpdateSecuritySettingsRequest { - /** TestError status */ - status?: (google.rpc.IStatus|null); + /** UpdateSecuritySettingsRequest securitySettings */ + securitySettings?: (google.cloud.dialogflow.cx.v3.ISecuritySettings|null); - /** TestError testTime */ - testTime?: (google.protobuf.ITimestamp|null); + /** UpdateSecuritySettingsRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a TestError. */ - class TestError implements ITestError { + /** Represents an UpdateSecuritySettingsRequest. */ + class UpdateSecuritySettingsRequest implements IUpdateSecuritySettingsRequest { /** - * Constructs a new TestError. + * Constructs a new UpdateSecuritySettingsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ITestError); - - /** TestError testCase. */ - public testCase: string; + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest); - /** TestError status. */ - public status?: (google.rpc.IStatus|null); + /** UpdateSecuritySettingsRequest securitySettings. */ + public securitySettings?: (google.cloud.dialogflow.cx.v3.ISecuritySettings|null); - /** TestError testTime. */ - public testTime?: (google.protobuf.ITimestamp|null); + /** UpdateSecuritySettingsRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new TestError instance using the specified properties. + * Creates a new UpdateSecuritySettingsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TestError instance + * @returns UpdateSecuritySettingsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ITestError): google.cloud.dialogflow.cx.v3.TestError; + public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest): google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest; /** - * Encodes the specified TestError message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestError.verify|verify} messages. - * @param message TestError message or plain object to encode + * Encodes the specified UpdateSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest.verify|verify} messages. + * @param message UpdateSecuritySettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ITestError, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TestError message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestError.verify|verify} messages. - * @param message TestError message or plain object to encode + * Encodes the specified UpdateSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest.verify|verify} messages. + * @param message UpdateSecuritySettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITestError, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TestError message from the specified reader or buffer. + * Decodes an UpdateSecuritySettingsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TestError + * @returns UpdateSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TestError; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest; /** - * Decodes a TestError message from the specified reader or buffer, length delimited. + * Decodes an UpdateSecuritySettingsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TestError + * @returns UpdateSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TestError; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest; /** - * Verifies a TestError message. + * Verifies an UpdateSecuritySettingsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TestError message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TestError + * @returns UpdateSecuritySettingsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TestError; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest; /** - * Creates a plain object from a TestError message. Also converts values to other types if specified. - * @param message TestError + * Creates a plain object from an UpdateSecuritySettingsRequest message. Also converts values to other types if specified. + * @param message UpdateSecuritySettingsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.TestError, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TestError to JSON. + * Converts this UpdateSecuritySettingsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ImportTestCasesRequest. */ - interface IImportTestCasesRequest { + /** Properties of a ListSecuritySettingsRequest. */ + interface IListSecuritySettingsRequest { - /** ImportTestCasesRequest parent */ + /** ListSecuritySettingsRequest parent */ parent?: (string|null); - /** ImportTestCasesRequest gcsUri */ - gcsUri?: (string|null); + /** ListSecuritySettingsRequest pageSize */ + pageSize?: (number|null); - /** ImportTestCasesRequest content */ - content?: (Uint8Array|string|null); + /** ListSecuritySettingsRequest pageToken */ + pageToken?: (string|null); } - /** Represents an ImportTestCasesRequest. */ - class ImportTestCasesRequest implements IImportTestCasesRequest { + /** Represents a ListSecuritySettingsRequest. */ + class ListSecuritySettingsRequest implements IListSecuritySettingsRequest { /** - * Constructs a new ImportTestCasesRequest. + * Constructs a new ListSecuritySettingsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IImportTestCasesRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest); - /** ImportTestCasesRequest parent. */ + /** ListSecuritySettingsRequest parent. */ public parent: string; - /** ImportTestCasesRequest gcsUri. */ - public gcsUri: string; - - /** ImportTestCasesRequest content. */ - public content: (Uint8Array|string); + /** ListSecuritySettingsRequest pageSize. */ + public pageSize: number; - /** ImportTestCasesRequest source. */ - public source?: ("gcsUri"|"content"); + /** ListSecuritySettingsRequest pageToken. */ + public pageToken: string; /** - * Creates a new ImportTestCasesRequest instance using the specified properties. + * Creates a new ListSecuritySettingsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ImportTestCasesRequest instance + * @returns ListSecuritySettingsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IImportTestCasesRequest): google.cloud.dialogflow.cx.v3.ImportTestCasesRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest): google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest; /** - * Encodes the specified ImportTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesRequest.verify|verify} messages. - * @param message ImportTestCasesRequest message or plain object to encode + * Encodes the specified ListSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest.verify|verify} messages. + * @param message ListSecuritySettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IImportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ImportTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesRequest.verify|verify} messages. - * @param message ImportTestCasesRequest message or plain object to encode + * Encodes the specified ListSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest.verify|verify} messages. + * @param message ListSecuritySettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IImportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImportTestCasesRequest message from the specified reader or buffer. + * Decodes a ListSecuritySettingsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ImportTestCasesRequest + * @returns ListSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ImportTestCasesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest; /** - * Decodes an ImportTestCasesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListSecuritySettingsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ImportTestCasesRequest + * @returns ListSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ImportTestCasesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest; /** - * Verifies an ImportTestCasesRequest message. + * Verifies a ListSecuritySettingsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ImportTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ImportTestCasesRequest + * @returns ListSecuritySettingsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ImportTestCasesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest; /** - * Creates a plain object from an ImportTestCasesRequest message. Also converts values to other types if specified. - * @param message ImportTestCasesRequest + * Creates a plain object from a ListSecuritySettingsRequest message. Also converts values to other types if specified. + * @param message ListSecuritySettingsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ImportTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImportTestCasesRequest to JSON. + * Converts this ListSecuritySettingsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ImportTestCasesResponse. */ - interface IImportTestCasesResponse { + /** Properties of a ListSecuritySettingsResponse. */ + interface IListSecuritySettingsResponse { - /** ImportTestCasesResponse names */ - names?: (string[]|null); + /** ListSecuritySettingsResponse securitySettings */ + securitySettings?: (google.cloud.dialogflow.cx.v3.ISecuritySettings[]|null); + + /** ListSecuritySettingsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an ImportTestCasesResponse. */ - class ImportTestCasesResponse implements IImportTestCasesResponse { + /** Represents a ListSecuritySettingsResponse. */ + class ListSecuritySettingsResponse implements IListSecuritySettingsResponse { /** - * Constructs a new ImportTestCasesResponse. + * Constructs a new ListSecuritySettingsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IImportTestCasesResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse); - /** ImportTestCasesResponse names. */ - public names: string[]; + /** ListSecuritySettingsResponse securitySettings. */ + public securitySettings: google.cloud.dialogflow.cx.v3.ISecuritySettings[]; + + /** ListSecuritySettingsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ImportTestCasesResponse instance using the specified properties. + * Creates a new ListSecuritySettingsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ImportTestCasesResponse instance + * @returns ListSecuritySettingsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IImportTestCasesResponse): google.cloud.dialogflow.cx.v3.ImportTestCasesResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse): google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse; /** - * Encodes the specified ImportTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesResponse.verify|verify} messages. - * @param message ImportTestCasesResponse message or plain object to encode + * Encodes the specified ListSecuritySettingsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse.verify|verify} messages. + * @param message ListSecuritySettingsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IImportTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ImportTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesResponse.verify|verify} messages. - * @param message ImportTestCasesResponse message or plain object to encode + * Encodes the specified ListSecuritySettingsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse.verify|verify} messages. + * @param message ListSecuritySettingsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IImportTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImportTestCasesResponse message from the specified reader or buffer. + * Decodes a ListSecuritySettingsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ImportTestCasesResponse + * @returns ListSecuritySettingsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ImportTestCasesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse; /** - * Decodes an ImportTestCasesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListSecuritySettingsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ImportTestCasesResponse + * @returns ListSecuritySettingsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ImportTestCasesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse; /** - * Verifies an ImportTestCasesResponse message. + * Verifies a ListSecuritySettingsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ImportTestCasesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListSecuritySettingsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ImportTestCasesResponse + * @returns ListSecuritySettingsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ImportTestCasesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse; /** - * Creates a plain object from an ImportTestCasesResponse message. Also converts values to other types if specified. - * @param message ImportTestCasesResponse + * Creates a plain object from a ListSecuritySettingsResponse message. Also converts values to other types if specified. + * @param message ListSecuritySettingsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ImportTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImportTestCasesResponse to JSON. + * Converts this ListSecuritySettingsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ImportTestCasesMetadata. */ - interface IImportTestCasesMetadata { + /** Properties of a CreateSecuritySettingsRequest. */ + interface ICreateSecuritySettingsRequest { - /** ImportTestCasesMetadata errors */ - errors?: (google.cloud.dialogflow.cx.v3.ITestCaseError[]|null); + /** CreateSecuritySettingsRequest parent */ + parent?: (string|null); + + /** CreateSecuritySettingsRequest securitySettings */ + securitySettings?: (google.cloud.dialogflow.cx.v3.ISecuritySettings|null); } - /** Represents an ImportTestCasesMetadata. */ - class ImportTestCasesMetadata implements IImportTestCasesMetadata { + /** Represents a CreateSecuritySettingsRequest. */ + class CreateSecuritySettingsRequest implements ICreateSecuritySettingsRequest { /** - * Constructs a new ImportTestCasesMetadata. + * Constructs a new CreateSecuritySettingsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IImportTestCasesMetadata); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest); - /** ImportTestCasesMetadata errors. */ - public errors: google.cloud.dialogflow.cx.v3.ITestCaseError[]; + /** CreateSecuritySettingsRequest parent. */ + public parent: string; + + /** CreateSecuritySettingsRequest securitySettings. */ + public securitySettings?: (google.cloud.dialogflow.cx.v3.ISecuritySettings|null); /** - * Creates a new ImportTestCasesMetadata instance using the specified properties. + * Creates a new CreateSecuritySettingsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ImportTestCasesMetadata instance + * @returns CreateSecuritySettingsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IImportTestCasesMetadata): google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest): google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest; /** - * Encodes the specified ImportTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata.verify|verify} messages. - * @param message ImportTestCasesMetadata message or plain object to encode + * Encodes the specified CreateSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest.verify|verify} messages. + * @param message CreateSecuritySettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IImportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ImportTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata.verify|verify} messages. - * @param message ImportTestCasesMetadata message or plain object to encode + * Encodes the specified CreateSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest.verify|verify} messages. + * @param message CreateSecuritySettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IImportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImportTestCasesMetadata message from the specified reader or buffer. + * Decodes a CreateSecuritySettingsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ImportTestCasesMetadata + * @returns CreateSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest; /** - * Decodes an ImportTestCasesMetadata message from the specified reader or buffer, length delimited. + * Decodes a CreateSecuritySettingsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ImportTestCasesMetadata + * @returns CreateSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest; /** - * Verifies an ImportTestCasesMetadata message. + * Verifies a CreateSecuritySettingsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ImportTestCasesMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a CreateSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ImportTestCasesMetadata + * @returns CreateSecuritySettingsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest; /** - * Creates a plain object from an ImportTestCasesMetadata message. Also converts values to other types if specified. - * @param message ImportTestCasesMetadata + * Creates a plain object from a CreateSecuritySettingsRequest message. Also converts values to other types if specified. + * @param message CreateSecuritySettingsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImportTestCasesMetadata to JSON. + * Converts this CreateSecuritySettingsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TestCaseError. */ - interface ITestCaseError { - - /** TestCaseError testCase */ - testCase?: (google.cloud.dialogflow.cx.v3.ITestCase|null); + /** Properties of a DeleteSecuritySettingsRequest. */ + interface IDeleteSecuritySettingsRequest { - /** TestCaseError status */ - status?: (google.rpc.IStatus|null); + /** DeleteSecuritySettingsRequest name */ + name?: (string|null); } - /** Represents a TestCaseError. */ - class TestCaseError implements ITestCaseError { + /** Represents a DeleteSecuritySettingsRequest. */ + class DeleteSecuritySettingsRequest implements IDeleteSecuritySettingsRequest { /** - * Constructs a new TestCaseError. + * Constructs a new DeleteSecuritySettingsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ITestCaseError); - - /** TestCaseError testCase. */ - public testCase?: (google.cloud.dialogflow.cx.v3.ITestCase|null); + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest); - /** TestCaseError status. */ - public status?: (google.rpc.IStatus|null); + /** DeleteSecuritySettingsRequest name. */ + public name: string; /** - * Creates a new TestCaseError instance using the specified properties. + * Creates a new DeleteSecuritySettingsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TestCaseError instance + * @returns DeleteSecuritySettingsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ITestCaseError): google.cloud.dialogflow.cx.v3.TestCaseError; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest): google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest; /** - * Encodes the specified TestCaseError message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCaseError.verify|verify} messages. - * @param message TestCaseError message or plain object to encode + * Encodes the specified DeleteSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest.verify|verify} messages. + * @param message DeleteSecuritySettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ITestCaseError, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TestCaseError message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCaseError.verify|verify} messages. - * @param message TestCaseError message or plain object to encode + * Encodes the specified DeleteSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest.verify|verify} messages. + * @param message DeleteSecuritySettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITestCaseError, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TestCaseError message from the specified reader or buffer. + * Decodes a DeleteSecuritySettingsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TestCaseError + * @returns DeleteSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TestCaseError; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest; /** - * Decodes a TestCaseError message from the specified reader or buffer, length delimited. + * Decodes a DeleteSecuritySettingsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TestCaseError + * @returns DeleteSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TestCaseError; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest; /** - * Verifies a TestCaseError message. + * Verifies a DeleteSecuritySettingsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TestCaseError message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TestCaseError + * @returns DeleteSecuritySettingsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TestCaseError; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest; /** - * Creates a plain object from a TestCaseError message. Also converts values to other types if specified. - * @param message TestCaseError + * Creates a plain object from a DeleteSecuritySettingsRequest message. Also converts values to other types if specified. + * @param message DeleteSecuritySettingsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.TestCaseError, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TestCaseError to JSON. + * Converts this DeleteSecuritySettingsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ExportTestCasesRequest. */ - interface IExportTestCasesRequest { + /** Properties of a SecuritySettings. */ + interface ISecuritySettings { - /** ExportTestCasesRequest parent */ - parent?: (string|null); + /** SecuritySettings name */ + name?: (string|null); - /** ExportTestCasesRequest gcsUri */ - gcsUri?: (string|null); + /** SecuritySettings displayName */ + displayName?: (string|null); - /** ExportTestCasesRequest dataFormat */ - dataFormat?: (google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat|keyof typeof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat|null); + /** SecuritySettings redactionStrategy */ + redactionStrategy?: (google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy|keyof typeof google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy|null); - /** ExportTestCasesRequest filter */ - filter?: (string|null); + /** SecuritySettings redactionScope */ + redactionScope?: (google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope|keyof typeof google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope|null); + + /** SecuritySettings inspectTemplate */ + inspectTemplate?: (string|null); + + /** SecuritySettings retentionWindowDays */ + retentionWindowDays?: (number|null); + + /** SecuritySettings purgeDataTypes */ + purgeDataTypes?: (google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType[]|null); } - /** Represents an ExportTestCasesRequest. */ - class ExportTestCasesRequest implements IExportTestCasesRequest { + /** Represents a SecuritySettings. */ + class SecuritySettings implements ISecuritySettings { /** - * Constructs a new ExportTestCasesRequest. + * Constructs a new SecuritySettings. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IExportTestCasesRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ISecuritySettings); - /** ExportTestCasesRequest parent. */ - public parent: string; + /** SecuritySettings name. */ + public name: string; - /** ExportTestCasesRequest gcsUri. */ - public gcsUri: string; + /** SecuritySettings displayName. */ + public displayName: string; - /** ExportTestCasesRequest dataFormat. */ - public dataFormat: (google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat|keyof typeof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat); + /** SecuritySettings redactionStrategy. */ + public redactionStrategy: (google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy|keyof typeof google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy); - /** ExportTestCasesRequest filter. */ - public filter: string; + /** SecuritySettings redactionScope. */ + public redactionScope: (google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope|keyof typeof google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope); - /** ExportTestCasesRequest destination. */ - public destination?: "gcsUri"; + /** SecuritySettings inspectTemplate. */ + public inspectTemplate: string; + + /** SecuritySettings retentionWindowDays. */ + public retentionWindowDays: number; + + /** SecuritySettings purgeDataTypes. */ + public purgeDataTypes: google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType[]; + + /** SecuritySettings dataRetention. */ + public dataRetention?: "retentionWindowDays"; /** - * Creates a new ExportTestCasesRequest instance using the specified properties. + * Creates a new SecuritySettings instance using the specified properties. * @param [properties] Properties to set - * @returns ExportTestCasesRequest instance + * @returns SecuritySettings instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IExportTestCasesRequest): google.cloud.dialogflow.cx.v3.ExportTestCasesRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ISecuritySettings): google.cloud.dialogflow.cx.v3.SecuritySettings; /** - * Encodes the specified ExportTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.verify|verify} messages. - * @param message ExportTestCasesRequest message or plain object to encode + * Encodes the specified SecuritySettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.verify|verify} messages. + * @param message SecuritySettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IExportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ISecuritySettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.verify|verify} messages. - * @param message ExportTestCasesRequest message or plain object to encode + * Encodes the specified SecuritySettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.verify|verify} messages. + * @param message SecuritySettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IExportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ISecuritySettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportTestCasesRequest message from the specified reader or buffer. + * Decodes a SecuritySettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportTestCasesRequest + * @returns SecuritySettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ExportTestCasesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.SecuritySettings; /** - * Decodes an ExportTestCasesRequest message from the specified reader or buffer, length delimited. + * Decodes a SecuritySettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportTestCasesRequest + * @returns SecuritySettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ExportTestCasesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.SecuritySettings; /** - * Verifies an ExportTestCasesRequest message. + * Verifies a SecuritySettings message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ExportTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SecuritySettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportTestCasesRequest + * @returns SecuritySettings */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ExportTestCasesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SecuritySettings; /** - * Creates a plain object from an ExportTestCasesRequest message. Also converts values to other types if specified. - * @param message ExportTestCasesRequest + * Creates a plain object from a SecuritySettings message. Also converts values to other types if specified. + * @param message SecuritySettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ExportTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.SecuritySettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportTestCasesRequest to JSON. + * Converts this SecuritySettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace ExportTestCasesRequest { + namespace SecuritySettings { - /** DataFormat enum. */ - enum DataFormat { - DATA_FORMAT_UNSPECIFIED = 0, - BLOB = 1, - JSON = 2 + /** RedactionStrategy enum. */ + enum RedactionStrategy { + REDACTION_STRATEGY_UNSPECIFIED = 0, + REDACT_WITH_SERVICE = 1 } - } - - /** Properties of an ExportTestCasesResponse. */ - interface IExportTestCasesResponse { - /** ExportTestCasesResponse gcsUri */ - gcsUri?: (string|null); + /** RedactionScope enum. */ + enum RedactionScope { + REDACTION_SCOPE_UNSPECIFIED = 0, + REDACT_DISK_STORAGE = 2 + } - /** ExportTestCasesResponse content */ - content?: (Uint8Array|string|null); + /** PurgeDataType enum. */ + enum PurgeDataType { + PURGE_DATA_TYPE_UNSPECIFIED = 0, + DIALOGFLOW_HISTORY = 1 + } } - /** Represents an ExportTestCasesResponse. */ - class ExportTestCasesResponse implements IExportTestCasesResponse { + /** Represents a Versions */ + class Versions extends $protobuf.rpc.Service { /** - * Constructs a new ExportTestCasesResponse. - * @param [properties] Properties to set + * Constructs a new Versions service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IExportTestCasesResponse); - - /** ExportTestCasesResponse gcsUri. */ - public gcsUri: string; - - /** ExportTestCasesResponse content. */ - public content: (Uint8Array|string); - - /** ExportTestCasesResponse destination. */ - public destination?: ("gcsUri"|"content"); + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates a new ExportTestCasesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ExportTestCasesResponse instance + * Creates new Versions service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IExportTestCasesResponse): google.cloud.dialogflow.cx.v3.ExportTestCasesResponse; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Versions; /** - * Encodes the specified ExportTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesResponse.verify|verify} messages. - * @param message ExportTestCasesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ListVersions. + * @param request ListVersionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListVersionsResponse */ - public static encode(message: google.cloud.dialogflow.cx.v3.IExportTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public listVersions(request: google.cloud.dialogflow.cx.v3.IListVersionsRequest, callback: google.cloud.dialogflow.cx.v3.Versions.ListVersionsCallback): void; /** - * Encodes the specified ExportTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesResponse.verify|verify} messages. - * @param message ExportTestCasesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ListVersions. + * @param request ListVersionsRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IExportTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public listVersions(request: google.cloud.dialogflow.cx.v3.IListVersionsRequest): Promise; /** - * Decodes an ExportTestCasesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExportTestCasesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetVersion. + * @param request GetVersionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Version */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ExportTestCasesResponse; + public getVersion(request: google.cloud.dialogflow.cx.v3.IGetVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.GetVersionCallback): void; /** - * Decodes an ExportTestCasesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExportTestCasesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetVersion. + * @param request GetVersionRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ExportTestCasesResponse; + public getVersion(request: google.cloud.dialogflow.cx.v3.IGetVersionRequest): Promise; /** - * Verifies an ExportTestCasesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls CreateVersion. + * @param request CreateVersionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static verify(message: { [k: string]: any }): (string|null); + public createVersion(request: google.cloud.dialogflow.cx.v3.ICreateVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.CreateVersionCallback): void; /** - * Creates an ExportTestCasesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExportTestCasesResponse + * Calls CreateVersion. + * @param request CreateVersionRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ExportTestCasesResponse; + public createVersion(request: google.cloud.dialogflow.cx.v3.ICreateVersionRequest): Promise; /** - * Creates a plain object from an ExportTestCasesResponse message. Also converts values to other types if specified. - * @param message ExportTestCasesResponse - * @param [options] Conversion options - * @returns Plain object + * Calls UpdateVersion. + * @param request UpdateVersionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Version */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ExportTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public updateVersion(request: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.UpdateVersionCallback): void; /** - * Converts this ExportTestCasesResponse to JSON. - * @returns JSON object + * Calls UpdateVersion. + * @param request UpdateVersionRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an ExportTestCasesMetadata. */ - interface IExportTestCasesMetadata { - } - - /** Represents an ExportTestCasesMetadata. */ - class ExportTestCasesMetadata implements IExportTestCasesMetadata { + public updateVersion(request: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest): Promise; /** - * Constructs a new ExportTestCasesMetadata. - * @param [properties] Properties to set + * Calls DeleteVersion. + * @param request DeleteVersionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IExportTestCasesMetadata); + public deleteVersion(request: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.DeleteVersionCallback): void; /** - * Creates a new ExportTestCasesMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns ExportTestCasesMetadata instance + * Calls DeleteVersion. + * @param request DeleteVersionRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IExportTestCasesMetadata): google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata; + public deleteVersion(request: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest): Promise; /** - * Encodes the specified ExportTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata.verify|verify} messages. - * @param message ExportTestCasesMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls LoadVersion. + * @param request LoadVersionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static encode(message: google.cloud.dialogflow.cx.v3.IExportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public loadVersion(request: google.cloud.dialogflow.cx.v3.ILoadVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.LoadVersionCallback): void; /** - * Encodes the specified ExportTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata.verify|verify} messages. - * @param message ExportTestCasesMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls LoadVersion. + * @param request LoadVersionRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IExportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public loadVersion(request: google.cloud.dialogflow.cx.v3.ILoadVersionRequest): Promise; + } + + namespace Versions { /** - * Decodes an ExportTestCasesMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExportTestCasesMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#listVersions}. + * @param error Error, if any + * @param [response] ListVersionsResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata; + type ListVersionsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListVersionsResponse) => void; /** - * Decodes an ExportTestCasesMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExportTestCasesMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#getVersion}. + * @param error Error, if any + * @param [response] Version */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata; + type GetVersionCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Version) => void; /** - * Verifies an ExportTestCasesMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#createVersion}. + * @param error Error, if any + * @param [response] Operation */ - public static verify(message: { [k: string]: any }): (string|null); + type CreateVersionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates an ExportTestCasesMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExportTestCasesMetadata + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#updateVersion}. + * @param error Error, if any + * @param [response] Version */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata; + type UpdateVersionCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Version) => void; /** - * Creates a plain object from an ExportTestCasesMetadata message. Also converts values to other types if specified. - * @param message ExportTestCasesMetadata - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#deleteVersion}. + * @param error Error, if any + * @param [response] Empty */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type DeleteVersionCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Converts this ExportTestCasesMetadata to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#loadVersion}. + * @param error Error, if any + * @param [response] Operation */ - public toJSON(): { [k: string]: any }; + type LoadVersionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; } - /** Properties of a ListTestCaseResultsRequest. */ - interface IListTestCaseResultsRequest { - - /** ListTestCaseResultsRequest parent */ - parent?: (string|null); - - /** ListTestCaseResultsRequest pageSize */ - pageSize?: (number|null); - - /** ListTestCaseResultsRequest pageToken */ - pageToken?: (string|null); + /** Properties of a CreateVersionOperationMetadata. */ + interface ICreateVersionOperationMetadata { - /** ListTestCaseResultsRequest filter */ - filter?: (string|null); + /** CreateVersionOperationMetadata version */ + version?: (string|null); } - /** Represents a ListTestCaseResultsRequest. */ - class ListTestCaseResultsRequest implements IListTestCaseResultsRequest { + /** Represents a CreateVersionOperationMetadata. */ + class CreateVersionOperationMetadata implements ICreateVersionOperationMetadata { /** - * Constructs a new ListTestCaseResultsRequest. + * Constructs a new CreateVersionOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest); - - /** ListTestCaseResultsRequest parent. */ - public parent: string; - - /** ListTestCaseResultsRequest pageSize. */ - public pageSize: number; - - /** ListTestCaseResultsRequest pageToken. */ - public pageToken: string; + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata); - /** ListTestCaseResultsRequest filter. */ - public filter: string; + /** CreateVersionOperationMetadata version. */ + public version: string; /** - * Creates a new ListTestCaseResultsRequest instance using the specified properties. + * Creates a new CreateVersionOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ListTestCaseResultsRequest instance + * @returns CreateVersionOperationMetadata instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest): google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata): google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata; /** - * Encodes the specified ListTestCaseResultsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest.verify|verify} messages. - * @param message ListTestCaseResultsRequest message or plain object to encode + * Encodes the specified CreateVersionOperationMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata.verify|verify} messages. + * @param message CreateVersionOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTestCaseResultsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest.verify|verify} messages. - * @param message ListTestCaseResultsRequest message or plain object to encode + * Encodes the specified CreateVersionOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata.verify|verify} messages. + * @param message CreateVersionOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTestCaseResultsRequest message from the specified reader or buffer. + * Decodes a CreateVersionOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTestCaseResultsRequest + * @returns CreateVersionOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata; /** - * Decodes a ListTestCaseResultsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateVersionOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTestCaseResultsRequest + * @returns CreateVersionOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata; /** - * Verifies a ListTestCaseResultsRequest message. + * Verifies a CreateVersionOperationMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListTestCaseResultsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateVersionOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTestCaseResultsRequest + * @returns CreateVersionOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata; /** - * Creates a plain object from a ListTestCaseResultsRequest message. Also converts values to other types if specified. - * @param message ListTestCaseResultsRequest + * Creates a plain object from a CreateVersionOperationMetadata message. Also converts values to other types if specified. + * @param message CreateVersionOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTestCaseResultsRequest to JSON. + * Converts this CreateVersionOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListTestCaseResultsResponse. */ - interface IListTestCaseResultsResponse { + /** Properties of a Version. */ + interface IVersion { - /** ListTestCaseResultsResponse testCaseResults */ - testCaseResults?: (google.cloud.dialogflow.cx.v3.ITestCaseResult[]|null); + /** Version name */ + name?: (string|null); - /** ListTestCaseResultsResponse nextPageToken */ - nextPageToken?: (string|null); - } + /** Version displayName */ + displayName?: (string|null); - /** Represents a ListTestCaseResultsResponse. */ - class ListTestCaseResultsResponse implements IListTestCaseResultsResponse { + /** Version description */ + description?: (string|null); + + /** Version nluSettings */ + nluSettings?: (google.cloud.dialogflow.cx.v3.INluSettings|null); + + /** Version createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Version state */ + state?: (google.cloud.dialogflow.cx.v3.Version.State|keyof typeof google.cloud.dialogflow.cx.v3.Version.State|null); + } + + /** Represents a Version. */ + class Version implements IVersion { /** - * Constructs a new ListTestCaseResultsResponse. + * Constructs a new Version. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListTestCaseResultsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IVersion); - /** ListTestCaseResultsResponse testCaseResults. */ - public testCaseResults: google.cloud.dialogflow.cx.v3.ITestCaseResult[]; + /** Version name. */ + public name: string; - /** ListTestCaseResultsResponse nextPageToken. */ - public nextPageToken: string; + /** Version displayName. */ + public displayName: string; + + /** Version description. */ + public description: string; + + /** Version nluSettings. */ + public nluSettings?: (google.cloud.dialogflow.cx.v3.INluSettings|null); + + /** Version createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Version state. */ + public state: (google.cloud.dialogflow.cx.v3.Version.State|keyof typeof google.cloud.dialogflow.cx.v3.Version.State); /** - * Creates a new ListTestCaseResultsResponse instance using the specified properties. + * Creates a new Version instance using the specified properties. * @param [properties] Properties to set - * @returns ListTestCaseResultsResponse instance + * @returns Version instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListTestCaseResultsResponse): google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IVersion): google.cloud.dialogflow.cx.v3.Version; /** - * Encodes the specified ListTestCaseResultsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse.verify|verify} messages. - * @param message ListTestCaseResultsResponse message or plain object to encode + * Encodes the specified Version message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Version.verify|verify} messages. + * @param message Version message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListTestCaseResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTestCaseResultsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse.verify|verify} messages. - * @param message ListTestCaseResultsResponse message or plain object to encode + * Encodes the specified Version message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Version.verify|verify} messages. + * @param message Version message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListTestCaseResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTestCaseResultsResponse message from the specified reader or buffer. + * Decodes a Version message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTestCaseResultsResponse + * @returns Version * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Version; /** - * Decodes a ListTestCaseResultsResponse message from the specified reader or buffer, length delimited. + * Decodes a Version message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTestCaseResultsResponse + * @returns Version * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Version; /** - * Verifies a ListTestCaseResultsResponse message. + * Verifies a Version message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListTestCaseResultsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Version message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTestCaseResultsResponse + * @returns Version */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Version; /** - * Creates a plain object from a ListTestCaseResultsResponse message. Also converts values to other types if specified. - * @param message ListTestCaseResultsResponse + * Creates a plain object from a Version message. Also converts values to other types if specified. + * @param message Version * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Version, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTestCaseResultsResponse to JSON. + * Converts this Version to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** TestResult enum. */ - enum TestResult { - TEST_RESULT_UNSPECIFIED = 0, - PASSED = 1, - FAILED = 2 + namespace Version { + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + RUNNING = 1, + SUCCEEDED = 2, + FAILED = 3 + } } - /** Represents a TransitionRouteGroups */ - class TransitionRouteGroups extends $protobuf.rpc.Service { + /** Properties of a ListVersionsRequest. */ + interface IListVersionsRequest { - /** - * Constructs a new TransitionRouteGroups service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** ListVersionsRequest parent */ + parent?: (string|null); - /** - * Creates new TransitionRouteGroups service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): TransitionRouteGroups; + /** ListVersionsRequest pageSize */ + pageSize?: (number|null); - /** - * Calls ListTransitionRouteGroups. - * @param request ListTransitionRouteGroupsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListTransitionRouteGroupsResponse - */ - public listTransitionRouteGroups(request: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest, callback: google.cloud.dialogflow.cx.v3.TransitionRouteGroups.ListTransitionRouteGroupsCallback): void; + /** ListVersionsRequest pageToken */ + pageToken?: (string|null); + } - /** - * Calls ListTransitionRouteGroups. - * @param request ListTransitionRouteGroupsRequest message or plain object - * @returns Promise - */ - public listTransitionRouteGroups(request: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest): Promise; + /** Represents a ListVersionsRequest. */ + class ListVersionsRequest implements IListVersionsRequest { /** - * Calls GetTransitionRouteGroup. - * @param request GetTransitionRouteGroupRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TransitionRouteGroup + * Constructs a new ListVersionsRequest. + * @param [properties] Properties to set */ - public getTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3.TransitionRouteGroups.GetTransitionRouteGroupCallback): void; + constructor(properties?: google.cloud.dialogflow.cx.v3.IListVersionsRequest); - /** - * Calls GetTransitionRouteGroup. - * @param request GetTransitionRouteGroupRequest message or plain object - * @returns Promise - */ - public getTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest): Promise; + /** ListVersionsRequest parent. */ + public parent: string; - /** - * Calls CreateTransitionRouteGroup. - * @param request CreateTransitionRouteGroupRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TransitionRouteGroup - */ - public createTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroupCallback): void; + /** ListVersionsRequest pageSize. */ + public pageSize: number; - /** - * Calls CreateTransitionRouteGroup. - * @param request CreateTransitionRouteGroupRequest message or plain object - * @returns Promise - */ - public createTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest): Promise; + /** ListVersionsRequest pageToken. */ + public pageToken: string; /** - * Calls UpdateTransitionRouteGroup. - * @param request UpdateTransitionRouteGroupRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TransitionRouteGroup + * Creates a new ListVersionsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListVersionsRequest instance */ - public updateTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3.TransitionRouteGroups.UpdateTransitionRouteGroupCallback): void; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListVersionsRequest): google.cloud.dialogflow.cx.v3.ListVersionsRequest; /** - * Calls UpdateTransitionRouteGroup. - * @param request UpdateTransitionRouteGroupRequest message or plain object - * @returns Promise + * Encodes the specified ListVersionsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsRequest.verify|verify} messages. + * @param message ListVersionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public updateTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest): Promise; + public static encode(message: google.cloud.dialogflow.cx.v3.IListVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteTransitionRouteGroup. - * @param request DeleteTransitionRouteGroupRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Encodes the specified ListVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsRequest.verify|verify} messages. + * @param message ListVersionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3.TransitionRouteGroups.DeleteTransitionRouteGroupCallback): void; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteTransitionRouteGroup. - * @param request DeleteTransitionRouteGroupRequest message or plain object - * @returns Promise + * Decodes a ListVersionsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListVersionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest): Promise; - } - - namespace TransitionRouteGroups { + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListVersionsRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#listTransitionRouteGroups}. - * @param error Error, if any - * @param [response] ListTransitionRouteGroupsResponse + * Decodes a ListVersionsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListVersionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ListTransitionRouteGroupsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListVersionsRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#getTransitionRouteGroup}. - * @param error Error, if any - * @param [response] TransitionRouteGroup + * Verifies a ListVersionsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type GetTransitionRouteGroupCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.TransitionRouteGroup) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#createTransitionRouteGroup}. - * @param error Error, if any - * @param [response] TransitionRouteGroup + * Creates a ListVersionsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListVersionsRequest */ - type CreateTransitionRouteGroupCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.TransitionRouteGroup) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListVersionsRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#updateTransitionRouteGroup}. - * @param error Error, if any - * @param [response] TransitionRouteGroup + * Creates a plain object from a ListVersionsRequest message. Also converts values to other types if specified. + * @param message ListVersionsRequest + * @param [options] Conversion options + * @returns Plain object */ - type UpdateTransitionRouteGroupCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.TransitionRouteGroup) => void; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#deleteTransitionRouteGroup}. - * @param error Error, if any - * @param [response] Empty + * Converts this ListVersionsRequest to JSON. + * @returns JSON object */ - type DeleteTransitionRouteGroupCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public toJSON(): { [k: string]: any }; } - /** Properties of a TransitionRouteGroup. */ - interface ITransitionRouteGroup { - - /** TransitionRouteGroup name */ - name?: (string|null); + /** Properties of a ListVersionsResponse. */ + interface IListVersionsResponse { - /** TransitionRouteGroup displayName */ - displayName?: (string|null); + /** ListVersionsResponse versions */ + versions?: (google.cloud.dialogflow.cx.v3.IVersion[]|null); - /** TransitionRouteGroup transitionRoutes */ - transitionRoutes?: (google.cloud.dialogflow.cx.v3.ITransitionRoute[]|null); + /** ListVersionsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a TransitionRouteGroup. */ - class TransitionRouteGroup implements ITransitionRouteGroup { + /** Represents a ListVersionsResponse. */ + class ListVersionsResponse implements IListVersionsResponse { /** - * Constructs a new TransitionRouteGroup. + * Constructs a new ListVersionsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ITransitionRouteGroup); - - /** TransitionRouteGroup name. */ - public name: string; + constructor(properties?: google.cloud.dialogflow.cx.v3.IListVersionsResponse); - /** TransitionRouteGroup displayName. */ - public displayName: string; + /** ListVersionsResponse versions. */ + public versions: google.cloud.dialogflow.cx.v3.IVersion[]; - /** TransitionRouteGroup transitionRoutes. */ - public transitionRoutes: google.cloud.dialogflow.cx.v3.ITransitionRoute[]; + /** ListVersionsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new TransitionRouteGroup instance using the specified properties. + * Creates a new ListVersionsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns TransitionRouteGroup instance + * @returns ListVersionsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ITransitionRouteGroup): google.cloud.dialogflow.cx.v3.TransitionRouteGroup; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListVersionsResponse): google.cloud.dialogflow.cx.v3.ListVersionsResponse; /** - * Encodes the specified TransitionRouteGroup message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify|verify} messages. - * @param message TransitionRouteGroup message or plain object to encode + * Encodes the specified ListVersionsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsResponse.verify|verify} messages. + * @param message ListVersionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ITransitionRouteGroup, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TransitionRouteGroup message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify|verify} messages. - * @param message TransitionRouteGroup message or plain object to encode + * Encodes the specified ListVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsResponse.verify|verify} messages. + * @param message ListVersionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITransitionRouteGroup, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TransitionRouteGroup message from the specified reader or buffer. + * Decodes a ListVersionsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TransitionRouteGroup + * @returns ListVersionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TransitionRouteGroup; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListVersionsResponse; /** - * Decodes a TransitionRouteGroup message from the specified reader or buffer, length delimited. + * Decodes a ListVersionsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TransitionRouteGroup + * @returns ListVersionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TransitionRouteGroup; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListVersionsResponse; /** - * Verifies a TransitionRouteGroup message. + * Verifies a ListVersionsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TransitionRouteGroup message from a plain object. Also converts values to their respective internal types. + * Creates a ListVersionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TransitionRouteGroup + * @returns ListVersionsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TransitionRouteGroup; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListVersionsResponse; /** - * Creates a plain object from a TransitionRouteGroup message. Also converts values to other types if specified. - * @param message TransitionRouteGroup + * Creates a plain object from a ListVersionsResponse message. Also converts values to other types if specified. + * @param message ListVersionsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.TransitionRouteGroup, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TransitionRouteGroup to JSON. + * Converts this ListVersionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListTransitionRouteGroupsRequest. */ - interface IListTransitionRouteGroupsRequest { - - /** ListTransitionRouteGroupsRequest parent */ - parent?: (string|null); - - /** ListTransitionRouteGroupsRequest pageSize */ - pageSize?: (number|null); - - /** ListTransitionRouteGroupsRequest pageToken */ - pageToken?: (string|null); + /** Properties of a GetVersionRequest. */ + interface IGetVersionRequest { - /** ListTransitionRouteGroupsRequest languageCode */ - languageCode?: (string|null); + /** GetVersionRequest name */ + name?: (string|null); } - /** Represents a ListTransitionRouteGroupsRequest. */ - class ListTransitionRouteGroupsRequest implements IListTransitionRouteGroupsRequest { + /** Represents a GetVersionRequest. */ + class GetVersionRequest implements IGetVersionRequest { /** - * Constructs a new ListTransitionRouteGroupsRequest. + * Constructs a new GetVersionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest); - - /** ListTransitionRouteGroupsRequest parent. */ - public parent: string; - - /** ListTransitionRouteGroupsRequest pageSize. */ - public pageSize: number; - - /** ListTransitionRouteGroupsRequest pageToken. */ - public pageToken: string; + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetVersionRequest); - /** ListTransitionRouteGroupsRequest languageCode. */ - public languageCode: string; + /** GetVersionRequest name. */ + public name: string; /** - * Creates a new ListTransitionRouteGroupsRequest instance using the specified properties. + * Creates a new GetVersionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListTransitionRouteGroupsRequest instance + * @returns GetVersionRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetVersionRequest): google.cloud.dialogflow.cx.v3.GetVersionRequest; /** - * Encodes the specified ListTransitionRouteGroupsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest.verify|verify} messages. - * @param message ListTransitionRouteGroupsRequest message or plain object to encode + * Encodes the specified GetVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetVersionRequest.verify|verify} messages. + * @param message GetVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTransitionRouteGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest.verify|verify} messages. - * @param message ListTransitionRouteGroupsRequest message or plain object to encode + * Encodes the specified GetVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetVersionRequest.verify|verify} messages. + * @param message GetVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer. + * Decodes a GetVersionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTransitionRouteGroupsRequest + * @returns GetVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetVersionRequest; /** - * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetVersionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTransitionRouteGroupsRequest + * @returns GetVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetVersionRequest; /** - * Verifies a ListTransitionRouteGroupsRequest message. + * Verifies a GetVersionRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListTransitionRouteGroupsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetVersionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTransitionRouteGroupsRequest + * @returns GetVersionRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetVersionRequest; /** - * Creates a plain object from a ListTransitionRouteGroupsRequest message. Also converts values to other types if specified. - * @param message ListTransitionRouteGroupsRequest + * Creates a plain object from a GetVersionRequest message. Also converts values to other types if specified. + * @param message GetVersionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.GetVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTransitionRouteGroupsRequest to JSON. + * Converts this GetVersionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListTransitionRouteGroupsResponse. */ - interface IListTransitionRouteGroupsResponse { + /** Properties of a CreateVersionRequest. */ + interface ICreateVersionRequest { - /** ListTransitionRouteGroupsResponse transitionRouteGroups */ - transitionRouteGroups?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup[]|null); + /** CreateVersionRequest parent */ + parent?: (string|null); - /** ListTransitionRouteGroupsResponse nextPageToken */ - nextPageToken?: (string|null); + /** CreateVersionRequest version */ + version?: (google.cloud.dialogflow.cx.v3.IVersion|null); } - /** Represents a ListTransitionRouteGroupsResponse. */ - class ListTransitionRouteGroupsResponse implements IListTransitionRouteGroupsResponse { + /** Represents a CreateVersionRequest. */ + class CreateVersionRequest implements ICreateVersionRequest { /** - * Constructs a new ListTransitionRouteGroupsResponse. + * Constructs a new CreateVersionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateVersionRequest); - /** ListTransitionRouteGroupsResponse transitionRouteGroups. */ - public transitionRouteGroups: google.cloud.dialogflow.cx.v3.ITransitionRouteGroup[]; + /** CreateVersionRequest parent. */ + public parent: string; - /** ListTransitionRouteGroupsResponse nextPageToken. */ - public nextPageToken: string; + /** CreateVersionRequest version. */ + public version?: (google.cloud.dialogflow.cx.v3.IVersion|null); /** - * Creates a new ListTransitionRouteGroupsResponse instance using the specified properties. + * Creates a new CreateVersionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListTransitionRouteGroupsResponse instance + * @returns CreateVersionRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateVersionRequest): google.cloud.dialogflow.cx.v3.CreateVersionRequest; /** - * Encodes the specified ListTransitionRouteGroupsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse.verify|verify} messages. - * @param message ListTransitionRouteGroupsResponse message or plain object to encode + * Encodes the specified CreateVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionRequest.verify|verify} messages. + * @param message CreateVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTransitionRouteGroupsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse.verify|verify} messages. - * @param message ListTransitionRouteGroupsResponse message or plain object to encode + * Encodes the specified CreateVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionRequest.verify|verify} messages. + * @param message CreateVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTransitionRouteGroupsResponse message from the specified reader or buffer. + * Decodes a CreateVersionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTransitionRouteGroupsResponse + * @returns CreateVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateVersionRequest; /** - * Decodes a ListTransitionRouteGroupsResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateVersionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTransitionRouteGroupsResponse + * @returns CreateVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateVersionRequest; /** - * Verifies a ListTransitionRouteGroupsResponse message. + * Verifies a CreateVersionRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListTransitionRouteGroupsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateVersionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTransitionRouteGroupsResponse + * @returns CreateVersionRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateVersionRequest; /** - * Creates a plain object from a ListTransitionRouteGroupsResponse message. Also converts values to other types if specified. - * @param message ListTransitionRouteGroupsResponse + * Creates a plain object from a CreateVersionRequest message. Also converts values to other types if specified. + * @param message CreateVersionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTransitionRouteGroupsResponse to JSON. + * Converts this CreateVersionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetTransitionRouteGroupRequest. */ - interface IGetTransitionRouteGroupRequest { + /** Properties of an UpdateVersionRequest. */ + interface IUpdateVersionRequest { - /** GetTransitionRouteGroupRequest name */ - name?: (string|null); + /** UpdateVersionRequest version */ + version?: (google.cloud.dialogflow.cx.v3.IVersion|null); - /** GetTransitionRouteGroupRequest languageCode */ - languageCode?: (string|null); + /** UpdateVersionRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a GetTransitionRouteGroupRequest. */ - class GetTransitionRouteGroupRequest implements IGetTransitionRouteGroupRequest { + /** Represents an UpdateVersionRequest. */ + class UpdateVersionRequest implements IUpdateVersionRequest { /** - * Constructs a new GetTransitionRouteGroupRequest. + * Constructs a new UpdateVersionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest); - /** GetTransitionRouteGroupRequest name. */ - public name: string; - - /** GetTransitionRouteGroupRequest languageCode. */ - public languageCode: string; - - /** - * Creates a new GetTransitionRouteGroupRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetTransitionRouteGroupRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest; - - /** - * Encodes the specified GetTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest.verify|verify} messages. - * @param message GetTransitionRouteGroupRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest.verify|verify} messages. - * @param message GetTransitionRouteGroupRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetTransitionRouteGroupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest; - - /** - * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetTransitionRouteGroupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest; - - /** - * Verifies a GetTransitionRouteGroupRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetTransitionRouteGroupRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest; - - /** - * Creates a plain object from a GetTransitionRouteGroupRequest message. Also converts values to other types if specified. - * @param message GetTransitionRouteGroupRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetTransitionRouteGroupRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a CreateTransitionRouteGroupRequest. */ - interface ICreateTransitionRouteGroupRequest { - - /** CreateTransitionRouteGroupRequest parent */ - parent?: (string|null); - - /** CreateTransitionRouteGroupRequest transitionRouteGroup */ - transitionRouteGroup?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null); - - /** CreateTransitionRouteGroupRequest languageCode */ - languageCode?: (string|null); - } - - /** Represents a CreateTransitionRouteGroupRequest. */ - class CreateTransitionRouteGroupRequest implements ICreateTransitionRouteGroupRequest { - - /** - * Constructs a new CreateTransitionRouteGroupRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest); - - /** CreateTransitionRouteGroupRequest parent. */ - public parent: string; - - /** CreateTransitionRouteGroupRequest transitionRouteGroup. */ - public transitionRouteGroup?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null); + /** UpdateVersionRequest version. */ + public version?: (google.cloud.dialogflow.cx.v3.IVersion|null); - /** CreateTransitionRouteGroupRequest languageCode. */ - public languageCode: string; + /** UpdateVersionRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new CreateTransitionRouteGroupRequest instance using the specified properties. + * Creates a new UpdateVersionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateTransitionRouteGroupRequest instance + * @returns UpdateVersionRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest): google.cloud.dialogflow.cx.v3.UpdateVersionRequest; /** - * Encodes the specified CreateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest.verify|verify} messages. - * @param message CreateTransitionRouteGroupRequest message or plain object to encode + * Encodes the specified UpdateVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateVersionRequest.verify|verify} messages. + * @param message UpdateVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest.verify|verify} messages. - * @param message CreateTransitionRouteGroupRequest message or plain object to encode + * Encodes the specified UpdateVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateVersionRequest.verify|verify} messages. + * @param message UpdateVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer. + * Decodes an UpdateVersionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateTransitionRouteGroupRequest + * @returns UpdateVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateVersionRequest; /** - * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateVersionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateTransitionRouteGroupRequest + * @returns UpdateVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateVersionRequest; /** - * Verifies a CreateTransitionRouteGroupRequest message. + * Verifies an UpdateVersionRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateVersionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateTransitionRouteGroupRequest + * @returns UpdateVersionRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateVersionRequest; /** - * Creates a plain object from a CreateTransitionRouteGroupRequest message. Also converts values to other types if specified. - * @param message CreateTransitionRouteGroupRequest + * Creates a plain object from an UpdateVersionRequest message. Also converts values to other types if specified. + * @param message UpdateVersionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateTransitionRouteGroupRequest to JSON. + * Converts this UpdateVersionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateTransitionRouteGroupRequest. */ - interface IUpdateTransitionRouteGroupRequest { - - /** UpdateTransitionRouteGroupRequest transitionRouteGroup */ - transitionRouteGroup?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null); - - /** UpdateTransitionRouteGroupRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** Properties of a DeleteVersionRequest. */ + interface IDeleteVersionRequest { - /** UpdateTransitionRouteGroupRequest languageCode */ - languageCode?: (string|null); + /** DeleteVersionRequest name */ + name?: (string|null); } - /** Represents an UpdateTransitionRouteGroupRequest. */ - class UpdateTransitionRouteGroupRequest implements IUpdateTransitionRouteGroupRequest { + /** Represents a DeleteVersionRequest. */ + class DeleteVersionRequest implements IDeleteVersionRequest { /** - * Constructs a new UpdateTransitionRouteGroupRequest. + * Constructs a new DeleteVersionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest); - - /** UpdateTransitionRouteGroupRequest transitionRouteGroup. */ - public transitionRouteGroup?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null); - - /** UpdateTransitionRouteGroupRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest); - /** UpdateTransitionRouteGroupRequest languageCode. */ - public languageCode: string; + /** DeleteVersionRequest name. */ + public name: string; /** - * Creates a new UpdateTransitionRouteGroupRequest instance using the specified properties. + * Creates a new DeleteVersionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateTransitionRouteGroupRequest instance + * @returns DeleteVersionRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest): google.cloud.dialogflow.cx.v3.DeleteVersionRequest; /** - * Encodes the specified UpdateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest.verify|verify} messages. - * @param message UpdateTransitionRouteGroupRequest message or plain object to encode + * Encodes the specified DeleteVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteVersionRequest.verify|verify} messages. + * @param message DeleteVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest.verify|verify} messages. - * @param message UpdateTransitionRouteGroupRequest message or plain object to encode + * Encodes the specified DeleteVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteVersionRequest.verify|verify} messages. + * @param message DeleteVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateTransitionRouteGroupRequest message from the specified reader or buffer. + * Decodes a DeleteVersionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateTransitionRouteGroupRequest + * @returns DeleteVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteVersionRequest; /** - * Decodes an UpdateTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteVersionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateTransitionRouteGroupRequest + * @returns DeleteVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteVersionRequest; /** - * Verifies an UpdateTransitionRouteGroupRequest message. + * Verifies a DeleteVersionRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteVersionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateTransitionRouteGroupRequest + * @returns DeleteVersionRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteVersionRequest; /** - * Creates a plain object from an UpdateTransitionRouteGroupRequest message. Also converts values to other types if specified. - * @param message UpdateTransitionRouteGroupRequest + * Creates a plain object from a DeleteVersionRequest message. Also converts values to other types if specified. + * @param message DeleteVersionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateTransitionRouteGroupRequest to JSON. + * Converts this DeleteVersionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteTransitionRouteGroupRequest. */ - interface IDeleteTransitionRouteGroupRequest { + /** Properties of a LoadVersionRequest. */ + interface ILoadVersionRequest { - /** DeleteTransitionRouteGroupRequest name */ + /** LoadVersionRequest name */ name?: (string|null); - /** DeleteTransitionRouteGroupRequest force */ - force?: (boolean|null); + /** LoadVersionRequest allowOverrideAgentResources */ + allowOverrideAgentResources?: (boolean|null); } - /** Represents a DeleteTransitionRouteGroupRequest. */ - class DeleteTransitionRouteGroupRequest implements IDeleteTransitionRouteGroupRequest { + /** Represents a LoadVersionRequest. */ + class LoadVersionRequest implements ILoadVersionRequest { /** - * Constructs a new DeleteTransitionRouteGroupRequest. + * Constructs a new LoadVersionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ILoadVersionRequest); - /** DeleteTransitionRouteGroupRequest name. */ + /** LoadVersionRequest name. */ public name: string; - /** DeleteTransitionRouteGroupRequest force. */ - public force: boolean; + /** LoadVersionRequest allowOverrideAgentResources. */ + public allowOverrideAgentResources: boolean; /** - * Creates a new DeleteTransitionRouteGroupRequest instance using the specified properties. + * Creates a new LoadVersionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteTransitionRouteGroupRequest instance + * @returns LoadVersionRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ILoadVersionRequest): google.cloud.dialogflow.cx.v3.LoadVersionRequest; /** - * Encodes the specified DeleteTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest.verify|verify} messages. - * @param message DeleteTransitionRouteGroupRequest message or plain object to encode + * Encodes the specified LoadVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LoadVersionRequest.verify|verify} messages. + * @param message LoadVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ILoadVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest.verify|verify} messages. - * @param message DeleteTransitionRouteGroupRequest message or plain object to encode + * Encodes the specified LoadVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LoadVersionRequest.verify|verify} messages. + * @param message LoadVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ILoadVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer. + * Decodes a LoadVersionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteTransitionRouteGroupRequest + * @returns LoadVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.LoadVersionRequest; /** - * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. + * Decodes a LoadVersionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteTransitionRouteGroupRequest + * @returns LoadVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.LoadVersionRequest; /** - * Verifies a DeleteTransitionRouteGroupRequest message. + * Verifies a LoadVersionRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. + * Creates a LoadVersionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteTransitionRouteGroupRequest + * @returns LoadVersionRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.LoadVersionRequest; /** - * Creates a plain object from a DeleteTransitionRouteGroupRequest message. Also converts values to other types if specified. - * @param message DeleteTransitionRouteGroupRequest + * Creates a plain object from a LoadVersionRequest message. Also converts values to other types if specified. + * @param message LoadVersionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.LoadVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteTransitionRouteGroupRequest to JSON. + * Converts this LoadVersionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a Versions */ - class Versions extends $protobuf.rpc.Service { + /** Represents a Webhooks */ + class Webhooks extends $protobuf.rpc.Service { /** - * Constructs a new Versions service. + * Constructs a new Webhooks service. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited @@ -20917,8448 +21976,7427 @@ export namespace google { constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates new Versions service using the specified rpc implementation. + * Creates new Webhooks service using the specified rpc implementation. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Versions; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Webhooks; /** - * Calls ListVersions. - * @param request ListVersionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListVersionsResponse + * Calls ListWebhooks. + * @param request ListWebhooksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListWebhooksResponse */ - public listVersions(request: google.cloud.dialogflow.cx.v3.IListVersionsRequest, callback: google.cloud.dialogflow.cx.v3.Versions.ListVersionsCallback): void; + public listWebhooks(request: google.cloud.dialogflow.cx.v3.IListWebhooksRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooksCallback): void; /** - * Calls ListVersions. - * @param request ListVersionsRequest message or plain object + * Calls ListWebhooks. + * @param request ListWebhooksRequest message or plain object * @returns Promise */ - public listVersions(request: google.cloud.dialogflow.cx.v3.IListVersionsRequest): Promise; + public listWebhooks(request: google.cloud.dialogflow.cx.v3.IListWebhooksRequest): Promise; /** - * Calls GetVersion. - * @param request GetVersionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Version + * Calls GetWebhook. + * @param request GetWebhookRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Webhook */ - public getVersion(request: google.cloud.dialogflow.cx.v3.IGetVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.GetVersionCallback): void; + public getWebhook(request: google.cloud.dialogflow.cx.v3.IGetWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.GetWebhookCallback): void; /** - * Calls GetVersion. - * @param request GetVersionRequest message or plain object + * Calls GetWebhook. + * @param request GetWebhookRequest message or plain object * @returns Promise */ - public getVersion(request: google.cloud.dialogflow.cx.v3.IGetVersionRequest): Promise; + public getWebhook(request: google.cloud.dialogflow.cx.v3.IGetWebhookRequest): Promise; /** - * Calls CreateVersion. - * @param request CreateVersionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Calls CreateWebhook. + * @param request CreateWebhookRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Webhook */ - public createVersion(request: google.cloud.dialogflow.cx.v3.ICreateVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.CreateVersionCallback): void; + public createWebhook(request: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhookCallback): void; /** - * Calls CreateVersion. - * @param request CreateVersionRequest message or plain object + * Calls CreateWebhook. + * @param request CreateWebhookRequest message or plain object * @returns Promise */ - public createVersion(request: google.cloud.dialogflow.cx.v3.ICreateVersionRequest): Promise; + public createWebhook(request: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest): Promise; /** - * Calls UpdateVersion. - * @param request UpdateVersionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Version + * Calls UpdateWebhook. + * @param request UpdateWebhookRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Webhook */ - public updateVersion(request: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.UpdateVersionCallback): void; + public updateWebhook(request: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhookCallback): void; /** - * Calls UpdateVersion. - * @param request UpdateVersionRequest message or plain object + * Calls UpdateWebhook. + * @param request UpdateWebhookRequest message or plain object * @returns Promise */ - public updateVersion(request: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest): Promise; + public updateWebhook(request: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest): Promise; /** - * Calls DeleteVersion. - * @param request DeleteVersionRequest message or plain object + * Calls DeleteWebhook. + * @param request DeleteWebhookRequest message or plain object * @param callback Node-style callback called with the error, if any, and Empty */ - public deleteVersion(request: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.DeleteVersionCallback): void; - - /** - * Calls DeleteVersion. - * @param request DeleteVersionRequest message or plain object - * @returns Promise - */ - public deleteVersion(request: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest): Promise; - - /** - * Calls LoadVersion. - * @param request LoadVersionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public loadVersion(request: google.cloud.dialogflow.cx.v3.ILoadVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.LoadVersionCallback): void; + public deleteWebhook(request: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.DeleteWebhookCallback): void; /** - * Calls LoadVersion. - * @param request LoadVersionRequest message or plain object + * Calls DeleteWebhook. + * @param request DeleteWebhookRequest message or plain object * @returns Promise */ - public loadVersion(request: google.cloud.dialogflow.cx.v3.ILoadVersionRequest): Promise; + public deleteWebhook(request: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest): Promise; } - namespace Versions { + namespace Webhooks { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#listVersions}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#listWebhooks}. * @param error Error, if any - * @param [response] ListVersionsResponse + * @param [response] ListWebhooksResponse */ - type ListVersionsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListVersionsResponse) => void; + type ListWebhooksCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListWebhooksResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#getVersion}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#getWebhook}. * @param error Error, if any - * @param [response] Version + * @param [response] Webhook */ - type GetVersionCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Version) => void; + type GetWebhookCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Webhook) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#createVersion}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#createWebhook}. * @param error Error, if any - * @param [response] Operation + * @param [response] Webhook */ - type CreateVersionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + type CreateWebhookCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Webhook) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#updateVersion}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#updateWebhook}. * @param error Error, if any - * @param [response] Version + * @param [response] Webhook */ - type UpdateVersionCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Version) => void; + type UpdateWebhookCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Webhook) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#deleteVersion}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#deleteWebhook}. * @param error Error, if any * @param [response] Empty */ - type DeleteVersionCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#loadVersion}. - * @param error Error, if any - * @param [response] Operation - */ - type LoadVersionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + type DeleteWebhookCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; } - /** Properties of a CreateVersionOperationMetadata. */ - interface ICreateVersionOperationMetadata { + /** Properties of a Webhook. */ + interface IWebhook { - /** CreateVersionOperationMetadata version */ - version?: (string|null); + /** Webhook name */ + name?: (string|null); + + /** Webhook displayName */ + displayName?: (string|null); + + /** Webhook genericWebService */ + genericWebService?: (google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null); + + /** Webhook timeout */ + timeout?: (google.protobuf.IDuration|null); + + /** Webhook disabled */ + disabled?: (boolean|null); } - /** Represents a CreateVersionOperationMetadata. */ - class CreateVersionOperationMetadata implements ICreateVersionOperationMetadata { + /** Represents a Webhook. */ + class Webhook implements IWebhook { /** - * Constructs a new CreateVersionOperationMetadata. + * Constructs a new Webhook. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata); + constructor(properties?: google.cloud.dialogflow.cx.v3.IWebhook); - /** CreateVersionOperationMetadata version. */ - public version: string; + /** Webhook name. */ + public name: string; + + /** Webhook displayName. */ + public displayName: string; + + /** Webhook genericWebService. */ + public genericWebService?: (google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null); + + /** Webhook timeout. */ + public timeout?: (google.protobuf.IDuration|null); + + /** Webhook disabled. */ + public disabled: boolean; + + /** Webhook webhook. */ + public webhook?: "genericWebService"; /** - * Creates a new CreateVersionOperationMetadata instance using the specified properties. + * Creates a new Webhook instance using the specified properties. * @param [properties] Properties to set - * @returns CreateVersionOperationMetadata instance + * @returns Webhook instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata): google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata; + public static create(properties?: google.cloud.dialogflow.cx.v3.IWebhook): google.cloud.dialogflow.cx.v3.Webhook; /** - * Encodes the specified CreateVersionOperationMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata.verify|verify} messages. - * @param message CreateVersionOperationMetadata message or plain object to encode + * Encodes the specified Webhook message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.verify|verify} messages. + * @param message Webhook message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IWebhook, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateVersionOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata.verify|verify} messages. - * @param message CreateVersionOperationMetadata message or plain object to encode + * Encodes the specified Webhook message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.verify|verify} messages. + * @param message Webhook message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IWebhook, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateVersionOperationMetadata message from the specified reader or buffer. + * Decodes a Webhook message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateVersionOperationMetadata + * @returns Webhook * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Webhook; /** - * Decodes a CreateVersionOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a Webhook message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateVersionOperationMetadata + * @returns Webhook * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Webhook; /** - * Verifies a CreateVersionOperationMetadata message. + * Verifies a Webhook message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateVersionOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a Webhook message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateVersionOperationMetadata + * @returns Webhook */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Webhook; /** - * Creates a plain object from a CreateVersionOperationMetadata message. Also converts values to other types if specified. - * @param message CreateVersionOperationMetadata + * Creates a plain object from a Webhook message. Also converts values to other types if specified. + * @param message Webhook * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Webhook, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateVersionOperationMetadata to JSON. + * Converts this Webhook to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Version. */ - interface IVersion { - - /** Version name */ - name?: (string|null); - - /** Version displayName */ - displayName?: (string|null); - - /** Version description */ - description?: (string|null); - - /** Version nluSettings */ - nluSettings?: (google.cloud.dialogflow.cx.v3.INluSettings|null); - - /** Version createTime */ - createTime?: (google.protobuf.ITimestamp|null); + namespace Webhook { - /** Version state */ - state?: (google.cloud.dialogflow.cx.v3.Version.State|keyof typeof google.cloud.dialogflow.cx.v3.Version.State|null); - } + /** Properties of a GenericWebService. */ + interface IGenericWebService { - /** Represents a Version. */ - class Version implements IVersion { + /** GenericWebService uri */ + uri?: (string|null); - /** - * Constructs a new Version. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IVersion); + /** GenericWebService username */ + username?: (string|null); - /** Version name. */ - public name: string; + /** GenericWebService password */ + password?: (string|null); - /** Version displayName. */ - public displayName: string; + /** GenericWebService requestHeaders */ + requestHeaders?: ({ [k: string]: string }|null); + } - /** Version description. */ - public description: string; + /** Represents a GenericWebService. */ + class GenericWebService implements IGenericWebService { - /** Version nluSettings. */ - public nluSettings?: (google.cloud.dialogflow.cx.v3.INluSettings|null); + /** + * Constructs a new GenericWebService. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService); - /** Version createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** GenericWebService uri. */ + public uri: string; - /** Version state. */ - public state: (google.cloud.dialogflow.cx.v3.Version.State|keyof typeof google.cloud.dialogflow.cx.v3.Version.State); + /** GenericWebService username. */ + public username: string; - /** - * Creates a new Version instance using the specified properties. - * @param [properties] Properties to set - * @returns Version instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IVersion): google.cloud.dialogflow.cx.v3.Version; + /** GenericWebService password. */ + public password: string; - /** - * Encodes the specified Version message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Version.verify|verify} messages. - * @param message Version message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; + /** GenericWebService requestHeaders. */ + public requestHeaders: { [k: string]: string }; - /** - * Encodes the specified Version message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Version.verify|verify} messages. - * @param message Version message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new GenericWebService instance using the specified properties. + * @param [properties] Properties to set + * @returns GenericWebService instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService): google.cloud.dialogflow.cx.v3.Webhook.GenericWebService; - /** - * Decodes a Version message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Version - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Version; + /** + * Encodes the specified GenericWebService message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.verify|verify} messages. + * @param message GenericWebService message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a Version message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Version - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Version; + /** + * Encodes the specified GenericWebService message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.verify|verify} messages. + * @param message GenericWebService message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a Version message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a GenericWebService message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GenericWebService + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Webhook.GenericWebService; - /** - * Creates a Version message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Version - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Version; + /** + * Decodes a GenericWebService message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GenericWebService + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Webhook.GenericWebService; - /** - * Creates a plain object from a Version message. Also converts values to other types if specified. - * @param message Version - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Version, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Verifies a GenericWebService message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Converts this Version to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Creates a GenericWebService message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GenericWebService + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Webhook.GenericWebService; - namespace Version { + /** + * Creates a plain object from a GenericWebService message. Also converts values to other types if specified. + * @param message GenericWebService + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.Webhook.GenericWebService, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - RUNNING = 1, - SUCCEEDED = 2, - FAILED = 3 + /** + * Converts this GenericWebService to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } } - /** Properties of a ListVersionsRequest. */ - interface IListVersionsRequest { + /** Properties of a ListWebhooksRequest. */ + interface IListWebhooksRequest { - /** ListVersionsRequest parent */ + /** ListWebhooksRequest parent */ parent?: (string|null); - /** ListVersionsRequest pageSize */ + /** ListWebhooksRequest pageSize */ pageSize?: (number|null); - /** ListVersionsRequest pageToken */ + /** ListWebhooksRequest pageToken */ pageToken?: (string|null); } - /** Represents a ListVersionsRequest. */ - class ListVersionsRequest implements IListVersionsRequest { + /** Represents a ListWebhooksRequest. */ + class ListWebhooksRequest implements IListWebhooksRequest { /** - * Constructs a new ListVersionsRequest. + * Constructs a new ListWebhooksRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListVersionsRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListWebhooksRequest); - /** ListVersionsRequest parent. */ + /** ListWebhooksRequest parent. */ public parent: string; - /** ListVersionsRequest pageSize. */ + /** ListWebhooksRequest pageSize. */ public pageSize: number; - /** ListVersionsRequest pageToken. */ + /** ListWebhooksRequest pageToken. */ public pageToken: string; /** - * Creates a new ListVersionsRequest instance using the specified properties. + * Creates a new ListWebhooksRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListVersionsRequest instance + * @returns ListWebhooksRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListVersionsRequest): google.cloud.dialogflow.cx.v3.ListVersionsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListWebhooksRequest): google.cloud.dialogflow.cx.v3.ListWebhooksRequest; /** - * Encodes the specified ListVersionsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsRequest.verify|verify} messages. - * @param message ListVersionsRequest message or plain object to encode + * Encodes the specified ListWebhooksRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksRequest.verify|verify} messages. + * @param message ListWebhooksRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListWebhooksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsRequest.verify|verify} messages. - * @param message ListVersionsRequest message or plain object to encode + * Encodes the specified ListWebhooksRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksRequest.verify|verify} messages. + * @param message ListWebhooksRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListWebhooksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListVersionsRequest message from the specified reader or buffer. + * Decodes a ListWebhooksRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListVersionsRequest + * @returns ListWebhooksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListVersionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListWebhooksRequest; /** - * Decodes a ListVersionsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListWebhooksRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListVersionsRequest + * @returns ListWebhooksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListVersionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListWebhooksRequest; /** - * Verifies a ListVersionsRequest message. + * Verifies a ListWebhooksRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListVersionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListWebhooksRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListVersionsRequest + * @returns ListWebhooksRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListVersionsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListWebhooksRequest; /** - * Creates a plain object from a ListVersionsRequest message. Also converts values to other types if specified. - * @param message ListVersionsRequest + * Creates a plain object from a ListWebhooksRequest message. Also converts values to other types if specified. + * @param message ListWebhooksRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListWebhooksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListVersionsRequest to JSON. + * Converts this ListWebhooksRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListVersionsResponse. */ - interface IListVersionsResponse { + /** Properties of a ListWebhooksResponse. */ + interface IListWebhooksResponse { - /** ListVersionsResponse versions */ - versions?: (google.cloud.dialogflow.cx.v3.IVersion[]|null); + /** ListWebhooksResponse webhooks */ + webhooks?: (google.cloud.dialogflow.cx.v3.IWebhook[]|null); - /** ListVersionsResponse nextPageToken */ + /** ListWebhooksResponse nextPageToken */ nextPageToken?: (string|null); } - /** Represents a ListVersionsResponse. */ - class ListVersionsResponse implements IListVersionsResponse { + /** Represents a ListWebhooksResponse. */ + class ListWebhooksResponse implements IListWebhooksResponse { /** - * Constructs a new ListVersionsResponse. + * Constructs a new ListWebhooksResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListVersionsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListWebhooksResponse); - /** ListVersionsResponse versions. */ - public versions: google.cloud.dialogflow.cx.v3.IVersion[]; + /** ListWebhooksResponse webhooks. */ + public webhooks: google.cloud.dialogflow.cx.v3.IWebhook[]; - /** ListVersionsResponse nextPageToken. */ + /** ListWebhooksResponse nextPageToken. */ public nextPageToken: string; /** - * Creates a new ListVersionsResponse instance using the specified properties. + * Creates a new ListWebhooksResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListVersionsResponse instance + * @returns ListWebhooksResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListVersionsResponse): google.cloud.dialogflow.cx.v3.ListVersionsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListWebhooksResponse): google.cloud.dialogflow.cx.v3.ListWebhooksResponse; /** - * Encodes the specified ListVersionsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsResponse.verify|verify} messages. - * @param message ListVersionsResponse message or plain object to encode + * Encodes the specified ListWebhooksResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksResponse.verify|verify} messages. + * @param message ListWebhooksResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListWebhooksResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsResponse.verify|verify} messages. - * @param message ListVersionsResponse message or plain object to encode + * Encodes the specified ListWebhooksResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksResponse.verify|verify} messages. + * @param message ListWebhooksResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListWebhooksResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListVersionsResponse message from the specified reader or buffer. + * Decodes a ListWebhooksResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListVersionsResponse + * @returns ListWebhooksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListVersionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListWebhooksResponse; /** - * Decodes a ListVersionsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListWebhooksResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListVersionsResponse + * @returns ListWebhooksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListVersionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListWebhooksResponse; /** - * Verifies a ListVersionsResponse message. + * Verifies a ListWebhooksResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListVersionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListWebhooksResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListVersionsResponse + * @returns ListWebhooksResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListVersionsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListWebhooksResponse; /** - * Creates a plain object from a ListVersionsResponse message. Also converts values to other types if specified. - * @param message ListVersionsResponse + * Creates a plain object from a ListWebhooksResponse message. Also converts values to other types if specified. + * @param message ListWebhooksResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListWebhooksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListVersionsResponse to JSON. + * Converts this ListWebhooksResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetVersionRequest. */ - interface IGetVersionRequest { + /** Properties of a GetWebhookRequest. */ + interface IGetWebhookRequest { - /** GetVersionRequest name */ + /** GetWebhookRequest name */ name?: (string|null); } - /** Represents a GetVersionRequest. */ - class GetVersionRequest implements IGetVersionRequest { + /** Represents a GetWebhookRequest. */ + class GetWebhookRequest implements IGetWebhookRequest { /** - * Constructs a new GetVersionRequest. + * Constructs a new GetWebhookRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IGetVersionRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetWebhookRequest); - /** GetVersionRequest name. */ + /** GetWebhookRequest name. */ public name: string; /** - * Creates a new GetVersionRequest instance using the specified properties. + * Creates a new GetWebhookRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetVersionRequest instance + * @returns GetWebhookRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IGetVersionRequest): google.cloud.dialogflow.cx.v3.GetVersionRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetWebhookRequest): google.cloud.dialogflow.cx.v3.GetWebhookRequest; /** - * Encodes the specified GetVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetVersionRequest.verify|verify} messages. - * @param message GetVersionRequest message or plain object to encode + * Encodes the specified GetWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetWebhookRequest.verify|verify} messages. + * @param message GetWebhookRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IGetWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetVersionRequest.verify|verify} messages. - * @param message GetVersionRequest message or plain object to encode + * Encodes the specified GetWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetWebhookRequest.verify|verify} messages. + * @param message GetWebhookRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetVersionRequest message from the specified reader or buffer. + * Decodes a GetWebhookRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetVersionRequest + * @returns GetWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetVersionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetWebhookRequest; /** - * Decodes a GetVersionRequest message from the specified reader or buffer, length delimited. + * Decodes a GetWebhookRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetVersionRequest + * @returns GetWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetVersionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetWebhookRequest; /** - * Verifies a GetVersionRequest message. + * Verifies a GetWebhookRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetVersionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetWebhookRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetVersionRequest + * @returns GetWebhookRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetVersionRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetWebhookRequest; /** - * Creates a plain object from a GetVersionRequest message. Also converts values to other types if specified. - * @param message GetVersionRequest + * Creates a plain object from a GetWebhookRequest message. Also converts values to other types if specified. + * @param message GetWebhookRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.GetVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.GetWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetVersionRequest to JSON. + * Converts this GetWebhookRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateVersionRequest. */ - interface ICreateVersionRequest { + /** Properties of a CreateWebhookRequest. */ + interface ICreateWebhookRequest { - /** CreateVersionRequest parent */ + /** CreateWebhookRequest parent */ parent?: (string|null); - /** CreateVersionRequest version */ - version?: (google.cloud.dialogflow.cx.v3.IVersion|null); + /** CreateWebhookRequest webhook */ + webhook?: (google.cloud.dialogflow.cx.v3.IWebhook|null); } - /** Represents a CreateVersionRequest. */ - class CreateVersionRequest implements ICreateVersionRequest { + /** Represents a CreateWebhookRequest. */ + class CreateWebhookRequest implements ICreateWebhookRequest { /** - * Constructs a new CreateVersionRequest. + * Constructs a new CreateWebhookRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateVersionRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest); - /** CreateVersionRequest parent. */ + /** CreateWebhookRequest parent. */ public parent: string; - /** CreateVersionRequest version. */ - public version?: (google.cloud.dialogflow.cx.v3.IVersion|null); + /** CreateWebhookRequest webhook. */ + public webhook?: (google.cloud.dialogflow.cx.v3.IWebhook|null); /** - * Creates a new CreateVersionRequest instance using the specified properties. + * Creates a new CreateWebhookRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateVersionRequest instance + * @returns CreateWebhookRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateVersionRequest): google.cloud.dialogflow.cx.v3.CreateVersionRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest): google.cloud.dialogflow.cx.v3.CreateWebhookRequest; /** - * Encodes the specified CreateVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionRequest.verify|verify} messages. - * @param message CreateVersionRequest message or plain object to encode + * Encodes the specified CreateWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateWebhookRequest.verify|verify} messages. + * @param message CreateWebhookRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ICreateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionRequest.verify|verify} messages. - * @param message CreateVersionRequest message or plain object to encode + * Encodes the specified CreateWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateWebhookRequest.verify|verify} messages. + * @param message CreateWebhookRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateVersionRequest message from the specified reader or buffer. + * Decodes a CreateWebhookRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateVersionRequest + * @returns CreateWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateVersionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateWebhookRequest; /** - * Decodes a CreateVersionRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateWebhookRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateVersionRequest + * @returns CreateWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateVersionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateWebhookRequest; /** - * Verifies a CreateVersionRequest message. + * Verifies a CreateWebhookRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateVersionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateWebhookRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateVersionRequest + * @returns CreateWebhookRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateVersionRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateWebhookRequest; /** - * Creates a plain object from a CreateVersionRequest message. Also converts values to other types if specified. - * @param message CreateVersionRequest + * Creates a plain object from a CreateWebhookRequest message. Also converts values to other types if specified. + * @param message CreateWebhookRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.CreateVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateVersionRequest to JSON. + * Converts this CreateWebhookRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateVersionRequest. */ - interface IUpdateVersionRequest { + /** Properties of an UpdateWebhookRequest. */ + interface IUpdateWebhookRequest { - /** UpdateVersionRequest version */ - version?: (google.cloud.dialogflow.cx.v3.IVersion|null); + /** UpdateWebhookRequest webhook */ + webhook?: (google.cloud.dialogflow.cx.v3.IWebhook|null); - /** UpdateVersionRequest updateMask */ + /** UpdateWebhookRequest updateMask */ updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents an UpdateVersionRequest. */ - class UpdateVersionRequest implements IUpdateVersionRequest { + /** Represents an UpdateWebhookRequest. */ + class UpdateWebhookRequest implements IUpdateWebhookRequest { /** - * Constructs a new UpdateVersionRequest. + * Constructs a new UpdateWebhookRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest); - /** UpdateVersionRequest version. */ - public version?: (google.cloud.dialogflow.cx.v3.IVersion|null); + /** UpdateWebhookRequest webhook. */ + public webhook?: (google.cloud.dialogflow.cx.v3.IWebhook|null); - /** UpdateVersionRequest updateMask. */ + /** UpdateWebhookRequest updateMask. */ public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new UpdateVersionRequest instance using the specified properties. + * Creates a new UpdateWebhookRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateVersionRequest instance + * @returns UpdateWebhookRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest): google.cloud.dialogflow.cx.v3.UpdateVersionRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest): google.cloud.dialogflow.cx.v3.UpdateWebhookRequest; /** - * Encodes the specified UpdateVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateVersionRequest.verify|verify} messages. - * @param message UpdateVersionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UpdateVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateVersionRequest.verify|verify} messages. - * @param message UpdateVersionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UpdateVersionRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateVersionRequest; - - /** - * Decodes an UpdateVersionRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateVersionRequest; - - /** - * Verifies an UpdateVersionRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an UpdateVersionRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateVersionRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateVersionRequest; - - /** - * Creates a plain object from an UpdateVersionRequest message. Also converts values to other types if specified. - * @param message UpdateVersionRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UpdateVersionRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a DeleteVersionRequest. */ - interface IDeleteVersionRequest { - - /** DeleteVersionRequest name */ - name?: (string|null); - } - - /** Represents a DeleteVersionRequest. */ - class DeleteVersionRequest implements IDeleteVersionRequest { - - /** - * Constructs a new DeleteVersionRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest); - - /** DeleteVersionRequest name. */ - public name: string; - - /** - * Creates a new DeleteVersionRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteVersionRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest): google.cloud.dialogflow.cx.v3.DeleteVersionRequest; - - /** - * Encodes the specified DeleteVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteVersionRequest.verify|verify} messages. - * @param message DeleteVersionRequest message or plain object to encode + * Encodes the specified UpdateWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateWebhookRequest.verify|verify} messages. + * @param message UpdateWebhookRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteVersionRequest.verify|verify} messages. - * @param message DeleteVersionRequest message or plain object to encode + * Encodes the specified UpdateWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateWebhookRequest.verify|verify} messages. + * @param message UpdateWebhookRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteVersionRequest message from the specified reader or buffer. + * Decodes an UpdateWebhookRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteVersionRequest + * @returns UpdateWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteVersionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateWebhookRequest; /** - * Decodes a DeleteVersionRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateWebhookRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteVersionRequest + * @returns UpdateWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteVersionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateWebhookRequest; /** - * Verifies a DeleteVersionRequest message. + * Verifies an UpdateWebhookRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteVersionRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateWebhookRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteVersionRequest + * @returns UpdateWebhookRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteVersionRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateWebhookRequest; /** - * Creates a plain object from a DeleteVersionRequest message. Also converts values to other types if specified. - * @param message DeleteVersionRequest + * Creates a plain object from an UpdateWebhookRequest message. Also converts values to other types if specified. + * @param message UpdateWebhookRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteVersionRequest to JSON. + * Converts this UpdateWebhookRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a LoadVersionRequest. */ - interface ILoadVersionRequest { + /** Properties of a DeleteWebhookRequest. */ + interface IDeleteWebhookRequest { - /** LoadVersionRequest name */ + /** DeleteWebhookRequest name */ name?: (string|null); - /** LoadVersionRequest allowOverrideAgentResources */ - allowOverrideAgentResources?: (boolean|null); + /** DeleteWebhookRequest force */ + force?: (boolean|null); } - /** Represents a LoadVersionRequest. */ - class LoadVersionRequest implements ILoadVersionRequest { + /** Represents a DeleteWebhookRequest. */ + class DeleteWebhookRequest implements IDeleteWebhookRequest { /** - * Constructs a new LoadVersionRequest. + * Constructs a new DeleteWebhookRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ILoadVersionRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest); - /** LoadVersionRequest name. */ + /** DeleteWebhookRequest name. */ public name: string; - /** LoadVersionRequest allowOverrideAgentResources. */ - public allowOverrideAgentResources: boolean; + /** DeleteWebhookRequest force. */ + public force: boolean; /** - * Creates a new LoadVersionRequest instance using the specified properties. + * Creates a new DeleteWebhookRequest instance using the specified properties. * @param [properties] Properties to set - * @returns LoadVersionRequest instance + * @returns DeleteWebhookRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ILoadVersionRequest): google.cloud.dialogflow.cx.v3.LoadVersionRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest): google.cloud.dialogflow.cx.v3.DeleteWebhookRequest; /** - * Encodes the specified LoadVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LoadVersionRequest.verify|verify} messages. - * @param message LoadVersionRequest message or plain object to encode + * Encodes the specified DeleteWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteWebhookRequest.verify|verify} messages. + * @param message DeleteWebhookRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ILoadVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LoadVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LoadVersionRequest.verify|verify} messages. - * @param message LoadVersionRequest message or plain object to encode + * Encodes the specified DeleteWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteWebhookRequest.verify|verify} messages. + * @param message DeleteWebhookRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ILoadVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LoadVersionRequest message from the specified reader or buffer. + * Decodes a DeleteWebhookRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns LoadVersionRequest + * @returns DeleteWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.LoadVersionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteWebhookRequest; /** - * Decodes a LoadVersionRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteWebhookRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LoadVersionRequest + * @returns DeleteWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.LoadVersionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteWebhookRequest; /** - * Verifies a LoadVersionRequest message. + * Verifies a DeleteWebhookRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a LoadVersionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteWebhookRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LoadVersionRequest + * @returns DeleteWebhookRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.LoadVersionRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteWebhookRequest; /** - * Creates a plain object from a LoadVersionRequest message. Also converts values to other types if specified. - * @param message LoadVersionRequest + * Creates a plain object from a DeleteWebhookRequest message. Also converts values to other types if specified. + * @param message DeleteWebhookRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.LoadVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LoadVersionRequest to JSON. + * Converts this DeleteWebhookRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a Webhooks */ - class Webhooks extends $protobuf.rpc.Service { - - /** - * Constructs a new Webhooks service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new Webhooks service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Webhooks; - - /** - * Calls ListWebhooks. - * @param request ListWebhooksRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListWebhooksResponse - */ - public listWebhooks(request: google.cloud.dialogflow.cx.v3.IListWebhooksRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooksCallback): void; - - /** - * Calls ListWebhooks. - * @param request ListWebhooksRequest message or plain object - * @returns Promise - */ - public listWebhooks(request: google.cloud.dialogflow.cx.v3.IListWebhooksRequest): Promise; + /** Properties of a WebhookRequest. */ + interface IWebhookRequest { - /** - * Calls GetWebhook. - * @param request GetWebhookRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Webhook - */ - public getWebhook(request: google.cloud.dialogflow.cx.v3.IGetWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.GetWebhookCallback): void; + /** WebhookRequest detectIntentResponseId */ + detectIntentResponseId?: (string|null); - /** - * Calls GetWebhook. - * @param request GetWebhookRequest message or plain object - * @returns Promise - */ - public getWebhook(request: google.cloud.dialogflow.cx.v3.IGetWebhookRequest): Promise; + /** WebhookRequest fulfillmentInfo */ + fulfillmentInfo?: (google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo|null); - /** - * Calls CreateWebhook. - * @param request CreateWebhookRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Webhook - */ - public createWebhook(request: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhookCallback): void; + /** WebhookRequest intentInfo */ + intentInfo?: (google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo|null); - /** - * Calls CreateWebhook. - * @param request CreateWebhookRequest message or plain object - * @returns Promise - */ - public createWebhook(request: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest): Promise; + /** WebhookRequest pageInfo */ + pageInfo?: (google.cloud.dialogflow.cx.v3.IPageInfo|null); - /** - * Calls UpdateWebhook. - * @param request UpdateWebhookRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Webhook - */ - public updateWebhook(request: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhookCallback): void; + /** WebhookRequest sessionInfo */ + sessionInfo?: (google.cloud.dialogflow.cx.v3.ISessionInfo|null); - /** - * Calls UpdateWebhook. - * @param request UpdateWebhookRequest message or plain object - * @returns Promise - */ - public updateWebhook(request: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest): Promise; + /** WebhookRequest messages */ + messages?: (google.cloud.dialogflow.cx.v3.IResponseMessage[]|null); - /** - * Calls DeleteWebhook. - * @param request DeleteWebhookRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public deleteWebhook(request: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.DeleteWebhookCallback): void; + /** WebhookRequest payload */ + payload?: (google.protobuf.IStruct|null); - /** - * Calls DeleteWebhook. - * @param request DeleteWebhookRequest message or plain object - * @returns Promise - */ - public deleteWebhook(request: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest): Promise; + /** WebhookRequest sentimentAnalysisResult */ + sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult|null); } - namespace Webhooks { - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#listWebhooks}. - * @param error Error, if any - * @param [response] ListWebhooksResponse - */ - type ListWebhooksCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListWebhooksResponse) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#getWebhook}. - * @param error Error, if any - * @param [response] Webhook - */ - type GetWebhookCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Webhook) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#createWebhook}. - * @param error Error, if any - * @param [response] Webhook - */ - type CreateWebhookCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Webhook) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#updateWebhook}. - * @param error Error, if any - * @param [response] Webhook - */ - type UpdateWebhookCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Webhook) => void; + /** Represents a WebhookRequest. */ + class WebhookRequest implements IWebhookRequest { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#deleteWebhook}. - * @param error Error, if any - * @param [response] Empty + * Constructs a new WebhookRequest. + * @param [properties] Properties to set */ - type DeleteWebhookCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - } - - /** Properties of a Webhook. */ - interface IWebhook { - - /** Webhook name */ - name?: (string|null); - - /** Webhook displayName */ - displayName?: (string|null); - - /** Webhook genericWebService */ - genericWebService?: (google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null); - - /** Webhook timeout */ - timeout?: (google.protobuf.IDuration|null); - - /** Webhook disabled */ - disabled?: (boolean|null); - } + constructor(properties?: google.cloud.dialogflow.cx.v3.IWebhookRequest); - /** Represents a Webhook. */ - class Webhook implements IWebhook { + /** WebhookRequest detectIntentResponseId. */ + public detectIntentResponseId: string; - /** - * Constructs a new Webhook. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IWebhook); + /** WebhookRequest fulfillmentInfo. */ + public fulfillmentInfo?: (google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo|null); - /** Webhook name. */ - public name: string; + /** WebhookRequest intentInfo. */ + public intentInfo?: (google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo|null); - /** Webhook displayName. */ - public displayName: string; + /** WebhookRequest pageInfo. */ + public pageInfo?: (google.cloud.dialogflow.cx.v3.IPageInfo|null); - /** Webhook genericWebService. */ - public genericWebService?: (google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null); + /** WebhookRequest sessionInfo. */ + public sessionInfo?: (google.cloud.dialogflow.cx.v3.ISessionInfo|null); - /** Webhook timeout. */ - public timeout?: (google.protobuf.IDuration|null); + /** WebhookRequest messages. */ + public messages: google.cloud.dialogflow.cx.v3.IResponseMessage[]; - /** Webhook disabled. */ - public disabled: boolean; + /** WebhookRequest payload. */ + public payload?: (google.protobuf.IStruct|null); - /** Webhook webhook. */ - public webhook?: "genericWebService"; + /** WebhookRequest sentimentAnalysisResult. */ + public sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult|null); /** - * Creates a new Webhook instance using the specified properties. + * Creates a new WebhookRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Webhook instance + * @returns WebhookRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IWebhook): google.cloud.dialogflow.cx.v3.Webhook; + public static create(properties?: google.cloud.dialogflow.cx.v3.IWebhookRequest): google.cloud.dialogflow.cx.v3.WebhookRequest; /** - * Encodes the specified Webhook message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.verify|verify} messages. - * @param message Webhook message or plain object to encode + * Encodes the specified WebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.verify|verify} messages. + * @param message WebhookRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IWebhook, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Webhook message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.verify|verify} messages. - * @param message Webhook message or plain object to encode + * Encodes the specified WebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.verify|verify} messages. + * @param message WebhookRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IWebhook, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Webhook message from the specified reader or buffer. + * Decodes a WebhookRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Webhook + * @returns WebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Webhook; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookRequest; /** - * Decodes a Webhook message from the specified reader or buffer, length delimited. + * Decodes a WebhookRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Webhook + * @returns WebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Webhook; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookRequest; /** - * Verifies a Webhook message. + * Verifies a WebhookRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Webhook message from a plain object. Also converts values to their respective internal types. + * Creates a WebhookRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Webhook + * @returns WebhookRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Webhook; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookRequest; /** - * Creates a plain object from a Webhook message. Also converts values to other types if specified. - * @param message Webhook + * Creates a plain object from a WebhookRequest message. Also converts values to other types if specified. + * @param message WebhookRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Webhook, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Webhook to JSON. + * Converts this WebhookRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Webhook { - - /** Properties of a GenericWebService. */ - interface IGenericWebService { - - /** GenericWebService uri */ - uri?: (string|null); - - /** GenericWebService username */ - username?: (string|null); + namespace WebhookRequest { - /** GenericWebService password */ - password?: (string|null); + /** Properties of a FulfillmentInfo. */ + interface IFulfillmentInfo { - /** GenericWebService requestHeaders */ - requestHeaders?: ({ [k: string]: string }|null); + /** FulfillmentInfo tag */ + tag?: (string|null); } - /** Represents a GenericWebService. */ - class GenericWebService implements IGenericWebService { + /** Represents a FulfillmentInfo. */ + class FulfillmentInfo implements IFulfillmentInfo { /** - * Constructs a new GenericWebService. + * Constructs a new FulfillmentInfo. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService); - - /** GenericWebService uri. */ - public uri: string; - - /** GenericWebService username. */ - public username: string; - - /** GenericWebService password. */ - public password: string; + constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo); - /** GenericWebService requestHeaders. */ - public requestHeaders: { [k: string]: string }; + /** FulfillmentInfo tag. */ + public tag: string; /** - * Creates a new GenericWebService instance using the specified properties. + * Creates a new FulfillmentInfo instance using the specified properties. * @param [properties] Properties to set - * @returns GenericWebService instance + * @returns FulfillmentInfo instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService): google.cloud.dialogflow.cx.v3.Webhook.GenericWebService; + public static create(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo): google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo; /** - * Encodes the specified GenericWebService message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.verify|verify} messages. - * @param message GenericWebService message or plain object to encode + * Encodes the specified FulfillmentInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.verify|verify} messages. + * @param message FulfillmentInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GenericWebService message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.verify|verify} messages. - * @param message GenericWebService message or plain object to encode + * Encodes the specified FulfillmentInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.verify|verify} messages. + * @param message FulfillmentInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GenericWebService message from the specified reader or buffer. + * Decodes a FulfillmentInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GenericWebService + * @returns FulfillmentInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Webhook.GenericWebService; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo; /** - * Decodes a GenericWebService message from the specified reader or buffer, length delimited. + * Decodes a FulfillmentInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GenericWebService + * @returns FulfillmentInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Webhook.GenericWebService; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo; /** - * Verifies a GenericWebService message. + * Verifies a FulfillmentInfo message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GenericWebService message from a plain object. Also converts values to their respective internal types. + * Creates a FulfillmentInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GenericWebService + * @returns FulfillmentInfo */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Webhook.GenericWebService; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo; /** - * Creates a plain object from a GenericWebService message. Also converts values to other types if specified. - * @param message GenericWebService + * Creates a plain object from a FulfillmentInfo message. Also converts values to other types if specified. + * @param message FulfillmentInfo * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Webhook.GenericWebService, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GenericWebService to JSON. + * Converts this FulfillmentInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - } - /** Properties of a ListWebhooksRequest. */ - interface IListWebhooksRequest { + /** Properties of an IntentInfo. */ + interface IIntentInfo { - /** ListWebhooksRequest parent */ - parent?: (string|null); + /** IntentInfo lastMatchedIntent */ + lastMatchedIntent?: (string|null); - /** ListWebhooksRequest pageSize */ - pageSize?: (number|null); + /** IntentInfo displayName */ + displayName?: (string|null); - /** ListWebhooksRequest pageToken */ - pageToken?: (string|null); - } + /** IntentInfo parameters */ + parameters?: ({ [k: string]: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue }|null); - /** Represents a ListWebhooksRequest. */ - class ListWebhooksRequest implements IListWebhooksRequest { + /** IntentInfo confidence */ + confidence?: (number|null); + } - /** - * Constructs a new ListWebhooksRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListWebhooksRequest); + /** Represents an IntentInfo. */ + class IntentInfo implements IIntentInfo { - /** ListWebhooksRequest parent. */ - public parent: string; + /** + * Constructs a new IntentInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo); - /** ListWebhooksRequest pageSize. */ - public pageSize: number; + /** IntentInfo lastMatchedIntent. */ + public lastMatchedIntent: string; - /** ListWebhooksRequest pageToken. */ - public pageToken: string; + /** IntentInfo displayName. */ + public displayName: string; - /** - * Creates a new ListWebhooksRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListWebhooksRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListWebhooksRequest): google.cloud.dialogflow.cx.v3.ListWebhooksRequest; + /** IntentInfo parameters. */ + public parameters: { [k: string]: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue }; - /** - * Encodes the specified ListWebhooksRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksRequest.verify|verify} messages. - * @param message ListWebhooksRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListWebhooksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** IntentInfo confidence. */ + public confidence: number; - /** - * Encodes the specified ListWebhooksRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksRequest.verify|verify} messages. - * @param message ListWebhooksRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListWebhooksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new IntentInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns IntentInfo instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo; - /** - * Decodes a ListWebhooksRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListWebhooksRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListWebhooksRequest; + /** + * Encodes the specified IntentInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.verify|verify} messages. + * @param message IntentInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a ListWebhooksRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListWebhooksRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListWebhooksRequest; + /** + * Encodes the specified IntentInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.verify|verify} messages. + * @param message IntentInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a ListWebhooksRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes an IntentInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IntentInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo; - /** - * Creates a ListWebhooksRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListWebhooksRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListWebhooksRequest; + /** + * Decodes an IntentInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IntentInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo; - /** - * Creates a plain object from a ListWebhooksRequest message. Also converts values to other types if specified. - * @param message ListWebhooksRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListWebhooksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Verifies an IntentInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Converts this ListWebhooksRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates an IntentInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IntentInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo; + + /** + * Creates a plain object from an IntentInfo message. Also converts values to other types if specified. + * @param message IntentInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this IntentInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace IntentInfo { + + /** Properties of an IntentParameterValue. */ + interface IIntentParameterValue { + + /** IntentParameterValue originalValue */ + originalValue?: (string|null); + + /** IntentParameterValue resolvedValue */ + resolvedValue?: (google.protobuf.IValue|null); + } + + /** Represents an IntentParameterValue. */ + class IntentParameterValue implements IIntentParameterValue { + + /** + * Constructs a new IntentParameterValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue); + + /** IntentParameterValue originalValue. */ + public originalValue: string; + + /** IntentParameterValue resolvedValue. */ + public resolvedValue?: (google.protobuf.IValue|null); + + /** + * Creates a new IntentParameterValue instance using the specified properties. + * @param [properties] Properties to set + * @returns IntentParameterValue instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue; + + /** + * Encodes the specified IntentParameterValue message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.verify|verify} messages. + * @param message IntentParameterValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified IntentParameterValue message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.verify|verify} messages. + * @param message IntentParameterValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an IntentParameterValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IntentParameterValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue; + + /** + * Decodes an IntentParameterValue message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IntentParameterValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue; + + /** + * Verifies an IntentParameterValue message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an IntentParameterValue message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IntentParameterValue + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue; + + /** + * Creates a plain object from an IntentParameterValue message. Also converts values to other types if specified. + * @param message IntentParameterValue + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this IntentParameterValue to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a SentimentAnalysisResult. */ + interface ISentimentAnalysisResult { + + /** SentimentAnalysisResult score */ + score?: (number|null); + + /** SentimentAnalysisResult magnitude */ + magnitude?: (number|null); + } + + /** Represents a SentimentAnalysisResult. */ + class SentimentAnalysisResult implements ISentimentAnalysisResult { + + /** + * Constructs a new SentimentAnalysisResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult); + + /** SentimentAnalysisResult score. */ + public score: number; + + /** SentimentAnalysisResult magnitude. */ + public magnitude: number; + + /** + * Creates a new SentimentAnalysisResult instance using the specified properties. + * @param [properties] Properties to set + * @returns SentimentAnalysisResult instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult): google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult; + + /** + * Encodes the specified SentimentAnalysisResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.verify|verify} messages. + * @param message SentimentAnalysisResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SentimentAnalysisResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.verify|verify} messages. + * @param message SentimentAnalysisResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SentimentAnalysisResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SentimentAnalysisResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult; + + /** + * Decodes a SentimentAnalysisResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SentimentAnalysisResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult; + + /** + * Verifies a SentimentAnalysisResult message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SentimentAnalysisResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SentimentAnalysisResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult; + + /** + * Creates a plain object from a SentimentAnalysisResult message. Also converts values to other types if specified. + * @param message SentimentAnalysisResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SentimentAnalysisResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Properties of a ListWebhooksResponse. */ - interface IListWebhooksResponse { + /** Properties of a WebhookResponse. */ + interface IWebhookResponse { - /** ListWebhooksResponse webhooks */ - webhooks?: (google.cloud.dialogflow.cx.v3.IWebhook[]|null); + /** WebhookResponse fulfillmentResponse */ + fulfillmentResponse?: (google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse|null); - /** ListWebhooksResponse nextPageToken */ - nextPageToken?: (string|null); + /** WebhookResponse pageInfo */ + pageInfo?: (google.cloud.dialogflow.cx.v3.IPageInfo|null); + + /** WebhookResponse sessionInfo */ + sessionInfo?: (google.cloud.dialogflow.cx.v3.ISessionInfo|null); + + /** WebhookResponse payload */ + payload?: (google.protobuf.IStruct|null); + + /** WebhookResponse targetPage */ + targetPage?: (string|null); + + /** WebhookResponse targetFlow */ + targetFlow?: (string|null); } - /** Represents a ListWebhooksResponse. */ - class ListWebhooksResponse implements IListWebhooksResponse { + /** Represents a WebhookResponse. */ + class WebhookResponse implements IWebhookResponse { /** - * Constructs a new ListWebhooksResponse. + * Constructs a new WebhookResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListWebhooksResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IWebhookResponse); - /** ListWebhooksResponse webhooks. */ - public webhooks: google.cloud.dialogflow.cx.v3.IWebhook[]; + /** WebhookResponse fulfillmentResponse. */ + public fulfillmentResponse?: (google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse|null); - /** ListWebhooksResponse nextPageToken. */ - public nextPageToken: string; + /** WebhookResponse pageInfo. */ + public pageInfo?: (google.cloud.dialogflow.cx.v3.IPageInfo|null); + + /** WebhookResponse sessionInfo. */ + public sessionInfo?: (google.cloud.dialogflow.cx.v3.ISessionInfo|null); + + /** WebhookResponse payload. */ + public payload?: (google.protobuf.IStruct|null); + + /** WebhookResponse targetPage. */ + public targetPage: string; + + /** WebhookResponse targetFlow. */ + public targetFlow: string; + + /** WebhookResponse transition. */ + public transition?: ("targetPage"|"targetFlow"); /** - * Creates a new ListWebhooksResponse instance using the specified properties. + * Creates a new WebhookResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListWebhooksResponse instance + * @returns WebhookResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListWebhooksResponse): google.cloud.dialogflow.cx.v3.ListWebhooksResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IWebhookResponse): google.cloud.dialogflow.cx.v3.WebhookResponse; /** - * Encodes the specified ListWebhooksResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksResponse.verify|verify} messages. - * @param message ListWebhooksResponse message or plain object to encode + * Encodes the specified WebhookResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookResponse.verify|verify} messages. + * @param message WebhookResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListWebhooksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IWebhookResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListWebhooksResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksResponse.verify|verify} messages. - * @param message ListWebhooksResponse message or plain object to encode + * Encodes the specified WebhookResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookResponse.verify|verify} messages. + * @param message WebhookResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListWebhooksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IWebhookResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListWebhooksResponse message from the specified reader or buffer. + * Decodes a WebhookResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListWebhooksResponse + * @returns WebhookResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListWebhooksResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookResponse; /** - * Decodes a ListWebhooksResponse message from the specified reader or buffer, length delimited. + * Decodes a WebhookResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListWebhooksResponse + * @returns WebhookResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListWebhooksResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookResponse; /** - * Verifies a ListWebhooksResponse message. + * Verifies a WebhookResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListWebhooksResponse message from a plain object. Also converts values to their respective internal types. + * Creates a WebhookResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListWebhooksResponse + * @returns WebhookResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListWebhooksResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookResponse; /** - * Creates a plain object from a ListWebhooksResponse message. Also converts values to other types if specified. - * @param message ListWebhooksResponse + * Creates a plain object from a WebhookResponse message. Also converts values to other types if specified. + * @param message WebhookResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListWebhooksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListWebhooksResponse to JSON. + * Converts this WebhookResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetWebhookRequest. */ - interface IGetWebhookRequest { - - /** GetWebhookRequest name */ - name?: (string|null); - } + namespace WebhookResponse { - /** Represents a GetWebhookRequest. */ - class GetWebhookRequest implements IGetWebhookRequest { + /** Properties of a FulfillmentResponse. */ + interface IFulfillmentResponse { - /** - * Constructs a new GetWebhookRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IGetWebhookRequest); + /** FulfillmentResponse messages */ + messages?: (google.cloud.dialogflow.cx.v3.IResponseMessage[]|null); - /** GetWebhookRequest name. */ - public name: string; + /** FulfillmentResponse mergeBehavior */ + mergeBehavior?: (google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior|keyof typeof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior|null); + } - /** - * Creates a new GetWebhookRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetWebhookRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IGetWebhookRequest): google.cloud.dialogflow.cx.v3.GetWebhookRequest; + /** Represents a FulfillmentResponse. */ + class FulfillmentResponse implements IFulfillmentResponse { - /** - * Encodes the specified GetWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetWebhookRequest.verify|verify} messages. - * @param message GetWebhookRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.IGetWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new FulfillmentResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse); - /** - * Encodes the specified GetWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetWebhookRequest.verify|verify} messages. - * @param message GetWebhookRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** FulfillmentResponse messages. */ + public messages: google.cloud.dialogflow.cx.v3.IResponseMessage[]; - /** - * Decodes a GetWebhookRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetWebhookRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetWebhookRequest; + /** FulfillmentResponse mergeBehavior. */ + public mergeBehavior: (google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior|keyof typeof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior); - /** - * Decodes a GetWebhookRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetWebhookRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetWebhookRequest; + /** + * Creates a new FulfillmentResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns FulfillmentResponse instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse): google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse; - /** - * Verifies a GetWebhookRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Encodes the specified FulfillmentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.verify|verify} messages. + * @param message FulfillmentResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a GetWebhookRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetWebhookRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetWebhookRequest; + /** + * Encodes the specified FulfillmentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.verify|verify} messages. + * @param message FulfillmentResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a GetWebhookRequest message. Also converts values to other types if specified. - * @param message GetWebhookRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.GetWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a FulfillmentResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FulfillmentResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse; - /** - * Converts this GetWebhookRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a FulfillmentResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FulfillmentResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse; + + /** + * Verifies a FulfillmentResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FulfillmentResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FulfillmentResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse; + + /** + * Creates a plain object from a FulfillmentResponse message. Also converts values to other types if specified. + * @param message FulfillmentResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FulfillmentResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace FulfillmentResponse { + + /** MergeBehavior enum. */ + enum MergeBehavior { + MERGE_BEHAVIOR_UNSPECIFIED = 0, + APPEND = 1, + REPLACE = 2 + } + } } - /** Properties of a CreateWebhookRequest. */ - interface ICreateWebhookRequest { + /** Properties of a PageInfo. */ + interface IPageInfo { - /** CreateWebhookRequest parent */ - parent?: (string|null); + /** PageInfo currentPage */ + currentPage?: (string|null); - /** CreateWebhookRequest webhook */ - webhook?: (google.cloud.dialogflow.cx.v3.IWebhook|null); + /** PageInfo formInfo */ + formInfo?: (google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo|null); } - /** Represents a CreateWebhookRequest. */ - class CreateWebhookRequest implements ICreateWebhookRequest { + /** Represents a PageInfo. */ + class PageInfo implements IPageInfo { /** - * Constructs a new CreateWebhookRequest. + * Constructs a new PageInfo. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IPageInfo); - /** CreateWebhookRequest parent. */ - public parent: string; + /** PageInfo currentPage. */ + public currentPage: string; - /** CreateWebhookRequest webhook. */ - public webhook?: (google.cloud.dialogflow.cx.v3.IWebhook|null); + /** PageInfo formInfo. */ + public formInfo?: (google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo|null); /** - * Creates a new CreateWebhookRequest instance using the specified properties. + * Creates a new PageInfo instance using the specified properties. * @param [properties] Properties to set - * @returns CreateWebhookRequest instance + * @returns PageInfo instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest): google.cloud.dialogflow.cx.v3.CreateWebhookRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IPageInfo): google.cloud.dialogflow.cx.v3.PageInfo; /** - * Encodes the specified CreateWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateWebhookRequest.verify|verify} messages. - * @param message CreateWebhookRequest message or plain object to encode + * Encodes the specified PageInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.verify|verify} messages. + * @param message PageInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IPageInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateWebhookRequest.verify|verify} messages. - * @param message CreateWebhookRequest message or plain object to encode + * Encodes the specified PageInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.verify|verify} messages. + * @param message PageInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IPageInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateWebhookRequest message from the specified reader or buffer. + * Decodes a PageInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateWebhookRequest + * @returns PageInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateWebhookRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.PageInfo; /** - * Decodes a CreateWebhookRequest message from the specified reader or buffer, length delimited. + * Decodes a PageInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateWebhookRequest + * @returns PageInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateWebhookRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.PageInfo; /** - * Verifies a CreateWebhookRequest message. + * Verifies a PageInfo message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateWebhookRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PageInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateWebhookRequest + * @returns PageInfo */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateWebhookRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.PageInfo; /** - * Creates a plain object from a CreateWebhookRequest message. Also converts values to other types if specified. - * @param message CreateWebhookRequest + * Creates a plain object from a PageInfo message. Also converts values to other types if specified. + * @param message PageInfo * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.CreateWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.PageInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateWebhookRequest to JSON. + * Converts this PageInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateWebhookRequest. */ - interface IUpdateWebhookRequest { + namespace PageInfo { - /** UpdateWebhookRequest webhook */ - webhook?: (google.cloud.dialogflow.cx.v3.IWebhook|null); + /** Properties of a FormInfo. */ + interface IFormInfo { - /** UpdateWebhookRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** FormInfo parameterInfo */ + parameterInfo?: (google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo[]|null); + } + + /** Represents a FormInfo. */ + class FormInfo implements IFormInfo { + + /** + * Constructs a new FormInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo); + + /** FormInfo parameterInfo. */ + public parameterInfo: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo[]; + + /** + * Creates a new FormInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns FormInfo instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo; + + /** + * Encodes the specified FormInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.verify|verify} messages. + * @param message FormInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FormInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.verify|verify} messages. + * @param message FormInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FormInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FormInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo; + + /** + * Decodes a FormInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FormInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo; + + /** + * Verifies a FormInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FormInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FormInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo; + + /** + * Creates a plain object from a FormInfo message. Also converts values to other types if specified. + * @param message FormInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FormInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace FormInfo { + + /** Properties of a ParameterInfo. */ + interface IParameterInfo { + + /** ParameterInfo displayName */ + displayName?: (string|null); + + /** ParameterInfo required */ + required?: (boolean|null); + + /** ParameterInfo state */ + state?: (google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState|keyof typeof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState|null); + + /** ParameterInfo value */ + value?: (google.protobuf.IValue|null); + + /** ParameterInfo justCollected */ + justCollected?: (boolean|null); + } + + /** Represents a ParameterInfo. */ + class ParameterInfo implements IParameterInfo { + + /** + * Constructs a new ParameterInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo); + + /** ParameterInfo displayName. */ + public displayName: string; + + /** ParameterInfo required. */ + public required: boolean; + + /** ParameterInfo state. */ + public state: (google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState|keyof typeof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState); + + /** ParameterInfo value. */ + public value?: (google.protobuf.IValue|null); + + /** ParameterInfo justCollected. */ + public justCollected: boolean; + + /** + * Creates a new ParameterInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns ParameterInfo instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo; + + /** + * Encodes the specified ParameterInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.verify|verify} messages. + * @param message ParameterInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ParameterInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.verify|verify} messages. + * @param message ParameterInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ParameterInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ParameterInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo; + + /** + * Decodes a ParameterInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ParameterInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo; + + /** + * Verifies a ParameterInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ParameterInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ParameterInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo; + + /** + * Creates a plain object from a ParameterInfo message. Also converts values to other types if specified. + * @param message ParameterInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ParameterInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace ParameterInfo { + + /** ParameterState enum. */ + enum ParameterState { + PARAMETER_STATE_UNSPECIFIED = 0, + EMPTY = 1, + INVALID = 2, + FILLED = 3 + } + } + } } - /** Represents an UpdateWebhookRequest. */ - class UpdateWebhookRequest implements IUpdateWebhookRequest { + /** Properties of a SessionInfo. */ + interface ISessionInfo { + + /** SessionInfo session */ + session?: (string|null); + + /** SessionInfo parameters */ + parameters?: ({ [k: string]: google.protobuf.IValue }|null); + } + + /** Represents a SessionInfo. */ + class SessionInfo implements ISessionInfo { /** - * Constructs a new UpdateWebhookRequest. + * Constructs a new SessionInfo. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ISessionInfo); - /** UpdateWebhookRequest webhook. */ - public webhook?: (google.cloud.dialogflow.cx.v3.IWebhook|null); + /** SessionInfo session. */ + public session: string; - /** UpdateWebhookRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** SessionInfo parameters. */ + public parameters: { [k: string]: google.protobuf.IValue }; /** - * Creates a new UpdateWebhookRequest instance using the specified properties. + * Creates a new SessionInfo instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateWebhookRequest instance + * @returns SessionInfo instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest): google.cloud.dialogflow.cx.v3.UpdateWebhookRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ISessionInfo): google.cloud.dialogflow.cx.v3.SessionInfo; /** - * Encodes the specified UpdateWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateWebhookRequest.verify|verify} messages. - * @param message UpdateWebhookRequest message or plain object to encode + * Encodes the specified SessionInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionInfo.verify|verify} messages. + * @param message SessionInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ISessionInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateWebhookRequest.verify|verify} messages. - * @param message UpdateWebhookRequest message or plain object to encode + * Encodes the specified SessionInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionInfo.verify|verify} messages. + * @param message SessionInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ISessionInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateWebhookRequest message from the specified reader or buffer. + * Decodes a SessionInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateWebhookRequest + * @returns SessionInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateWebhookRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.SessionInfo; /** - * Decodes an UpdateWebhookRequest message from the specified reader or buffer, length delimited. + * Decodes a SessionInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateWebhookRequest + * @returns SessionInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateWebhookRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.SessionInfo; /** - * Verifies an UpdateWebhookRequest message. + * Verifies a SessionInfo message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateWebhookRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SessionInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateWebhookRequest + * @returns SessionInfo */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateWebhookRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SessionInfo; /** - * Creates a plain object from an UpdateWebhookRequest message. Also converts values to other types if specified. - * @param message UpdateWebhookRequest + * Creates a plain object from a SessionInfo message. Also converts values to other types if specified. + * @param message SessionInfo * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.SessionInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateWebhookRequest to JSON. + * Converts this SessionInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } + } - /** Properties of a DeleteWebhookRequest. */ - interface IDeleteWebhookRequest { + /** Namespace v3beta1. */ + namespace v3beta1 { - /** DeleteWebhookRequest name */ - name?: (string|null); + /** Represents an Agents */ + class Agents extends $protobuf.rpc.Service { - /** DeleteWebhookRequest force */ - force?: (boolean|null); + /** + * Constructs a new Agents service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new Agents service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Agents; + + /** + * Calls ListAgents. + * @param request ListAgentsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListAgentsResponse + */ + public listAgents(request: google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.ListAgentsCallback): void; + + /** + * Calls ListAgents. + * @param request ListAgentsRequest message or plain object + * @returns Promise + */ + public listAgents(request: google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest): Promise; + + /** + * Calls GetAgent. + * @param request GetAgentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Agent + */ + public getAgent(request: google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.GetAgentCallback): void; + + /** + * Calls GetAgent. + * @param request GetAgentRequest message or plain object + * @returns Promise + */ + public getAgent(request: google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest): Promise; + + /** + * Calls CreateAgent. + * @param request CreateAgentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Agent + */ + public createAgent(request: google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.CreateAgentCallback): void; + + /** + * Calls CreateAgent. + * @param request CreateAgentRequest message or plain object + * @returns Promise + */ + public createAgent(request: google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest): Promise; + + /** + * Calls UpdateAgent. + * @param request UpdateAgentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Agent + */ + public updateAgent(request: google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgentCallback): void; + + /** + * Calls UpdateAgent. + * @param request UpdateAgentRequest message or plain object + * @returns Promise + */ + public updateAgent(request: google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest): Promise; + + /** + * Calls DeleteAgent. + * @param request DeleteAgentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteAgent(request: google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.DeleteAgentCallback): void; + + /** + * Calls DeleteAgent. + * @param request DeleteAgentRequest message or plain object + * @returns Promise + */ + public deleteAgent(request: google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest): Promise; + + /** + * Calls ExportAgent. + * @param request ExportAgentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public exportAgent(request: google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.ExportAgentCallback): void; + + /** + * Calls ExportAgent. + * @param request ExportAgentRequest message or plain object + * @returns Promise + */ + public exportAgent(request: google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest): Promise; + + /** + * Calls RestoreAgent. + * @param request RestoreAgentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public restoreAgent(request: google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.RestoreAgentCallback): void; + + /** + * Calls RestoreAgent. + * @param request RestoreAgentRequest message or plain object + * @returns Promise + */ + public restoreAgent(request: google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest): Promise; + + /** + * Calls ValidateAgent. + * @param request ValidateAgentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and AgentValidationResult + */ + public validateAgent(request: google.cloud.dialogflow.cx.v3beta1.IValidateAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.ValidateAgentCallback): void; + + /** + * Calls ValidateAgent. + * @param request ValidateAgentRequest message or plain object + * @returns Promise + */ + public validateAgent(request: google.cloud.dialogflow.cx.v3beta1.IValidateAgentRequest): Promise; + + /** + * Calls GetAgentValidationResult. + * @param request GetAgentValidationResultRequest message or plain object + * @param callback Node-style callback called with the error, if any, and AgentValidationResult + */ + public getAgentValidationResult(request: google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.GetAgentValidationResultCallback): void; + + /** + * Calls GetAgentValidationResult. + * @param request GetAgentValidationResultRequest message or plain object + * @returns Promise + */ + public getAgentValidationResult(request: google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest): Promise; } - /** Represents a DeleteWebhookRequest. */ - class DeleteWebhookRequest implements IDeleteWebhookRequest { + namespace Agents { /** - * Constructs a new DeleteWebhookRequest. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents#listAgents}. + * @param error Error, if any + * @param [response] ListAgentsResponse */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest); + type ListAgentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse) => void; - /** DeleteWebhookRequest name. */ - public name: string; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents#getAgent}. + * @param error Error, if any + * @param [response] Agent + */ + type GetAgentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Agent) => void; - /** DeleteWebhookRequest force. */ - public force: boolean; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents#createAgent}. + * @param error Error, if any + * @param [response] Agent + */ + type CreateAgentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Agent) => void; /** - * Creates a new DeleteWebhookRequest instance using the specified properties. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents#updateAgent}. + * @param error Error, if any + * @param [response] Agent + */ + type UpdateAgentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Agent) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents#deleteAgent}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteAgentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents#exportAgent}. + * @param error Error, if any + * @param [response] Operation + */ + type ExportAgentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents#restoreAgent}. + * @param error Error, if any + * @param [response] Operation + */ + type RestoreAgentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents#validateAgent}. + * @param error Error, if any + * @param [response] AgentValidationResult + */ + type ValidateAgentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.AgentValidationResult) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents#getAgentValidationResult}. + * @param error Error, if any + * @param [response] AgentValidationResult + */ + type GetAgentValidationResultCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.AgentValidationResult) => void; + } + + /** Properties of a SpeechToTextSettings. */ + interface ISpeechToTextSettings { + + /** SpeechToTextSettings enableSpeechAdaptation */ + enableSpeechAdaptation?: (boolean|null); + } + + /** Represents a SpeechToTextSettings. */ + class SpeechToTextSettings implements ISpeechToTextSettings { + + /** + * Constructs a new SpeechToTextSettings. * @param [properties] Properties to set - * @returns DeleteWebhookRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest): google.cloud.dialogflow.cx.v3.DeleteWebhookRequest; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings); + + /** SpeechToTextSettings enableSpeechAdaptation. */ + public enableSpeechAdaptation: boolean; /** - * Encodes the specified DeleteWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteWebhookRequest.verify|verify} messages. - * @param message DeleteWebhookRequest message or plain object to encode + * Creates a new SpeechToTextSettings instance using the specified properties. + * @param [properties] Properties to set + * @returns SpeechToTextSettings instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings): google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings; + + /** + * Encodes the specified SpeechToTextSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings.verify|verify} messages. + * @param message SpeechToTextSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteWebhookRequest.verify|verify} messages. - * @param message DeleteWebhookRequest message or plain object to encode + * Encodes the specified SpeechToTextSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings.verify|verify} messages. + * @param message SpeechToTextSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteWebhookRequest message from the specified reader or buffer. + * Decodes a SpeechToTextSettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteWebhookRequest + * @returns SpeechToTextSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteWebhookRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings; /** - * Decodes a DeleteWebhookRequest message from the specified reader or buffer, length delimited. + * Decodes a SpeechToTextSettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteWebhookRequest + * @returns SpeechToTextSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteWebhookRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings; /** - * Verifies a DeleteWebhookRequest message. + * Verifies a SpeechToTextSettings message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteWebhookRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SpeechToTextSettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteWebhookRequest + * @returns SpeechToTextSettings */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteWebhookRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings; /** - * Creates a plain object from a DeleteWebhookRequest message. Also converts values to other types if specified. - * @param message DeleteWebhookRequest + * Creates a plain object from a SpeechToTextSettings message. Also converts values to other types if specified. + * @param message SpeechToTextSettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteWebhookRequest to JSON. + * Converts this SpeechToTextSettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a WebhookRequest. */ - interface IWebhookRequest { + /** Properties of an Agent. */ + interface IAgent { - /** WebhookRequest detectIntentResponseId */ - detectIntentResponseId?: (string|null); + /** Agent name */ + name?: (string|null); - /** WebhookRequest fulfillmentInfo */ - fulfillmentInfo?: (google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo|null); + /** Agent displayName */ + displayName?: (string|null); - /** WebhookRequest intentInfo */ - intentInfo?: (google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo|null); + /** Agent defaultLanguageCode */ + defaultLanguageCode?: (string|null); - /** WebhookRequest pageInfo */ - pageInfo?: (google.cloud.dialogflow.cx.v3.IPageInfo|null); + /** Agent timeZone */ + timeZone?: (string|null); - /** WebhookRequest sessionInfo */ - sessionInfo?: (google.cloud.dialogflow.cx.v3.ISessionInfo|null); + /** Agent description */ + description?: (string|null); - /** WebhookRequest messages */ - messages?: (google.cloud.dialogflow.cx.v3.IResponseMessage[]|null); + /** Agent avatarUri */ + avatarUri?: (string|null); - /** WebhookRequest payload */ - payload?: (google.protobuf.IStruct|null); + /** Agent speechToTextSettings */ + speechToTextSettings?: (google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings|null); - /** WebhookRequest sentimentAnalysisResult */ - sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult|null); + /** Agent startFlow */ + startFlow?: (string|null); + + /** Agent securitySettings */ + securitySettings?: (string|null); + + /** Agent enableStackdriverLogging */ + enableStackdriverLogging?: (boolean|null); + + /** Agent enableSpellCorrection */ + enableSpellCorrection?: (boolean|null); } - /** Represents a WebhookRequest. */ - class WebhookRequest implements IWebhookRequest { + /** Represents an Agent. */ + class Agent implements IAgent { /** - * Constructs a new WebhookRequest. + * Constructs a new Agent. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IWebhookRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IAgent); - /** WebhookRequest detectIntentResponseId. */ - public detectIntentResponseId: string; + /** Agent name. */ + public name: string; - /** WebhookRequest fulfillmentInfo. */ - public fulfillmentInfo?: (google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo|null); + /** Agent displayName. */ + public displayName: string; - /** WebhookRequest intentInfo. */ - public intentInfo?: (google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo|null); + /** Agent defaultLanguageCode. */ + public defaultLanguageCode: string; - /** WebhookRequest pageInfo. */ - public pageInfo?: (google.cloud.dialogflow.cx.v3.IPageInfo|null); + /** Agent timeZone. */ + public timeZone: string; - /** WebhookRequest sessionInfo. */ - public sessionInfo?: (google.cloud.dialogflow.cx.v3.ISessionInfo|null); + /** Agent description. */ + public description: string; - /** WebhookRequest messages. */ - public messages: google.cloud.dialogflow.cx.v3.IResponseMessage[]; + /** Agent avatarUri. */ + public avatarUri: string; - /** WebhookRequest payload. */ - public payload?: (google.protobuf.IStruct|null); + /** Agent speechToTextSettings. */ + public speechToTextSettings?: (google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings|null); - /** WebhookRequest sentimentAnalysisResult. */ - public sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult|null); + /** Agent startFlow. */ + public startFlow: string; + + /** Agent securitySettings. */ + public securitySettings: string; + + /** Agent enableStackdriverLogging. */ + public enableStackdriverLogging: boolean; + + /** Agent enableSpellCorrection. */ + public enableSpellCorrection: boolean; /** - * Creates a new WebhookRequest instance using the specified properties. + * Creates a new Agent instance using the specified properties. * @param [properties] Properties to set - * @returns WebhookRequest instance + * @returns Agent instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IWebhookRequest): google.cloud.dialogflow.cx.v3.WebhookRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IAgent): google.cloud.dialogflow.cx.v3beta1.Agent; /** - * Encodes the specified WebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.verify|verify} messages. - * @param message WebhookRequest message or plain object to encode + * Encodes the specified Agent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Agent.verify|verify} messages. + * @param message Agent message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IAgent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.verify|verify} messages. - * @param message WebhookRequest message or plain object to encode + * Encodes the specified Agent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Agent.verify|verify} messages. + * @param message Agent message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IAgent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WebhookRequest message from the specified reader or buffer. + * Decodes an Agent message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WebhookRequest + * @returns Agent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Agent; /** - * Decodes a WebhookRequest message from the specified reader or buffer, length delimited. + * Decodes an Agent message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WebhookRequest + * @returns Agent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Agent; /** - * Verifies a WebhookRequest message. + * Verifies an Agent message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WebhookRequest message from a plain object. Also converts values to their respective internal types. + * Creates an Agent message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WebhookRequest + * @returns Agent */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Agent; /** - * Creates a plain object from a WebhookRequest message. Also converts values to other types if specified. - * @param message WebhookRequest + * Creates a plain object from an Agent message. Also converts values to other types if specified. + * @param message Agent * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Agent, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WebhookRequest to JSON. + * Converts this Agent to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace WebhookRequest { + /** Properties of a ListAgentsRequest. */ + interface IListAgentsRequest { - /** Properties of a FulfillmentInfo. */ - interface IFulfillmentInfo { + /** ListAgentsRequest parent */ + parent?: (string|null); - /** FulfillmentInfo tag */ - tag?: (string|null); - } + /** ListAgentsRequest pageSize */ + pageSize?: (number|null); - /** Represents a FulfillmentInfo. */ - class FulfillmentInfo implements IFulfillmentInfo { + /** ListAgentsRequest pageToken */ + pageToken?: (string|null); + } - /** - * Constructs a new FulfillmentInfo. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo); + /** Represents a ListAgentsRequest. */ + class ListAgentsRequest implements IListAgentsRequest { - /** FulfillmentInfo tag. */ - public tag: string; + /** + * Constructs a new ListAgentsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest); - /** - * Creates a new FulfillmentInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns FulfillmentInfo instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo): google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo; + /** ListAgentsRequest parent. */ + public parent: string; - /** - * Encodes the specified FulfillmentInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.verify|verify} messages. - * @param message FulfillmentInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo, writer?: $protobuf.Writer): $protobuf.Writer; + /** ListAgentsRequest pageSize. */ + public pageSize: number; - /** - * Encodes the specified FulfillmentInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.verify|verify} messages. - * @param message FulfillmentInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo, writer?: $protobuf.Writer): $protobuf.Writer; + /** ListAgentsRequest pageToken. */ + public pageToken: string; - /** - * Decodes a FulfillmentInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FulfillmentInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo; + /** + * Creates a new ListAgentsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListAgentsRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest): google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest; - /** - * Decodes a FulfillmentInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FulfillmentInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo; + /** + * Encodes the specified ListAgentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest.verify|verify} messages. + * @param message ListAgentsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a FulfillmentInfo message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a FulfillmentInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FulfillmentInfo - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo; - - /** - * Creates a plain object from a FulfillmentInfo message. Also converts values to other types if specified. - * @param message FulfillmentInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this FulfillmentInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an IntentInfo. */ - interface IIntentInfo { - - /** IntentInfo lastMatchedIntent */ - lastMatchedIntent?: (string|null); - - /** IntentInfo displayName */ - displayName?: (string|null); - - /** IntentInfo parameters */ - parameters?: ({ [k: string]: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue }|null); - - /** IntentInfo confidence */ - confidence?: (number|null); - } - - /** Represents an IntentInfo. */ - class IntentInfo implements IIntentInfo { - - /** - * Constructs a new IntentInfo. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo); - - /** IntentInfo lastMatchedIntent. */ - public lastMatchedIntent: string; - - /** IntentInfo displayName. */ - public displayName: string; - - /** IntentInfo parameters. */ - public parameters: { [k: string]: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue }; - - /** IntentInfo confidence. */ - public confidence: number; - - /** - * Creates a new IntentInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns IntentInfo instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo; - - /** - * Encodes the specified IntentInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.verify|verify} messages. - * @param message IntentInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified IntentInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.verify|verify} messages. - * @param message IntentInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an IntentInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns IntentInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo; - - /** - * Decodes an IntentInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns IntentInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo; - - /** - * Verifies an IntentInfo message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an IntentInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns IntentInfo - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo; - - /** - * Creates a plain object from an IntentInfo message. Also converts values to other types if specified. - * @param message IntentInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this IntentInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace IntentInfo { - - /** Properties of an IntentParameterValue. */ - interface IIntentParameterValue { - - /** IntentParameterValue originalValue */ - originalValue?: (string|null); - - /** IntentParameterValue resolvedValue */ - resolvedValue?: (google.protobuf.IValue|null); - } - - /** Represents an IntentParameterValue. */ - class IntentParameterValue implements IIntentParameterValue { - - /** - * Constructs a new IntentParameterValue. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue); - - /** IntentParameterValue originalValue. */ - public originalValue: string; - - /** IntentParameterValue resolvedValue. */ - public resolvedValue?: (google.protobuf.IValue|null); - - /** - * Creates a new IntentParameterValue instance using the specified properties. - * @param [properties] Properties to set - * @returns IntentParameterValue instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue; - - /** - * Encodes the specified IntentParameterValue message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.verify|verify} messages. - * @param message IntentParameterValue message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified IntentParameterValue message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.verify|verify} messages. - * @param message IntentParameterValue message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an IntentParameterValue message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns IntentParameterValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue; - - /** - * Decodes an IntentParameterValue message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns IntentParameterValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue; - - /** - * Verifies an IntentParameterValue message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an IntentParameterValue message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns IntentParameterValue - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue; - - /** - * Creates a plain object from an IntentParameterValue message. Also converts values to other types if specified. - * @param message IntentParameterValue - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this IntentParameterValue to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of a SentimentAnalysisResult. */ - interface ISentimentAnalysisResult { - - /** SentimentAnalysisResult score */ - score?: (number|null); - - /** SentimentAnalysisResult magnitude */ - magnitude?: (number|null); - } - - /** Represents a SentimentAnalysisResult. */ - class SentimentAnalysisResult implements ISentimentAnalysisResult { - - /** - * Constructs a new SentimentAnalysisResult. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult); - - /** SentimentAnalysisResult score. */ - public score: number; - - /** SentimentAnalysisResult magnitude. */ - public magnitude: number; - - /** - * Creates a new SentimentAnalysisResult instance using the specified properties. - * @param [properties] Properties to set - * @returns SentimentAnalysisResult instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult): google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult; - - /** - * Encodes the specified SentimentAnalysisResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.verify|verify} messages. - * @param message SentimentAnalysisResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SentimentAnalysisResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.verify|verify} messages. - * @param message SentimentAnalysisResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ListAgentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest.verify|verify} messages. + * @param message ListAgentsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a SentimentAnalysisResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SentimentAnalysisResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult; + /** + * Decodes a ListAgentsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListAgentsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest; - /** - * Decodes a SentimentAnalysisResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SentimentAnalysisResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult; + /** + * Decodes a ListAgentsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListAgentsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest; - /** - * Verifies a SentimentAnalysisResult message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Verifies a ListAgentsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a SentimentAnalysisResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SentimentAnalysisResult - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult; + /** + * Creates a ListAgentsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListAgentsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest; - /** - * Creates a plain object from a SentimentAnalysisResult message. Also converts values to other types if specified. - * @param message SentimentAnalysisResult - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a ListAgentsRequest message. Also converts values to other types if specified. + * @param message ListAgentsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this SentimentAnalysisResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Converts this ListAgentsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Properties of a WebhookResponse. */ - interface IWebhookResponse { - - /** WebhookResponse fulfillmentResponse */ - fulfillmentResponse?: (google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse|null); - - /** WebhookResponse pageInfo */ - pageInfo?: (google.cloud.dialogflow.cx.v3.IPageInfo|null); - - /** WebhookResponse sessionInfo */ - sessionInfo?: (google.cloud.dialogflow.cx.v3.ISessionInfo|null); - - /** WebhookResponse payload */ - payload?: (google.protobuf.IStruct|null); + /** Properties of a ListAgentsResponse. */ + interface IListAgentsResponse { - /** WebhookResponse targetPage */ - targetPage?: (string|null); + /** ListAgentsResponse agents */ + agents?: (google.cloud.dialogflow.cx.v3beta1.IAgent[]|null); - /** WebhookResponse targetFlow */ - targetFlow?: (string|null); + /** ListAgentsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a WebhookResponse. */ - class WebhookResponse implements IWebhookResponse { + /** Represents a ListAgentsResponse. */ + class ListAgentsResponse implements IListAgentsResponse { /** - * Constructs a new WebhookResponse. + * Constructs a new ListAgentsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IWebhookResponse); - - /** WebhookResponse fulfillmentResponse. */ - public fulfillmentResponse?: (google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse|null); - - /** WebhookResponse pageInfo. */ - public pageInfo?: (google.cloud.dialogflow.cx.v3.IPageInfo|null); - - /** WebhookResponse sessionInfo. */ - public sessionInfo?: (google.cloud.dialogflow.cx.v3.ISessionInfo|null); - - /** WebhookResponse payload. */ - public payload?: (google.protobuf.IStruct|null); - - /** WebhookResponse targetPage. */ - public targetPage: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListAgentsResponse); - /** WebhookResponse targetFlow. */ - public targetFlow: string; + /** ListAgentsResponse agents. */ + public agents: google.cloud.dialogflow.cx.v3beta1.IAgent[]; - /** WebhookResponse transition. */ - public transition?: ("targetPage"|"targetFlow"); + /** ListAgentsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new WebhookResponse instance using the specified properties. + * Creates a new ListAgentsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns WebhookResponse instance + * @returns ListAgentsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IWebhookResponse): google.cloud.dialogflow.cx.v3.WebhookResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListAgentsResponse): google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse; /** - * Encodes the specified WebhookResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookResponse.verify|verify} messages. - * @param message WebhookResponse message or plain object to encode + * Encodes the specified ListAgentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse.verify|verify} messages. + * @param message ListAgentsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IWebhookResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListAgentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WebhookResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookResponse.verify|verify} messages. - * @param message WebhookResponse message or plain object to encode + * Encodes the specified ListAgentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse.verify|verify} messages. + * @param message ListAgentsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IWebhookResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListAgentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WebhookResponse message from the specified reader or buffer. + * Decodes a ListAgentsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WebhookResponse + * @returns ListAgentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse; /** - * Decodes a WebhookResponse message from the specified reader or buffer, length delimited. + * Decodes a ListAgentsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WebhookResponse + * @returns ListAgentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse; /** - * Verifies a WebhookResponse message. + * Verifies a ListAgentsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WebhookResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListAgentsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WebhookResponse + * @returns ListAgentsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse; /** - * Creates a plain object from a WebhookResponse message. Also converts values to other types if specified. - * @param message WebhookResponse + * Creates a plain object from a ListAgentsResponse message. Also converts values to other types if specified. + * @param message ListAgentsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WebhookResponse to JSON. + * Converts this ListAgentsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace WebhookResponse { - - /** Properties of a FulfillmentResponse. */ - interface IFulfillmentResponse { + /** Properties of a GetAgentRequest. */ + interface IGetAgentRequest { - /** FulfillmentResponse messages */ - messages?: (google.cloud.dialogflow.cx.v3.IResponseMessage[]|null); + /** GetAgentRequest name */ + name?: (string|null); + } - /** FulfillmentResponse mergeBehavior */ - mergeBehavior?: (google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior|keyof typeof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior|null); - } + /** Represents a GetAgentRequest. */ + class GetAgentRequest implements IGetAgentRequest { - /** Represents a FulfillmentResponse. */ - class FulfillmentResponse implements IFulfillmentResponse { + /** + * Constructs a new GetAgentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest); - /** - * Constructs a new FulfillmentResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse); + /** GetAgentRequest name. */ + public name: string; - /** FulfillmentResponse messages. */ - public messages: google.cloud.dialogflow.cx.v3.IResponseMessage[]; + /** + * Creates a new GetAgentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetAgentRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest): google.cloud.dialogflow.cx.v3beta1.GetAgentRequest; - /** FulfillmentResponse mergeBehavior. */ - public mergeBehavior: (google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior|keyof typeof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior); - - /** - * Creates a new FulfillmentResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns FulfillmentResponse instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse): google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse; - - /** - * Encodes the specified FulfillmentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.verify|verify} messages. - * @param message FulfillmentResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FulfillmentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.verify|verify} messages. - * @param message FulfillmentResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FulfillmentResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FulfillmentResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse; + /** + * Encodes the specified GetAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetAgentRequest.verify|verify} messages. + * @param message GetAgentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a FulfillmentResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FulfillmentResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse; + /** + * Encodes the specified GetAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetAgentRequest.verify|verify} messages. + * @param message GetAgentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a FulfillmentResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a GetAgentRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetAgentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetAgentRequest; - /** - * Creates a FulfillmentResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FulfillmentResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse; + /** + * Decodes a GetAgentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetAgentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetAgentRequest; - /** - * Creates a plain object from a FulfillmentResponse message. Also converts values to other types if specified. - * @param message FulfillmentResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Verifies a GetAgentRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Converts this FulfillmentResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Creates a GetAgentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetAgentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetAgentRequest; - namespace FulfillmentResponse { + /** + * Creates a plain object from a GetAgentRequest message. Also converts values to other types if specified. + * @param message GetAgentRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetAgentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** MergeBehavior enum. */ - enum MergeBehavior { - MERGE_BEHAVIOR_UNSPECIFIED = 0, - APPEND = 1, - REPLACE = 2 - } - } + /** + * Converts this GetAgentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Properties of a PageInfo. */ - interface IPageInfo { + /** Properties of a CreateAgentRequest. */ + interface ICreateAgentRequest { - /** PageInfo currentPage */ - currentPage?: (string|null); + /** CreateAgentRequest parent */ + parent?: (string|null); - /** PageInfo formInfo */ - formInfo?: (google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo|null); + /** CreateAgentRequest agent */ + agent?: (google.cloud.dialogflow.cx.v3beta1.IAgent|null); } - /** Represents a PageInfo. */ - class PageInfo implements IPageInfo { + /** Represents a CreateAgentRequest. */ + class CreateAgentRequest implements ICreateAgentRequest { /** - * Constructs a new PageInfo. + * Constructs a new CreateAgentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IPageInfo); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest); - /** PageInfo currentPage. */ - public currentPage: string; + /** CreateAgentRequest parent. */ + public parent: string; - /** PageInfo formInfo. */ - public formInfo?: (google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo|null); + /** CreateAgentRequest agent. */ + public agent?: (google.cloud.dialogflow.cx.v3beta1.IAgent|null); /** - * Creates a new PageInfo instance using the specified properties. + * Creates a new CreateAgentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PageInfo instance + * @returns CreateAgentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IPageInfo): google.cloud.dialogflow.cx.v3.PageInfo; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest): google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest; /** - * Encodes the specified PageInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.verify|verify} messages. - * @param message PageInfo message or plain object to encode + * Encodes the specified CreateAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest.verify|verify} messages. + * @param message CreateAgentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IPageInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PageInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.verify|verify} messages. - * @param message PageInfo message or plain object to encode + * Encodes the specified CreateAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest.verify|verify} messages. + * @param message CreateAgentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IPageInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PageInfo message from the specified reader or buffer. + * Decodes a CreateAgentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PageInfo + * @returns CreateAgentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.PageInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest; /** - * Decodes a PageInfo message from the specified reader or buffer, length delimited. + * Decodes a CreateAgentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PageInfo + * @returns CreateAgentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.PageInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest; /** - * Verifies a PageInfo message. + * Verifies a CreateAgentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PageInfo message from a plain object. Also converts values to their respective internal types. + * Creates a CreateAgentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PageInfo + * @returns CreateAgentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.PageInfo; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest; /** - * Creates a plain object from a PageInfo message. Also converts values to other types if specified. - * @param message PageInfo + * Creates a plain object from a CreateAgentRequest message. Also converts values to other types if specified. + * @param message CreateAgentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.PageInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PageInfo to JSON. + * Converts this CreateAgentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace PageInfo { - - /** Properties of a FormInfo. */ - interface IFormInfo { - - /** FormInfo parameterInfo */ - parameterInfo?: (google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo[]|null); - } - - /** Represents a FormInfo. */ - class FormInfo implements IFormInfo { - - /** - * Constructs a new FormInfo. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo); - - /** FormInfo parameterInfo. */ - public parameterInfo: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo[]; - - /** - * Creates a new FormInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns FormInfo instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo; - - /** - * Encodes the specified FormInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.verify|verify} messages. - * @param message FormInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FormInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.verify|verify} messages. - * @param message FormInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FormInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FormInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo; - - /** - * Decodes a FormInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FormInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo; - - /** - * Verifies a FormInfo message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a FormInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FormInfo - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo; - - /** - * Creates a plain object from a FormInfo message. Also converts values to other types if specified. - * @param message FormInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this FormInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace FormInfo { - - /** Properties of a ParameterInfo. */ - interface IParameterInfo { - - /** ParameterInfo displayName */ - displayName?: (string|null); - - /** ParameterInfo required */ - required?: (boolean|null); - - /** ParameterInfo state */ - state?: (google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState|keyof typeof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState|null); - - /** ParameterInfo value */ - value?: (google.protobuf.IValue|null); - - /** ParameterInfo justCollected */ - justCollected?: (boolean|null); - } - - /** Represents a ParameterInfo. */ - class ParameterInfo implements IParameterInfo { - - /** - * Constructs a new ParameterInfo. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo); - - /** ParameterInfo displayName. */ - public displayName: string; - - /** ParameterInfo required. */ - public required: boolean; - - /** ParameterInfo state. */ - public state: (google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState|keyof typeof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState); - - /** ParameterInfo value. */ - public value?: (google.protobuf.IValue|null); - - /** ParameterInfo justCollected. */ - public justCollected: boolean; - - /** - * Creates a new ParameterInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns ParameterInfo instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo; - - /** - * Encodes the specified ParameterInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.verify|verify} messages. - * @param message ParameterInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ParameterInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.verify|verify} messages. - * @param message ParameterInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ParameterInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ParameterInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo; - - /** - * Decodes a ParameterInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ParameterInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo; - - /** - * Verifies a ParameterInfo message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ParameterInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ParameterInfo - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo; - - /** - * Creates a plain object from a ParameterInfo message. Also converts values to other types if specified. - * @param message ParameterInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ParameterInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace ParameterInfo { - - /** ParameterState enum. */ - enum ParameterState { - PARAMETER_STATE_UNSPECIFIED = 0, - EMPTY = 1, - INVALID = 2, - FILLED = 3 - } - } - } - } - - /** Properties of a SessionInfo. */ - interface ISessionInfo { + /** Properties of an UpdateAgentRequest. */ + interface IUpdateAgentRequest { - /** SessionInfo session */ - session?: (string|null); + /** UpdateAgentRequest agent */ + agent?: (google.cloud.dialogflow.cx.v3beta1.IAgent|null); - /** SessionInfo parameters */ - parameters?: ({ [k: string]: google.protobuf.IValue }|null); + /** UpdateAgentRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a SessionInfo. */ - class SessionInfo implements ISessionInfo { + /** Represents an UpdateAgentRequest. */ + class UpdateAgentRequest implements IUpdateAgentRequest { /** - * Constructs a new SessionInfo. + * Constructs a new UpdateAgentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ISessionInfo); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest); - /** SessionInfo session. */ - public session: string; + /** UpdateAgentRequest agent. */ + public agent?: (google.cloud.dialogflow.cx.v3beta1.IAgent|null); - /** SessionInfo parameters. */ - public parameters: { [k: string]: google.protobuf.IValue }; + /** UpdateAgentRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new SessionInfo instance using the specified properties. + * Creates a new UpdateAgentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SessionInfo instance + * @returns UpdateAgentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ISessionInfo): google.cloud.dialogflow.cx.v3.SessionInfo; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest): google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest; /** - * Encodes the specified SessionInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionInfo.verify|verify} messages. - * @param message SessionInfo message or plain object to encode + * Encodes the specified UpdateAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest.verify|verify} messages. + * @param message UpdateAgentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ISessionInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SessionInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionInfo.verify|verify} messages. - * @param message SessionInfo message or plain object to encode + * Encodes the specified UpdateAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest.verify|verify} messages. + * @param message UpdateAgentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ISessionInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SessionInfo message from the specified reader or buffer. + * Decodes an UpdateAgentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SessionInfo + * @returns UpdateAgentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.SessionInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest; /** - * Decodes a SessionInfo message from the specified reader or buffer, length delimited. + * Decodes an UpdateAgentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SessionInfo + * @returns UpdateAgentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.SessionInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest; /** - * Verifies a SessionInfo message. + * Verifies an UpdateAgentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SessionInfo message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateAgentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SessionInfo + * @returns UpdateAgentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SessionInfo; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest; /** - * Creates a plain object from a SessionInfo message. Also converts values to other types if specified. - * @param message SessionInfo + * Creates a plain object from an UpdateAgentRequest message. Also converts values to other types if specified. + * @param message UpdateAgentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.SessionInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SessionInfo to JSON. + * Converts this UpdateAgentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - } - /** Namespace v3beta1. */ - namespace v3beta1 { + /** Properties of a DeleteAgentRequest. */ + interface IDeleteAgentRequest { - /** Represents an Agents */ - class Agents extends $protobuf.rpc.Service { + /** DeleteAgentRequest name */ + name?: (string|null); + } + + /** Represents a DeleteAgentRequest. */ + class DeleteAgentRequest implements IDeleteAgentRequest { /** - * Constructs a new Agents service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new Agents service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Agents; - - /** - * Calls ListAgents. - * @param request ListAgentsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListAgentsResponse - */ - public listAgents(request: google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.ListAgentsCallback): void; - - /** - * Calls ListAgents. - * @param request ListAgentsRequest message or plain object - * @returns Promise + * Constructs a new DeleteAgentRequest. + * @param [properties] Properties to set */ - public listAgents(request: google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest): Promise; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest); - /** - * Calls GetAgent. - * @param request GetAgentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Agent - */ - public getAgent(request: google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.GetAgentCallback): void; + /** DeleteAgentRequest name. */ + public name: string; /** - * Calls GetAgent. - * @param request GetAgentRequest message or plain object - * @returns Promise + * Creates a new DeleteAgentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteAgentRequest instance */ - public getAgent(request: google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest): Promise; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest): google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest; /** - * Calls CreateAgent. - * @param request CreateAgentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Agent + * Encodes the specified DeleteAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest.verify|verify} messages. + * @param message DeleteAgentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public createAgent(request: google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.CreateAgentCallback): void; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateAgent. - * @param request CreateAgentRequest message or plain object - * @returns Promise + * Encodes the specified DeleteAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest.verify|verify} messages. + * @param message DeleteAgentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public createAgent(request: google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest): Promise; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdateAgent. - * @param request UpdateAgentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Agent + * Decodes a DeleteAgentRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteAgentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public updateAgent(request: google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgentCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest; /** - * Calls UpdateAgent. - * @param request UpdateAgentRequest message or plain object - * @returns Promise + * Decodes a DeleteAgentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteAgentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public updateAgent(request: google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest; /** - * Calls DeleteAgent. - * @param request DeleteAgentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Verifies a DeleteAgentRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public deleteAgent(request: google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.DeleteAgentCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls DeleteAgent. - * @param request DeleteAgentRequest message or plain object - * @returns Promise + * Creates a DeleteAgentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteAgentRequest */ - public deleteAgent(request: google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest; /** - * Calls ExportAgent. - * @param request ExportAgentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a plain object from a DeleteAgentRequest message. Also converts values to other types if specified. + * @param message DeleteAgentRequest + * @param [options] Conversion options + * @returns Plain object */ - public exportAgent(request: google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.ExportAgentCallback): void; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ExportAgent. - * @param request ExportAgentRequest message or plain object - * @returns Promise + * Converts this DeleteAgentRequest to JSON. + * @returns JSON object */ - public exportAgent(request: google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest): Promise; + public toJSON(): { [k: string]: any }; + } - /** - * Calls RestoreAgent. - * @param request RestoreAgentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public restoreAgent(request: google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.RestoreAgentCallback): void; + /** Properties of an ExportAgentRequest. */ + interface IExportAgentRequest { - /** - * Calls RestoreAgent. - * @param request RestoreAgentRequest message or plain object - * @returns Promise - */ - public restoreAgent(request: google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest): Promise; + /** ExportAgentRequest name */ + name?: (string|null); - /** - * Calls ValidateAgent. - * @param request ValidateAgentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and AgentValidationResult - */ - public validateAgent(request: google.cloud.dialogflow.cx.v3beta1.IValidateAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.ValidateAgentCallback): void; + /** ExportAgentRequest agentUri */ + agentUri?: (string|null); + } - /** - * Calls ValidateAgent. - * @param request ValidateAgentRequest message or plain object - * @returns Promise - */ - public validateAgent(request: google.cloud.dialogflow.cx.v3beta1.IValidateAgentRequest): Promise; + /** Represents an ExportAgentRequest. */ + class ExportAgentRequest implements IExportAgentRequest { /** - * Calls GetAgentValidationResult. - * @param request GetAgentValidationResultRequest message or plain object - * @param callback Node-style callback called with the error, if any, and AgentValidationResult + * Constructs a new ExportAgentRequest. + * @param [properties] Properties to set */ - public getAgentValidationResult(request: google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.GetAgentValidationResultCallback): void; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest); - /** - * Calls GetAgentValidationResult. - * @param request GetAgentValidationResultRequest message or plain object - * @returns Promise - */ - public getAgentValidationResult(request: google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest): Promise; - } + /** ExportAgentRequest name. */ + public name: string; - namespace Agents { + /** ExportAgentRequest agentUri. */ + public agentUri: string; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents#listAgents}. - * @param error Error, if any - * @param [response] ListAgentsResponse + * Creates a new ExportAgentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExportAgentRequest instance */ - type ListAgentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse) => void; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest): google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents#getAgent}. - * @param error Error, if any - * @param [response] Agent + * Encodes the specified ExportAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.verify|verify} messages. + * @param message ExportAgentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type GetAgentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Agent) => void; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents#createAgent}. - * @param error Error, if any - * @param [response] Agent + * Encodes the specified ExportAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.verify|verify} messages. + * @param message ExportAgentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type CreateAgentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Agent) => void; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents#updateAgent}. - * @param error Error, if any - * @param [response] Agent + * Decodes an ExportAgentRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExportAgentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type UpdateAgentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Agent) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents#deleteAgent}. - * @param error Error, if any - * @param [response] Empty + * Decodes an ExportAgentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExportAgentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type DeleteAgentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents#exportAgent}. - * @param error Error, if any - * @param [response] Operation + * Verifies an ExportAgentRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type ExportAgentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents#restoreAgent}. - * @param error Error, if any - * @param [response] Operation + * Creates an ExportAgentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExportAgentRequest */ - type RestoreAgentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents#validateAgent}. - * @param error Error, if any - * @param [response] AgentValidationResult + * Creates a plain object from an ExportAgentRequest message. Also converts values to other types if specified. + * @param message ExportAgentRequest + * @param [options] Conversion options + * @returns Plain object */ - type ValidateAgentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.AgentValidationResult) => void; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents#getAgentValidationResult}. - * @param error Error, if any - * @param [response] AgentValidationResult + * Converts this ExportAgentRequest to JSON. + * @returns JSON object */ - type GetAgentValidationResultCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.AgentValidationResult) => void; + public toJSON(): { [k: string]: any }; } - /** Properties of a SpeechToTextSettings. */ - interface ISpeechToTextSettings { + /** Properties of an ExportAgentResponse. */ + interface IExportAgentResponse { - /** SpeechToTextSettings enableSpeechAdaptation */ - enableSpeechAdaptation?: (boolean|null); + /** ExportAgentResponse agentUri */ + agentUri?: (string|null); + + /** ExportAgentResponse agentContent */ + agentContent?: (Uint8Array|string|null); } - /** Represents a SpeechToTextSettings. */ - class SpeechToTextSettings implements ISpeechToTextSettings { + /** Represents an ExportAgentResponse. */ + class ExportAgentResponse implements IExportAgentResponse { /** - * Constructs a new SpeechToTextSettings. + * Constructs a new ExportAgentResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportAgentResponse); - /** SpeechToTextSettings enableSpeechAdaptation. */ - public enableSpeechAdaptation: boolean; + /** ExportAgentResponse agentUri. */ + public agentUri: string; + + /** ExportAgentResponse agentContent. */ + public agentContent: (Uint8Array|string); + + /** ExportAgentResponse agent. */ + public agent?: ("agentUri"|"agentContent"); /** - * Creates a new SpeechToTextSettings instance using the specified properties. + * Creates a new ExportAgentResponse instance using the specified properties. * @param [properties] Properties to set - * @returns SpeechToTextSettings instance + * @returns ExportAgentResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings): google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IExportAgentResponse): google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse; /** - * Encodes the specified SpeechToTextSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings.verify|verify} messages. - * @param message SpeechToTextSettings message or plain object to encode + * Encodes the specified ExportAgentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse.verify|verify} messages. + * @param message ExportAgentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IExportAgentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SpeechToTextSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings.verify|verify} messages. - * @param message SpeechToTextSettings message or plain object to encode + * Encodes the specified ExportAgentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse.verify|verify} messages. + * @param message ExportAgentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IExportAgentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SpeechToTextSettings message from the specified reader or buffer. + * Decodes an ExportAgentResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SpeechToTextSettings + * @returns ExportAgentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse; /** - * Decodes a SpeechToTextSettings message from the specified reader or buffer, length delimited. + * Decodes an ExportAgentResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SpeechToTextSettings + * @returns ExportAgentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse; /** - * Verifies a SpeechToTextSettings message. + * Verifies an ExportAgentResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SpeechToTextSettings message from a plain object. Also converts values to their respective internal types. + * Creates an ExportAgentResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SpeechToTextSettings + * @returns ExportAgentResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse; /** - * Creates a plain object from a SpeechToTextSettings message. Also converts values to other types if specified. - * @param message SpeechToTextSettings + * Creates a plain object from an ExportAgentResponse message. Also converts values to other types if specified. + * @param message ExportAgentResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SpeechToTextSettings to JSON. + * Converts this ExportAgentResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an Agent. */ - interface IAgent { + /** Properties of a RestoreAgentRequest. */ + interface IRestoreAgentRequest { - /** Agent name */ + /** RestoreAgentRequest name */ name?: (string|null); - /** Agent displayName */ - displayName?: (string|null); - - /** Agent defaultLanguageCode */ - defaultLanguageCode?: (string|null); - - /** Agent timeZone */ - timeZone?: (string|null); - - /** Agent description */ - description?: (string|null); - - /** Agent avatarUri */ - avatarUri?: (string|null); - - /** Agent speechToTextSettings */ - speechToTextSettings?: (google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings|null); - - /** Agent startFlow */ - startFlow?: (string|null); - - /** Agent securitySettings */ - securitySettings?: (string|null); + /** RestoreAgentRequest agentUri */ + agentUri?: (string|null); - /** Agent enableStackdriverLogging */ - enableStackdriverLogging?: (boolean|null); + /** RestoreAgentRequest agentContent */ + agentContent?: (Uint8Array|string|null); - /** Agent enableSpellCorrection */ - enableSpellCorrection?: (boolean|null); + /** RestoreAgentRequest restoreOption */ + restoreOption?: (google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.RestoreOption|keyof typeof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.RestoreOption|null); } - /** Represents an Agent. */ - class Agent implements IAgent { + /** Represents a RestoreAgentRequest. */ + class RestoreAgentRequest implements IRestoreAgentRequest { /** - * Constructs a new Agent. + * Constructs a new RestoreAgentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IAgent); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest); - /** Agent name. */ + /** RestoreAgentRequest name. */ public name: string; - /** Agent displayName. */ - public displayName: string; - - /** Agent defaultLanguageCode. */ - public defaultLanguageCode: string; - - /** Agent timeZone. */ - public timeZone: string; - - /** Agent description. */ - public description: string; - - /** Agent avatarUri. */ - public avatarUri: string; - - /** Agent speechToTextSettings. */ - public speechToTextSettings?: (google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings|null); - - /** Agent startFlow. */ - public startFlow: string; + /** RestoreAgentRequest agentUri. */ + public agentUri: string; - /** Agent securitySettings. */ - public securitySettings: string; + /** RestoreAgentRequest agentContent. */ + public agentContent: (Uint8Array|string); - /** Agent enableStackdriverLogging. */ - public enableStackdriverLogging: boolean; + /** RestoreAgentRequest restoreOption. */ + public restoreOption: (google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.RestoreOption|keyof typeof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.RestoreOption); - /** Agent enableSpellCorrection. */ - public enableSpellCorrection: boolean; + /** RestoreAgentRequest agent. */ + public agent?: ("agentUri"|"agentContent"); /** - * Creates a new Agent instance using the specified properties. + * Creates a new RestoreAgentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Agent instance + * @returns RestoreAgentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IAgent): google.cloud.dialogflow.cx.v3beta1.Agent; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest): google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest; /** - * Encodes the specified Agent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Agent.verify|verify} messages. - * @param message Agent message or plain object to encode + * Encodes the specified RestoreAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.verify|verify} messages. + * @param message RestoreAgentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IAgent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Agent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Agent.verify|verify} messages. - * @param message Agent message or plain object to encode + * Encodes the specified RestoreAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.verify|verify} messages. + * @param message RestoreAgentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IAgent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Agent message from the specified reader or buffer. + * Decodes a RestoreAgentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Agent + * @returns RestoreAgentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Agent; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest; /** - * Decodes an Agent message from the specified reader or buffer, length delimited. + * Decodes a RestoreAgentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Agent + * @returns RestoreAgentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Agent; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest; /** - * Verifies an Agent message. + * Verifies a RestoreAgentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an Agent message from a plain object. Also converts values to their respective internal types. + * Creates a RestoreAgentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Agent + * @returns RestoreAgentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Agent; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest; /** - * Creates a plain object from an Agent message. Also converts values to other types if specified. - * @param message Agent + * Creates a plain object from a RestoreAgentRequest message. Also converts values to other types if specified. + * @param message RestoreAgentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Agent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Agent to JSON. + * Converts this RestoreAgentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListAgentsRequest. */ - interface IListAgentsRequest { + namespace RestoreAgentRequest { - /** ListAgentsRequest parent */ - parent?: (string|null); + /** RestoreOption enum. */ + enum RestoreOption { + RESTORE_OPTION_UNSPECIFIED = 0, + KEEP = 1, + FALLBACK = 2 + } + } - /** ListAgentsRequest pageSize */ - pageSize?: (number|null); + /** Properties of a ValidateAgentRequest. */ + interface IValidateAgentRequest { - /** ListAgentsRequest pageToken */ - pageToken?: (string|null); + /** ValidateAgentRequest name */ + name?: (string|null); + + /** ValidateAgentRequest languageCode */ + languageCode?: (string|null); } - /** Represents a ListAgentsRequest. */ - class ListAgentsRequest implements IListAgentsRequest { + /** Represents a ValidateAgentRequest. */ + class ValidateAgentRequest implements IValidateAgentRequest { /** - * Constructs a new ListAgentsRequest. + * Constructs a new ValidateAgentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest); - - /** ListAgentsRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IValidateAgentRequest); - /** ListAgentsRequest pageSize. */ - public pageSize: number; + /** ValidateAgentRequest name. */ + public name: string; - /** ListAgentsRequest pageToken. */ - public pageToken: string; + /** ValidateAgentRequest languageCode. */ + public languageCode: string; /** - * Creates a new ListAgentsRequest instance using the specified properties. + * Creates a new ValidateAgentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListAgentsRequest instance + * @returns ValidateAgentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest): google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IValidateAgentRequest): google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest; /** - * Encodes the specified ListAgentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest.verify|verify} messages. - * @param message ListAgentsRequest message or plain object to encode + * Encodes the specified ValidateAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest.verify|verify} messages. + * @param message ValidateAgentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IValidateAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListAgentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest.verify|verify} messages. - * @param message ListAgentsRequest message or plain object to encode + * Encodes the specified ValidateAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest.verify|verify} messages. + * @param message ValidateAgentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IValidateAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListAgentsRequest message from the specified reader or buffer. + * Decodes a ValidateAgentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListAgentsRequest + * @returns ValidateAgentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest; /** - * Decodes a ListAgentsRequest message from the specified reader or buffer, length delimited. + * Decodes a ValidateAgentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListAgentsRequest + * @returns ValidateAgentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest; /** - * Verifies a ListAgentsRequest message. + * Verifies a ValidateAgentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListAgentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateAgentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListAgentsRequest + * @returns ValidateAgentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest; /** - * Creates a plain object from a ListAgentsRequest message. Also converts values to other types if specified. - * @param message ListAgentsRequest + * Creates a plain object from a ValidateAgentRequest message. Also converts values to other types if specified. + * @param message ValidateAgentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListAgentsRequest to JSON. + * Converts this ValidateAgentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListAgentsResponse. */ - interface IListAgentsResponse { + /** Properties of a GetAgentValidationResultRequest. */ + interface IGetAgentValidationResultRequest { - /** ListAgentsResponse agents */ - agents?: (google.cloud.dialogflow.cx.v3beta1.IAgent[]|null); + /** GetAgentValidationResultRequest name */ + name?: (string|null); - /** ListAgentsResponse nextPageToken */ - nextPageToken?: (string|null); + /** GetAgentValidationResultRequest languageCode */ + languageCode?: (string|null); } - /** Represents a ListAgentsResponse. */ - class ListAgentsResponse implements IListAgentsResponse { + /** Represents a GetAgentValidationResultRequest. */ + class GetAgentValidationResultRequest implements IGetAgentValidationResultRequest { /** - * Constructs a new ListAgentsResponse. + * Constructs a new GetAgentValidationResultRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListAgentsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest); - /** ListAgentsResponse agents. */ - public agents: google.cloud.dialogflow.cx.v3beta1.IAgent[]; + /** GetAgentValidationResultRequest name. */ + public name: string; - /** ListAgentsResponse nextPageToken. */ - public nextPageToken: string; + /** GetAgentValidationResultRequest languageCode. */ + public languageCode: string; /** - * Creates a new ListAgentsResponse instance using the specified properties. + * Creates a new GetAgentValidationResultRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListAgentsResponse instance + * @returns GetAgentValidationResultRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListAgentsResponse): google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest): google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest; /** - * Encodes the specified ListAgentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse.verify|verify} messages. - * @param message ListAgentsResponse message or plain object to encode + * Encodes the specified GetAgentValidationResultRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest.verify|verify} messages. + * @param message GetAgentValidationResultRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListAgentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListAgentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse.verify|verify} messages. - * @param message ListAgentsResponse message or plain object to encode + * Encodes the specified GetAgentValidationResultRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest.verify|verify} messages. + * @param message GetAgentValidationResultRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListAgentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListAgentsResponse message from the specified reader or buffer. + * Decodes a GetAgentValidationResultRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListAgentsResponse + * @returns GetAgentValidationResultRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest; /** - * Decodes a ListAgentsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetAgentValidationResultRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListAgentsResponse + * @returns GetAgentValidationResultRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest; /** - * Verifies a ListAgentsResponse message. + * Verifies a GetAgentValidationResultRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListAgentsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetAgentValidationResultRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListAgentsResponse + * @returns GetAgentValidationResultRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest; /** - * Creates a plain object from a ListAgentsResponse message. Also converts values to other types if specified. - * @param message ListAgentsResponse + * Creates a plain object from a GetAgentValidationResultRequest message. Also converts values to other types if specified. + * @param message GetAgentValidationResultRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListAgentsResponse to JSON. + * Converts this GetAgentValidationResultRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetAgentRequest. */ - interface IGetAgentRequest { + /** Properties of an AgentValidationResult. */ + interface IAgentValidationResult { - /** GetAgentRequest name */ + /** AgentValidationResult name */ name?: (string|null); + + /** AgentValidationResult flowValidationResults */ + flowValidationResults?: (google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult[]|null); } - /** Represents a GetAgentRequest. */ - class GetAgentRequest implements IGetAgentRequest { + /** Represents an AgentValidationResult. */ + class AgentValidationResult implements IAgentValidationResult { /** - * Constructs a new GetAgentRequest. + * Constructs a new AgentValidationResult. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IAgentValidationResult); - /** GetAgentRequest name. */ + /** AgentValidationResult name. */ public name: string; + /** AgentValidationResult flowValidationResults. */ + public flowValidationResults: google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult[]; + /** - * Creates a new GetAgentRequest instance using the specified properties. + * Creates a new AgentValidationResult instance using the specified properties. * @param [properties] Properties to set - * @returns GetAgentRequest instance + * @returns AgentValidationResult instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest): google.cloud.dialogflow.cx.v3beta1.GetAgentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IAgentValidationResult): google.cloud.dialogflow.cx.v3beta1.AgentValidationResult; /** - * Encodes the specified GetAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetAgentRequest.verify|verify} messages. - * @param message GetAgentRequest message or plain object to encode + * Encodes the specified AgentValidationResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AgentValidationResult.verify|verify} messages. + * @param message AgentValidationResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IAgentValidationResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetAgentRequest.verify|verify} messages. - * @param message GetAgentRequest message or plain object to encode + * Encodes the specified AgentValidationResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AgentValidationResult.verify|verify} messages. + * @param message AgentValidationResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IAgentValidationResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetAgentRequest message from the specified reader or buffer. + * Decodes an AgentValidationResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetAgentRequest + * @returns AgentValidationResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetAgentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.AgentValidationResult; /** - * Decodes a GetAgentRequest message from the specified reader or buffer, length delimited. + * Decodes an AgentValidationResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetAgentRequest + * @returns AgentValidationResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetAgentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.AgentValidationResult; /** - * Verifies a GetAgentRequest message. + * Verifies an AgentValidationResult message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetAgentRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AgentValidationResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetAgentRequest + * @returns AgentValidationResult */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetAgentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.AgentValidationResult; /** - * Creates a plain object from a GetAgentRequest message. Also converts values to other types if specified. - * @param message GetAgentRequest + * Creates a plain object from an AgentValidationResult message. Also converts values to other types if specified. + * @param message AgentValidationResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetAgentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.AgentValidationResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetAgentRequest to JSON. + * Converts this AgentValidationResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateAgentRequest. */ - interface ICreateAgentRequest { - - /** CreateAgentRequest parent */ - parent?: (string|null); - - /** CreateAgentRequest agent */ - agent?: (google.cloud.dialogflow.cx.v3beta1.IAgent|null); - } - - /** Represents a CreateAgentRequest. */ - class CreateAgentRequest implements ICreateAgentRequest { + /** Represents a Flows */ + class Flows extends $protobuf.rpc.Service { /** - * Constructs a new CreateAgentRequest. - * @param [properties] Properties to set + * Constructs a new Flows service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest); - - /** CreateAgentRequest parent. */ - public parent: string; - - /** CreateAgentRequest agent. */ - public agent?: (google.cloud.dialogflow.cx.v3beta1.IAgent|null); + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates a new CreateAgentRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateAgentRequest instance + * Creates new Flows service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest): google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Flows; /** - * Encodes the specified CreateAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest.verify|verify} messages. - * @param message CreateAgentRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CreateFlow. + * @param request CreateFlowRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Flow */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public createFlow(request: google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.CreateFlowCallback): void; /** - * Encodes the specified CreateAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest.verify|verify} messages. - * @param message CreateAgentRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CreateFlow. + * @param request CreateFlowRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public createFlow(request: google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest): Promise; /** - * Decodes a CreateAgentRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateAgentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteFlow. + * @param request DeleteFlowRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest; + public deleteFlow(request: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.DeleteFlowCallback): void; /** - * Decodes a CreateAgentRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateAgentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteFlow. + * @param request DeleteFlowRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest; + public deleteFlow(request: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest): Promise; /** - * Verifies a CreateAgentRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls ListFlows. + * @param request ListFlowsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListFlowsResponse */ - public static verify(message: { [k: string]: any }): (string|null); + public listFlows(request: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.ListFlowsCallback): void; /** - * Creates a CreateAgentRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateAgentRequest + * Calls ListFlows. + * @param request ListFlowsRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest; + public listFlows(request: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest): Promise; /** - * Creates a plain object from a CreateAgentRequest message. Also converts values to other types if specified. - * @param message CreateAgentRequest - * @param [options] Conversion options - * @returns Plain object + * Calls GetFlow. + * @param request GetFlowRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Flow */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public getFlow(request: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.GetFlowCallback): void; /** - * Converts this CreateAgentRequest to JSON. - * @returns JSON object + * Calls GetFlow. + * @param request GetFlowRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; - } + public getFlow(request: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest): Promise; - /** Properties of an UpdateAgentRequest. */ - interface IUpdateAgentRequest { + /** + * Calls UpdateFlow. + * @param request UpdateFlowRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Flow + */ + public updateFlow(request: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.UpdateFlowCallback): void; - /** UpdateAgentRequest agent */ - agent?: (google.cloud.dialogflow.cx.v3beta1.IAgent|null); + /** + * Calls UpdateFlow. + * @param request UpdateFlowRequest message or plain object + * @returns Promise + */ + public updateFlow(request: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest): Promise; - /** UpdateAgentRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); - } + /** + * Calls TrainFlow. + * @param request TrainFlowRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public trainFlow(request: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.TrainFlowCallback): void; - /** Represents an UpdateAgentRequest. */ - class UpdateAgentRequest implements IUpdateAgentRequest { + /** + * Calls TrainFlow. + * @param request TrainFlowRequest message or plain object + * @returns Promise + */ + public trainFlow(request: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest): Promise; /** - * Constructs a new UpdateAgentRequest. - * @param [properties] Properties to set + * Calls ValidateFlow. + * @param request ValidateFlowRequest message or plain object + * @param callback Node-style callback called with the error, if any, and FlowValidationResult */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest); + public validateFlow(request: google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.ValidateFlowCallback): void; - /** UpdateAgentRequest agent. */ - public agent?: (google.cloud.dialogflow.cx.v3beta1.IAgent|null); + /** + * Calls ValidateFlow. + * @param request ValidateFlowRequest message or plain object + * @returns Promise + */ + public validateFlow(request: google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest): Promise; - /** UpdateAgentRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** + * Calls GetFlowValidationResult. + * @param request GetFlowValidationResultRequest message or plain object + * @param callback Node-style callback called with the error, if any, and FlowValidationResult + */ + public getFlowValidationResult(request: google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.GetFlowValidationResultCallback): void; /** - * Creates a new UpdateAgentRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateAgentRequest instance + * Calls GetFlowValidationResult. + * @param request GetFlowValidationResultRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest): google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest; + public getFlowValidationResult(request: google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest): Promise; + } + + namespace Flows { /** - * Encodes the specified UpdateAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest.verify|verify} messages. - * @param message UpdateAgentRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows#createFlow}. + * @param error Error, if any + * @param [response] Flow */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type CreateFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Flow) => void; /** - * Encodes the specified UpdateAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest.verify|verify} messages. - * @param message UpdateAgentRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows#deleteFlow}. + * @param error Error, if any + * @param [response] Empty */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type DeleteFlowCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Decodes an UpdateAgentRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateAgentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows#listFlows}. + * @param error Error, if any + * @param [response] ListFlowsResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest; + type ListFlowsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse) => void; /** - * Decodes an UpdateAgentRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateAgentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows#getFlow}. + * @param error Error, if any + * @param [response] Flow */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest; + type GetFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Flow) => void; /** - * Verifies an UpdateAgentRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows#updateFlow}. + * @param error Error, if any + * @param [response] Flow */ - public static verify(message: { [k: string]: any }): (string|null); + type UpdateFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Flow) => void; /** - * Creates an UpdateAgentRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateAgentRequest + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows#trainFlow}. + * @param error Error, if any + * @param [response] Operation */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest; + type TrainFlowCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a plain object from an UpdateAgentRequest message. Also converts values to other types if specified. - * @param message UpdateAgentRequest - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows#validateFlow}. + * @param error Error, if any + * @param [response] FlowValidationResult */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type ValidateFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.FlowValidationResult) => void; /** - * Converts this UpdateAgentRequest to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows#getFlowValidationResult}. + * @param error Error, if any + * @param [response] FlowValidationResult */ - public toJSON(): { [k: string]: any }; + type GetFlowValidationResultCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.FlowValidationResult) => void; } - /** Properties of a DeleteAgentRequest. */ - interface IDeleteAgentRequest { + /** Properties of a NluSettings. */ + interface INluSettings { - /** DeleteAgentRequest name */ - name?: (string|null); + /** NluSettings modelType */ + modelType?: (google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType|keyof typeof google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType|null); + + /** NluSettings classificationThreshold */ + classificationThreshold?: (number|null); + + /** NluSettings modelTrainingMode */ + modelTrainingMode?: (google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode|keyof typeof google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode|null); } - /** Represents a DeleteAgentRequest. */ - class DeleteAgentRequest implements IDeleteAgentRequest { + /** Represents a NluSettings. */ + class NluSettings implements INluSettings { /** - * Constructs a new DeleteAgentRequest. + * Constructs a new NluSettings. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.INluSettings); - /** DeleteAgentRequest name. */ - public name: string; + /** NluSettings modelType. */ + public modelType: (google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType|keyof typeof google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType); + + /** NluSettings classificationThreshold. */ + public classificationThreshold: number; + + /** NluSettings modelTrainingMode. */ + public modelTrainingMode: (google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode|keyof typeof google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode); /** - * Creates a new DeleteAgentRequest instance using the specified properties. + * Creates a new NluSettings instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteAgentRequest instance + * @returns NluSettings instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest): google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.INluSettings): google.cloud.dialogflow.cx.v3beta1.NluSettings; /** - * Encodes the specified DeleteAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest.verify|verify} messages. - * @param message DeleteAgentRequest message or plain object to encode + * Encodes the specified NluSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.NluSettings.verify|verify} messages. + * @param message NluSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.INluSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest.verify|verify} messages. - * @param message DeleteAgentRequest message or plain object to encode + * Encodes the specified NluSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.NluSettings.verify|verify} messages. + * @param message NluSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.INluSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteAgentRequest message from the specified reader or buffer. + * Decodes a NluSettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteAgentRequest + * @returns NluSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.NluSettings; /** - * Decodes a DeleteAgentRequest message from the specified reader or buffer, length delimited. + * Decodes a NluSettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteAgentRequest + * @returns NluSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.NluSettings; /** - * Verifies a DeleteAgentRequest message. + * Verifies a NluSettings message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteAgentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NluSettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteAgentRequest + * @returns NluSettings */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.NluSettings; /** - * Creates a plain object from a DeleteAgentRequest message. Also converts values to other types if specified. - * @param message DeleteAgentRequest + * Creates a plain object from a NluSettings message. Also converts values to other types if specified. + * @param message NluSettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.NluSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteAgentRequest to JSON. + * Converts this NluSettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ExportAgentRequest. */ - interface IExportAgentRequest { + namespace NluSettings { - /** ExportAgentRequest name */ - name?: (string|null); + /** ModelType enum. */ + enum ModelType { + MODEL_TYPE_UNSPECIFIED = 0, + MODEL_TYPE_STANDARD = 1, + MODEL_TYPE_ADVANCED = 3 + } - /** ExportAgentRequest agentUri */ - agentUri?: (string|null); + /** ModelTrainingMode enum. */ + enum ModelTrainingMode { + MODEL_TRAINING_MODE_UNSPECIFIED = 0, + MODEL_TRAINING_MODE_AUTOMATIC = 1, + MODEL_TRAINING_MODE_MANUAL = 2 + } } - /** Represents an ExportAgentRequest. */ - class ExportAgentRequest implements IExportAgentRequest { + /** Properties of a Flow. */ + interface IFlow { - /** - * Constructs a new ExportAgentRequest. + /** Flow name */ + name?: (string|null); + + /** Flow displayName */ + displayName?: (string|null); + + /** Flow description */ + description?: (string|null); + + /** Flow transitionRoutes */ + transitionRoutes?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute[]|null); + + /** Flow eventHandlers */ + eventHandlers?: (google.cloud.dialogflow.cx.v3beta1.IEventHandler[]|null); + + /** Flow nluSettings */ + nluSettings?: (google.cloud.dialogflow.cx.v3beta1.INluSettings|null); + } + + /** Represents a Flow. */ + class Flow implements IFlow { + + /** + * Constructs a new Flow. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IFlow); - /** ExportAgentRequest name. */ + /** Flow name. */ public name: string; - /** ExportAgentRequest agentUri. */ - public agentUri: string; + /** Flow displayName. */ + public displayName: string; + + /** Flow description. */ + public description: string; + + /** Flow transitionRoutes. */ + public transitionRoutes: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute[]; + + /** Flow eventHandlers. */ + public eventHandlers: google.cloud.dialogflow.cx.v3beta1.IEventHandler[]; + + /** Flow nluSettings. */ + public nluSettings?: (google.cloud.dialogflow.cx.v3beta1.INluSettings|null); /** - * Creates a new ExportAgentRequest instance using the specified properties. + * Creates a new Flow instance using the specified properties. * @param [properties] Properties to set - * @returns ExportAgentRequest instance + * @returns Flow instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest): google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IFlow): google.cloud.dialogflow.cx.v3beta1.Flow; /** - * Encodes the specified ExportAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.verify|verify} messages. - * @param message ExportAgentRequest message or plain object to encode + * Encodes the specified Flow message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Flow.verify|verify} messages. + * @param message Flow message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IFlow, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.verify|verify} messages. - * @param message ExportAgentRequest message or plain object to encode + * Encodes the specified Flow message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Flow.verify|verify} messages. + * @param message Flow message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IFlow, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportAgentRequest message from the specified reader or buffer. + * Decodes a Flow message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportAgentRequest + * @returns Flow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Flow; /** - * Decodes an ExportAgentRequest message from the specified reader or buffer, length delimited. + * Decodes a Flow message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportAgentRequest + * @returns Flow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Flow; /** - * Verifies an ExportAgentRequest message. + * Verifies a Flow message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ExportAgentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Flow message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportAgentRequest + * @returns Flow */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Flow; /** - * Creates a plain object from an ExportAgentRequest message. Also converts values to other types if specified. - * @param message ExportAgentRequest + * Creates a plain object from a Flow message. Also converts values to other types if specified. + * @param message Flow * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Flow, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportAgentRequest to JSON. + * Converts this Flow to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ExportAgentResponse. */ - interface IExportAgentResponse { + /** Properties of a CreateFlowRequest. */ + interface ICreateFlowRequest { - /** ExportAgentResponse agentUri */ - agentUri?: (string|null); + /** CreateFlowRequest parent */ + parent?: (string|null); - /** ExportAgentResponse agentContent */ - agentContent?: (Uint8Array|string|null); + /** CreateFlowRequest flow */ + flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); + + /** CreateFlowRequest languageCode */ + languageCode?: (string|null); } - /** Represents an ExportAgentResponse. */ - class ExportAgentResponse implements IExportAgentResponse { + /** Represents a CreateFlowRequest. */ + class CreateFlowRequest implements ICreateFlowRequest { /** - * Constructs a new ExportAgentResponse. + * Constructs a new CreateFlowRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportAgentResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest); - /** ExportAgentResponse agentUri. */ - public agentUri: string; + /** CreateFlowRequest parent. */ + public parent: string; - /** ExportAgentResponse agentContent. */ - public agentContent: (Uint8Array|string); + /** CreateFlowRequest flow. */ + public flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); - /** ExportAgentResponse agent. */ - public agent?: ("agentUri"|"agentContent"); + /** CreateFlowRequest languageCode. */ + public languageCode: string; /** - * Creates a new ExportAgentResponse instance using the specified properties. + * Creates a new CreateFlowRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExportAgentResponse instance + * @returns CreateFlowRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IExportAgentResponse): google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest): google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest; /** - * Encodes the specified ExportAgentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse.verify|verify} messages. - * @param message ExportAgentResponse message or plain object to encode + * Encodes the specified CreateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest.verify|verify} messages. + * @param message CreateFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IExportAgentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportAgentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse.verify|verify} messages. - * @param message ExportAgentResponse message or plain object to encode + * Encodes the specified CreateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest.verify|verify} messages. + * @param message CreateFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IExportAgentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportAgentResponse message from the specified reader or buffer. + * Decodes a CreateFlowRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportAgentResponse + * @returns CreateFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest; /** - * Decodes an ExportAgentResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateFlowRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportAgentResponse + * @returns CreateFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest; /** - * Verifies an ExportAgentResponse message. + * Verifies a CreateFlowRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ExportAgentResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateFlowRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportAgentResponse + * @returns CreateFlowRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest; /** - * Creates a plain object from an ExportAgentResponse message. Also converts values to other types if specified. - * @param message ExportAgentResponse + * Creates a plain object from a CreateFlowRequest message. Also converts values to other types if specified. + * @param message CreateFlowRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportAgentResponse to JSON. + * Converts this CreateFlowRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RestoreAgentRequest. */ - interface IRestoreAgentRequest { + /** Properties of a DeleteFlowRequest. */ + interface IDeleteFlowRequest { - /** RestoreAgentRequest name */ + /** DeleteFlowRequest name */ name?: (string|null); - /** RestoreAgentRequest agentUri */ - agentUri?: (string|null); - - /** RestoreAgentRequest agentContent */ - agentContent?: (Uint8Array|string|null); + /** DeleteFlowRequest force */ + force?: (boolean|null); } - /** Represents a RestoreAgentRequest. */ - class RestoreAgentRequest implements IRestoreAgentRequest { + /** Represents a DeleteFlowRequest. */ + class DeleteFlowRequest implements IDeleteFlowRequest { /** - * Constructs a new RestoreAgentRequest. + * Constructs a new DeleteFlowRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest); - /** RestoreAgentRequest name. */ + /** DeleteFlowRequest name. */ public name: string; - /** RestoreAgentRequest agentUri. */ - public agentUri: string; - - /** RestoreAgentRequest agentContent. */ - public agentContent: (Uint8Array|string); - - /** RestoreAgentRequest agent. */ - public agent?: ("agentUri"|"agentContent"); + /** DeleteFlowRequest force. */ + public force: boolean; /** - * Creates a new RestoreAgentRequest instance using the specified properties. + * Creates a new DeleteFlowRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RestoreAgentRequest instance + * @returns DeleteFlowRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest): google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest): google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest; /** - * Encodes the specified RestoreAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.verify|verify} messages. - * @param message RestoreAgentRequest message or plain object to encode + * Encodes the specified DeleteFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest.verify|verify} messages. + * @param message DeleteFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RestoreAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.verify|verify} messages. - * @param message RestoreAgentRequest message or plain object to encode + * Encodes the specified DeleteFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest.verify|verify} messages. + * @param message DeleteFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RestoreAgentRequest message from the specified reader or buffer. + * Decodes a DeleteFlowRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RestoreAgentRequest + * @returns DeleteFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest; /** - * Decodes a RestoreAgentRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteFlowRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RestoreAgentRequest + * @returns DeleteFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest; /** - * Verifies a RestoreAgentRequest message. + * Verifies a DeleteFlowRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RestoreAgentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteFlowRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RestoreAgentRequest + * @returns DeleteFlowRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest; /** - * Creates a plain object from a RestoreAgentRequest message. Also converts values to other types if specified. - * @param message RestoreAgentRequest + * Creates a plain object from a DeleteFlowRequest message. Also converts values to other types if specified. + * @param message DeleteFlowRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RestoreAgentRequest to JSON. + * Converts this DeleteFlowRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ValidateAgentRequest. */ - interface IValidateAgentRequest { + /** Properties of a ListFlowsRequest. */ + interface IListFlowsRequest { - /** ValidateAgentRequest name */ - name?: (string|null); + /** ListFlowsRequest parent */ + parent?: (string|null); - /** ValidateAgentRequest languageCode */ + /** ListFlowsRequest pageSize */ + pageSize?: (number|null); + + /** ListFlowsRequest pageToken */ + pageToken?: (string|null); + + /** ListFlowsRequest languageCode */ languageCode?: (string|null); } - /** Represents a ValidateAgentRequest. */ - class ValidateAgentRequest implements IValidateAgentRequest { + /** Represents a ListFlowsRequest. */ + class ListFlowsRequest implements IListFlowsRequest { /** - * Constructs a new ValidateAgentRequest. + * Constructs a new ListFlowsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IValidateAgentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest); - /** ValidateAgentRequest name. */ - public name: string; + /** ListFlowsRequest parent. */ + public parent: string; - /** ValidateAgentRequest languageCode. */ + /** ListFlowsRequest pageSize. */ + public pageSize: number; + + /** ListFlowsRequest pageToken. */ + public pageToken: string; + + /** ListFlowsRequest languageCode. */ public languageCode: string; /** - * Creates a new ValidateAgentRequest instance using the specified properties. + * Creates a new ListFlowsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ValidateAgentRequest instance + * @returns ListFlowsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IValidateAgentRequest): google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest): google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest; /** - * Encodes the specified ValidateAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest.verify|verify} messages. - * @param message ValidateAgentRequest message or plain object to encode + * Encodes the specified ListFlowsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest.verify|verify} messages. + * @param message ListFlowsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IValidateAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ValidateAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest.verify|verify} messages. - * @param message ValidateAgentRequest message or plain object to encode + * Encodes the specified ListFlowsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest.verify|verify} messages. + * @param message ListFlowsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IValidateAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ValidateAgentRequest message from the specified reader or buffer. + * Decodes a ListFlowsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ValidateAgentRequest + * @returns ListFlowsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest; /** - * Decodes a ValidateAgentRequest message from the specified reader or buffer, length delimited. + * Decodes a ListFlowsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ValidateAgentRequest + * @returns ListFlowsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest; /** - * Verifies a ValidateAgentRequest message. + * Verifies a ListFlowsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ValidateAgentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListFlowsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ValidateAgentRequest + * @returns ListFlowsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest; /** - * Creates a plain object from a ValidateAgentRequest message. Also converts values to other types if specified. - * @param message ValidateAgentRequest + * Creates a plain object from a ListFlowsRequest message. Also converts values to other types if specified. + * @param message ListFlowsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ValidateAgentRequest to JSON. + * Converts this ListFlowsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetAgentValidationResultRequest. */ - interface IGetAgentValidationResultRequest { + /** Properties of a ListFlowsResponse. */ + interface IListFlowsResponse { - /** GetAgentValidationResultRequest name */ - name?: (string|null); + /** ListFlowsResponse flows */ + flows?: (google.cloud.dialogflow.cx.v3beta1.IFlow[]|null); - /** GetAgentValidationResultRequest languageCode */ - languageCode?: (string|null); + /** ListFlowsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a GetAgentValidationResultRequest. */ - class GetAgentValidationResultRequest implements IGetAgentValidationResultRequest { + /** Represents a ListFlowsResponse. */ + class ListFlowsResponse implements IListFlowsResponse { /** - * Constructs a new GetAgentValidationResultRequest. + * Constructs a new ListFlowsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse); - /** GetAgentValidationResultRequest name. */ - public name: string; + /** ListFlowsResponse flows. */ + public flows: google.cloud.dialogflow.cx.v3beta1.IFlow[]; - /** GetAgentValidationResultRequest languageCode. */ - public languageCode: string; + /** ListFlowsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new GetAgentValidationResultRequest instance using the specified properties. + * Creates a new ListFlowsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetAgentValidationResultRequest instance + * @returns ListFlowsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest): google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse): google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse; /** - * Encodes the specified GetAgentValidationResultRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest.verify|verify} messages. - * @param message GetAgentValidationResultRequest message or plain object to encode + * Encodes the specified ListFlowsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse.verify|verify} messages. + * @param message ListFlowsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetAgentValidationResultRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest.verify|verify} messages. - * @param message GetAgentValidationResultRequest message or plain object to encode + * Encodes the specified ListFlowsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse.verify|verify} messages. + * @param message ListFlowsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetAgentValidationResultRequest message from the specified reader or buffer. + * Decodes a ListFlowsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetAgentValidationResultRequest + * @returns ListFlowsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse; /** - * Decodes a GetAgentValidationResultRequest message from the specified reader or buffer, length delimited. + * Decodes a ListFlowsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetAgentValidationResultRequest + * @returns ListFlowsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse; /** - * Verifies a GetAgentValidationResultRequest message. + * Verifies a ListFlowsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetAgentValidationResultRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListFlowsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetAgentValidationResultRequest + * @returns ListFlowsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse; /** - * Creates a plain object from a GetAgentValidationResultRequest message. Also converts values to other types if specified. - * @param message GetAgentValidationResultRequest + * Creates a plain object from a ListFlowsResponse message. Also converts values to other types if specified. + * @param message ListFlowsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetAgentValidationResultRequest to JSON. + * Converts this ListFlowsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an AgentValidationResult. */ - interface IAgentValidationResult { + /** Properties of a GetFlowRequest. */ + interface IGetFlowRequest { - /** AgentValidationResult name */ + /** GetFlowRequest name */ name?: (string|null); - /** AgentValidationResult flowValidationResults */ - flowValidationResults?: (google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult[]|null); + /** GetFlowRequest languageCode */ + languageCode?: (string|null); } - /** Represents an AgentValidationResult. */ - class AgentValidationResult implements IAgentValidationResult { + /** Represents a GetFlowRequest. */ + class GetFlowRequest implements IGetFlowRequest { /** - * Constructs a new AgentValidationResult. + * Constructs a new GetFlowRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IAgentValidationResult); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest); - /** AgentValidationResult name. */ + /** GetFlowRequest name. */ public name: string; - /** AgentValidationResult flowValidationResults. */ - public flowValidationResults: google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult[]; + /** GetFlowRequest languageCode. */ + public languageCode: string; /** - * Creates a new AgentValidationResult instance using the specified properties. + * Creates a new GetFlowRequest instance using the specified properties. * @param [properties] Properties to set - * @returns AgentValidationResult instance + * @returns GetFlowRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IAgentValidationResult): google.cloud.dialogflow.cx.v3beta1.AgentValidationResult; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest): google.cloud.dialogflow.cx.v3beta1.GetFlowRequest; /** - * Encodes the specified AgentValidationResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AgentValidationResult.verify|verify} messages. - * @param message AgentValidationResult message or plain object to encode + * Encodes the specified GetFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetFlowRequest.verify|verify} messages. + * @param message GetFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IAgentValidationResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AgentValidationResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AgentValidationResult.verify|verify} messages. - * @param message AgentValidationResult message or plain object to encode + * Encodes the specified GetFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetFlowRequest.verify|verify} messages. + * @param message GetFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IAgentValidationResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AgentValidationResult message from the specified reader or buffer. + * Decodes a GetFlowRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AgentValidationResult + * @returns GetFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.AgentValidationResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetFlowRequest; /** - * Decodes an AgentValidationResult message from the specified reader or buffer, length delimited. + * Decodes a GetFlowRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AgentValidationResult + * @returns GetFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.AgentValidationResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetFlowRequest; /** - * Verifies an AgentValidationResult message. + * Verifies a GetFlowRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an AgentValidationResult message from a plain object. Also converts values to their respective internal types. + * Creates a GetFlowRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AgentValidationResult + * @returns GetFlowRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.AgentValidationResult; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetFlowRequest; /** - * Creates a plain object from an AgentValidationResult message. Also converts values to other types if specified. - * @param message AgentValidationResult + * Creates a plain object from a GetFlowRequest message. Also converts values to other types if specified. + * @param message GetFlowRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.AgentValidationResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AgentValidationResult to JSON. + * Converts this GetFlowRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a Flows */ - class Flows extends $protobuf.rpc.Service { + /** Properties of an UpdateFlowRequest. */ + interface IUpdateFlowRequest { - /** - * Constructs a new Flows service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** UpdateFlowRequest flow */ + flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); - /** - * Creates new Flows service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Flows; + /** UpdateFlowRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); - /** - * Calls CreateFlow. - * @param request CreateFlowRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Flow - */ - public createFlow(request: google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.CreateFlowCallback): void; + /** UpdateFlowRequest languageCode */ + languageCode?: (string|null); + } + + /** Represents an UpdateFlowRequest. */ + class UpdateFlowRequest implements IUpdateFlowRequest { /** - * Calls CreateFlow. - * @param request CreateFlowRequest message or plain object - * @returns Promise - */ - public createFlow(request: google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest): Promise; - - /** - * Calls DeleteFlow. - * @param request DeleteFlowRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public deleteFlow(request: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.DeleteFlowCallback): void; - - /** - * Calls DeleteFlow. - * @param request DeleteFlowRequest message or plain object - * @returns Promise - */ - public deleteFlow(request: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest): Promise; - - /** - * Calls ListFlows. - * @param request ListFlowsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListFlowsResponse - */ - public listFlows(request: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.ListFlowsCallback): void; - - /** - * Calls ListFlows. - * @param request ListFlowsRequest message or plain object - * @returns Promise - */ - public listFlows(request: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest): Promise; - - /** - * Calls GetFlow. - * @param request GetFlowRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Flow - */ - public getFlow(request: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.GetFlowCallback): void; - - /** - * Calls GetFlow. - * @param request GetFlowRequest message or plain object - * @returns Promise - */ - public getFlow(request: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest): Promise; - - /** - * Calls UpdateFlow. - * @param request UpdateFlowRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Flow - */ - public updateFlow(request: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.UpdateFlowCallback): void; - - /** - * Calls UpdateFlow. - * @param request UpdateFlowRequest message or plain object - * @returns Promise - */ - public updateFlow(request: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest): Promise; - - /** - * Calls TrainFlow. - * @param request TrainFlowRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public trainFlow(request: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.TrainFlowCallback): void; - - /** - * Calls TrainFlow. - * @param request TrainFlowRequest message or plain object - * @returns Promise + * Constructs a new UpdateFlowRequest. + * @param [properties] Properties to set */ - public trainFlow(request: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest): Promise; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest); - /** - * Calls ValidateFlow. - * @param request ValidateFlowRequest message or plain object - * @param callback Node-style callback called with the error, if any, and FlowValidationResult - */ - public validateFlow(request: google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.ValidateFlowCallback): void; + /** UpdateFlowRequest flow. */ + public flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); - /** - * Calls ValidateFlow. - * @param request ValidateFlowRequest message or plain object - * @returns Promise - */ - public validateFlow(request: google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest): Promise; + /** UpdateFlowRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** - * Calls GetFlowValidationResult. - * @param request GetFlowValidationResultRequest message or plain object - * @param callback Node-style callback called with the error, if any, and FlowValidationResult - */ - public getFlowValidationResult(request: google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.GetFlowValidationResultCallback): void; + /** UpdateFlowRequest languageCode. */ + public languageCode: string; /** - * Calls GetFlowValidationResult. - * @param request GetFlowValidationResultRequest message or plain object - * @returns Promise + * Creates a new UpdateFlowRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateFlowRequest instance */ - public getFlowValidationResult(request: google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest): Promise; - } - - namespace Flows { + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest): google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows#createFlow}. - * @param error Error, if any - * @param [response] Flow + * Encodes the specified UpdateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest.verify|verify} messages. + * @param message UpdateFlowRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type CreateFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Flow) => void; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows#deleteFlow}. - * @param error Error, if any - * @param [response] Empty + * Encodes the specified UpdateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest.verify|verify} messages. + * @param message UpdateFlowRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type DeleteFlowCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows#listFlows}. - * @param error Error, if any - * @param [response] ListFlowsResponse + * Decodes an UpdateFlowRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateFlowRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ListFlowsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows#getFlow}. - * @param error Error, if any - * @param [response] Flow + * Decodes an UpdateFlowRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateFlowRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type GetFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Flow) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows#updateFlow}. - * @param error Error, if any - * @param [response] Flow + * Verifies an UpdateFlowRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type UpdateFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Flow) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows#trainFlow}. - * @param error Error, if any - * @param [response] Operation + * Creates an UpdateFlowRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateFlowRequest */ - type TrainFlowCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows#validateFlow}. - * @param error Error, if any - * @param [response] FlowValidationResult + * Creates a plain object from an UpdateFlowRequest message. Also converts values to other types if specified. + * @param message UpdateFlowRequest + * @param [options] Conversion options + * @returns Plain object */ - type ValidateFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.FlowValidationResult) => void; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows#getFlowValidationResult}. - * @param error Error, if any - * @param [response] FlowValidationResult + * Converts this UpdateFlowRequest to JSON. + * @returns JSON object */ - type GetFlowValidationResultCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.FlowValidationResult) => void; + public toJSON(): { [k: string]: any }; } - /** Properties of a NluSettings. */ - interface INluSettings { - - /** NluSettings modelType */ - modelType?: (google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType|keyof typeof google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType|null); - - /** NluSettings classificationThreshold */ - classificationThreshold?: (number|null); + /** Properties of a TrainFlowRequest. */ + interface ITrainFlowRequest { - /** NluSettings modelTrainingMode */ - modelTrainingMode?: (google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode|keyof typeof google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode|null); + /** TrainFlowRequest name */ + name?: (string|null); } - /** Represents a NluSettings. */ - class NluSettings implements INluSettings { + /** Represents a TrainFlowRequest. */ + class TrainFlowRequest implements ITrainFlowRequest { /** - * Constructs a new NluSettings. + * Constructs a new TrainFlowRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.INluSettings); - - /** NluSettings modelType. */ - public modelType: (google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType|keyof typeof google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType); - - /** NluSettings classificationThreshold. */ - public classificationThreshold: number; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest); - /** NluSettings modelTrainingMode. */ - public modelTrainingMode: (google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode|keyof typeof google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode); + /** TrainFlowRequest name. */ + public name: string; /** - * Creates a new NluSettings instance using the specified properties. + * Creates a new TrainFlowRequest instance using the specified properties. * @param [properties] Properties to set - * @returns NluSettings instance + * @returns TrainFlowRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.INluSettings): google.cloud.dialogflow.cx.v3beta1.NluSettings; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest): google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest; /** - * Encodes the specified NluSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.NluSettings.verify|verify} messages. - * @param message NluSettings message or plain object to encode + * Encodes the specified TrainFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest.verify|verify} messages. + * @param message TrainFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.INluSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified NluSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.NluSettings.verify|verify} messages. - * @param message NluSettings message or plain object to encode + * Encodes the specified TrainFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest.verify|verify} messages. + * @param message TrainFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.INluSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NluSettings message from the specified reader or buffer. + * Decodes a TrainFlowRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NluSettings + * @returns TrainFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.NluSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest; /** - * Decodes a NluSettings message from the specified reader or buffer, length delimited. + * Decodes a TrainFlowRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NluSettings + * @returns TrainFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.NluSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest; /** - * Verifies a NluSettings message. + * Verifies a TrainFlowRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a NluSettings message from a plain object. Also converts values to their respective internal types. + * Creates a TrainFlowRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NluSettings + * @returns TrainFlowRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.NluSettings; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest; /** - * Creates a plain object from a NluSettings message. Also converts values to other types if specified. - * @param message NluSettings + * Creates a plain object from a TrainFlowRequest message. Also converts values to other types if specified. + * @param message TrainFlowRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.NluSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NluSettings to JSON. + * Converts this TrainFlowRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace NluSettings { - - /** ModelType enum. */ - enum ModelType { - MODEL_TYPE_UNSPECIFIED = 0, - MODEL_TYPE_STANDARD = 1, - MODEL_TYPE_ADVANCED = 3 - } - - /** ModelTrainingMode enum. */ - enum ModelTrainingMode { - MODEL_TRAINING_MODE_UNSPECIFIED = 0, - MODEL_TRAINING_MODE_AUTOMATIC = 1, - MODEL_TRAINING_MODE_MANUAL = 2 - } - } - - /** Properties of a Flow. */ - interface IFlow { + /** Properties of a ValidateFlowRequest. */ + interface IValidateFlowRequest { - /** Flow name */ + /** ValidateFlowRequest name */ name?: (string|null); - /** Flow displayName */ - displayName?: (string|null); - - /** Flow description */ - description?: (string|null); - - /** Flow transitionRoutes */ - transitionRoutes?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute[]|null); - - /** Flow eventHandlers */ - eventHandlers?: (google.cloud.dialogflow.cx.v3beta1.IEventHandler[]|null); - - /** Flow nluSettings */ - nluSettings?: (google.cloud.dialogflow.cx.v3beta1.INluSettings|null); + /** ValidateFlowRequest languageCode */ + languageCode?: (string|null); } - /** Represents a Flow. */ - class Flow implements IFlow { + /** Represents a ValidateFlowRequest. */ + class ValidateFlowRequest implements IValidateFlowRequest { /** - * Constructs a new Flow. + * Constructs a new ValidateFlowRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IFlow); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest); - /** Flow name. */ + /** ValidateFlowRequest name. */ public name: string; - /** Flow displayName. */ - public displayName: string; - - /** Flow description. */ - public description: string; - - /** Flow transitionRoutes. */ - public transitionRoutes: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute[]; - - /** Flow eventHandlers. */ - public eventHandlers: google.cloud.dialogflow.cx.v3beta1.IEventHandler[]; - - /** Flow nluSettings. */ - public nluSettings?: (google.cloud.dialogflow.cx.v3beta1.INluSettings|null); + /** ValidateFlowRequest languageCode. */ + public languageCode: string; /** - * Creates a new Flow instance using the specified properties. + * Creates a new ValidateFlowRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Flow instance + * @returns ValidateFlowRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IFlow): google.cloud.dialogflow.cx.v3beta1.Flow; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest): google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest; /** - * Encodes the specified Flow message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Flow.verify|verify} messages. - * @param message Flow message or plain object to encode + * Encodes the specified ValidateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest.verify|verify} messages. + * @param message ValidateFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IFlow, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Flow message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Flow.verify|verify} messages. - * @param message Flow message or plain object to encode + * Encodes the specified ValidateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest.verify|verify} messages. + * @param message ValidateFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IFlow, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Flow message from the specified reader or buffer. + * Decodes a ValidateFlowRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Flow + * @returns ValidateFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Flow; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest; /** - * Decodes a Flow message from the specified reader or buffer, length delimited. + * Decodes a ValidateFlowRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Flow + * @returns ValidateFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Flow; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest; /** - * Verifies a Flow message. + * Verifies a ValidateFlowRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Flow message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateFlowRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Flow + * @returns ValidateFlowRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Flow; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest; /** - * Creates a plain object from a Flow message. Also converts values to other types if specified. - * @param message Flow + * Creates a plain object from a ValidateFlowRequest message. Also converts values to other types if specified. + * @param message ValidateFlowRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Flow, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Flow to JSON. + * Converts this ValidateFlowRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateFlowRequest. */ - interface ICreateFlowRequest { - - /** CreateFlowRequest parent */ - parent?: (string|null); + /** Properties of a GetFlowValidationResultRequest. */ + interface IGetFlowValidationResultRequest { - /** CreateFlowRequest flow */ - flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); + /** GetFlowValidationResultRequest name */ + name?: (string|null); - /** CreateFlowRequest languageCode */ + /** GetFlowValidationResultRequest languageCode */ languageCode?: (string|null); } - /** Represents a CreateFlowRequest. */ - class CreateFlowRequest implements ICreateFlowRequest { + /** Represents a GetFlowValidationResultRequest. */ + class GetFlowValidationResultRequest implements IGetFlowValidationResultRequest { /** - * Constructs a new CreateFlowRequest. + * Constructs a new GetFlowValidationResultRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest); - - /** CreateFlowRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest); - /** CreateFlowRequest flow. */ - public flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); + /** GetFlowValidationResultRequest name. */ + public name: string; - /** CreateFlowRequest languageCode. */ + /** GetFlowValidationResultRequest languageCode. */ public languageCode: string; /** - * Creates a new CreateFlowRequest instance using the specified properties. + * Creates a new GetFlowValidationResultRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateFlowRequest instance + * @returns GetFlowValidationResultRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest): google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest): google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest; /** - * Encodes the specified CreateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest.verify|verify} messages. - * @param message CreateFlowRequest message or plain object to encode + * Encodes the specified GetFlowValidationResultRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest.verify|verify} messages. + * @param message GetFlowValidationResultRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest.verify|verify} messages. - * @param message CreateFlowRequest message or plain object to encode + * Encodes the specified GetFlowValidationResultRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest.verify|verify} messages. + * @param message GetFlowValidationResultRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateFlowRequest message from the specified reader or buffer. + * Decodes a GetFlowValidationResultRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateFlowRequest + * @returns GetFlowValidationResultRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest; /** - * Decodes a CreateFlowRequest message from the specified reader or buffer, length delimited. + * Decodes a GetFlowValidationResultRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateFlowRequest + * @returns GetFlowValidationResultRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest; /** - * Verifies a CreateFlowRequest message. + * Verifies a GetFlowValidationResultRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetFlowValidationResultRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateFlowRequest + * @returns GetFlowValidationResultRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest; /** - * Creates a plain object from a CreateFlowRequest message. Also converts values to other types if specified. - * @param message CreateFlowRequest + * Creates a plain object from a GetFlowValidationResultRequest message. Also converts values to other types if specified. + * @param message GetFlowValidationResultRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateFlowRequest to JSON. + * Converts this GetFlowValidationResultRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteFlowRequest. */ - interface IDeleteFlowRequest { + /** Properties of a FlowValidationResult. */ + interface IFlowValidationResult { - /** DeleteFlowRequest name */ + /** FlowValidationResult name */ name?: (string|null); - /** DeleteFlowRequest force */ - force?: (boolean|null); + /** FlowValidationResult validationMessages */ + validationMessages?: (google.cloud.dialogflow.cx.v3beta1.IValidationMessage[]|null); + + /** FlowValidationResult updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); } - /** Represents a DeleteFlowRequest. */ - class DeleteFlowRequest implements IDeleteFlowRequest { + /** Represents a FlowValidationResult. */ + class FlowValidationResult implements IFlowValidationResult { /** - * Constructs a new DeleteFlowRequest. + * Constructs a new FlowValidationResult. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult); - /** DeleteFlowRequest name. */ + /** FlowValidationResult name. */ public name: string; - /** DeleteFlowRequest force. */ - public force: boolean; + /** FlowValidationResult validationMessages. */ + public validationMessages: google.cloud.dialogflow.cx.v3beta1.IValidationMessage[]; + + /** FlowValidationResult updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new DeleteFlowRequest instance using the specified properties. + * Creates a new FlowValidationResult instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteFlowRequest instance + * @returns FlowValidationResult instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest): google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult): google.cloud.dialogflow.cx.v3beta1.FlowValidationResult; /** - * Encodes the specified DeleteFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest.verify|verify} messages. - * @param message DeleteFlowRequest message or plain object to encode + * Encodes the specified FlowValidationResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.verify|verify} messages. + * @param message FlowValidationResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest.verify|verify} messages. - * @param message DeleteFlowRequest message or plain object to encode + * Encodes the specified FlowValidationResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.verify|verify} messages. + * @param message FlowValidationResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteFlowRequest message from the specified reader or buffer. + * Decodes a FlowValidationResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteFlowRequest + * @returns FlowValidationResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.FlowValidationResult; /** - * Decodes a DeleteFlowRequest message from the specified reader or buffer, length delimited. + * Decodes a FlowValidationResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteFlowRequest + * @returns FlowValidationResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.FlowValidationResult; /** - * Verifies a DeleteFlowRequest message. + * Verifies a FlowValidationResult message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FlowValidationResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteFlowRequest + * @returns FlowValidationResult */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.FlowValidationResult; /** - * Creates a plain object from a DeleteFlowRequest message. Also converts values to other types if specified. - * @param message DeleteFlowRequest + * Creates a plain object from a FlowValidationResult message. Also converts values to other types if specified. + * @param message FlowValidationResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.FlowValidationResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteFlowRequest to JSON. + * Converts this FlowValidationResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListFlowsRequest. */ - interface IListFlowsRequest { - - /** ListFlowsRequest parent */ - parent?: (string|null); - - /** ListFlowsRequest pageSize */ - pageSize?: (number|null); - - /** ListFlowsRequest pageToken */ - pageToken?: (string|null); - - /** ListFlowsRequest languageCode */ - languageCode?: (string|null); - } - - /** Represents a ListFlowsRequest. */ - class ListFlowsRequest implements IListFlowsRequest { - - /** - * Constructs a new ListFlowsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest); - - /** ListFlowsRequest parent. */ - public parent: string; - - /** ListFlowsRequest pageSize. */ - public pageSize: number; - - /** ListFlowsRequest pageToken. */ - public pageToken: string; - - /** ListFlowsRequest languageCode. */ - public languageCode: string; - - /** - * Creates a new ListFlowsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListFlowsRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest): google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest; + /** Represents a Pages */ + class Pages extends $protobuf.rpc.Service { /** - * Encodes the specified ListFlowsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest.verify|verify} messages. - * @param message ListFlowsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Constructs a new Pages service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Encodes the specified ListFlowsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest.verify|verify} messages. - * @param message ListFlowsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Creates new Pages service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Pages; /** - * Decodes a ListFlowsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListFlowsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListPages. + * @param request ListPagesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListPagesResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest; + public listPages(request: google.cloud.dialogflow.cx.v3beta1.IListPagesRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.ListPagesCallback): void; /** - * Decodes a ListFlowsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListFlowsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListPages. + * @param request ListPagesRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest; + public listPages(request: google.cloud.dialogflow.cx.v3beta1.IListPagesRequest): Promise; /** - * Verifies a ListFlowsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls GetPage. + * @param request GetPageRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Page */ - public static verify(message: { [k: string]: any }): (string|null); + public getPage(request: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.GetPageCallback): void; /** - * Creates a ListFlowsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListFlowsRequest + * Calls GetPage. + * @param request GetPageRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest; + public getPage(request: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest): Promise; /** - * Creates a plain object from a ListFlowsRequest message. Also converts values to other types if specified. - * @param message ListFlowsRequest - * @param [options] Conversion options - * @returns Plain object + * Calls CreatePage. + * @param request CreatePageRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Page */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public createPage(request: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.CreatePageCallback): void; /** - * Converts this ListFlowsRequest to JSON. - * @returns JSON object + * Calls CreatePage. + * @param request CreatePageRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ListFlowsResponse. */ - interface IListFlowsResponse { - - /** ListFlowsResponse flows */ - flows?: (google.cloud.dialogflow.cx.v3beta1.IFlow[]|null); - - /** ListFlowsResponse nextPageToken */ - nextPageToken?: (string|null); - } - - /** Represents a ListFlowsResponse. */ - class ListFlowsResponse implements IListFlowsResponse { + public createPage(request: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest): Promise; /** - * Constructs a new ListFlowsResponse. - * @param [properties] Properties to set + * Calls UpdatePage. + * @param request UpdatePageRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Page */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse); - - /** ListFlowsResponse flows. */ - public flows: google.cloud.dialogflow.cx.v3beta1.IFlow[]; - - /** ListFlowsResponse nextPageToken. */ - public nextPageToken: string; + public updatePage(request: google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.UpdatePageCallback): void; /** - * Creates a new ListFlowsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListFlowsResponse instance + * Calls UpdatePage. + * @param request UpdatePageRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse): google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse; + public updatePage(request: google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest): Promise; /** - * Encodes the specified ListFlowsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse.verify|verify} messages. - * @param message ListFlowsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls DeletePage. + * @param request DeletePageRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public deletePage(request: google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.DeletePageCallback): void; /** - * Encodes the specified ListFlowsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse.verify|verify} messages. - * @param message ListFlowsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls DeletePage. + * @param request DeletePageRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public deletePage(request: google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest): Promise; + } - /** - * Decodes a ListFlowsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListFlowsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse; + namespace Pages { /** - * Decodes a ListFlowsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListFlowsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages#listPages}. + * @param error Error, if any + * @param [response] ListPagesResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse; + type ListPagesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListPagesResponse) => void; /** - * Verifies a ListFlowsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages#getPage}. + * @param error Error, if any + * @param [response] Page */ - public static verify(message: { [k: string]: any }): (string|null); + type GetPageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Page) => void; /** - * Creates a ListFlowsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListFlowsResponse + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages#createPage}. + * @param error Error, if any + * @param [response] Page */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse; + type CreatePageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Page) => void; /** - * Creates a plain object from a ListFlowsResponse message. Also converts values to other types if specified. - * @param message ListFlowsResponse - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages#updatePage}. + * @param error Error, if any + * @param [response] Page */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type UpdatePageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Page) => void; /** - * Converts this ListFlowsResponse to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages#deletePage}. + * @param error Error, if any + * @param [response] Empty */ - public toJSON(): { [k: string]: any }; + type DeletePageCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; } - /** Properties of a GetFlowRequest. */ - interface IGetFlowRequest { + /** Properties of a Page. */ + interface IPage { - /** GetFlowRequest name */ + /** Page name */ name?: (string|null); - /** GetFlowRequest languageCode */ - languageCode?: (string|null); + /** Page displayName */ + displayName?: (string|null); + + /** Page entryFulfillment */ + entryFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + + /** Page form */ + form?: (google.cloud.dialogflow.cx.v3beta1.IForm|null); + + /** Page transitionRouteGroups */ + transitionRouteGroups?: (string[]|null); + + /** Page transitionRoutes */ + transitionRoutes?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute[]|null); + + /** Page eventHandlers */ + eventHandlers?: (google.cloud.dialogflow.cx.v3beta1.IEventHandler[]|null); } - /** Represents a GetFlowRequest. */ - class GetFlowRequest implements IGetFlowRequest { + /** Represents a Page. */ + class Page implements IPage { /** - * Constructs a new GetFlowRequest. + * Constructs a new Page. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IPage); - /** GetFlowRequest name. */ + /** Page name. */ public name: string; - /** GetFlowRequest languageCode. */ - public languageCode: string; + /** Page displayName. */ + public displayName: string; + + /** Page entryFulfillment. */ + public entryFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + + /** Page form. */ + public form?: (google.cloud.dialogflow.cx.v3beta1.IForm|null); + + /** Page transitionRouteGroups. */ + public transitionRouteGroups: string[]; + + /** Page transitionRoutes. */ + public transitionRoutes: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute[]; + + /** Page eventHandlers. */ + public eventHandlers: google.cloud.dialogflow.cx.v3beta1.IEventHandler[]; /** - * Creates a new GetFlowRequest instance using the specified properties. + * Creates a new Page instance using the specified properties. * @param [properties] Properties to set - * @returns GetFlowRequest instance + * @returns Page instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest): google.cloud.dialogflow.cx.v3beta1.GetFlowRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IPage): google.cloud.dialogflow.cx.v3beta1.Page; /** - * Encodes the specified GetFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetFlowRequest.verify|verify} messages. - * @param message GetFlowRequest message or plain object to encode + * Encodes the specified Page message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Page.verify|verify} messages. + * @param message Page message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IPage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetFlowRequest.verify|verify} messages. - * @param message GetFlowRequest message or plain object to encode + * Encodes the specified Page message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Page.verify|verify} messages. + * @param message Page message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IPage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetFlowRequest message from the specified reader or buffer. + * Decodes a Page message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetFlowRequest + * @returns Page * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetFlowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Page; /** - * Decodes a GetFlowRequest message from the specified reader or buffer, length delimited. + * Decodes a Page message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetFlowRequest + * @returns Page * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetFlowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Page; /** - * Verifies a GetFlowRequest message. + * Verifies a Page message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Page message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetFlowRequest + * @returns Page */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetFlowRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Page; /** - * Creates a plain object from a GetFlowRequest message. Also converts values to other types if specified. - * @param message GetFlowRequest + * Creates a plain object from a Page message. Also converts values to other types if specified. + * @param message Page * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Page, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetFlowRequest to JSON. + * Converts this Page to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateFlowRequest. */ - interface IUpdateFlowRequest { - - /** UpdateFlowRequest flow */ - flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); - - /** UpdateFlowRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** Properties of a Form. */ + interface IForm { - /** UpdateFlowRequest languageCode */ - languageCode?: (string|null); + /** Form parameters */ + parameters?: (google.cloud.dialogflow.cx.v3beta1.Form.IParameter[]|null); } - /** Represents an UpdateFlowRequest. */ - class UpdateFlowRequest implements IUpdateFlowRequest { + /** Represents a Form. */ + class Form implements IForm { /** - * Constructs a new UpdateFlowRequest. + * Constructs a new Form. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest); - - /** UpdateFlowRequest flow. */ - public flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); - - /** UpdateFlowRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IForm); - /** UpdateFlowRequest languageCode. */ - public languageCode: string; + /** Form parameters. */ + public parameters: google.cloud.dialogflow.cx.v3beta1.Form.IParameter[]; /** - * Creates a new UpdateFlowRequest instance using the specified properties. + * Creates a new Form instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateFlowRequest instance + * @returns Form instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest): google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IForm): google.cloud.dialogflow.cx.v3beta1.Form; /** - * Encodes the specified UpdateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest.verify|verify} messages. - * @param message UpdateFlowRequest message or plain object to encode + * Encodes the specified Form message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.verify|verify} messages. + * @param message Form message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IForm, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest.verify|verify} messages. - * @param message UpdateFlowRequest message or plain object to encode + * Encodes the specified Form message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.verify|verify} messages. + * @param message Form message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IForm, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateFlowRequest message from the specified reader or buffer. + * Decodes a Form message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateFlowRequest + * @returns Form * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Form; /** - * Decodes an UpdateFlowRequest message from the specified reader or buffer, length delimited. + * Decodes a Form message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateFlowRequest + * @returns Form * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Form; /** - * Verifies an UpdateFlowRequest message. + * Verifies a Form message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Form message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateFlowRequest + * @returns Form */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Form; /** - * Creates a plain object from an UpdateFlowRequest message. Also converts values to other types if specified. - * @param message UpdateFlowRequest + * Creates a plain object from a Form message. Also converts values to other types if specified. + * @param message Form * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Form, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateFlowRequest to JSON. + * Converts this Form to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TrainFlowRequest. */ - interface ITrainFlowRequest { + namespace Form { - /** TrainFlowRequest name */ - name?: (string|null); - } + /** Properties of a Parameter. */ + interface IParameter { - /** Represents a TrainFlowRequest. */ - class TrainFlowRequest implements ITrainFlowRequest { + /** Parameter displayName */ + displayName?: (string|null); - /** - * Constructs a new TrainFlowRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest); + /** Parameter required */ + required?: (boolean|null); - /** TrainFlowRequest name. */ - public name: string; + /** Parameter entityType */ + entityType?: (string|null); - /** - * Creates a new TrainFlowRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns TrainFlowRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest): google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest; + /** Parameter isList */ + isList?: (boolean|null); - /** - * Encodes the specified TrainFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest.verify|verify} messages. - * @param message TrainFlowRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Parameter fillBehavior */ + fillBehavior?: (google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior|null); - /** - * Encodes the specified TrainFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest.verify|verify} messages. - * @param message TrainFlowRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Parameter defaultValue */ + defaultValue?: (google.protobuf.IValue|null); - /** - * Decodes a TrainFlowRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TrainFlowRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest; + /** Parameter redact */ + redact?: (boolean|null); + } - /** - * Decodes a TrainFlowRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TrainFlowRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest; + /** Represents a Parameter. */ + class Parameter implements IParameter { - /** - * Verifies a TrainFlowRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Constructs a new Parameter. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Form.IParameter); - /** - * Creates a TrainFlowRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TrainFlowRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest; + /** Parameter displayName. */ + public displayName: string; - /** - * Creates a plain object from a TrainFlowRequest message. Also converts values to other types if specified. - * @param message TrainFlowRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Parameter required. */ + public required: boolean; - /** - * Converts this TrainFlowRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Parameter entityType. */ + public entityType: string; + + /** Parameter isList. */ + public isList: boolean; + + /** Parameter fillBehavior. */ + public fillBehavior?: (google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior|null); + + /** Parameter defaultValue. */ + public defaultValue?: (google.protobuf.IValue|null); + + /** Parameter redact. */ + public redact: boolean; + + /** + * Creates a new Parameter instance using the specified properties. + * @param [properties] Properties to set + * @returns Parameter instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Form.IParameter): google.cloud.dialogflow.cx.v3beta1.Form.Parameter; + + /** + * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.Parameter.verify|verify} messages. + * @param message Parameter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Form.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.Parameter.verify|verify} messages. + * @param message Parameter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Form.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Parameter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Parameter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Form.Parameter; + + /** + * Decodes a Parameter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Parameter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Form.Parameter; + + /** + * Verifies a Parameter message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Parameter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Parameter + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Form.Parameter; + + /** + * Creates a plain object from a Parameter message. Also converts values to other types if specified. + * @param message Parameter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Form.Parameter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Parameter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace Parameter { + + /** Properties of a FillBehavior. */ + interface IFillBehavior { + + /** FillBehavior initialPromptFulfillment */ + initialPromptFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + + /** FillBehavior repromptEventHandlers */ + repromptEventHandlers?: (google.cloud.dialogflow.cx.v3beta1.IEventHandler[]|null); + } + + /** Represents a FillBehavior. */ + class FillBehavior implements IFillBehavior { + + /** + * Constructs a new FillBehavior. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior); + + /** FillBehavior initialPromptFulfillment. */ + public initialPromptFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + + /** FillBehavior repromptEventHandlers. */ + public repromptEventHandlers: google.cloud.dialogflow.cx.v3beta1.IEventHandler[]; + + /** + * Creates a new FillBehavior instance using the specified properties. + * @param [properties] Properties to set + * @returns FillBehavior instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior): google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior; + + /** + * Encodes the specified FillBehavior message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.verify|verify} messages. + * @param message FillBehavior message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FillBehavior message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.verify|verify} messages. + * @param message FillBehavior message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FillBehavior message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FillBehavior + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior; + + /** + * Decodes a FillBehavior message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FillBehavior + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior; + + /** + * Verifies a FillBehavior message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FillBehavior message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FillBehavior + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior; + + /** + * Creates a plain object from a FillBehavior message. Also converts values to other types if specified. + * @param message FillBehavior + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FillBehavior to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } } - /** Properties of a ValidateFlowRequest. */ - interface IValidateFlowRequest { + /** Properties of an EventHandler. */ + interface IEventHandler { - /** ValidateFlowRequest name */ + /** EventHandler name */ name?: (string|null); - /** ValidateFlowRequest languageCode */ - languageCode?: (string|null); + /** EventHandler event */ + event?: (string|null); + + /** EventHandler triggerFulfillment */ + triggerFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + + /** EventHandler targetPage */ + targetPage?: (string|null); + + /** EventHandler targetFlow */ + targetFlow?: (string|null); } - /** Represents a ValidateFlowRequest. */ - class ValidateFlowRequest implements IValidateFlowRequest { + /** Represents an EventHandler. */ + class EventHandler implements IEventHandler { /** - * Constructs a new ValidateFlowRequest. + * Constructs a new EventHandler. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IEventHandler); - /** ValidateFlowRequest name. */ + /** EventHandler name. */ public name: string; - /** ValidateFlowRequest languageCode. */ - public languageCode: string; + /** EventHandler event. */ + public event: string; + + /** EventHandler triggerFulfillment. */ + public triggerFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + + /** EventHandler targetPage. */ + public targetPage: string; + + /** EventHandler targetFlow. */ + public targetFlow: string; + + /** EventHandler target. */ + public target?: ("targetPage"|"targetFlow"); /** - * Creates a new ValidateFlowRequest instance using the specified properties. + * Creates a new EventHandler instance using the specified properties. * @param [properties] Properties to set - * @returns ValidateFlowRequest instance + * @returns EventHandler instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest): google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IEventHandler): google.cloud.dialogflow.cx.v3beta1.EventHandler; /** - * Encodes the specified ValidateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest.verify|verify} messages. - * @param message ValidateFlowRequest message or plain object to encode + * Encodes the specified EventHandler message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventHandler.verify|verify} messages. + * @param message EventHandler message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IEventHandler, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ValidateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest.verify|verify} messages. - * @param message ValidateFlowRequest message or plain object to encode + * Encodes the specified EventHandler message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventHandler.verify|verify} messages. + * @param message EventHandler message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IEventHandler, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ValidateFlowRequest message from the specified reader or buffer. + * Decodes an EventHandler message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ValidateFlowRequest + * @returns EventHandler * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.EventHandler; /** - * Decodes a ValidateFlowRequest message from the specified reader or buffer, length delimited. + * Decodes an EventHandler message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ValidateFlowRequest + * @returns EventHandler * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.EventHandler; /** - * Verifies a ValidateFlowRequest message. + * Verifies an EventHandler message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ValidateFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates an EventHandler message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ValidateFlowRequest + * @returns EventHandler */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.EventHandler; /** - * Creates a plain object from a ValidateFlowRequest message. Also converts values to other types if specified. - * @param message ValidateFlowRequest + * Creates a plain object from an EventHandler message. Also converts values to other types if specified. + * @param message EventHandler * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.EventHandler, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ValidateFlowRequest to JSON. + * Converts this EventHandler to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetFlowValidationResultRequest. */ - interface IGetFlowValidationResultRequest { + /** Properties of a TransitionRoute. */ + interface ITransitionRoute { - /** GetFlowValidationResultRequest name */ + /** TransitionRoute name */ name?: (string|null); - /** GetFlowValidationResultRequest languageCode */ - languageCode?: (string|null); + /** TransitionRoute intent */ + intent?: (string|null); + + /** TransitionRoute condition */ + condition?: (string|null); + + /** TransitionRoute triggerFulfillment */ + triggerFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + + /** TransitionRoute targetPage */ + targetPage?: (string|null); + + /** TransitionRoute targetFlow */ + targetFlow?: (string|null); } - /** Represents a GetFlowValidationResultRequest. */ - class GetFlowValidationResultRequest implements IGetFlowValidationResultRequest { + /** Represents a TransitionRoute. */ + class TransitionRoute implements ITransitionRoute { /** - * Constructs a new GetFlowValidationResultRequest. + * Constructs a new TransitionRoute. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute); - /** GetFlowValidationResultRequest name. */ + /** TransitionRoute name. */ public name: string; - /** GetFlowValidationResultRequest languageCode. */ - public languageCode: string; + /** TransitionRoute intent. */ + public intent: string; + + /** TransitionRoute condition. */ + public condition: string; + + /** TransitionRoute triggerFulfillment. */ + public triggerFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + + /** TransitionRoute targetPage. */ + public targetPage: string; + + /** TransitionRoute targetFlow. */ + public targetFlow: string; + + /** TransitionRoute target. */ + public target?: ("targetPage"|"targetFlow"); /** - * Creates a new GetFlowValidationResultRequest instance using the specified properties. + * Creates a new TransitionRoute instance using the specified properties. * @param [properties] Properties to set - * @returns GetFlowValidationResultRequest instance + * @returns TransitionRoute instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest): google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute): google.cloud.dialogflow.cx.v3beta1.TransitionRoute; /** - * Encodes the specified GetFlowValidationResultRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest.verify|verify} messages. - * @param message GetFlowValidationResultRequest message or plain object to encode + * Encodes the specified TransitionRoute message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRoute.verify|verify} messages. + * @param message TransitionRoute message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetFlowValidationResultRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest.verify|verify} messages. - * @param message GetFlowValidationResultRequest message or plain object to encode + * Encodes the specified TransitionRoute message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRoute.verify|verify} messages. + * @param message TransitionRoute message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetFlowValidationResultRequest message from the specified reader or buffer. + * Decodes a TransitionRoute message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetFlowValidationResultRequest + * @returns TransitionRoute * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TransitionRoute; /** - * Decodes a GetFlowValidationResultRequest message from the specified reader or buffer, length delimited. + * Decodes a TransitionRoute message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetFlowValidationResultRequest + * @returns TransitionRoute * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionRoute; /** - * Verifies a GetFlowValidationResultRequest message. + * Verifies a TransitionRoute message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetFlowValidationResultRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TransitionRoute message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetFlowValidationResultRequest + * @returns TransitionRoute */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TransitionRoute; /** - * Creates a plain object from a GetFlowValidationResultRequest message. Also converts values to other types if specified. - * @param message GetFlowValidationResultRequest + * Creates a plain object from a TransitionRoute message. Also converts values to other types if specified. + * @param message TransitionRoute * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionRoute, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetFlowValidationResultRequest to JSON. + * Converts this TransitionRoute to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a FlowValidationResult. */ - interface IFlowValidationResult { + /** Properties of a ListPagesRequest. */ + interface IListPagesRequest { - /** FlowValidationResult name */ - name?: (string|null); + /** ListPagesRequest parent */ + parent?: (string|null); - /** FlowValidationResult validationMessages */ - validationMessages?: (google.cloud.dialogflow.cx.v3beta1.IValidationMessage[]|null); + /** ListPagesRequest languageCode */ + languageCode?: (string|null); - /** FlowValidationResult updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** ListPagesRequest pageSize */ + pageSize?: (number|null); + + /** ListPagesRequest pageToken */ + pageToken?: (string|null); } - /** Represents a FlowValidationResult. */ - class FlowValidationResult implements IFlowValidationResult { + /** Represents a ListPagesRequest. */ + class ListPagesRequest implements IListPagesRequest { /** - * Constructs a new FlowValidationResult. + * Constructs a new ListPagesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListPagesRequest); - /** FlowValidationResult name. */ - public name: string; + /** ListPagesRequest parent. */ + public parent: string; - /** FlowValidationResult validationMessages. */ - public validationMessages: google.cloud.dialogflow.cx.v3beta1.IValidationMessage[]; + /** ListPagesRequest languageCode. */ + public languageCode: string; - /** FlowValidationResult updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** ListPagesRequest pageSize. */ + public pageSize: number; + + /** ListPagesRequest pageToken. */ + public pageToken: string; /** - * Creates a new FlowValidationResult instance using the specified properties. + * Creates a new ListPagesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FlowValidationResult instance + * @returns ListPagesRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult): google.cloud.dialogflow.cx.v3beta1.FlowValidationResult; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListPagesRequest): google.cloud.dialogflow.cx.v3beta1.ListPagesRequest; /** - * Encodes the specified FlowValidationResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.verify|verify} messages. - * @param message FlowValidationResult message or plain object to encode + * Encodes the specified ListPagesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesRequest.verify|verify} messages. + * @param message ListPagesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListPagesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FlowValidationResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.verify|verify} messages. - * @param message FlowValidationResult message or plain object to encode + * Encodes the specified ListPagesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesRequest.verify|verify} messages. + * @param message ListPagesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListPagesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FlowValidationResult message from the specified reader or buffer. + * Decodes a ListPagesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FlowValidationResult + * @returns ListPagesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.FlowValidationResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListPagesRequest; /** - * Decodes a FlowValidationResult message from the specified reader or buffer, length delimited. + * Decodes a ListPagesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FlowValidationResult + * @returns ListPagesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.FlowValidationResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListPagesRequest; /** - * Verifies a FlowValidationResult message. + * Verifies a ListPagesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FlowValidationResult message from a plain object. Also converts values to their respective internal types. + * Creates a ListPagesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FlowValidationResult + * @returns ListPagesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.FlowValidationResult; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListPagesRequest; /** - * Creates a plain object from a FlowValidationResult message. Also converts values to other types if specified. - * @param message FlowValidationResult + * Creates a plain object from a ListPagesRequest message. Also converts values to other types if specified. + * @param message ListPagesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.FlowValidationResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListPagesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FlowValidationResult to JSON. + * Converts this ListPagesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a Pages */ - class Pages extends $protobuf.rpc.Service { + /** Properties of a ListPagesResponse. */ + interface IListPagesResponse { - /** - * Constructs a new Pages service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** ListPagesResponse pages */ + pages?: (google.cloud.dialogflow.cx.v3beta1.IPage[]|null); + + /** ListPagesResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListPagesResponse. */ + class ListPagesResponse implements IListPagesResponse { /** - * Creates new Pages service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. + * Constructs a new ListPagesResponse. + * @param [properties] Properties to set */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Pages; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListPagesResponse); + + /** ListPagesResponse pages. */ + public pages: google.cloud.dialogflow.cx.v3beta1.IPage[]; + + /** ListPagesResponse nextPageToken. */ + public nextPageToken: string; /** - * Calls ListPages. - * @param request ListPagesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListPagesResponse + * Creates a new ListPagesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListPagesResponse instance */ - public listPages(request: google.cloud.dialogflow.cx.v3beta1.IListPagesRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.ListPagesCallback): void; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListPagesResponse): google.cloud.dialogflow.cx.v3beta1.ListPagesResponse; /** - * Calls ListPages. - * @param request ListPagesRequest message or plain object - * @returns Promise + * Encodes the specified ListPagesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesResponse.verify|verify} messages. + * @param message ListPagesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listPages(request: google.cloud.dialogflow.cx.v3beta1.IListPagesRequest): Promise; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListPagesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetPage. - * @param request GetPageRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Page + * Encodes the specified ListPagesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesResponse.verify|verify} messages. + * @param message ListPagesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getPage(request: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.GetPageCallback): void; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListPagesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetPage. - * @param request GetPageRequest message or plain object - * @returns Promise + * Decodes a ListPagesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListPagesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getPage(request: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListPagesResponse; /** - * Calls CreatePage. - * @param request CreatePageRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Page + * Decodes a ListPagesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListPagesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public createPage(request: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.CreatePageCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListPagesResponse; /** - * Calls CreatePage. - * @param request CreatePageRequest message or plain object - * @returns Promise + * Verifies a ListPagesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public createPage(request: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls UpdatePage. - * @param request UpdatePageRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Page + * Creates a ListPagesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListPagesResponse */ - public updatePage(request: google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.UpdatePageCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListPagesResponse; /** - * Calls UpdatePage. - * @param request UpdatePageRequest message or plain object - * @returns Promise + * Creates a plain object from a ListPagesResponse message. Also converts values to other types if specified. + * @param message ListPagesResponse + * @param [options] Conversion options + * @returns Plain object */ - public updatePage(request: google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest): Promise; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListPagesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls DeletePage. - * @param request DeletePageRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Converts this ListPagesResponse to JSON. + * @returns JSON object */ - public deletePage(request: google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.DeletePageCallback): void; + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetPageRequest. */ + interface IGetPageRequest { + + /** GetPageRequest name */ + name?: (string|null); + + /** GetPageRequest languageCode */ + languageCode?: (string|null); + } + + /** Represents a GetPageRequest. */ + class GetPageRequest implements IGetPageRequest { /** - * Calls DeletePage. - * @param request DeletePageRequest message or plain object - * @returns Promise + * Constructs a new GetPageRequest. + * @param [properties] Properties to set */ - public deletePage(request: google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest): Promise; - } + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest); - namespace Pages { + /** GetPageRequest name. */ + public name: string; + + /** GetPageRequest languageCode. */ + public languageCode: string; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages#listPages}. - * @param error Error, if any - * @param [response] ListPagesResponse + * Creates a new GetPageRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetPageRequest instance */ - type ListPagesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListPagesResponse) => void; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest): google.cloud.dialogflow.cx.v3beta1.GetPageRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages#getPage}. - * @param error Error, if any - * @param [response] Page + * Encodes the specified GetPageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetPageRequest.verify|verify} messages. + * @param message GetPageRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type GetPageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Page) => void; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages#createPage}. - * @param error Error, if any - * @param [response] Page + * Encodes the specified GetPageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetPageRequest.verify|verify} messages. + * @param message GetPageRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type CreatePageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Page) => void; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages#updatePage}. - * @param error Error, if any - * @param [response] Page + * Decodes a GetPageRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetPageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type UpdatePageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Page) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetPageRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages#deletePage}. - * @param error Error, if any - * @param [response] Empty + * Decodes a GetPageRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetPageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type DeletePageCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - } + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetPageRequest; - /** Properties of a Page. */ - interface IPage { + /** + * Verifies a GetPageRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Page name */ - name?: (string|null); + /** + * Creates a GetPageRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetPageRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetPageRequest; - /** Page displayName */ - displayName?: (string|null); + /** + * Creates a plain object from a GetPageRequest message. Also converts values to other types if specified. + * @param message GetPageRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetPageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Page entryFulfillment */ - entryFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + /** + * Converts this GetPageRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Page form */ - form?: (google.cloud.dialogflow.cx.v3beta1.IForm|null); + /** Properties of a CreatePageRequest. */ + interface ICreatePageRequest { - /** Page transitionRouteGroups */ - transitionRouteGroups?: (string[]|null); + /** CreatePageRequest parent */ + parent?: (string|null); - /** Page transitionRoutes */ - transitionRoutes?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute[]|null); + /** CreatePageRequest page */ + page?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); - /** Page eventHandlers */ - eventHandlers?: (google.cloud.dialogflow.cx.v3beta1.IEventHandler[]|null); + /** CreatePageRequest languageCode */ + languageCode?: (string|null); } - /** Represents a Page. */ - class Page implements IPage { + /** Represents a CreatePageRequest. */ + class CreatePageRequest implements ICreatePageRequest { /** - * Constructs a new Page. + * Constructs a new CreatePageRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IPage); - - /** Page name. */ - public name: string; - - /** Page displayName. */ - public displayName: string; - - /** Page entryFulfillment. */ - public entryFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); - - /** Page form. */ - public form?: (google.cloud.dialogflow.cx.v3beta1.IForm|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest); - /** Page transitionRouteGroups. */ - public transitionRouteGroups: string[]; + /** CreatePageRequest parent. */ + public parent: string; - /** Page transitionRoutes. */ - public transitionRoutes: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute[]; + /** CreatePageRequest page. */ + public page?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); - /** Page eventHandlers. */ - public eventHandlers: google.cloud.dialogflow.cx.v3beta1.IEventHandler[]; + /** CreatePageRequest languageCode. */ + public languageCode: string; /** - * Creates a new Page instance using the specified properties. + * Creates a new CreatePageRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Page instance + * @returns CreatePageRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IPage): google.cloud.dialogflow.cx.v3beta1.Page; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest): google.cloud.dialogflow.cx.v3beta1.CreatePageRequest; /** - * Encodes the specified Page message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Page.verify|verify} messages. - * @param message Page message or plain object to encode + * Encodes the specified CreatePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreatePageRequest.verify|verify} messages. + * @param message CreatePageRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IPage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Page message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Page.verify|verify} messages. - * @param message Page message or plain object to encode + * Encodes the specified CreatePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreatePageRequest.verify|verify} messages. + * @param message CreatePageRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IPage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Page message from the specified reader or buffer. + * Decodes a CreatePageRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Page + * @returns CreatePageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Page; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreatePageRequest; /** - * Decodes a Page message from the specified reader or buffer, length delimited. + * Decodes a CreatePageRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Page + * @returns CreatePageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Page; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreatePageRequest; /** - * Verifies a Page message. + * Verifies a CreatePageRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Page message from a plain object. Also converts values to their respective internal types. + * Creates a CreatePageRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Page + * @returns CreatePageRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Page; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreatePageRequest; /** - * Creates a plain object from a Page message. Also converts values to other types if specified. - * @param message Page + * Creates a plain object from a CreatePageRequest message. Also converts values to other types if specified. + * @param message CreatePageRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Page, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreatePageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Page to JSON. + * Converts this CreatePageRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Form. */ - interface IForm { + /** Properties of an UpdatePageRequest. */ + interface IUpdatePageRequest { - /** Form parameters */ - parameters?: (google.cloud.dialogflow.cx.v3beta1.Form.IParameter[]|null); + /** UpdatePageRequest page */ + page?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + + /** UpdatePageRequest languageCode */ + languageCode?: (string|null); + + /** UpdatePageRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a Form. */ - class Form implements IForm { + /** Represents an UpdatePageRequest. */ + class UpdatePageRequest implements IUpdatePageRequest { /** - * Constructs a new Form. + * Constructs a new UpdatePageRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IForm); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest); - /** Form parameters. */ - public parameters: google.cloud.dialogflow.cx.v3beta1.Form.IParameter[]; + /** UpdatePageRequest page. */ + public page?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + + /** UpdatePageRequest languageCode. */ + public languageCode: string; + + /** UpdatePageRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new Form instance using the specified properties. + * Creates a new UpdatePageRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Form instance + * @returns UpdatePageRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IForm): google.cloud.dialogflow.cx.v3beta1.Form; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest): google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest; /** - * Encodes the specified Form message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.verify|verify} messages. - * @param message Form message or plain object to encode + * Encodes the specified UpdatePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest.verify|verify} messages. + * @param message UpdatePageRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IForm, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Form message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.verify|verify} messages. - * @param message Form message or plain object to encode + * Encodes the specified UpdatePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest.verify|verify} messages. + * @param message UpdatePageRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IForm, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Form message from the specified reader or buffer. + * Decodes an UpdatePageRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Form + * @returns UpdatePageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Form; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest; /** - * Decodes a Form message from the specified reader or buffer, length delimited. + * Decodes an UpdatePageRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Form + * @returns UpdatePageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Form; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest; /** - * Verifies a Form message. + * Verifies an UpdatePageRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Form message from a plain object. Also converts values to their respective internal types. + * Creates an UpdatePageRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Form + * @returns UpdatePageRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Form; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest; /** - * Creates a plain object from a Form message. Also converts values to other types if specified. - * @param message Form + * Creates a plain object from an UpdatePageRequest message. Also converts values to other types if specified. + * @param message UpdatePageRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Form, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Form to JSON. + * Converts this UpdatePageRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Form { + /** Properties of a DeletePageRequest. */ + interface IDeletePageRequest { - /** Properties of a Parameter. */ - interface IParameter { + /** DeletePageRequest name */ + name?: (string|null); - /** Parameter displayName */ - displayName?: (string|null); + /** DeletePageRequest force */ + force?: (boolean|null); + } - /** Parameter required */ - required?: (boolean|null); + /** Represents a DeletePageRequest. */ + class DeletePageRequest implements IDeletePageRequest { - /** Parameter entityType */ - entityType?: (string|null); + /** + * Constructs a new DeletePageRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest); - /** Parameter isList */ - isList?: (boolean|null); + /** DeletePageRequest name. */ + public name: string; - /** Parameter fillBehavior */ - fillBehavior?: (google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior|null); + /** DeletePageRequest force. */ + public force: boolean; - /** Parameter defaultValue */ - defaultValue?: (google.protobuf.IValue|null); + /** + * Creates a new DeletePageRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeletePageRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest): google.cloud.dialogflow.cx.v3beta1.DeletePageRequest; - /** Parameter redact */ - redact?: (boolean|null); - } + /** + * Encodes the specified DeletePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeletePageRequest.verify|verify} messages. + * @param message DeletePageRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a Parameter. */ - class Parameter implements IParameter { + /** + * Encodes the specified DeletePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeletePageRequest.verify|verify} messages. + * @param message DeletePageRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new Parameter. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Form.IParameter); + /** + * Decodes a DeletePageRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeletePageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeletePageRequest; - /** Parameter displayName. */ - public displayName: string; + /** + * Decodes a DeletePageRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeletePageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeletePageRequest; - /** Parameter required. */ - public required: boolean; + /** + * Verifies a DeletePageRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Parameter entityType. */ - public entityType: string; + /** + * Creates a DeletePageRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeletePageRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeletePageRequest; - /** Parameter isList. */ - public isList: boolean; + /** + * Creates a plain object from a DeletePageRequest message. Also converts values to other types if specified. + * @param message DeletePageRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeletePageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Parameter fillBehavior. */ - public fillBehavior?: (google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior|null); + /** + * Converts this DeletePageRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Parameter defaultValue. */ - public defaultValue?: (google.protobuf.IValue|null); + /** Properties of a Fulfillment. */ + interface IFulfillment { - /** Parameter redact. */ - public redact: boolean; + /** Fulfillment messages */ + messages?: (google.cloud.dialogflow.cx.v3beta1.IResponseMessage[]|null); - /** - * Creates a new Parameter instance using the specified properties. - * @param [properties] Properties to set - * @returns Parameter instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Form.IParameter): google.cloud.dialogflow.cx.v3beta1.Form.Parameter; + /** Fulfillment webhook */ + webhook?: (string|null); - /** - * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.Parameter.verify|verify} messages. - * @param message Parameter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Form.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + /** Fulfillment tag */ + tag?: (string|null); - /** - * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.Parameter.verify|verify} messages. - * @param message Parameter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Form.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + /** Fulfillment setParameterActions */ + setParameterActions?: (google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction[]|null); - /** - * Decodes a Parameter message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Parameter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Form.Parameter; + /** Fulfillment conditionalCases */ + conditionalCases?: (google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases[]|null); + } - /** - * Decodes a Parameter message from the specified reader or buffer, length delimited. + /** Represents a Fulfillment. */ + class Fulfillment implements IFulfillment { + + /** + * Constructs a new Fulfillment. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IFulfillment); + + /** Fulfillment messages. */ + public messages: google.cloud.dialogflow.cx.v3beta1.IResponseMessage[]; + + /** Fulfillment webhook. */ + public webhook: string; + + /** Fulfillment tag. */ + public tag: string; + + /** Fulfillment setParameterActions. */ + public setParameterActions: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction[]; + + /** Fulfillment conditionalCases. */ + public conditionalCases: google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases[]; + + /** + * Creates a new Fulfillment instance using the specified properties. + * @param [properties] Properties to set + * @returns Fulfillment instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IFulfillment): google.cloud.dialogflow.cx.v3beta1.Fulfillment; + + /** + * Encodes the specified Fulfillment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify|verify} messages. + * @param message Fulfillment message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IFulfillment, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Fulfillment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify|verify} messages. + * @param message Fulfillment message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IFulfillment, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Fulfillment message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Fulfillment + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Fulfillment; + + /** + * Decodes a Fulfillment message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Fulfillment + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Fulfillment; + + /** + * Verifies a Fulfillment message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Fulfillment message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Fulfillment + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Fulfillment; + + /** + * Creates a plain object from a Fulfillment message. Also converts values to other types if specified. + * @param message Fulfillment + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Fulfillment to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace Fulfillment { + + /** Properties of a SetParameterAction. */ + interface ISetParameterAction { + + /** SetParameterAction parameter */ + parameter?: (string|null); + + /** SetParameterAction value */ + value?: (google.protobuf.IValue|null); + } + + /** Represents a SetParameterAction. */ + class SetParameterAction implements ISetParameterAction { + + /** + * Constructs a new SetParameterAction. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction); + + /** SetParameterAction parameter. */ + public parameter: string; + + /** SetParameterAction value. */ + public value?: (google.protobuf.IValue|null); + + /** + * Creates a new SetParameterAction instance using the specified properties. + * @param [properties] Properties to set + * @returns SetParameterAction instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction): google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction; + + /** + * Encodes the specified SetParameterAction message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.verify|verify} messages. + * @param message SetParameterAction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetParameterAction message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.verify|verify} messages. + * @param message SetParameterAction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetParameterAction message from the specified reader or buffer. * @param reader Reader or buffer to decode from - * @returns Parameter + * @param [length] Message length if known beforehand + * @returns SetParameterAction * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Form.Parameter; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction; /** - * Verifies a Parameter message. + * Decodes a SetParameterAction message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetParameterAction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction; + + /** + * Verifies a SetParameterAction message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Parameter message from a plain object. Also converts values to their respective internal types. + * Creates a SetParameterAction message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Parameter + * @returns SetParameterAction */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Form.Parameter; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction; /** - * Creates a plain object from a Parameter message. Also converts values to other types if specified. - * @param message Parameter + * Creates a plain object from a SetParameterAction message. Also converts values to other types if specified. + * @param message SetParameterAction * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Form.Parameter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Parameter to JSON. + * Converts this SetParameterAction to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Parameter { + /** Properties of a ConditionalCases. */ + interface IConditionalCases { - /** Properties of a FillBehavior. */ - interface IFillBehavior { + /** ConditionalCases cases */ + cases?: (google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase[]|null); + } - /** FillBehavior initialPromptFulfillment */ - initialPromptFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + /** Represents a ConditionalCases. */ + class ConditionalCases implements IConditionalCases { - /** FillBehavior repromptEventHandlers */ - repromptEventHandlers?: (google.cloud.dialogflow.cx.v3beta1.IEventHandler[]|null); + /** + * Constructs a new ConditionalCases. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases); + + /** ConditionalCases cases. */ + public cases: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase[]; + + /** + * Creates a new ConditionalCases instance using the specified properties. + * @param [properties] Properties to set + * @returns ConditionalCases instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases; + + /** + * Encodes the specified ConditionalCases message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.verify|verify} messages. + * @param message ConditionalCases message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ConditionalCases message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.verify|verify} messages. + * @param message ConditionalCases message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ConditionalCases message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConditionalCases + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases; + + /** + * Decodes a ConditionalCases message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ConditionalCases + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases; + + /** + * Verifies a ConditionalCases message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ConditionalCases message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConditionalCases + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases; + + /** + * Creates a plain object from a ConditionalCases message. Also converts values to other types if specified. + * @param message ConditionalCases + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ConditionalCases to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace ConditionalCases { + + /** Properties of a Case. */ + interface ICase { + + /** Case condition */ + condition?: (string|null); + + /** Case caseContent */ + caseContent?: (google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent[]|null); } - /** Represents a FillBehavior. */ - class FillBehavior implements IFillBehavior { + /** Represents a Case. */ + class Case implements ICase { /** - * Constructs a new FillBehavior. + * Constructs a new Case. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase); - /** FillBehavior initialPromptFulfillment. */ - public initialPromptFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + /** Case condition. */ + public condition: string; - /** FillBehavior repromptEventHandlers. */ - public repromptEventHandlers: google.cloud.dialogflow.cx.v3beta1.IEventHandler[]; + /** Case caseContent. */ + public caseContent: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent[]; /** - * Creates a new FillBehavior instance using the specified properties. + * Creates a new Case instance using the specified properties. * @param [properties] Properties to set - * @returns FillBehavior instance + * @returns Case instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior): google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case; /** - * Encodes the specified FillBehavior message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.verify|verify} messages. - * @param message FillBehavior message or plain object to encode + * Encodes the specified Case message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.verify|verify} messages. + * @param message Case message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FillBehavior message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.verify|verify} messages. - * @param message FillBehavior message or plain object to encode + * Encodes the specified Case message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.verify|verify} messages. + * @param message Case message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FillBehavior message from the specified reader or buffer. + * Decodes a Case message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FillBehavior + * @returns Case * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case; /** - * Decodes a FillBehavior message from the specified reader or buffer, length delimited. + * Decodes a Case message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FillBehavior + * @returns Case * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case; /** - * Verifies a FillBehavior message. + * Verifies a Case message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FillBehavior message from a plain object. Also converts values to their respective internal types. + * Creates a Case message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FillBehavior + * @returns Case */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case; /** - * Creates a plain object from a FillBehavior message. Also converts values to other types if specified. - * @param message FillBehavior + * Creates a plain object from a Case message. Also converts values to other types if specified. + * @param message Case * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FillBehavior to JSON. + * Converts this Case to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - } - } - /** Properties of an EventHandler. */ - interface IEventHandler { + namespace Case { - /** EventHandler name */ - name?: (string|null); + /** Properties of a CaseContent. */ + interface ICaseContent { - /** EventHandler event */ - event?: (string|null); + /** CaseContent message */ + message?: (google.cloud.dialogflow.cx.v3beta1.IResponseMessage|null); - /** EventHandler triggerFulfillment */ - triggerFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + /** CaseContent additionalCases */ + additionalCases?: (google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases|null); + } - /** EventHandler targetPage */ - targetPage?: (string|null); + /** Represents a CaseContent. */ + class CaseContent implements ICaseContent { - /** EventHandler targetFlow */ - targetFlow?: (string|null); - } + /** + * Constructs a new CaseContent. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent); - /** Represents an EventHandler. */ - class EventHandler implements IEventHandler { + /** CaseContent message. */ + public message?: (google.cloud.dialogflow.cx.v3beta1.IResponseMessage|null); - /** - * Constructs a new EventHandler. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IEventHandler); + /** CaseContent additionalCases. */ + public additionalCases?: (google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases|null); - /** EventHandler name. */ - public name: string; + /** CaseContent casesOrMessage. */ + public casesOrMessage?: ("message"|"additionalCases"); - /** EventHandler event. */ - public event: string; + /** + * Creates a new CaseContent instance using the specified properties. + * @param [properties] Properties to set + * @returns CaseContent instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent; - /** EventHandler triggerFulfillment. */ - public triggerFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + /** + * Encodes the specified CaseContent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.verify|verify} messages. + * @param message CaseContent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent, writer?: $protobuf.Writer): $protobuf.Writer; - /** EventHandler targetPage. */ - public targetPage: string; + /** + * Encodes the specified CaseContent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.verify|verify} messages. + * @param message CaseContent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent, writer?: $protobuf.Writer): $protobuf.Writer; - /** EventHandler targetFlow. */ - public targetFlow: string; + /** + * Decodes a CaseContent message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CaseContent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent; - /** EventHandler target. */ - public target?: ("targetPage"|"targetFlow"); + /** + * Decodes a CaseContent message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CaseContent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent; - /** - * Creates a new EventHandler instance using the specified properties. - * @param [properties] Properties to set - * @returns EventHandler instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IEventHandler): google.cloud.dialogflow.cx.v3beta1.EventHandler; + /** + * Verifies a CaseContent message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Encodes the specified EventHandler message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventHandler.verify|verify} messages. - * @param message EventHandler message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IEventHandler, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a CaseContent message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CaseContent + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent; - /** - * Encodes the specified EventHandler message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventHandler.verify|verify} messages. - * @param message EventHandler message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IEventHandler, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from a CaseContent message. Also converts values to other types if specified. + * @param message CaseContent + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes an EventHandler message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EventHandler - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.EventHandler; + /** + * Converts this CaseContent to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + } - /** - * Decodes an EventHandler message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EventHandler - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.EventHandler; + /** Properties of a ResponseMessage. */ + interface IResponseMessage { - /** - * Verifies an EventHandler message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** ResponseMessage text */ + text?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText|null); - /** - * Creates an EventHandler message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EventHandler - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.EventHandler; - - /** - * Creates a plain object from an EventHandler message. Also converts values to other types if specified. - * @param message EventHandler - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.EventHandler, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this EventHandler to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a TransitionRoute. */ - interface ITransitionRoute { + /** ResponseMessage payload */ + payload?: (google.protobuf.IStruct|null); - /** TransitionRoute name */ - name?: (string|null); + /** ResponseMessage conversationSuccess */ + conversationSuccess?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess|null); - /** TransitionRoute intent */ - intent?: (string|null); + /** ResponseMessage outputAudioText */ + outputAudioText?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText|null); - /** TransitionRoute condition */ - condition?: (string|null); + /** ResponseMessage liveAgentHandoff */ + liveAgentHandoff?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff|null); - /** TransitionRoute triggerFulfillment */ - triggerFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + /** ResponseMessage endInteraction */ + endInteraction?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction|null); - /** TransitionRoute targetPage */ - targetPage?: (string|null); + /** ResponseMessage playAudio */ + playAudio?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio|null); - /** TransitionRoute targetFlow */ - targetFlow?: (string|null); + /** ResponseMessage mixedAudio */ + mixedAudio?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio|null); } - /** Represents a TransitionRoute. */ - class TransitionRoute implements ITransitionRoute { + /** Represents a ResponseMessage. */ + class ResponseMessage implements IResponseMessage { /** - * Constructs a new TransitionRoute. + * Constructs a new ResponseMessage. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IResponseMessage); - /** TransitionRoute name. */ - public name: string; + /** ResponseMessage text. */ + public text?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText|null); - /** TransitionRoute intent. */ - public intent: string; + /** ResponseMessage payload. */ + public payload?: (google.protobuf.IStruct|null); - /** TransitionRoute condition. */ - public condition: string; + /** ResponseMessage conversationSuccess. */ + public conversationSuccess?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess|null); - /** TransitionRoute triggerFulfillment. */ - public triggerFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + /** ResponseMessage outputAudioText. */ + public outputAudioText?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText|null); - /** TransitionRoute targetPage. */ - public targetPage: string; + /** ResponseMessage liveAgentHandoff. */ + public liveAgentHandoff?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff|null); - /** TransitionRoute targetFlow. */ - public targetFlow: string; + /** ResponseMessage endInteraction. */ + public endInteraction?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction|null); - /** TransitionRoute target. */ - public target?: ("targetPage"|"targetFlow"); + /** ResponseMessage playAudio. */ + public playAudio?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio|null); + + /** ResponseMessage mixedAudio. */ + public mixedAudio?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio|null); + + /** ResponseMessage message. */ + public message?: ("text"|"payload"|"conversationSuccess"|"outputAudioText"|"liveAgentHandoff"|"endInteraction"|"playAudio"|"mixedAudio"); /** - * Creates a new TransitionRoute instance using the specified properties. + * Creates a new ResponseMessage instance using the specified properties. * @param [properties] Properties to set - * @returns TransitionRoute instance + * @returns ResponseMessage instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute): google.cloud.dialogflow.cx.v3beta1.TransitionRoute; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IResponseMessage): google.cloud.dialogflow.cx.v3beta1.ResponseMessage; /** - * Encodes the specified TransitionRoute message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRoute.verify|verify} messages. - * @param message TransitionRoute message or plain object to encode + * Encodes the specified ResponseMessage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.verify|verify} messages. + * @param message ResponseMessage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IResponseMessage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TransitionRoute message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRoute.verify|verify} messages. - * @param message TransitionRoute message or plain object to encode + * Encodes the specified ResponseMessage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.verify|verify} messages. + * @param message ResponseMessage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IResponseMessage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TransitionRoute message from the specified reader or buffer. + * Decodes a ResponseMessage message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TransitionRoute + * @returns ResponseMessage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TransitionRoute; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ResponseMessage; /** - * Decodes a TransitionRoute message from the specified reader or buffer, length delimited. + * Decodes a ResponseMessage message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TransitionRoute + * @returns ResponseMessage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionRoute; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ResponseMessage; /** - * Verifies a TransitionRoute message. + * Verifies a ResponseMessage message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TransitionRoute message from a plain object. Also converts values to their respective internal types. + * Creates a ResponseMessage message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TransitionRoute + * @returns ResponseMessage */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TransitionRoute; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResponseMessage; /** - * Creates a plain object from a TransitionRoute message. Also converts values to other types if specified. - * @param message TransitionRoute + * Creates a plain object from a ResponseMessage message. Also converts values to other types if specified. + * @param message ResponseMessage * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionRoute, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TransitionRoute to JSON. + * Converts this ResponseMessage to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListPagesRequest. */ - interface IListPagesRequest { - - /** ListPagesRequest parent */ - parent?: (string|null); - - /** ListPagesRequest languageCode */ - languageCode?: (string|null); + namespace ResponseMessage { - /** ListPagesRequest pageSize */ - pageSize?: (number|null); + /** Properties of a Text. */ + interface IText { - /** ListPagesRequest pageToken */ - pageToken?: (string|null); - } + /** Text text */ + text?: (string[]|null); - /** Represents a ListPagesRequest. */ - class ListPagesRequest implements IListPagesRequest { + /** Text allowPlaybackInterruption */ + allowPlaybackInterruption?: (boolean|null); + } - /** - * Constructs a new ListPagesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListPagesRequest); + /** Represents a Text. */ + class Text implements IText { - /** ListPagesRequest parent. */ - public parent: string; + /** + * Constructs a new Text. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText); - /** ListPagesRequest languageCode. */ - public languageCode: string; + /** Text text. */ + public text: string[]; - /** ListPagesRequest pageSize. */ - public pageSize: number; + /** Text allowPlaybackInterruption. */ + public allowPlaybackInterruption: boolean; - /** ListPagesRequest pageToken. */ - public pageToken: string; + /** + * Creates a new Text instance using the specified properties. + * @param [properties] Properties to set + * @returns Text instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text; - /** - * Creates a new ListPagesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListPagesRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListPagesRequest): google.cloud.dialogflow.cx.v3beta1.ListPagesRequest; + /** + * Encodes the specified Text message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.verify|verify} messages. + * @param message Text message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ListPagesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesRequest.verify|verify} messages. - * @param message ListPagesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListPagesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified Text message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.verify|verify} messages. + * @param message Text message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ListPagesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesRequest.verify|verify} messages. - * @param message ListPagesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListPagesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a Text message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Text + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text; - /** - * Decodes a ListPagesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListPagesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListPagesRequest; + /** + * Decodes a Text message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Text + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text; - /** - * Decodes a ListPagesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListPagesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListPagesRequest; + /** + * Verifies a Text message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Verifies a ListPagesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a Text message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Text + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text; - /** - * Creates a ListPagesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListPagesRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListPagesRequest; + /** + * Creates a plain object from a Text message. Also converts values to other types if specified. + * @param message Text + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a plain object from a ListPagesRequest message. Also converts values to other types if specified. - * @param message ListPagesRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListPagesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Converts this Text to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Converts this ListPagesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Properties of a LiveAgentHandoff. */ + interface ILiveAgentHandoff { - /** Properties of a ListPagesResponse. */ - interface IListPagesResponse { + /** LiveAgentHandoff metadata */ + metadata?: (google.protobuf.IStruct|null); + } - /** ListPagesResponse pages */ - pages?: (google.cloud.dialogflow.cx.v3beta1.IPage[]|null); + /** Represents a LiveAgentHandoff. */ + class LiveAgentHandoff implements ILiveAgentHandoff { - /** ListPagesResponse nextPageToken */ - nextPageToken?: (string|null); - } + /** + * Constructs a new LiveAgentHandoff. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff); - /** Represents a ListPagesResponse. */ - class ListPagesResponse implements IListPagesResponse { + /** LiveAgentHandoff metadata. */ + public metadata?: (google.protobuf.IStruct|null); - /** - * Constructs a new ListPagesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListPagesResponse); + /** + * Creates a new LiveAgentHandoff instance using the specified properties. + * @param [properties] Properties to set + * @returns LiveAgentHandoff instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff; - /** ListPagesResponse pages. */ - public pages: google.cloud.dialogflow.cx.v3beta1.IPage[]; + /** + * Encodes the specified LiveAgentHandoff message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.verify|verify} messages. + * @param message LiveAgentHandoff message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff, writer?: $protobuf.Writer): $protobuf.Writer; - /** ListPagesResponse nextPageToken. */ - public nextPageToken: string; + /** + * Encodes the specified LiveAgentHandoff message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.verify|verify} messages. + * @param message LiveAgentHandoff message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new ListPagesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListPagesResponse instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListPagesResponse): google.cloud.dialogflow.cx.v3beta1.ListPagesResponse; + /** + * Decodes a LiveAgentHandoff message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LiveAgentHandoff + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff; - /** - * Encodes the specified ListPagesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesResponse.verify|verify} messages. - * @param message ListPagesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListPagesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a LiveAgentHandoff message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LiveAgentHandoff + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff; - /** - * Encodes the specified ListPagesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesResponse.verify|verify} messages. - * @param message ListPagesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListPagesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a LiveAgentHandoff message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes a ListPagesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListPagesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListPagesResponse; + /** + * Creates a LiveAgentHandoff message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LiveAgentHandoff + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff; - /** - * Decodes a ListPagesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListPagesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListPagesResponse; + /** + * Creates a plain object from a LiveAgentHandoff message. Also converts values to other types if specified. + * @param message LiveAgentHandoff + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Verifies a ListPagesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Converts this LiveAgentHandoff to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Creates a ListPagesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListPagesResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListPagesResponse; + /** Properties of a ConversationSuccess. */ + interface IConversationSuccess { - /** - * Creates a plain object from a ListPagesResponse message. Also converts values to other types if specified. - * @param message ListPagesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListPagesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ConversationSuccess metadata */ + metadata?: (google.protobuf.IStruct|null); + } - /** - * Converts this ListPagesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Represents a ConversationSuccess. */ + class ConversationSuccess implements IConversationSuccess { - /** Properties of a GetPageRequest. */ - interface IGetPageRequest { + /** + * Constructs a new ConversationSuccess. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess); - /** GetPageRequest name */ - name?: (string|null); + /** ConversationSuccess metadata. */ + public metadata?: (google.protobuf.IStruct|null); - /** GetPageRequest languageCode */ - languageCode?: (string|null); - } + /** + * Creates a new ConversationSuccess instance using the specified properties. + * @param [properties] Properties to set + * @returns ConversationSuccess instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess; - /** Represents a GetPageRequest. */ - class GetPageRequest implements IGetPageRequest { + /** + * Encodes the specified ConversationSuccess message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.verify|verify} messages. + * @param message ConversationSuccess message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new GetPageRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest); - - /** GetPageRequest name. */ - public name: string; - - /** GetPageRequest languageCode. */ - public languageCode: string; - - /** - * Creates a new GetPageRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetPageRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest): google.cloud.dialogflow.cx.v3beta1.GetPageRequest; - - /** - * Encodes the specified GetPageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetPageRequest.verify|verify} messages. - * @param message GetPageRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetPageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetPageRequest.verify|verify} messages. - * @param message GetPageRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetPageRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetPageRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetPageRequest; - - /** - * Decodes a GetPageRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetPageRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetPageRequest; - - /** - * Verifies a GetPageRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetPageRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetPageRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetPageRequest; - - /** - * Creates a plain object from a GetPageRequest message. Also converts values to other types if specified. - * @param message GetPageRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetPageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetPageRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a CreatePageRequest. */ - interface ICreatePageRequest { - - /** CreatePageRequest parent */ - parent?: (string|null); - - /** CreatePageRequest page */ - page?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); - - /** CreatePageRequest languageCode */ - languageCode?: (string|null); - } - - /** Represents a CreatePageRequest. */ - class CreatePageRequest implements ICreatePageRequest { - - /** - * Constructs a new CreatePageRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest); - - /** CreatePageRequest parent. */ - public parent: string; - - /** CreatePageRequest page. */ - public page?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); - - /** CreatePageRequest languageCode. */ - public languageCode: string; - - /** - * Creates a new CreatePageRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreatePageRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest): google.cloud.dialogflow.cx.v3beta1.CreatePageRequest; - - /** - * Encodes the specified CreatePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreatePageRequest.verify|verify} messages. - * @param message CreatePageRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CreatePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreatePageRequest.verify|verify} messages. - * @param message CreatePageRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreatePageRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreatePageRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreatePageRequest; - - /** - * Decodes a CreatePageRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreatePageRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreatePageRequest; - - /** - * Verifies a CreatePageRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CreatePageRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreatePageRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreatePageRequest; - - /** - * Creates a plain object from a CreatePageRequest message. Also converts values to other types if specified. - * @param message CreatePageRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreatePageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CreatePageRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an UpdatePageRequest. */ - interface IUpdatePageRequest { - - /** UpdatePageRequest page */ - page?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); - - /** UpdatePageRequest languageCode */ - languageCode?: (string|null); - - /** UpdatePageRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); - } - - /** Represents an UpdatePageRequest. */ - class UpdatePageRequest implements IUpdatePageRequest { - - /** - * Constructs a new UpdatePageRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest); - - /** UpdatePageRequest page. */ - public page?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); - - /** UpdatePageRequest languageCode. */ - public languageCode: string; - - /** UpdatePageRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); - - /** - * Creates a new UpdatePageRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdatePageRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest): google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest; - - /** - * Encodes the specified UpdatePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest.verify|verify} messages. - * @param message UpdatePageRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UpdatePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest.verify|verify} messages. - * @param message UpdatePageRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UpdatePageRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdatePageRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest; - - /** - * Decodes an UpdatePageRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdatePageRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest; - - /** - * Verifies an UpdatePageRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an UpdatePageRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdatePageRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest; - - /** - * Creates a plain object from an UpdatePageRequest message. Also converts values to other types if specified. - * @param message UpdatePageRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UpdatePageRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a DeletePageRequest. */ - interface IDeletePageRequest { - - /** DeletePageRequest name */ - name?: (string|null); - - /** DeletePageRequest force */ - force?: (boolean|null); - } - - /** Represents a DeletePageRequest. */ - class DeletePageRequest implements IDeletePageRequest { - - /** - * Constructs a new DeletePageRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest); - - /** DeletePageRequest name. */ - public name: string; - - /** DeletePageRequest force. */ - public force: boolean; - - /** - * Creates a new DeletePageRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeletePageRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest): google.cloud.dialogflow.cx.v3beta1.DeletePageRequest; - - /** - * Encodes the specified DeletePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeletePageRequest.verify|verify} messages. - * @param message DeletePageRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeletePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeletePageRequest.verify|verify} messages. - * @param message DeletePageRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeletePageRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeletePageRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeletePageRequest; - - /** - * Decodes a DeletePageRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeletePageRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeletePageRequest; - - /** - * Verifies a DeletePageRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DeletePageRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeletePageRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeletePageRequest; - - /** - * Creates a plain object from a DeletePageRequest message. Also converts values to other types if specified. - * @param message DeletePageRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeletePageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeletePageRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a Fulfillment. */ - interface IFulfillment { - - /** Fulfillment messages */ - messages?: (google.cloud.dialogflow.cx.v3beta1.IResponseMessage[]|null); - - /** Fulfillment webhook */ - webhook?: (string|null); - - /** Fulfillment tag */ - tag?: (string|null); - - /** Fulfillment setParameterActions */ - setParameterActions?: (google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction[]|null); - - /** Fulfillment conditionalCases */ - conditionalCases?: (google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases[]|null); - } - - /** Represents a Fulfillment. */ - class Fulfillment implements IFulfillment { - - /** - * Constructs a new Fulfillment. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IFulfillment); - - /** Fulfillment messages. */ - public messages: google.cloud.dialogflow.cx.v3beta1.IResponseMessage[]; - - /** Fulfillment webhook. */ - public webhook: string; - - /** Fulfillment tag. */ - public tag: string; - - /** Fulfillment setParameterActions. */ - public setParameterActions: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction[]; - - /** Fulfillment conditionalCases. */ - public conditionalCases: google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases[]; - - /** - * Creates a new Fulfillment instance using the specified properties. - * @param [properties] Properties to set - * @returns Fulfillment instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IFulfillment): google.cloud.dialogflow.cx.v3beta1.Fulfillment; - - /** - * Encodes the specified Fulfillment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify|verify} messages. - * @param message Fulfillment message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IFulfillment, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Fulfillment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify|verify} messages. - * @param message Fulfillment message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IFulfillment, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Fulfillment message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Fulfillment - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Fulfillment; - - /** - * Decodes a Fulfillment message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Fulfillment - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Fulfillment; - - /** - * Verifies a Fulfillment message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Fulfillment message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Fulfillment - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Fulfillment; - - /** - * Creates a plain object from a Fulfillment message. Also converts values to other types if specified. - * @param message Fulfillment - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Fulfillment to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace Fulfillment { - - /** Properties of a SetParameterAction. */ - interface ISetParameterAction { - - /** SetParameterAction parameter */ - parameter?: (string|null); - - /** SetParameterAction value */ - value?: (google.protobuf.IValue|null); - } - - /** Represents a SetParameterAction. */ - class SetParameterAction implements ISetParameterAction { - - /** - * Constructs a new SetParameterAction. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction); - - /** SetParameterAction parameter. */ - public parameter: string; - - /** SetParameterAction value. */ - public value?: (google.protobuf.IValue|null); - - /** - * Creates a new SetParameterAction instance using the specified properties. - * @param [properties] Properties to set - * @returns SetParameterAction instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction): google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction; - - /** - * Encodes the specified SetParameterAction message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.verify|verify} messages. - * @param message SetParameterAction message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SetParameterAction message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.verify|verify} messages. - * @param message SetParameterAction message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SetParameterAction message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SetParameterAction - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction; - - /** - * Decodes a SetParameterAction message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SetParameterAction - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction; - - /** - * Verifies a SetParameterAction message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SetParameterAction message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SetParameterAction - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction; - - /** - * Creates a plain object from a SetParameterAction message. Also converts values to other types if specified. - * @param message SetParameterAction - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SetParameterAction to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ConditionalCases. */ - interface IConditionalCases { - - /** ConditionalCases cases */ - cases?: (google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase[]|null); - } - - /** Represents a ConditionalCases. */ - class ConditionalCases implements IConditionalCases { - - /** - * Constructs a new ConditionalCases. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases); - - /** ConditionalCases cases. */ - public cases: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase[]; - - /** - * Creates a new ConditionalCases instance using the specified properties. - * @param [properties] Properties to set - * @returns ConditionalCases instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases; - - /** - * Encodes the specified ConditionalCases message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.verify|verify} messages. - * @param message ConditionalCases message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ConditionalCases message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.verify|verify} messages. - * @param message ConditionalCases message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ConditionalCases message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ConditionalCases - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases; - - /** - * Decodes a ConditionalCases message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ConditionalCases - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases; - - /** - * Verifies a ConditionalCases message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ConditionalCases message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ConditionalCases - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases; - - /** - * Creates a plain object from a ConditionalCases message. Also converts values to other types if specified. - * @param message ConditionalCases - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ConditionalCases to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace ConditionalCases { - - /** Properties of a Case. */ - interface ICase { - - /** Case condition */ - condition?: (string|null); - - /** Case caseContent */ - caseContent?: (google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent[]|null); - } - - /** Represents a Case. */ - class Case implements ICase { - - /** - * Constructs a new Case. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase); - - /** Case condition. */ - public condition: string; - - /** Case caseContent. */ - public caseContent: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent[]; - - /** - * Creates a new Case instance using the specified properties. - * @param [properties] Properties to set - * @returns Case instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case; - - /** - * Encodes the specified Case message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.verify|verify} messages. - * @param message Case message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Case message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.verify|verify} messages. - * @param message Case message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Case message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Case - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case; - - /** - * Decodes a Case message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Case - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case; - - /** - * Verifies a Case message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Case message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Case - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case; - - /** - * Creates a plain object from a Case message. Also converts values to other types if specified. - * @param message Case - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Case to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace Case { - - /** Properties of a CaseContent. */ - interface ICaseContent { - - /** CaseContent message */ - message?: (google.cloud.dialogflow.cx.v3beta1.IResponseMessage|null); - - /** CaseContent additionalCases */ - additionalCases?: (google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases|null); - } - - /** Represents a CaseContent. */ - class CaseContent implements ICaseContent { - - /** - * Constructs a new CaseContent. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent); - - /** CaseContent message. */ - public message?: (google.cloud.dialogflow.cx.v3beta1.IResponseMessage|null); - - /** CaseContent additionalCases. */ - public additionalCases?: (google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases|null); - - /** CaseContent casesOrMessage. */ - public casesOrMessage?: ("message"|"additionalCases"); - - /** - * Creates a new CaseContent instance using the specified properties. - * @param [properties] Properties to set - * @returns CaseContent instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent; - - /** - * Encodes the specified CaseContent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.verify|verify} messages. - * @param message CaseContent message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CaseContent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.verify|verify} messages. - * @param message CaseContent message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CaseContent message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CaseContent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent; - - /** - * Decodes a CaseContent message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CaseContent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent; - - /** - * Verifies a CaseContent message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CaseContent message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CaseContent - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent; - - /** - * Creates a plain object from a CaseContent message. Also converts values to other types if specified. - * @param message CaseContent - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CaseContent to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - } - } - - /** Properties of a ResponseMessage. */ - interface IResponseMessage { - - /** ResponseMessage text */ - text?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText|null); - - /** ResponseMessage payload */ - payload?: (google.protobuf.IStruct|null); - - /** ResponseMessage conversationSuccess */ - conversationSuccess?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess|null); - - /** ResponseMessage outputAudioText */ - outputAudioText?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText|null); - - /** ResponseMessage liveAgentHandoff */ - liveAgentHandoff?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff|null); - - /** ResponseMessage endInteraction */ - endInteraction?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction|null); - - /** ResponseMessage playAudio */ - playAudio?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio|null); - - /** ResponseMessage mixedAudio */ - mixedAudio?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio|null); - } - - /** Represents a ResponseMessage. */ - class ResponseMessage implements IResponseMessage { - - /** - * Constructs a new ResponseMessage. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IResponseMessage); - - /** ResponseMessage text. */ - public text?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText|null); - - /** ResponseMessage payload. */ - public payload?: (google.protobuf.IStruct|null); - - /** ResponseMessage conversationSuccess. */ - public conversationSuccess?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess|null); - - /** ResponseMessage outputAudioText. */ - public outputAudioText?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText|null); - - /** ResponseMessage liveAgentHandoff. */ - public liveAgentHandoff?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff|null); - - /** ResponseMessage endInteraction. */ - public endInteraction?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction|null); - - /** ResponseMessage playAudio. */ - public playAudio?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio|null); - - /** ResponseMessage mixedAudio. */ - public mixedAudio?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio|null); - - /** ResponseMessage message. */ - public message?: ("text"|"payload"|"conversationSuccess"|"outputAudioText"|"liveAgentHandoff"|"endInteraction"|"playAudio"|"mixedAudio"); - - /** - * Creates a new ResponseMessage instance using the specified properties. - * @param [properties] Properties to set - * @returns ResponseMessage instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IResponseMessage): google.cloud.dialogflow.cx.v3beta1.ResponseMessage; - - /** - * Encodes the specified ResponseMessage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.verify|verify} messages. - * @param message ResponseMessage message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IResponseMessage, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ResponseMessage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.verify|verify} messages. - * @param message ResponseMessage message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IResponseMessage, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ResponseMessage message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ResponseMessage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ResponseMessage; - - /** - * Decodes a ResponseMessage message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ResponseMessage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ResponseMessage; - - /** - * Verifies a ResponseMessage message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ResponseMessage message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ResponseMessage - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResponseMessage; - - /** - * Creates a plain object from a ResponseMessage message. Also converts values to other types if specified. - * @param message ResponseMessage - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ResponseMessage to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace ResponseMessage { - - /** Properties of a Text. */ - interface IText { - - /** Text text */ - text?: (string[]|null); - - /** Text allowPlaybackInterruption */ - allowPlaybackInterruption?: (boolean|null); - } - - /** Represents a Text. */ - class Text implements IText { - - /** - * Constructs a new Text. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText); - - /** Text text. */ - public text: string[]; - - /** Text allowPlaybackInterruption. */ - public allowPlaybackInterruption: boolean; - - /** - * Creates a new Text instance using the specified properties. - * @param [properties] Properties to set - * @returns Text instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text; - - /** - * Encodes the specified Text message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.verify|verify} messages. - * @param message Text message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Text message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.verify|verify} messages. - * @param message Text message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Text message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Text - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text; - - /** - * Decodes a Text message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Text - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text; - - /** - * Verifies a Text message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Text message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Text - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text; - - /** - * Creates a plain object from a Text message. Also converts values to other types if specified. - * @param message Text - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Text to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a LiveAgentHandoff. */ - interface ILiveAgentHandoff { - - /** LiveAgentHandoff metadata */ - metadata?: (google.protobuf.IStruct|null); - } - - /** Represents a LiveAgentHandoff. */ - class LiveAgentHandoff implements ILiveAgentHandoff { - - /** - * Constructs a new LiveAgentHandoff. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff); - - /** LiveAgentHandoff metadata. */ - public metadata?: (google.protobuf.IStruct|null); - - /** - * Creates a new LiveAgentHandoff instance using the specified properties. - * @param [properties] Properties to set - * @returns LiveAgentHandoff instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff; - - /** - * Encodes the specified LiveAgentHandoff message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.verify|verify} messages. - * @param message LiveAgentHandoff message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified LiveAgentHandoff message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.verify|verify} messages. - * @param message LiveAgentHandoff message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LiveAgentHandoff message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LiveAgentHandoff - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff; - - /** - * Decodes a LiveAgentHandoff message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LiveAgentHandoff - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff; - - /** - * Verifies a LiveAgentHandoff message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a LiveAgentHandoff message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns LiveAgentHandoff - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff; - - /** - * Creates a plain object from a LiveAgentHandoff message. Also converts values to other types if specified. - * @param message LiveAgentHandoff - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this LiveAgentHandoff to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ConversationSuccess. */ - interface IConversationSuccess { - - /** ConversationSuccess metadata */ - metadata?: (google.protobuf.IStruct|null); - } - - /** Represents a ConversationSuccess. */ - class ConversationSuccess implements IConversationSuccess { - - /** - * Constructs a new ConversationSuccess. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess); - - /** ConversationSuccess metadata. */ - public metadata?: (google.protobuf.IStruct|null); - - /** - * Creates a new ConversationSuccess instance using the specified properties. - * @param [properties] Properties to set - * @returns ConversationSuccess instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess; - - /** - * Encodes the specified ConversationSuccess message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.verify|verify} messages. - * @param message ConversationSuccess message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ConversationSuccess message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.verify|verify} messages. - * @param message ConversationSuccess message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ConversationSuccess message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.verify|verify} messages. + * @param message ConversationSuccess message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ConversationSuccess message from the specified reader or buffer. @@ -32998,6097 +33036,6154 @@ export namespace google { pageToken?: (string|null); } - /** Represents a ListEnvironmentsRequest. */ - class ListEnvironmentsRequest implements IListEnvironmentsRequest { + /** Represents a ListEnvironmentsRequest. */ + class ListEnvironmentsRequest implements IListEnvironmentsRequest { + + /** + * Constructs a new ListEnvironmentsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest); + + /** ListEnvironmentsRequest parent. */ + public parent: string; + + /** ListEnvironmentsRequest pageSize. */ + public pageSize: number; + + /** ListEnvironmentsRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListEnvironmentsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListEnvironmentsRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest; + + /** + * Encodes the specified ListEnvironmentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest.verify|verify} messages. + * @param message ListEnvironmentsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListEnvironmentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest.verify|verify} messages. + * @param message ListEnvironmentsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListEnvironmentsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListEnvironmentsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest; + + /** + * Decodes a ListEnvironmentsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListEnvironmentsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest; + + /** + * Verifies a ListEnvironmentsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListEnvironmentsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListEnvironmentsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest; + + /** + * Creates a plain object from a ListEnvironmentsRequest message. Also converts values to other types if specified. + * @param message ListEnvironmentsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListEnvironmentsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListEnvironmentsResponse. */ + interface IListEnvironmentsResponse { + + /** ListEnvironmentsResponse environments */ + environments?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment[]|null); + + /** ListEnvironmentsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListEnvironmentsResponse. */ + class ListEnvironmentsResponse implements IListEnvironmentsResponse { + + /** + * Constructs a new ListEnvironmentsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse); + + /** ListEnvironmentsResponse environments. */ + public environments: google.cloud.dialogflow.cx.v3beta1.IEnvironment[]; + + /** ListEnvironmentsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListEnvironmentsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListEnvironmentsResponse instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse; + + /** + * Encodes the specified ListEnvironmentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse.verify|verify} messages. + * @param message ListEnvironmentsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListEnvironmentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse.verify|verify} messages. + * @param message ListEnvironmentsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListEnvironmentsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListEnvironmentsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse; + + /** + * Decodes a ListEnvironmentsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListEnvironmentsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse; + + /** + * Verifies a ListEnvironmentsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListEnvironmentsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListEnvironmentsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse; + + /** + * Creates a plain object from a ListEnvironmentsResponse message. Also converts values to other types if specified. + * @param message ListEnvironmentsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListEnvironmentsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetEnvironmentRequest. */ + interface IGetEnvironmentRequest { + + /** GetEnvironmentRequest name */ + name?: (string|null); + } + + /** Represents a GetEnvironmentRequest. */ + class GetEnvironmentRequest implements IGetEnvironmentRequest { + + /** + * Constructs a new GetEnvironmentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest); + + /** GetEnvironmentRequest name. */ + public name: string; + + /** + * Creates a new GetEnvironmentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetEnvironmentRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest): google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest; + + /** + * Encodes the specified GetEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest.verify|verify} messages. + * @param message GetEnvironmentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest.verify|verify} messages. + * @param message GetEnvironmentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetEnvironmentRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetEnvironmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest; + + /** + * Decodes a GetEnvironmentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetEnvironmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest; + + /** + * Verifies a GetEnvironmentRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetEnvironmentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest; + + /** + * Creates a plain object from a GetEnvironmentRequest message. Also converts values to other types if specified. + * @param message GetEnvironmentRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetEnvironmentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CreateEnvironmentRequest. */ + interface ICreateEnvironmentRequest { + + /** CreateEnvironmentRequest parent */ + parent?: (string|null); + + /** CreateEnvironmentRequest environment */ + environment?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment|null); + } + + /** Represents a CreateEnvironmentRequest. */ + class CreateEnvironmentRequest implements ICreateEnvironmentRequest { + + /** + * Constructs a new CreateEnvironmentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest); + + /** CreateEnvironmentRequest parent. */ + public parent: string; + + /** CreateEnvironmentRequest environment. */ + public environment?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment|null); + + /** + * Creates a new CreateEnvironmentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateEnvironmentRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest): google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest; + + /** + * Encodes the specified CreateEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest.verify|verify} messages. + * @param message CreateEnvironmentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest.verify|verify} messages. + * @param message CreateEnvironmentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateEnvironmentRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateEnvironmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest; + + /** + * Decodes a CreateEnvironmentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateEnvironmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest; + + /** + * Verifies a CreateEnvironmentRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateEnvironmentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest; + + /** + * Creates a plain object from a CreateEnvironmentRequest message. Also converts values to other types if specified. + * @param message CreateEnvironmentRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateEnvironmentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an UpdateEnvironmentRequest. */ + interface IUpdateEnvironmentRequest { + + /** UpdateEnvironmentRequest environment */ + environment?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment|null); + + /** UpdateEnvironmentRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateEnvironmentRequest. */ + class UpdateEnvironmentRequest implements IUpdateEnvironmentRequest { + + /** + * Constructs a new UpdateEnvironmentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest); + + /** UpdateEnvironmentRequest environment. */ + public environment?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment|null); + + /** UpdateEnvironmentRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new UpdateEnvironmentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateEnvironmentRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest): google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest; + + /** + * Encodes the specified UpdateEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest.verify|verify} messages. + * @param message UpdateEnvironmentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest.verify|verify} messages. + * @param message UpdateEnvironmentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateEnvironmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest; + + /** + * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateEnvironmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest; + + /** + * Verifies an UpdateEnvironmentRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UpdateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateEnvironmentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest; + + /** + * Creates a plain object from an UpdateEnvironmentRequest message. Also converts values to other types if specified. + * @param message UpdateEnvironmentRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateEnvironmentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DeleteEnvironmentRequest. */ + interface IDeleteEnvironmentRequest { + + /** DeleteEnvironmentRequest name */ + name?: (string|null); + } + + /** Represents a DeleteEnvironmentRequest. */ + class DeleteEnvironmentRequest implements IDeleteEnvironmentRequest { /** - * Constructs a new ListEnvironmentsRequest. + * Constructs a new DeleteEnvironmentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest); - - /** ListEnvironmentsRequest parent. */ - public parent: string; - - /** ListEnvironmentsRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest); - /** ListEnvironmentsRequest pageToken. */ - public pageToken: string; + /** DeleteEnvironmentRequest name. */ + public name: string; /** - * Creates a new ListEnvironmentsRequest instance using the specified properties. + * Creates a new DeleteEnvironmentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListEnvironmentsRequest instance + * @returns DeleteEnvironmentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest): google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest; /** - * Encodes the specified ListEnvironmentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest.verify|verify} messages. - * @param message ListEnvironmentsRequest message or plain object to encode + * Encodes the specified DeleteEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest.verify|verify} messages. + * @param message DeleteEnvironmentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListEnvironmentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest.verify|verify} messages. - * @param message ListEnvironmentsRequest message or plain object to encode + * Encodes the specified DeleteEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest.verify|verify} messages. + * @param message DeleteEnvironmentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListEnvironmentsRequest message from the specified reader or buffer. + * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListEnvironmentsRequest + * @returns DeleteEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest; /** - * Decodes a ListEnvironmentsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListEnvironmentsRequest + * @returns DeleteEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest; /** - * Verifies a ListEnvironmentsRequest message. + * Verifies a DeleteEnvironmentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListEnvironmentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteEnvironmentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListEnvironmentsRequest + * @returns DeleteEnvironmentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest; /** - * Creates a plain object from a ListEnvironmentsRequest message. Also converts values to other types if specified. - * @param message ListEnvironmentsRequest + * Creates a plain object from a DeleteEnvironmentRequest message. Also converts values to other types if specified. + * @param message DeleteEnvironmentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListEnvironmentsRequest to JSON. + * Converts this DeleteEnvironmentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListEnvironmentsResponse. */ - interface IListEnvironmentsResponse { + /** Properties of a LookupEnvironmentHistoryRequest. */ + interface ILookupEnvironmentHistoryRequest { - /** ListEnvironmentsResponse environments */ - environments?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment[]|null); + /** LookupEnvironmentHistoryRequest name */ + name?: (string|null); - /** ListEnvironmentsResponse nextPageToken */ - nextPageToken?: (string|null); + /** LookupEnvironmentHistoryRequest pageSize */ + pageSize?: (number|null); + + /** LookupEnvironmentHistoryRequest pageToken */ + pageToken?: (string|null); } - /** Represents a ListEnvironmentsResponse. */ - class ListEnvironmentsResponse implements IListEnvironmentsResponse { + /** Represents a LookupEnvironmentHistoryRequest. */ + class LookupEnvironmentHistoryRequest implements ILookupEnvironmentHistoryRequest { /** - * Constructs a new ListEnvironmentsResponse. + * Constructs a new LookupEnvironmentHistoryRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest); - /** ListEnvironmentsResponse environments. */ - public environments: google.cloud.dialogflow.cx.v3beta1.IEnvironment[]; + /** LookupEnvironmentHistoryRequest name. */ + public name: string; - /** ListEnvironmentsResponse nextPageToken. */ - public nextPageToken: string; + /** LookupEnvironmentHistoryRequest pageSize. */ + public pageSize: number; + + /** LookupEnvironmentHistoryRequest pageToken. */ + public pageToken: string; /** - * Creates a new ListEnvironmentsResponse instance using the specified properties. + * Creates a new LookupEnvironmentHistoryRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListEnvironmentsResponse instance + * @returns LookupEnvironmentHistoryRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest; /** - * Encodes the specified ListEnvironmentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse.verify|verify} messages. - * @param message ListEnvironmentsResponse message or plain object to encode + * Encodes the specified LookupEnvironmentHistoryRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest.verify|verify} messages. + * @param message LookupEnvironmentHistoryRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListEnvironmentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse.verify|verify} messages. - * @param message ListEnvironmentsResponse message or plain object to encode + * Encodes the specified LookupEnvironmentHistoryRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest.verify|verify} messages. + * @param message LookupEnvironmentHistoryRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListEnvironmentsResponse message from the specified reader or buffer. + * Decodes a LookupEnvironmentHistoryRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListEnvironmentsResponse + * @returns LookupEnvironmentHistoryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest; /** - * Decodes a ListEnvironmentsResponse message from the specified reader or buffer, length delimited. + * Decodes a LookupEnvironmentHistoryRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListEnvironmentsResponse + * @returns LookupEnvironmentHistoryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest; /** - * Verifies a ListEnvironmentsResponse message. + * Verifies a LookupEnvironmentHistoryRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListEnvironmentsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a LookupEnvironmentHistoryRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListEnvironmentsResponse + * @returns LookupEnvironmentHistoryRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest; /** - * Creates a plain object from a ListEnvironmentsResponse message. Also converts values to other types if specified. - * @param message ListEnvironmentsResponse + * Creates a plain object from a LookupEnvironmentHistoryRequest message. Also converts values to other types if specified. + * @param message LookupEnvironmentHistoryRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListEnvironmentsResponse to JSON. + * Converts this LookupEnvironmentHistoryRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetEnvironmentRequest. */ - interface IGetEnvironmentRequest { + /** Properties of a LookupEnvironmentHistoryResponse. */ + interface ILookupEnvironmentHistoryResponse { - /** GetEnvironmentRequest name */ - name?: (string|null); + /** LookupEnvironmentHistoryResponse environments */ + environments?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment[]|null); + + /** LookupEnvironmentHistoryResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a GetEnvironmentRequest. */ - class GetEnvironmentRequest implements IGetEnvironmentRequest { + /** Represents a LookupEnvironmentHistoryResponse. */ + class LookupEnvironmentHistoryResponse implements ILookupEnvironmentHistoryResponse { /** - * Constructs a new GetEnvironmentRequest. + * Constructs a new LookupEnvironmentHistoryResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse); - /** GetEnvironmentRequest name. */ - public name: string; + /** LookupEnvironmentHistoryResponse environments. */ + public environments: google.cloud.dialogflow.cx.v3beta1.IEnvironment[]; + + /** LookupEnvironmentHistoryResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new GetEnvironmentRequest instance using the specified properties. + * Creates a new LookupEnvironmentHistoryResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetEnvironmentRequest instance + * @returns LookupEnvironmentHistoryResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest): google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse; /** - * Encodes the specified GetEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest.verify|verify} messages. - * @param message GetEnvironmentRequest message or plain object to encode + * Encodes the specified LookupEnvironmentHistoryResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse.verify|verify} messages. + * @param message LookupEnvironmentHistoryResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest.verify|verify} messages. - * @param message GetEnvironmentRequest message or plain object to encode + * Encodes the specified LookupEnvironmentHistoryResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse.verify|verify} messages. + * @param message LookupEnvironmentHistoryResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetEnvironmentRequest message from the specified reader or buffer. + * Decodes a LookupEnvironmentHistoryResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetEnvironmentRequest + * @returns LookupEnvironmentHistoryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse; /** - * Decodes a GetEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes a LookupEnvironmentHistoryResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetEnvironmentRequest + * @returns LookupEnvironmentHistoryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse; /** - * Verifies a GetEnvironmentRequest message. + * Verifies a LookupEnvironmentHistoryResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a LookupEnvironmentHistoryResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetEnvironmentRequest + * @returns LookupEnvironmentHistoryResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse; /** - * Creates a plain object from a GetEnvironmentRequest message. Also converts values to other types if specified. - * @param message GetEnvironmentRequest + * Creates a plain object from a LookupEnvironmentHistoryResponse message. Also converts values to other types if specified. + * @param message LookupEnvironmentHistoryResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetEnvironmentRequest to JSON. + * Converts this LookupEnvironmentHistoryResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateEnvironmentRequest. */ - interface ICreateEnvironmentRequest { + /** Represents a TestCases */ + class TestCases extends $protobuf.rpc.Service { - /** CreateEnvironmentRequest parent */ - parent?: (string|null); + /** + * Constructs a new TestCases service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** CreateEnvironmentRequest environment */ - environment?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment|null); - } + /** + * Creates new TestCases service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): TestCases; - /** Represents a CreateEnvironmentRequest. */ - class CreateEnvironmentRequest implements ICreateEnvironmentRequest { + /** + * Calls ListTestCases. + * @param request ListTestCasesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListTestCasesResponse + */ + public listTestCases(request: google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.ListTestCasesCallback): void; /** - * Constructs a new CreateEnvironmentRequest. - * @param [properties] Properties to set + * Calls ListTestCases. + * @param request ListTestCasesRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest); + public listTestCases(request: google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest): Promise; - /** CreateEnvironmentRequest parent. */ - public parent: string; + /** + * Calls BatchDeleteTestCases. + * @param request BatchDeleteTestCasesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public batchDeleteTestCases(request: google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.BatchDeleteTestCasesCallback): void; - /** CreateEnvironmentRequest environment. */ - public environment?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment|null); + /** + * Calls BatchDeleteTestCases. + * @param request BatchDeleteTestCasesRequest message or plain object + * @returns Promise + */ + public batchDeleteTestCases(request: google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest): Promise; /** - * Creates a new CreateEnvironmentRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateEnvironmentRequest instance + * Calls GetTestCase. + * @param request GetTestCaseRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestCase */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest): google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest; + public getTestCase(request: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.GetTestCaseCallback): void; /** - * Encodes the specified CreateEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest.verify|verify} messages. - * @param message CreateEnvironmentRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls GetTestCase. + * @param request GetTestCaseRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public getTestCase(request: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest): Promise; /** - * Encodes the specified CreateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest.verify|verify} messages. - * @param message CreateEnvironmentRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CreateTestCase. + * @param request CreateTestCaseRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestCase */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public createTestCase(request: google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.CreateTestCaseCallback): void; /** - * Decodes a CreateEnvironmentRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateEnvironmentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateTestCase. + * @param request CreateTestCaseRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest; + public createTestCase(request: google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest): Promise; /** - * Decodes a CreateEnvironmentRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateEnvironmentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls UpdateTestCase. + * @param request UpdateTestCaseRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestCase */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest; + public updateTestCase(request: google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.UpdateTestCaseCallback): void; /** - * Verifies a CreateEnvironmentRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls UpdateTestCase. + * @param request UpdateTestCaseRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public updateTestCase(request: google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest): Promise; /** - * Creates a CreateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateEnvironmentRequest + * Calls RunTestCase. + * @param request RunTestCaseRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest; + public runTestCase(request: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.RunTestCaseCallback): void; /** - * Creates a plain object from a CreateEnvironmentRequest message. Also converts values to other types if specified. - * @param message CreateEnvironmentRequest - * @param [options] Conversion options - * @returns Plain object + * Calls RunTestCase. + * @param request RunTestCaseRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public runTestCase(request: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest): Promise; /** - * Converts this CreateEnvironmentRequest to JSON. - * @returns JSON object + * Calls BatchRunTestCases. + * @param request BatchRunTestCasesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public toJSON(): { [k: string]: any }; - } + public batchRunTestCases(request: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.BatchRunTestCasesCallback): void; - /** Properties of an UpdateEnvironmentRequest. */ - interface IUpdateEnvironmentRequest { + /** + * Calls BatchRunTestCases. + * @param request BatchRunTestCasesRequest message or plain object + * @returns Promise + */ + public batchRunTestCases(request: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest): Promise; - /** UpdateEnvironmentRequest environment */ - environment?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment|null); + /** + * Calls CalculateCoverage. + * @param request CalculateCoverageRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CalculateCoverageResponse + */ + public calculateCoverage(request: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.CalculateCoverageCallback): void; - /** UpdateEnvironmentRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); - } + /** + * Calls CalculateCoverage. + * @param request CalculateCoverageRequest message or plain object + * @returns Promise + */ + public calculateCoverage(request: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest): Promise; - /** Represents an UpdateEnvironmentRequest. */ - class UpdateEnvironmentRequest implements IUpdateEnvironmentRequest { + /** + * Calls ImportTestCases. + * @param request ImportTestCasesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public importTestCases(request: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.ImportTestCasesCallback): void; /** - * Constructs a new UpdateEnvironmentRequest. - * @param [properties] Properties to set + * Calls ImportTestCases. + * @param request ImportTestCasesRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest); + public importTestCases(request: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest): Promise; - /** UpdateEnvironmentRequest environment. */ - public environment?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment|null); + /** + * Calls ExportTestCases. + * @param request ExportTestCasesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public exportTestCases(request: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.ExportTestCasesCallback): void; - /** UpdateEnvironmentRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** + * Calls ExportTestCases. + * @param request ExportTestCasesRequest message or plain object + * @returns Promise + */ + public exportTestCases(request: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest): Promise; /** - * Creates a new UpdateEnvironmentRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateEnvironmentRequest instance + * Calls ListTestCaseResults. + * @param request ListTestCaseResultsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListTestCaseResultsResponse */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest): google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest; + public listTestCaseResults(request: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.ListTestCaseResultsCallback): void; /** - * Encodes the specified UpdateEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest.verify|verify} messages. - * @param message UpdateEnvironmentRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ListTestCaseResults. + * @param request ListTestCaseResultsRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public listTestCaseResults(request: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest): Promise; + } + + namespace TestCases { /** - * Encodes the specified UpdateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest.verify|verify} messages. - * @param message UpdateEnvironmentRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#listTestCases}. + * @param error Error, if any + * @param [response] ListTestCasesResponse */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type ListTestCasesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse) => void; /** - * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateEnvironmentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#batchDeleteTestCases}. + * @param error Error, if any + * @param [response] Empty */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest; + type BatchDeleteTestCasesCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateEnvironmentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#getTestCase}. + * @param error Error, if any + * @param [response] TestCase */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest; + type GetTestCaseCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TestCase) => void; /** - * Verifies an UpdateEnvironmentRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#createTestCase}. + * @param error Error, if any + * @param [response] TestCase */ - public static verify(message: { [k: string]: any }): (string|null); + type CreateTestCaseCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TestCase) => void; /** - * Creates an UpdateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateEnvironmentRequest + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#updateTestCase}. + * @param error Error, if any + * @param [response] TestCase */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest; + type UpdateTestCaseCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TestCase) => void; /** - * Creates a plain object from an UpdateEnvironmentRequest message. Also converts values to other types if specified. - * @param message UpdateEnvironmentRequest - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#runTestCase}. + * @param error Error, if any + * @param [response] Operation */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type RunTestCaseCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#batchRunTestCases}. + * @param error Error, if any + * @param [response] Operation + */ + type BatchRunTestCasesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#calculateCoverage}. + * @param error Error, if any + * @param [response] CalculateCoverageResponse + */ + type CalculateCoverageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#importTestCases}. + * @param error Error, if any + * @param [response] Operation + */ + type ImportTestCasesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#exportTestCases}. + * @param error Error, if any + * @param [response] Operation + */ + type ExportTestCasesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Converts this UpdateEnvironmentRequest to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#listTestCaseResults}. + * @param error Error, if any + * @param [response] ListTestCaseResultsResponse */ - public toJSON(): { [k: string]: any }; + type ListTestCaseResultsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse) => void; } - /** Properties of a DeleteEnvironmentRequest. */ - interface IDeleteEnvironmentRequest { + /** Properties of a TestCase. */ + interface ITestCase { - /** DeleteEnvironmentRequest name */ + /** TestCase name */ name?: (string|null); + + /** TestCase tags */ + tags?: (string[]|null); + + /** TestCase displayName */ + displayName?: (string|null); + + /** TestCase notes */ + notes?: (string|null); + + /** TestCase testConfig */ + testConfig?: (google.cloud.dialogflow.cx.v3beta1.ITestConfig|null); + + /** TestCase testCaseConversationTurns */ + testCaseConversationTurns?: (google.cloud.dialogflow.cx.v3beta1.IConversationTurn[]|null); + + /** TestCase creationTime */ + creationTime?: (google.protobuf.ITimestamp|null); + + /** TestCase lastTestResult */ + lastTestResult?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null); } - /** Represents a DeleteEnvironmentRequest. */ - class DeleteEnvironmentRequest implements IDeleteEnvironmentRequest { + /** Represents a TestCase. */ + class TestCase implements ITestCase { /** - * Constructs a new DeleteEnvironmentRequest. + * Constructs a new TestCase. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITestCase); - /** DeleteEnvironmentRequest name. */ + /** TestCase name. */ public name: string; + /** TestCase tags. */ + public tags: string[]; + + /** TestCase displayName. */ + public displayName: string; + + /** TestCase notes. */ + public notes: string; + + /** TestCase testConfig. */ + public testConfig?: (google.cloud.dialogflow.cx.v3beta1.ITestConfig|null); + + /** TestCase testCaseConversationTurns. */ + public testCaseConversationTurns: google.cloud.dialogflow.cx.v3beta1.IConversationTurn[]; + + /** TestCase creationTime. */ + public creationTime?: (google.protobuf.ITimestamp|null); + + /** TestCase lastTestResult. */ + public lastTestResult?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null); + /** - * Creates a new DeleteEnvironmentRequest instance using the specified properties. + * Creates a new TestCase instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteEnvironmentRequest instance + * @returns TestCase instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest): google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITestCase): google.cloud.dialogflow.cx.v3beta1.TestCase; /** - * Encodes the specified DeleteEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest.verify|verify} messages. - * @param message DeleteEnvironmentRequest message or plain object to encode + * Encodes the specified TestCase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCase.verify|verify} messages. + * @param message TestCase message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITestCase, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest.verify|verify} messages. - * @param message DeleteEnvironmentRequest message or plain object to encode + * Encodes the specified TestCase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCase.verify|verify} messages. + * @param message TestCase message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITestCase, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer. + * Decodes a TestCase message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteEnvironmentRequest + * @returns TestCase * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TestCase; /** - * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes a TestCase message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteEnvironmentRequest + * @returns TestCase * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TestCase; /** - * Verifies a DeleteEnvironmentRequest message. + * Verifies a TestCase message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestCase message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteEnvironmentRequest + * @returns TestCase */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TestCase; /** - * Creates a plain object from a DeleteEnvironmentRequest message. Also converts values to other types if specified. - * @param message DeleteEnvironmentRequest + * Creates a plain object from a TestCase message. Also converts values to other types if specified. + * @param message TestCase * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TestCase, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteEnvironmentRequest to JSON. + * Converts this TestCase to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a LookupEnvironmentHistoryRequest. */ - interface ILookupEnvironmentHistoryRequest { + /** Properties of a TestCaseResult. */ + interface ITestCaseResult { - /** LookupEnvironmentHistoryRequest name */ + /** TestCaseResult name */ name?: (string|null); - /** LookupEnvironmentHistoryRequest pageSize */ - pageSize?: (number|null); + /** TestCaseResult environment */ + environment?: (string|null); - /** LookupEnvironmentHistoryRequest pageToken */ - pageToken?: (string|null); + /** TestCaseResult conversationTurns */ + conversationTurns?: (google.cloud.dialogflow.cx.v3beta1.IConversationTurn[]|null); + + /** TestCaseResult testResult */ + testResult?: (google.cloud.dialogflow.cx.v3beta1.TestResult|keyof typeof google.cloud.dialogflow.cx.v3beta1.TestResult|null); + + /** TestCaseResult testTime */ + testTime?: (google.protobuf.ITimestamp|null); } - /** Represents a LookupEnvironmentHistoryRequest. */ - class LookupEnvironmentHistoryRequest implements ILookupEnvironmentHistoryRequest { + /** Represents a TestCaseResult. */ + class TestCaseResult implements ITestCaseResult { /** - * Constructs a new LookupEnvironmentHistoryRequest. + * Constructs a new TestCaseResult. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITestCaseResult); - /** LookupEnvironmentHistoryRequest name. */ + /** TestCaseResult name. */ public name: string; - /** LookupEnvironmentHistoryRequest pageSize. */ - public pageSize: number; + /** TestCaseResult environment. */ + public environment: string; - /** LookupEnvironmentHistoryRequest pageToken. */ - public pageToken: string; + /** TestCaseResult conversationTurns. */ + public conversationTurns: google.cloud.dialogflow.cx.v3beta1.IConversationTurn[]; + + /** TestCaseResult testResult. */ + public testResult: (google.cloud.dialogflow.cx.v3beta1.TestResult|keyof typeof google.cloud.dialogflow.cx.v3beta1.TestResult); + + /** TestCaseResult testTime. */ + public testTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new LookupEnvironmentHistoryRequest instance using the specified properties. + * Creates a new TestCaseResult instance using the specified properties. * @param [properties] Properties to set - * @returns LookupEnvironmentHistoryRequest instance + * @returns TestCaseResult instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITestCaseResult): google.cloud.dialogflow.cx.v3beta1.TestCaseResult; /** - * Encodes the specified LookupEnvironmentHistoryRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest.verify|verify} messages. - * @param message LookupEnvironmentHistoryRequest message or plain object to encode + * Encodes the specified TestCaseResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCaseResult.verify|verify} messages. + * @param message TestCaseResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITestCaseResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LookupEnvironmentHistoryRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest.verify|verify} messages. - * @param message LookupEnvironmentHistoryRequest message or plain object to encode + * Encodes the specified TestCaseResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCaseResult.verify|verify} messages. + * @param message TestCaseResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITestCaseResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LookupEnvironmentHistoryRequest message from the specified reader or buffer. + * Decodes a TestCaseResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns LookupEnvironmentHistoryRequest + * @returns TestCaseResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TestCaseResult; /** - * Decodes a LookupEnvironmentHistoryRequest message from the specified reader or buffer, length delimited. + * Decodes a TestCaseResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LookupEnvironmentHistoryRequest + * @returns TestCaseResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TestCaseResult; /** - * Verifies a LookupEnvironmentHistoryRequest message. + * Verifies a TestCaseResult message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a LookupEnvironmentHistoryRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestCaseResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LookupEnvironmentHistoryRequest + * @returns TestCaseResult */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TestCaseResult; /** - * Creates a plain object from a LookupEnvironmentHistoryRequest message. Also converts values to other types if specified. - * @param message LookupEnvironmentHistoryRequest + * Creates a plain object from a TestCaseResult message. Also converts values to other types if specified. + * @param message TestCaseResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TestCaseResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LookupEnvironmentHistoryRequest to JSON. + * Converts this TestCaseResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a LookupEnvironmentHistoryResponse. */ - interface ILookupEnvironmentHistoryResponse { + /** Properties of a TestConfig. */ + interface ITestConfig { - /** LookupEnvironmentHistoryResponse environments */ - environments?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment[]|null); + /** TestConfig trackingParameters */ + trackingParameters?: (string[]|null); - /** LookupEnvironmentHistoryResponse nextPageToken */ - nextPageToken?: (string|null); + /** TestConfig flow */ + flow?: (string|null); } - /** Represents a LookupEnvironmentHistoryResponse. */ - class LookupEnvironmentHistoryResponse implements ILookupEnvironmentHistoryResponse { + /** Represents a TestConfig. */ + class TestConfig implements ITestConfig { /** - * Constructs a new LookupEnvironmentHistoryResponse. + * Constructs a new TestConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITestConfig); - /** LookupEnvironmentHistoryResponse environments. */ - public environments: google.cloud.dialogflow.cx.v3beta1.IEnvironment[]; + /** TestConfig trackingParameters. */ + public trackingParameters: string[]; - /** LookupEnvironmentHistoryResponse nextPageToken. */ - public nextPageToken: string; + /** TestConfig flow. */ + public flow: string; /** - * Creates a new LookupEnvironmentHistoryResponse instance using the specified properties. + * Creates a new TestConfig instance using the specified properties. * @param [properties] Properties to set - * @returns LookupEnvironmentHistoryResponse instance + * @returns TestConfig instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITestConfig): google.cloud.dialogflow.cx.v3beta1.TestConfig; /** - * Encodes the specified LookupEnvironmentHistoryResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse.verify|verify} messages. - * @param message LookupEnvironmentHistoryResponse message or plain object to encode + * Encodes the specified TestConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestConfig.verify|verify} messages. + * @param message TestConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITestConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LookupEnvironmentHistoryResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse.verify|verify} messages. - * @param message LookupEnvironmentHistoryResponse message or plain object to encode + * Encodes the specified TestConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestConfig.verify|verify} messages. + * @param message TestConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITestConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LookupEnvironmentHistoryResponse message from the specified reader or buffer. + * Decodes a TestConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns LookupEnvironmentHistoryResponse + * @returns TestConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TestConfig; /** - * Decodes a LookupEnvironmentHistoryResponse message from the specified reader or buffer, length delimited. + * Decodes a TestConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LookupEnvironmentHistoryResponse + * @returns TestConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TestConfig; /** - * Verifies a LookupEnvironmentHistoryResponse message. + * Verifies a TestConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a LookupEnvironmentHistoryResponse message from a plain object. Also converts values to their respective internal types. + * Creates a TestConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LookupEnvironmentHistoryResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse; - - /** - * Creates a plain object from a LookupEnvironmentHistoryResponse message. Also converts values to other types if specified. - * @param message LookupEnvironmentHistoryResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this LookupEnvironmentHistoryResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Represents an Experiments */ - class Experiments extends $protobuf.rpc.Service { - - /** - * Constructs a new Experiments service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new Experiments service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Experiments; - - /** - * Calls ListExperiments. - * @param request ListExperimentsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListExperimentsResponse - */ - public listExperiments(request: google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Experiments.ListExperimentsCallback): void; - - /** - * Calls ListExperiments. - * @param request ListExperimentsRequest message or plain object - * @returns Promise - */ - public listExperiments(request: google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest): Promise; - - /** - * Calls GetExperiment. - * @param request GetExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Experiment - */ - public getExperiment(request: google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Experiments.GetExperimentCallback): void; - - /** - * Calls GetExperiment. - * @param request GetExperimentRequest message or plain object - * @returns Promise - */ - public getExperiment(request: google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest): Promise; - - /** - * Calls CreateExperiment. - * @param request CreateExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Experiment - */ - public createExperiment(request: google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Experiments.CreateExperimentCallback): void; - - /** - * Calls CreateExperiment. - * @param request CreateExperimentRequest message or plain object - * @returns Promise - */ - public createExperiment(request: google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest): Promise; - - /** - * Calls UpdateExperiment. - * @param request UpdateExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Experiment - */ - public updateExperiment(request: google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Experiments.UpdateExperimentCallback): void; - - /** - * Calls UpdateExperiment. - * @param request UpdateExperimentRequest message or plain object - * @returns Promise - */ - public updateExperiment(request: google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest): Promise; - - /** - * Calls DeleteExperiment. - * @param request DeleteExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public deleteExperiment(request: google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Experiments.DeleteExperimentCallback): void; - - /** - * Calls DeleteExperiment. - * @param request DeleteExperimentRequest message or plain object - * @returns Promise - */ - public deleteExperiment(request: google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest): Promise; - - /** - * Calls StartExperiment. - * @param request StartExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Experiment - */ - public startExperiment(request: google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Experiments.StartExperimentCallback): void; - - /** - * Calls StartExperiment. - * @param request StartExperimentRequest message or plain object - * @returns Promise - */ - public startExperiment(request: google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest): Promise; - - /** - * Calls StopExperiment. - * @param request StopExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Experiment - */ - public stopExperiment(request: google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Experiments.StopExperimentCallback): void; - - /** - * Calls StopExperiment. - * @param request StopExperimentRequest message or plain object - * @returns Promise - */ - public stopExperiment(request: google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest): Promise; - } - - namespace Experiments { - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#listExperiments}. - * @param error Error, if any - * @param [response] ListExperimentsResponse - */ - type ListExperimentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#getExperiment}. - * @param error Error, if any - * @param [response] Experiment - */ - type GetExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Experiment) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#createExperiment}. - * @param error Error, if any - * @param [response] Experiment - */ - type CreateExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Experiment) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#updateExperiment}. - * @param error Error, if any - * @param [response] Experiment - */ - type UpdateExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Experiment) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#deleteExperiment}. - * @param error Error, if any - * @param [response] Empty - */ - type DeleteExperimentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#startExperiment}. - * @param error Error, if any - * @param [response] Experiment - */ - type StartExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Experiment) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#stopExperiment}. - * @param error Error, if any - * @param [response] Experiment + * @returns TestConfig */ - type StopExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Experiment) => void; - } - - /** Properties of an Experiment. */ - interface IExperiment { - - /** Experiment name */ - name?: (string|null); - - /** Experiment displayName */ - displayName?: (string|null); - - /** Experiment description */ - description?: (string|null); - - /** Experiment state */ - state?: (google.cloud.dialogflow.cx.v3beta1.Experiment.State|keyof typeof google.cloud.dialogflow.cx.v3beta1.Experiment.State|null); - - /** Experiment definition */ - definition?: (google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition|null); - - /** Experiment result */ - result?: (google.cloud.dialogflow.cx.v3beta1.Experiment.IResult|null); - - /** Experiment createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** Experiment startTime */ - startTime?: (google.protobuf.ITimestamp|null); - - /** Experiment endTime */ - endTime?: (google.protobuf.ITimestamp|null); - - /** Experiment lastUpdateTime */ - lastUpdateTime?: (google.protobuf.ITimestamp|null); - - /** Experiment experimentLength */ - experimentLength?: (google.protobuf.IDuration|null); - - /** Experiment variantsHistory */ - variantsHistory?: (google.cloud.dialogflow.cx.v3beta1.IVariantsHistory[]|null); - } - - /** Represents an Experiment. */ - class Experiment implements IExperiment { + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TestConfig; /** - * Constructs a new Experiment. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExperiment); - - /** Experiment name. */ - public name: string; - - /** Experiment displayName. */ - public displayName: string; - - /** Experiment description. */ - public description: string; - - /** Experiment state. */ - public state: (google.cloud.dialogflow.cx.v3beta1.Experiment.State|keyof typeof google.cloud.dialogflow.cx.v3beta1.Experiment.State); + * Creates a plain object from a TestConfig message. Also converts values to other types if specified. + * @param message TestConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TestConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Experiment definition. */ - public definition?: (google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition|null); + /** + * Converts this TestConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Experiment result. */ - public result?: (google.cloud.dialogflow.cx.v3beta1.Experiment.IResult|null); + /** Properties of a ConversationTurn. */ + interface IConversationTurn { - /** Experiment createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** ConversationTurn userInput */ + userInput?: (google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput|null); - /** Experiment startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** ConversationTurn virtualAgentOutput */ + virtualAgentOutput?: (google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput|null); + } - /** Experiment endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** Represents a ConversationTurn. */ + class ConversationTurn implements IConversationTurn { - /** Experiment lastUpdateTime. */ - public lastUpdateTime?: (google.protobuf.ITimestamp|null); + /** + * Constructs a new ConversationTurn. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IConversationTurn); - /** Experiment experimentLength. */ - public experimentLength?: (google.protobuf.IDuration|null); + /** ConversationTurn userInput. */ + public userInput?: (google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput|null); - /** Experiment variantsHistory. */ - public variantsHistory: google.cloud.dialogflow.cx.v3beta1.IVariantsHistory[]; + /** ConversationTurn virtualAgentOutput. */ + public virtualAgentOutput?: (google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput|null); /** - * Creates a new Experiment instance using the specified properties. + * Creates a new ConversationTurn instance using the specified properties. * @param [properties] Properties to set - * @returns Experiment instance + * @returns ConversationTurn instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IExperiment): google.cloud.dialogflow.cx.v3beta1.Experiment; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IConversationTurn): google.cloud.dialogflow.cx.v3beta1.ConversationTurn; /** - * Encodes the specified Experiment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.verify|verify} messages. - * @param message Experiment message or plain object to encode + * Encodes the specified ConversationTurn message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.verify|verify} messages. + * @param message ConversationTurn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IExperiment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IConversationTurn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Experiment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.verify|verify} messages. - * @param message Experiment message or plain object to encode + * Encodes the specified ConversationTurn message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.verify|verify} messages. + * @param message ConversationTurn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IExperiment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IConversationTurn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Experiment message from the specified reader or buffer. + * Decodes a ConversationTurn message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Experiment + * @returns ConversationTurn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Experiment; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ConversationTurn; /** - * Decodes an Experiment message from the specified reader or buffer, length delimited. + * Decodes a ConversationTurn message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Experiment + * @returns ConversationTurn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Experiment; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ConversationTurn; /** - * Verifies an Experiment message. + * Verifies a ConversationTurn message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an Experiment message from a plain object. Also converts values to their respective internal types. + * Creates a ConversationTurn message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Experiment + * @returns ConversationTurn */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Experiment; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ConversationTurn; /** - * Creates a plain object from an Experiment message. Also converts values to other types if specified. - * @param message Experiment + * Creates a plain object from a ConversationTurn message. Also converts values to other types if specified. + * @param message ConversationTurn * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Experiment, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ConversationTurn, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Experiment to JSON. + * Converts this ConversationTurn to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Experiment { + namespace ConversationTurn { - /** Properties of a Definition. */ - interface IDefinition { + /** Properties of a UserInput. */ + interface IUserInput { - /** Definition condition */ - condition?: (string|null); + /** UserInput input */ + input?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); - /** Definition versionVariants */ - versionVariants?: (google.cloud.dialogflow.cx.v3beta1.IVersionVariants|null); + /** UserInput injectedParameters */ + injectedParameters?: (google.protobuf.IStruct|null); + + /** UserInput isWebhookEnabled */ + isWebhookEnabled?: (boolean|null); } - /** Represents a Definition. */ - class Definition implements IDefinition { + /** Represents a UserInput. */ + class UserInput implements IUserInput { /** - * Constructs a new Definition. + * Constructs a new UserInput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput); - /** Definition condition. */ - public condition: string; + /** UserInput input. */ + public input?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); - /** Definition versionVariants. */ - public versionVariants?: (google.cloud.dialogflow.cx.v3beta1.IVersionVariants|null); + /** UserInput injectedParameters. */ + public injectedParameters?: (google.protobuf.IStruct|null); - /** Definition variants. */ - public variants?: "versionVariants"; + /** UserInput isWebhookEnabled. */ + public isWebhookEnabled: boolean; /** - * Creates a new Definition instance using the specified properties. + * Creates a new UserInput instance using the specified properties. * @param [properties] Properties to set - * @returns Definition instance + * @returns UserInput instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition): google.cloud.dialogflow.cx.v3beta1.Experiment.Definition; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput): google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput; /** - * Encodes the specified Definition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.verify|verify} messages. - * @param message Definition message or plain object to encode + * Encodes the specified UserInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.verify|verify} messages. + * @param message UserInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Definition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.verify|verify} messages. - * @param message Definition message or plain object to encode + * Encodes the specified UserInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.verify|verify} messages. + * @param message UserInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Definition message from the specified reader or buffer. + * Decodes a UserInput message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Definition + * @returns UserInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Experiment.Definition; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput; /** - * Decodes a Definition message from the specified reader or buffer, length delimited. + * Decodes a UserInput message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Definition + * @returns UserInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Experiment.Definition; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput; /** - * Verifies a Definition message. + * Verifies a UserInput message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Definition message from a plain object. Also converts values to their respective internal types. + * Creates a UserInput message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Definition + * @returns UserInput */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Experiment.Definition; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput; /** - * Creates a plain object from a Definition message. Also converts values to other types if specified. - * @param message Definition + * Creates a plain object from a UserInput message. Also converts values to other types if specified. + * @param message UserInput * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Definition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Definition to JSON. + * Converts this UserInput to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Result. */ - interface IResult { + /** Properties of a VirtualAgentOutput. */ + interface IVirtualAgentOutput { - /** Result versionMetrics */ - versionMetrics?: (google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics[]|null); + /** VirtualAgentOutput sessionParameters */ + sessionParameters?: (google.protobuf.IStruct|null); - /** Result lastUpdateTime */ - lastUpdateTime?: (google.protobuf.ITimestamp|null); + /** VirtualAgentOutput differences */ + differences?: (google.cloud.dialogflow.cx.v3beta1.ITestRunDifference[]|null); + + /** VirtualAgentOutput diagnosticInfo */ + diagnosticInfo?: (google.protobuf.IStruct|null); + + /** VirtualAgentOutput triggeredIntent */ + triggeredIntent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); + + /** VirtualAgentOutput currentPage */ + currentPage?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + + /** VirtualAgentOutput textResponses */ + textResponses?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText[]|null); + + /** VirtualAgentOutput status */ + status?: (google.rpc.IStatus|null); } - /** Represents a Result. */ - class Result implements IResult { + /** Represents a VirtualAgentOutput. */ + class VirtualAgentOutput implements IVirtualAgentOutput { /** - * Constructs a new Result. + * Constructs a new VirtualAgentOutput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.IResult); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput); - /** Result versionMetrics. */ - public versionMetrics: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics[]; + /** VirtualAgentOutput sessionParameters. */ + public sessionParameters?: (google.protobuf.IStruct|null); - /** Result lastUpdateTime. */ - public lastUpdateTime?: (google.protobuf.ITimestamp|null); + /** VirtualAgentOutput differences. */ + public differences: google.cloud.dialogflow.cx.v3beta1.ITestRunDifference[]; + + /** VirtualAgentOutput diagnosticInfo. */ + public diagnosticInfo?: (google.protobuf.IStruct|null); + + /** VirtualAgentOutput triggeredIntent. */ + public triggeredIntent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); + + /** VirtualAgentOutput currentPage. */ + public currentPage?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + + /** VirtualAgentOutput textResponses. */ + public textResponses: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText[]; + + /** VirtualAgentOutput status. */ + public status?: (google.rpc.IStatus|null); /** - * Creates a new Result instance using the specified properties. + * Creates a new VirtualAgentOutput instance using the specified properties. * @param [properties] Properties to set - * @returns Result instance + * @returns VirtualAgentOutput instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.IResult): google.cloud.dialogflow.cx.v3beta1.Experiment.Result; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput): google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput; /** - * Encodes the specified Result message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.verify|verify} messages. - * @param message Result message or plain object to encode + * Encodes the specified VirtualAgentOutput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.verify|verify} messages. + * @param message VirtualAgentOutput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Experiment.IResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Result message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.verify|verify} messages. - * @param message Result message or plain object to encode + * Encodes the specified VirtualAgentOutput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.verify|verify} messages. + * @param message VirtualAgentOutput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Experiment.IResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Result message from the specified reader or buffer. + * Decodes a VirtualAgentOutput message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Result + * @returns VirtualAgentOutput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Experiment.Result; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput; /** - * Decodes a Result message from the specified reader or buffer, length delimited. + * Decodes a VirtualAgentOutput message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Result + * @returns VirtualAgentOutput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Experiment.Result; - - /** - * Verifies a Result message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Result message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Result - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Experiment.Result; - - /** - * Creates a plain object from a Result message. Also converts values to other types if specified. - * @param message Result - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Result to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace Result { - - /** Properties of a ConfidenceInterval. */ - interface IConfidenceInterval { - - /** ConfidenceInterval confidenceLevel */ - confidenceLevel?: (number|null); - - /** ConfidenceInterval ratio */ - ratio?: (number|null); - - /** ConfidenceInterval lowerBound */ - lowerBound?: (number|null); - - /** ConfidenceInterval upperBound */ - upperBound?: (number|null); - } - - /** Represents a ConfidenceInterval. */ - class ConfidenceInterval implements IConfidenceInterval { - - /** - * Constructs a new ConfidenceInterval. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval); - - /** ConfidenceInterval confidenceLevel. */ - public confidenceLevel: number; - - /** ConfidenceInterval ratio. */ - public ratio: number; - - /** ConfidenceInterval lowerBound. */ - public lowerBound: number; - - /** ConfidenceInterval upperBound. */ - public upperBound: number; - - /** - * Creates a new ConfidenceInterval instance using the specified properties. - * @param [properties] Properties to set - * @returns ConfidenceInterval instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval; - - /** - * Encodes the specified ConfidenceInterval message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.verify|verify} messages. - * @param message ConfidenceInterval message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ConfidenceInterval message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.verify|verify} messages. - * @param message ConfidenceInterval message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ConfidenceInterval message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ConfidenceInterval - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval; - - /** - * Decodes a ConfidenceInterval message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ConfidenceInterval - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval; - - /** - * Verifies a ConfidenceInterval message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ConfidenceInterval message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ConfidenceInterval - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval; - - /** - * Creates a plain object from a ConfidenceInterval message. Also converts values to other types if specified. - * @param message ConfidenceInterval - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ConfidenceInterval to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a Metric. */ - interface IMetric { - - /** Metric type */ - type?: (google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType|keyof typeof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType|null); - - /** Metric countType */ - countType?: (google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType|keyof typeof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType|null); - - /** Metric ratio */ - ratio?: (number|null); - - /** Metric count */ - count?: (number|null); - - /** Metric confidenceInterval */ - confidenceInterval?: (google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval|null); - } - - /** Represents a Metric. */ - class Metric implements IMetric { - - /** - * Constructs a new Metric. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric); - - /** Metric type. */ - public type: (google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType|keyof typeof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType); - - /** Metric countType. */ - public countType: (google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType|keyof typeof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType); - - /** Metric ratio. */ - public ratio: number; - - /** Metric count. */ - public count: number; - - /** Metric confidenceInterval. */ - public confidenceInterval?: (google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval|null); - - /** Metric value. */ - public value?: ("ratio"|"count"); - - /** - * Creates a new Metric instance using the specified properties. - * @param [properties] Properties to set - * @returns Metric instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric; - - /** - * Encodes the specified Metric message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.verify|verify} messages. - * @param message Metric message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Metric message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.verify|verify} messages. - * @param message Metric message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Metric message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Metric - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric; - - /** - * Decodes a Metric message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Metric - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric; - - /** - * Verifies a Metric message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Metric message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Metric - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric; - - /** - * Creates a plain object from a Metric message. Also converts values to other types if specified. - * @param message Metric - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric, options?: $protobuf.IConversionOptions): { [k: string]: any }; + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput; - /** - * Converts this Metric to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Verifies a VirtualAgentOutput message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Properties of a VersionMetrics. */ - interface IVersionMetrics { + /** + * Creates a VirtualAgentOutput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VirtualAgentOutput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput; - /** VersionMetrics version */ - version?: (string|null); + /** + * Creates a plain object from a VirtualAgentOutput message. Also converts values to other types if specified. + * @param message VirtualAgentOutput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** VersionMetrics metrics */ - metrics?: (google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric[]|null); + /** + * Converts this VirtualAgentOutput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } - /** VersionMetrics sessionCount */ - sessionCount?: (number|null); - } + /** Properties of a TestRunDifference. */ + interface ITestRunDifference { - /** Represents a VersionMetrics. */ - class VersionMetrics implements IVersionMetrics { + /** TestRunDifference type */ + type?: (google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType|keyof typeof google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType|null); - /** - * Constructs a new VersionMetrics. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics); + /** TestRunDifference description */ + description?: (string|null); + } - /** VersionMetrics version. */ - public version: string; + /** Represents a TestRunDifference. */ + class TestRunDifference implements ITestRunDifference { - /** VersionMetrics metrics. */ - public metrics: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric[]; + /** + * Constructs a new TestRunDifference. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITestRunDifference); - /** VersionMetrics sessionCount. */ - public sessionCount: number; + /** TestRunDifference type. */ + public type: (google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType|keyof typeof google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType); - /** - * Creates a new VersionMetrics instance using the specified properties. - * @param [properties] Properties to set - * @returns VersionMetrics instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics; + /** TestRunDifference description. */ + public description: string; - /** - * Encodes the specified VersionMetrics message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.verify|verify} messages. - * @param message VersionMetrics message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new TestRunDifference instance using the specified properties. + * @param [properties] Properties to set + * @returns TestRunDifference instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITestRunDifference): google.cloud.dialogflow.cx.v3beta1.TestRunDifference; - /** - * Encodes the specified VersionMetrics message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.verify|verify} messages. - * @param message VersionMetrics message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified TestRunDifference message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestRunDifference.verify|verify} messages. + * @param message TestRunDifference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITestRunDifference, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a VersionMetrics message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VersionMetrics - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics; + /** + * Encodes the specified TestRunDifference message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestRunDifference.verify|verify} messages. + * @param message TestRunDifference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITestRunDifference, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a VersionMetrics message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VersionMetrics - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics; + /** + * Decodes a TestRunDifference message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TestRunDifference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TestRunDifference; - /** - * Verifies a VersionMetrics message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a TestRunDifference message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TestRunDifference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TestRunDifference; - /** - * Creates a VersionMetrics message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VersionMetrics - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics; + /** + * Verifies a TestRunDifference message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a plain object from a VersionMetrics message. Also converts values to other types if specified. - * @param message VersionMetrics - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a TestRunDifference message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TestRunDifference + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TestRunDifference; - /** - * Converts this VersionMetrics to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Creates a plain object from a TestRunDifference message. Also converts values to other types if specified. + * @param message TestRunDifference + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TestRunDifference, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** MetricType enum. */ - enum MetricType { - METRIC_UNSPECIFIED = 0, - CONTAINED_SESSION_NO_CALLBACK_RATE = 1, - LIVE_AGENT_HANDOFF_RATE = 2, - CALLBACK_SESSION_RATE = 3, - ABANDONED_SESSION_RATE = 4, - SESSION_END_RATE = 5 - } + /** + * Converts this TestRunDifference to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** CountType enum. */ - enum CountType { - COUNT_TYPE_UNSPECIFIED = 0, - TOTAL_NO_MATCH_COUNT = 1, - TOTAL_TURN_COUNT = 2, - AVERAGE_TURN_COUNT = 3 - } - } + namespace TestRunDifference { - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - DRAFT = 1, - RUNNING = 2, - DONE = 3 + /** DiffType enum. */ + enum DiffType { + DIFF_TYPE_UNSPECIFIED = 0, + INTENT = 1, + PAGE = 2, + PARAMETERS = 3, + UTTERANCE = 4 } } - /** Properties of a VersionVariants. */ - interface IVersionVariants { + /** Properties of a TransitionCoverage. */ + interface ITransitionCoverage { - /** VersionVariants variants */ - variants?: (google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant[]|null); + /** TransitionCoverage transitions */ + transitions?: (google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition[]|null); + + /** TransitionCoverage coverageScore */ + coverageScore?: (number|null); } - /** Represents a VersionVariants. */ - class VersionVariants implements IVersionVariants { + /** Represents a TransitionCoverage. */ + class TransitionCoverage implements ITransitionCoverage { /** - * Constructs a new VersionVariants. + * Constructs a new TransitionCoverage. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IVersionVariants); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage); - /** VersionVariants variants. */ - public variants: google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant[]; + /** TransitionCoverage transitions. */ + public transitions: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition[]; + + /** TransitionCoverage coverageScore. */ + public coverageScore: number; /** - * Creates a new VersionVariants instance using the specified properties. + * Creates a new TransitionCoverage instance using the specified properties. * @param [properties] Properties to set - * @returns VersionVariants instance + * @returns TransitionCoverage instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IVersionVariants): google.cloud.dialogflow.cx.v3beta1.VersionVariants; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage; /** - * Encodes the specified VersionVariants message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VersionVariants.verify|verify} messages. - * @param message VersionVariants message or plain object to encode + * Encodes the specified TransitionCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.verify|verify} messages. + * @param message TransitionCoverage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IVersionVariants, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VersionVariants message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VersionVariants.verify|verify} messages. - * @param message VersionVariants message or plain object to encode + * Encodes the specified TransitionCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.verify|verify} messages. + * @param message TransitionCoverage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IVersionVariants, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VersionVariants message from the specified reader or buffer. + * Decodes a TransitionCoverage message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VersionVariants + * @returns TransitionCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.VersionVariants; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage; /** - * Decodes a VersionVariants message from the specified reader or buffer, length delimited. + * Decodes a TransitionCoverage message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VersionVariants + * @returns TransitionCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.VersionVariants; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage; /** - * Verifies a VersionVariants message. + * Verifies a TransitionCoverage message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a VersionVariants message from a plain object. Also converts values to their respective internal types. + * Creates a TransitionCoverage message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VersionVariants + * @returns TransitionCoverage */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.VersionVariants; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage; /** - * Creates a plain object from a VersionVariants message. Also converts values to other types if specified. - * @param message VersionVariants + * Creates a plain object from a TransitionCoverage message. Also converts values to other types if specified. + * @param message TransitionCoverage * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.VersionVariants, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VersionVariants to JSON. + * Converts this TransitionCoverage to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace VersionVariants { - - /** Properties of a Variant. */ - interface IVariant { + namespace TransitionCoverage { - /** Variant version */ - version?: (string|null); + /** Properties of a TransitionNode. */ + interface ITransitionNode { - /** Variant trafficAllocation */ - trafficAllocation?: (number|null); + /** TransitionNode page */ + page?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); - /** Variant isControlGroup */ - isControlGroup?: (boolean|null); + /** TransitionNode flow */ + flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); } - /** Represents a Variant. */ - class Variant implements IVariant { + /** Represents a TransitionNode. */ + class TransitionNode implements ITransitionNode { /** - * Constructs a new Variant. + * Constructs a new TransitionNode. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode); - /** Variant version. */ - public version: string; + /** TransitionNode page. */ + public page?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); - /** Variant trafficAllocation. */ - public trafficAllocation: number; + /** TransitionNode flow. */ + public flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); - /** Variant isControlGroup. */ - public isControlGroup: boolean; + /** TransitionNode kind. */ + public kind?: ("page"|"flow"); /** - * Creates a new Variant instance using the specified properties. + * Creates a new TransitionNode instance using the specified properties. * @param [properties] Properties to set - * @returns Variant instance + * @returns TransitionNode instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant): google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode; /** - * Encodes the specified Variant message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant.verify|verify} messages. - * @param message Variant message or plain object to encode + * Encodes the specified TransitionNode message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.verify|verify} messages. + * @param message TransitionNode message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Variant message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant.verify|verify} messages. - * @param message Variant message or plain object to encode + * Encodes the specified TransitionNode message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.verify|verify} messages. + * @param message TransitionNode message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Variant message from the specified reader or buffer. + * Decodes a TransitionNode message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Variant + * @returns TransitionNode * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode; /** - * Decodes a Variant message from the specified reader or buffer, length delimited. + * Decodes a TransitionNode message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Variant + * @returns TransitionNode * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode; /** - * Verifies a Variant message. + * Verifies a TransitionNode message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Variant message from a plain object. Also converts values to their respective internal types. + * Creates a TransitionNode message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Variant + * @returns TransitionNode */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode; /** - * Creates a plain object from a Variant message. Also converts values to other types if specified. - * @param message Variant + * Creates a plain object from a TransitionNode message. Also converts values to other types if specified. + * @param message TransitionNode * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Variant to JSON. + * Converts this TransitionNode to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - } - /** Properties of a VariantsHistory. */ - interface IVariantsHistory { + /** Properties of a Transition. */ + interface ITransition { - /** VariantsHistory versionVariants */ - versionVariants?: (google.cloud.dialogflow.cx.v3beta1.IVersionVariants|null); + /** Transition source */ + source?: (google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null); - /** VariantsHistory updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - } + /** Transition index */ + index?: (number|null); - /** Represents a VariantsHistory. */ - class VariantsHistory implements IVariantsHistory { + /** Transition target */ + target?: (google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null); - /** - * Constructs a new VariantsHistory. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IVariantsHistory); + /** Transition covered */ + covered?: (boolean|null); - /** VariantsHistory versionVariants. */ - public versionVariants?: (google.cloud.dialogflow.cx.v3beta1.IVersionVariants|null); + /** Transition transitionRoute */ + transitionRoute?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null); - /** VariantsHistory updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** Transition eventHandler */ + eventHandler?: (google.cloud.dialogflow.cx.v3beta1.IEventHandler|null); + } - /** VariantsHistory variants. */ - public variants?: "versionVariants"; + /** Represents a Transition. */ + class Transition implements ITransition { - /** - * Creates a new VariantsHistory instance using the specified properties. - * @param [properties] Properties to set - * @returns VariantsHistory instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IVariantsHistory): google.cloud.dialogflow.cx.v3beta1.VariantsHistory; + /** + * Constructs a new Transition. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition); - /** - * Encodes the specified VariantsHistory message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VariantsHistory.verify|verify} messages. - * @param message VariantsHistory message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IVariantsHistory, writer?: $protobuf.Writer): $protobuf.Writer; + /** Transition source. */ + public source?: (google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null); - /** - * Encodes the specified VariantsHistory message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VariantsHistory.verify|verify} messages. - * @param message VariantsHistory message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IVariantsHistory, writer?: $protobuf.Writer): $protobuf.Writer; + /** Transition index. */ + public index: number; - /** - * Decodes a VariantsHistory message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VariantsHistory - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.VariantsHistory; + /** Transition target. */ + public target?: (google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null); - /** - * Decodes a VariantsHistory message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VariantsHistory - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.VariantsHistory; + /** Transition covered. */ + public covered: boolean; + + /** Transition transitionRoute. */ + public transitionRoute?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null); + + /** Transition eventHandler. */ + public eventHandler?: (google.cloud.dialogflow.cx.v3beta1.IEventHandler|null); + + /** Transition detail. */ + public detail?: ("transitionRoute"|"eventHandler"); + + /** + * Creates a new Transition instance using the specified properties. + * @param [properties] Properties to set + * @returns Transition instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition; + + /** + * Encodes the specified Transition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.verify|verify} messages. + * @param message Transition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Transition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.verify|verify} messages. + * @param message Transition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Transition message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Transition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition; - /** - * Verifies a VariantsHistory message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a Transition message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Transition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition; - /** - * Creates a VariantsHistory message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VariantsHistory - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.VariantsHistory; + /** + * Verifies a Transition message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a plain object from a VariantsHistory message. Also converts values to other types if specified. - * @param message VariantsHistory - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.VariantsHistory, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a Transition message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Transition + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition; - /** - * Converts this VariantsHistory to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Creates a plain object from a Transition message. Also converts values to other types if specified. + * @param message Transition + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Properties of a ListExperimentsRequest. */ - interface IListExperimentsRequest { + /** + * Converts this Transition to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } - /** ListExperimentsRequest parent */ - parent?: (string|null); + /** Properties of a TransitionRouteGroupCoverage. */ + interface ITransitionRouteGroupCoverage { - /** ListExperimentsRequest pageSize */ - pageSize?: (number|null); + /** TransitionRouteGroupCoverage coverages */ + coverages?: (google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage[]|null); - /** ListExperimentsRequest pageToken */ - pageToken?: (string|null); + /** TransitionRouteGroupCoverage coverageScore */ + coverageScore?: (number|null); } - /** Represents a ListExperimentsRequest. */ - class ListExperimentsRequest implements IListExperimentsRequest { + /** Represents a TransitionRouteGroupCoverage. */ + class TransitionRouteGroupCoverage implements ITransitionRouteGroupCoverage { /** - * Constructs a new ListExperimentsRequest. + * Constructs a new TransitionRouteGroupCoverage. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest); - - /** ListExperimentsRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage); - /** ListExperimentsRequest pageSize. */ - public pageSize: number; + /** TransitionRouteGroupCoverage coverages. */ + public coverages: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage[]; - /** ListExperimentsRequest pageToken. */ - public pageToken: string; + /** TransitionRouteGroupCoverage coverageScore. */ + public coverageScore: number; /** - * Creates a new ListExperimentsRequest instance using the specified properties. + * Creates a new TransitionRouteGroupCoverage instance using the specified properties. * @param [properties] Properties to set - * @returns ListExperimentsRequest instance + * @returns TransitionRouteGroupCoverage instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest): google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage; /** - * Encodes the specified ListExperimentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest.verify|verify} messages. - * @param message ListExperimentsRequest message or plain object to encode + * Encodes the specified TransitionRouteGroupCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.verify|verify} messages. + * @param message TransitionRouteGroupCoverage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListExperimentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest.verify|verify} messages. - * @param message ListExperimentsRequest message or plain object to encode + * Encodes the specified TransitionRouteGroupCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.verify|verify} messages. + * @param message TransitionRouteGroupCoverage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListExperimentsRequest message from the specified reader or buffer. + * Decodes a TransitionRouteGroupCoverage message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListExperimentsRequest + * @returns TransitionRouteGroupCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage; /** - * Decodes a ListExperimentsRequest message from the specified reader or buffer, length delimited. + * Decodes a TransitionRouteGroupCoverage message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListExperimentsRequest + * @returns TransitionRouteGroupCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage; /** - * Verifies a ListExperimentsRequest message. + * Verifies a TransitionRouteGroupCoverage message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListExperimentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TransitionRouteGroupCoverage message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListExperimentsRequest + * @returns TransitionRouteGroupCoverage */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage; /** - * Creates a plain object from a ListExperimentsRequest message. Also converts values to other types if specified. - * @param message ListExperimentsRequest + * Creates a plain object from a TransitionRouteGroupCoverage message. Also converts values to other types if specified. + * @param message TransitionRouteGroupCoverage * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListExperimentsRequest to JSON. + * Converts this TransitionRouteGroupCoverage to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListExperimentsResponse. */ - interface IListExperimentsResponse { + namespace TransitionRouteGroupCoverage { - /** ListExperimentsResponse experiments */ - experiments?: (google.cloud.dialogflow.cx.v3beta1.IExperiment[]|null); + /** Properties of a Coverage. */ + interface ICoverage { - /** ListExperimentsResponse nextPageToken */ - nextPageToken?: (string|null); - } + /** Coverage routeGroup */ + routeGroup?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null); - /** Represents a ListExperimentsResponse. */ - class ListExperimentsResponse implements IListExperimentsResponse { + /** Coverage transitions */ + transitions?: (google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition[]|null); - /** - * Constructs a new ListExperimentsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListExperimentsResponse); + /** Coverage coverageScore */ + coverageScore?: (number|null); + } - /** ListExperimentsResponse experiments. */ - public experiments: google.cloud.dialogflow.cx.v3beta1.IExperiment[]; + /** Represents a Coverage. */ + class Coverage implements ICoverage { - /** ListExperimentsResponse nextPageToken. */ - public nextPageToken: string; + /** + * Constructs a new Coverage. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage); - /** - * Creates a new ListExperimentsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListExperimentsResponse instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListExperimentsResponse): google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse; + /** Coverage routeGroup. */ + public routeGroup?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null); - /** - * Encodes the specified ListExperimentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse.verify|verify} messages. - * @param message ListExperimentsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListExperimentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** Coverage transitions. */ + public transitions: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition[]; - /** - * Encodes the specified ListExperimentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse.verify|verify} messages. - * @param message ListExperimentsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListExperimentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** Coverage coverageScore. */ + public coverageScore: number; - /** - * Decodes a ListExperimentsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListExperimentsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse; + /** + * Creates a new Coverage instance using the specified properties. + * @param [properties] Properties to set + * @returns Coverage instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage; - /** - * Decodes a ListExperimentsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListExperimentsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse; + /** + * Encodes the specified Coverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.verify|verify} messages. + * @param message Coverage message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a ListExperimentsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Encodes the specified Coverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.verify|verify} messages. + * @param message Coverage message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a ListExperimentsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListExperimentsResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse; + /** + * Decodes a Coverage message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Coverage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage; - /** - * Creates a plain object from a ListExperimentsResponse message. Also converts values to other types if specified. - * @param message ListExperimentsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a Coverage message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Coverage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage; - /** - * Converts this ListExperimentsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Verifies a Coverage message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Properties of a GetExperimentRequest. */ - interface IGetExperimentRequest { + /** + * Creates a Coverage message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Coverage + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage; - /** GetExperimentRequest name */ - name?: (string|null); - } + /** + * Creates a plain object from a Coverage message. Also converts values to other types if specified. + * @param message Coverage + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Represents a GetExperimentRequest. */ - class GetExperimentRequest implements IGetExperimentRequest { + /** + * Converts this Coverage to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Constructs a new GetExperimentRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest); + namespace Coverage { - /** GetExperimentRequest name. */ - public name: string; + /** Properties of a Transition. */ + interface ITransition { - /** - * Creates a new GetExperimentRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetExperimentRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest): google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest; + /** Transition transitionRoute */ + transitionRoute?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null); - /** - * Encodes the specified GetExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest.verify|verify} messages. - * @param message GetExperimentRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Transition covered */ + covered?: (boolean|null); + } - /** - * Encodes the specified GetExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest.verify|verify} messages. - * @param message GetExperimentRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a Transition. */ + class Transition implements ITransition { - /** - * Decodes a GetExperimentRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetExperimentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest; + /** + * Constructs a new Transition. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition); - /** - * Decodes a GetExperimentRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetExperimentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest; + /** Transition transitionRoute. */ + public transitionRoute?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null); - /** - * Verifies a GetExperimentRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Transition covered. */ + public covered: boolean; - /** - * Creates a GetExperimentRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetExperimentRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest; + /** + * Creates a new Transition instance using the specified properties. + * @param [properties] Properties to set + * @returns Transition instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition; - /** - * Creates a plain object from a GetExperimentRequest message. Also converts values to other types if specified. - * @param message GetExperimentRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified Transition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.verify|verify} messages. + * @param message Transition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this GetExperimentRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified Transition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.verify|verify} messages. + * @param message Transition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Transition message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Transition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition; + + /** + * Decodes a Transition message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Transition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition; + + /** + * Verifies a Transition message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Transition message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Transition + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition; + + /** + * Creates a plain object from a Transition message. Also converts values to other types if specified. + * @param message Transition + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Transition to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } } - /** Properties of a CreateExperimentRequest. */ - interface ICreateExperimentRequest { + /** Properties of an IntentCoverage. */ + interface IIntentCoverage { - /** CreateExperimentRequest parent */ - parent?: (string|null); + /** IntentCoverage intents */ + intents?: (google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent[]|null); - /** CreateExperimentRequest experiment */ - experiment?: (google.cloud.dialogflow.cx.v3beta1.IExperiment|null); + /** IntentCoverage coverageScore */ + coverageScore?: (number|null); } - /** Represents a CreateExperimentRequest. */ - class CreateExperimentRequest implements ICreateExperimentRequest { + /** Represents an IntentCoverage. */ + class IntentCoverage implements IIntentCoverage { /** - * Constructs a new CreateExperimentRequest. + * Constructs a new IntentCoverage. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IIntentCoverage); - /** CreateExperimentRequest parent. */ - public parent: string; + /** IntentCoverage intents. */ + public intents: google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent[]; - /** CreateExperimentRequest experiment. */ - public experiment?: (google.cloud.dialogflow.cx.v3beta1.IExperiment|null); + /** IntentCoverage coverageScore. */ + public coverageScore: number; /** - * Creates a new CreateExperimentRequest instance using the specified properties. + * Creates a new IntentCoverage instance using the specified properties. * @param [properties] Properties to set - * @returns CreateExperimentRequest instance + * @returns IntentCoverage instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest): google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IIntentCoverage): google.cloud.dialogflow.cx.v3beta1.IntentCoverage; /** - * Encodes the specified CreateExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest.verify|verify} messages. - * @param message CreateExperimentRequest message or plain object to encode + * Encodes the specified IntentCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentCoverage.verify|verify} messages. + * @param message IntentCoverage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IIntentCoverage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest.verify|verify} messages. - * @param message CreateExperimentRequest message or plain object to encode + * Encodes the specified IntentCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentCoverage.verify|verify} messages. + * @param message IntentCoverage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IIntentCoverage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateExperimentRequest message from the specified reader or buffer. + * Decodes an IntentCoverage message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateExperimentRequest + * @returns IntentCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.IntentCoverage; /** - * Decodes a CreateExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes an IntentCoverage message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateExperimentRequest + * @returns IntentCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.IntentCoverage; /** - * Verifies a CreateExperimentRequest message. + * Verifies an IntentCoverage message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates an IntentCoverage message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateExperimentRequest + * @returns IntentCoverage */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.IntentCoverage; /** - * Creates a plain object from a CreateExperimentRequest message. Also converts values to other types if specified. - * @param message CreateExperimentRequest + * Creates a plain object from an IntentCoverage message. Also converts values to other types if specified. + * @param message IntentCoverage * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.IntentCoverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateExperimentRequest to JSON. + * Converts this IntentCoverage to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateExperimentRequest. */ - interface IUpdateExperimentRequest { + namespace IntentCoverage { - /** UpdateExperimentRequest experiment */ - experiment?: (google.cloud.dialogflow.cx.v3beta1.IExperiment|null); + /** Properties of an Intent. */ + interface IIntent { - /** UpdateExperimentRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** Intent intent */ + intent?: (string|null); + + /** Intent covered */ + covered?: (boolean|null); + } + + /** Represents an Intent. */ + class Intent implements IIntent { + + /** + * Constructs a new Intent. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent); + + /** Intent intent. */ + public intent: string; + + /** Intent covered. */ + public covered: boolean; + + /** + * Creates a new Intent instance using the specified properties. + * @param [properties] Properties to set + * @returns Intent instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent): google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent; + + /** + * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent.verify|verify} messages. + * @param message Intent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Intent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent.verify|verify} messages. + * @param message Intent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Intent message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Intent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent; + + /** + * Decodes an Intent message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Intent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent; + + /** + * Verifies an Intent message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an Intent message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Intent + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent; + + /** + * Creates a plain object from an Intent message. Also converts values to other types if specified. + * @param message Intent + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Intent to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Represents an UpdateExperimentRequest. */ - class UpdateExperimentRequest implements IUpdateExperimentRequest { + /** Properties of a CalculateCoverageRequest. */ + interface ICalculateCoverageRequest { + + /** CalculateCoverageRequest agent */ + agent?: (string|null); + + /** CalculateCoverageRequest type */ + type?: (google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType|keyof typeof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType|null); + } + + /** Represents a CalculateCoverageRequest. */ + class CalculateCoverageRequest implements ICalculateCoverageRequest { /** - * Constructs a new UpdateExperimentRequest. + * Constructs a new CalculateCoverageRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest); - /** UpdateExperimentRequest experiment. */ - public experiment?: (google.cloud.dialogflow.cx.v3beta1.IExperiment|null); + /** CalculateCoverageRequest agent. */ + public agent: string; - /** UpdateExperimentRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** CalculateCoverageRequest type. */ + public type: (google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType|keyof typeof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType); /** - * Creates a new UpdateExperimentRequest instance using the specified properties. + * Creates a new CalculateCoverageRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateExperimentRequest instance + * @returns CalculateCoverageRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest): google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest; /** - * Encodes the specified UpdateExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest.verify|verify} messages. - * @param message UpdateExperimentRequest message or plain object to encode + * Encodes the specified CalculateCoverageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.verify|verify} messages. + * @param message CalculateCoverageRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest.verify|verify} messages. - * @param message UpdateExperimentRequest message or plain object to encode + * Encodes the specified CalculateCoverageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.verify|verify} messages. + * @param message CalculateCoverageRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateExperimentRequest message from the specified reader or buffer. + * Decodes a CalculateCoverageRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateExperimentRequest + * @returns CalculateCoverageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest; /** - * Decodes an UpdateExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a CalculateCoverageRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateExperimentRequest + * @returns CalculateCoverageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest; /** - * Verifies an UpdateExperimentRequest message. + * Verifies a CalculateCoverageRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CalculateCoverageRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateExperimentRequest + * @returns CalculateCoverageRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest; /** - * Creates a plain object from an UpdateExperimentRequest message. Also converts values to other types if specified. - * @param message UpdateExperimentRequest + * Creates a plain object from a CalculateCoverageRequest message. Also converts values to other types if specified. + * @param message CalculateCoverageRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateExperimentRequest to JSON. + * Converts this CalculateCoverageRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteExperimentRequest. */ - interface IDeleteExperimentRequest { + namespace CalculateCoverageRequest { - /** DeleteExperimentRequest name */ - name?: (string|null); + /** CoverageType enum. */ + enum CoverageType { + COVERAGE_TYPE_UNSPECIFIED = 0, + INTENT = 1, + PAGE_TRANSITION = 2, + TRANSITION_ROUTE_GROUP = 3 + } } - /** Represents a DeleteExperimentRequest. */ - class DeleteExperimentRequest implements IDeleteExperimentRequest { + /** Properties of a CalculateCoverageResponse. */ + interface ICalculateCoverageResponse { + + /** CalculateCoverageResponse agent */ + agent?: (string|null); + + /** CalculateCoverageResponse intentCoverage */ + intentCoverage?: (google.cloud.dialogflow.cx.v3beta1.IIntentCoverage|null); + + /** CalculateCoverageResponse transitionCoverage */ + transitionCoverage?: (google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage|null); + + /** CalculateCoverageResponse routeGroupCoverage */ + routeGroupCoverage?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage|null); + } + + /** Represents a CalculateCoverageResponse. */ + class CalculateCoverageResponse implements ICalculateCoverageResponse { /** - * Constructs a new DeleteExperimentRequest. + * Constructs a new CalculateCoverageResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse); - /** DeleteExperimentRequest name. */ - public name: string; + /** CalculateCoverageResponse agent. */ + public agent: string; + + /** CalculateCoverageResponse intentCoverage. */ + public intentCoverage?: (google.cloud.dialogflow.cx.v3beta1.IIntentCoverage|null); + + /** CalculateCoverageResponse transitionCoverage. */ + public transitionCoverage?: (google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage|null); + + /** CalculateCoverageResponse routeGroupCoverage. */ + public routeGroupCoverage?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage|null); + + /** CalculateCoverageResponse coverageType. */ + public coverageType?: ("intentCoverage"|"transitionCoverage"|"routeGroupCoverage"); /** - * Creates a new DeleteExperimentRequest instance using the specified properties. + * Creates a new CalculateCoverageResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteExperimentRequest instance + * @returns CalculateCoverageResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest): google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse; /** - * Encodes the specified DeleteExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest.verify|verify} messages. - * @param message DeleteExperimentRequest message or plain object to encode + * Encodes the specified CalculateCoverageResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse.verify|verify} messages. + * @param message CalculateCoverageResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest.verify|verify} messages. - * @param message DeleteExperimentRequest message or plain object to encode + * Encodes the specified CalculateCoverageResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse.verify|verify} messages. + * @param message CalculateCoverageResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteExperimentRequest message from the specified reader or buffer. + * Decodes a CalculateCoverageResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteExperimentRequest + * @returns CalculateCoverageResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse; /** - * Decodes a DeleteExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a CalculateCoverageResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteExperimentRequest + * @returns CalculateCoverageResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse; /** - * Verifies a DeleteExperimentRequest message. + * Verifies a CalculateCoverageResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CalculateCoverageResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteExperimentRequest + * @returns CalculateCoverageResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse; /** - * Creates a plain object from a DeleteExperimentRequest message. Also converts values to other types if specified. - * @param message DeleteExperimentRequest + * Creates a plain object from a CalculateCoverageResponse message. Also converts values to other types if specified. + * @param message CalculateCoverageResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteExperimentRequest to JSON. + * Converts this CalculateCoverageResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a StartExperimentRequest. */ - interface IStartExperimentRequest { + /** Properties of a ListTestCasesRequest. */ + interface IListTestCasesRequest { - /** StartExperimentRequest name */ - name?: (string|null); + /** ListTestCasesRequest parent */ + parent?: (string|null); + + /** ListTestCasesRequest pageSize */ + pageSize?: (number|null); + + /** ListTestCasesRequest pageToken */ + pageToken?: (string|null); + + /** ListTestCasesRequest view */ + view?: (google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView|keyof typeof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView|null); } - /** Represents a StartExperimentRequest. */ - class StartExperimentRequest implements IStartExperimentRequest { + /** Represents a ListTestCasesRequest. */ + class ListTestCasesRequest implements IListTestCasesRequest { /** - * Constructs a new StartExperimentRequest. + * Constructs a new ListTestCasesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest); - /** StartExperimentRequest name. */ - public name: string; + /** ListTestCasesRequest parent. */ + public parent: string; + + /** ListTestCasesRequest pageSize. */ + public pageSize: number; + + /** ListTestCasesRequest pageToken. */ + public pageToken: string; + + /** ListTestCasesRequest view. */ + public view: (google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView|keyof typeof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView); /** - * Creates a new StartExperimentRequest instance using the specified properties. + * Creates a new ListTestCasesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns StartExperimentRequest instance + * @returns ListTestCasesRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest): google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest): google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest; /** - * Encodes the specified StartExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest.verify|verify} messages. - * @param message StartExperimentRequest message or plain object to encode + * Encodes the specified ListTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.verify|verify} messages. + * @param message ListTestCasesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StartExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest.verify|verify} messages. - * @param message StartExperimentRequest message or plain object to encode + * Encodes the specified ListTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.verify|verify} messages. + * @param message ListTestCasesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StartExperimentRequest message from the specified reader or buffer. + * Decodes a ListTestCasesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StartExperimentRequest + * @returns ListTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest; /** - * Decodes a StartExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a ListTestCasesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StartExperimentRequest + * @returns ListTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest; /** - * Verifies a StartExperimentRequest message. + * Verifies a ListTestCasesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StartExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListTestCasesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StartExperimentRequest + * @returns ListTestCasesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest; /** - * Creates a plain object from a StartExperimentRequest message. Also converts values to other types if specified. - * @param message StartExperimentRequest + * Creates a plain object from a ListTestCasesRequest message. Also converts values to other types if specified. + * @param message ListTestCasesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StartExperimentRequest to JSON. + * Converts this ListTestCasesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a StopExperimentRequest. */ - interface IStopExperimentRequest { + namespace ListTestCasesRequest { - /** StopExperimentRequest name */ - name?: (string|null); + /** TestCaseView enum. */ + enum TestCaseView { + TEST_CASE_VIEW_UNSPECIFIED = 0, + BASIC = 1, + FULL = 2 + } } - /** Represents a StopExperimentRequest. */ - class StopExperimentRequest implements IStopExperimentRequest { + /** Properties of a ListTestCasesResponse. */ + interface IListTestCasesResponse { + + /** ListTestCasesResponse testCases */ + testCases?: (google.cloud.dialogflow.cx.v3beta1.ITestCase[]|null); + + /** ListTestCasesResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListTestCasesResponse. */ + class ListTestCasesResponse implements IListTestCasesResponse { /** - * Constructs a new StopExperimentRequest. + * Constructs a new ListTestCasesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse); - /** StopExperimentRequest name. */ - public name: string; + /** ListTestCasesResponse testCases. */ + public testCases: google.cloud.dialogflow.cx.v3beta1.ITestCase[]; + + /** ListTestCasesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new StopExperimentRequest instance using the specified properties. + * Creates a new ListTestCasesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns StopExperimentRequest instance + * @returns ListTestCasesResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest): google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse): google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse; /** - * Encodes the specified StopExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest.verify|verify} messages. - * @param message StopExperimentRequest message or plain object to encode + * Encodes the specified ListTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse.verify|verify} messages. + * @param message ListTestCasesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StopExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest.verify|verify} messages. - * @param message StopExperimentRequest message or plain object to encode + * Encodes the specified ListTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse.verify|verify} messages. + * @param message ListTestCasesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StopExperimentRequest message from the specified reader or buffer. + * Decodes a ListTestCasesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StopExperimentRequest + * @returns ListTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse; /** - * Decodes a StopExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a ListTestCasesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StopExperimentRequest + * @returns ListTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse; /** - * Verifies a StopExperimentRequest message. + * Verifies a ListTestCasesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StopExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListTestCasesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StopExperimentRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest; - - /** - * Creates a plain object from a StopExperimentRequest message. Also converts values to other types if specified. - * @param message StopExperimentRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StopExperimentRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Represents an Intents */ - class Intents extends $protobuf.rpc.Service { - - /** - * Constructs a new Intents service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new Intents service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Intents; - - /** - * Calls ListIntents. - * @param request ListIntentsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListIntentsResponse - */ - public listIntents(request: google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Intents.ListIntentsCallback): void; - - /** - * Calls ListIntents. - * @param request ListIntentsRequest message or plain object - * @returns Promise - */ - public listIntents(request: google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest): Promise; - - /** - * Calls GetIntent. - * @param request GetIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Intent + * @returns ListTestCasesResponse */ - public getIntent(request: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Intents.GetIntentCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse; /** - * Calls GetIntent. - * @param request GetIntentRequest message or plain object - * @returns Promise + * Creates a plain object from a ListTestCasesResponse message. Also converts values to other types if specified. + * @param message ListTestCasesResponse + * @param [options] Conversion options + * @returns Plain object */ - public getIntent(request: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest): Promise; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls CreateIntent. - * @param request CreateIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Intent + * Converts this ListTestCasesResponse to JSON. + * @returns JSON object */ - public createIntent(request: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Intents.CreateIntentCallback): void; + public toJSON(): { [k: string]: any }; + } + + /** Properties of a BatchDeleteTestCasesRequest. */ + interface IBatchDeleteTestCasesRequest { + + /** BatchDeleteTestCasesRequest parent */ + parent?: (string|null); + + /** BatchDeleteTestCasesRequest names */ + names?: (string[]|null); + } + + /** Represents a BatchDeleteTestCasesRequest. */ + class BatchDeleteTestCasesRequest implements IBatchDeleteTestCasesRequest { /** - * Calls CreateIntent. - * @param request CreateIntentRequest message or plain object - * @returns Promise + * Constructs a new BatchDeleteTestCasesRequest. + * @param [properties] Properties to set */ - public createIntent(request: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest): Promise; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest); + + /** BatchDeleteTestCasesRequest parent. */ + public parent: string; + + /** BatchDeleteTestCasesRequest names. */ + public names: string[]; /** - * Calls UpdateIntent. - * @param request UpdateIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Intent + * Creates a new BatchDeleteTestCasesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchDeleteTestCasesRequest instance */ - public updateIntent(request: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Intents.UpdateIntentCallback): void; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest): google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest; /** - * Calls UpdateIntent. - * @param request UpdateIntentRequest message or plain object - * @returns Promise + * Encodes the specified BatchDeleteTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest.verify|verify} messages. + * @param message BatchDeleteTestCasesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public updateIntent(request: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest): Promise; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteIntent. - * @param request DeleteIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Encodes the specified BatchDeleteTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest.verify|verify} messages. + * @param message BatchDeleteTestCasesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteIntent(request: google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Intents.DeleteIntentCallback): void; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteIntent. - * @param request DeleteIntentRequest message or plain object - * @returns Promise + * Decodes a BatchDeleteTestCasesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchDeleteTestCasesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteIntent(request: google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest): Promise; - } - - namespace Intents { + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#listIntents}. - * @param error Error, if any - * @param [response] ListIntentsResponse + * Decodes a BatchDeleteTestCasesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchDeleteTestCasesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ListIntentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#getIntent}. - * @param error Error, if any - * @param [response] Intent + * Verifies a BatchDeleteTestCasesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type GetIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Intent) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#createIntent}. - * @param error Error, if any - * @param [response] Intent + * Creates a BatchDeleteTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchDeleteTestCasesRequest */ - type CreateIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Intent) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#updateIntent}. - * @param error Error, if any - * @param [response] Intent + * Creates a plain object from a BatchDeleteTestCasesRequest message. Also converts values to other types if specified. + * @param message BatchDeleteTestCasesRequest + * @param [options] Conversion options + * @returns Plain object */ - type UpdateIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Intent) => void; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#deleteIntent}. - * @param error Error, if any - * @param [response] Empty + * Converts this BatchDeleteTestCasesRequest to JSON. + * @returns JSON object */ - type DeleteIntentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public toJSON(): { [k: string]: any }; } - /** Properties of an Intent. */ - interface IIntent { - - /** Intent name */ - name?: (string|null); - - /** Intent displayName */ - displayName?: (string|null); - - /** Intent trainingPhrases */ - trainingPhrases?: (google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase[]|null); - - /** Intent parameters */ - parameters?: (google.cloud.dialogflow.cx.v3beta1.Intent.IParameter[]|null); - - /** Intent priority */ - priority?: (number|null); - - /** Intent isFallback */ - isFallback?: (boolean|null); + /** Properties of a CreateTestCaseRequest. */ + interface ICreateTestCaseRequest { - /** Intent labels */ - labels?: ({ [k: string]: string }|null); + /** CreateTestCaseRequest parent */ + parent?: (string|null); - /** Intent description */ - description?: (string|null); + /** CreateTestCaseRequest testCase */ + testCase?: (google.cloud.dialogflow.cx.v3beta1.ITestCase|null); } - /** Represents an Intent. */ - class Intent implements IIntent { + /** Represents a CreateTestCaseRequest. */ + class CreateTestCaseRequest implements ICreateTestCaseRequest { /** - * Constructs a new Intent. + * Constructs a new CreateTestCaseRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IIntent); - - /** Intent name. */ - public name: string; - - /** Intent displayName. */ - public displayName: string; - - /** Intent trainingPhrases. */ - public trainingPhrases: google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase[]; - - /** Intent parameters. */ - public parameters: google.cloud.dialogflow.cx.v3beta1.Intent.IParameter[]; - - /** Intent priority. */ - public priority: number; - - /** Intent isFallback. */ - public isFallback: boolean; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest); - /** Intent labels. */ - public labels: { [k: string]: string }; + /** CreateTestCaseRequest parent. */ + public parent: string; - /** Intent description. */ - public description: string; + /** CreateTestCaseRequest testCase. */ + public testCase?: (google.cloud.dialogflow.cx.v3beta1.ITestCase|null); /** - * Creates a new Intent instance using the specified properties. + * Creates a new CreateTestCaseRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Intent instance + * @returns CreateTestCaseRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IIntent): google.cloud.dialogflow.cx.v3beta1.Intent; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest): google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest; /** - * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.verify|verify} messages. - * @param message Intent message or plain object to encode + * Encodes the specified CreateTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest.verify|verify} messages. + * @param message CreateTestCaseRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Intent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.verify|verify} messages. - * @param message Intent message or plain object to encode + * Encodes the specified CreateTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest.verify|verify} messages. + * @param message CreateTestCaseRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Intent message from the specified reader or buffer. + * Decodes a CreateTestCaseRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Intent + * @returns CreateTestCaseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Intent; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest; /** - * Decodes an Intent message from the specified reader or buffer, length delimited. + * Decodes a CreateTestCaseRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Intent + * @returns CreateTestCaseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Intent; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest; /** - * Verifies an Intent message. + * Verifies a CreateTestCaseRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an Intent message from a plain object. Also converts values to their respective internal types. + * Creates a CreateTestCaseRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Intent + * @returns CreateTestCaseRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Intent; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest; /** - * Creates a plain object from an Intent message. Also converts values to other types if specified. - * @param message Intent + * Creates a plain object from a CreateTestCaseRequest message. Also converts values to other types if specified. + * @param message CreateTestCaseRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Intent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Intent to JSON. + * Converts this CreateTestCaseRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Intent { - - /** Properties of a TrainingPhrase. */ - interface ITrainingPhrase { - - /** TrainingPhrase id */ - id?: (string|null); - - /** TrainingPhrase parts */ - parts?: (google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart[]|null); - - /** TrainingPhrase repeatCount */ - repeatCount?: (number|null); - } - - /** Represents a TrainingPhrase. */ - class TrainingPhrase implements ITrainingPhrase { - - /** - * Constructs a new TrainingPhrase. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase); - - /** TrainingPhrase id. */ - public id: string; - - /** TrainingPhrase parts. */ - public parts: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart[]; - - /** TrainingPhrase repeatCount. */ - public repeatCount: number; - - /** - * Creates a new TrainingPhrase instance using the specified properties. - * @param [properties] Properties to set - * @returns TrainingPhrase instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase; - - /** - * Encodes the specified TrainingPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.verify|verify} messages. - * @param message TrainingPhrase message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified TrainingPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.verify|verify} messages. - * @param message TrainingPhrase message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TrainingPhrase message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TrainingPhrase - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase; - - /** - * Decodes a TrainingPhrase message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TrainingPhrase - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase; - - /** - * Verifies a TrainingPhrase message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a TrainingPhrase message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TrainingPhrase - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase; - - /** - * Creates a plain object from a TrainingPhrase message. Also converts values to other types if specified. - * @param message TrainingPhrase - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this TrainingPhrase to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace TrainingPhrase { - - /** Properties of a Part. */ - interface IPart { - - /** Part text */ - text?: (string|null); - - /** Part parameterId */ - parameterId?: (string|null); - } - - /** Represents a Part. */ - class Part implements IPart { - - /** - * Constructs a new Part. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart); - - /** Part text. */ - public text: string; - - /** Part parameterId. */ - public parameterId: string; - - /** - * Creates a new Part instance using the specified properties. - * @param [properties] Properties to set - * @returns Part instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part; - - /** - * Encodes the specified Part message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.verify|verify} messages. - * @param message Part message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Part message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.verify|verify} messages. - * @param message Part message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Part message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Part - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part; + /** Properties of an UpdateTestCaseRequest. */ + interface IUpdateTestCaseRequest { - /** - * Decodes a Part message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Part - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part; + /** UpdateTestCaseRequest testCase */ + testCase?: (google.cloud.dialogflow.cx.v3beta1.ITestCase|null); - /** - * Verifies a Part message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** UpdateTestCaseRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } - /** - * Creates a Part message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Part - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part; + /** Represents an UpdateTestCaseRequest. */ + class UpdateTestCaseRequest implements IUpdateTestCaseRequest { - /** - * Creates a plain object from a Part message. Also converts values to other types if specified. - * @param message Part - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new UpdateTestCaseRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest); - /** - * Converts this Part to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } + /** UpdateTestCaseRequest testCase. */ + public testCase?: (google.cloud.dialogflow.cx.v3beta1.ITestCase|null); - /** Properties of a Parameter. */ - interface IParameter { + /** UpdateTestCaseRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** Parameter id */ - id?: (string|null); + /** + * Creates a new UpdateTestCaseRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateTestCaseRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest): google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest; - /** Parameter entityType */ - entityType?: (string|null); + /** + * Encodes the specified UpdateTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest.verify|verify} messages. + * @param message UpdateTestCaseRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Parameter isList */ - isList?: (boolean|null); + /** + * Encodes the specified UpdateTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest.verify|verify} messages. + * @param message UpdateTestCaseRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Parameter redact */ - redact?: (boolean|null); - } + /** + * Decodes an UpdateTestCaseRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateTestCaseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest; - /** Represents a Parameter. */ - class Parameter implements IParameter { + /** + * Decodes an UpdateTestCaseRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateTestCaseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest; - /** - * Constructs a new Parameter. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Intent.IParameter); + /** + * Verifies an UpdateTestCaseRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Parameter id. */ - public id: string; + /** + * Creates an UpdateTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateTestCaseRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest; - /** Parameter entityType. */ - public entityType: string; + /** + * Creates a plain object from an UpdateTestCaseRequest message. Also converts values to other types if specified. + * @param message UpdateTestCaseRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Parameter isList. */ - public isList: boolean; + /** + * Converts this UpdateTestCaseRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Parameter redact. */ - public redact: boolean; + /** Properties of a GetTestCaseRequest. */ + interface IGetTestCaseRequest { - /** - * Creates a new Parameter instance using the specified properties. - * @param [properties] Properties to set - * @returns Parameter instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Intent.IParameter): google.cloud.dialogflow.cx.v3beta1.Intent.Parameter; + /** GetTestCaseRequest name */ + name?: (string|null); + } - /** - * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.verify|verify} messages. - * @param message Parameter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Intent.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a GetTestCaseRequest. */ + class GetTestCaseRequest implements IGetTestCaseRequest { - /** - * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.verify|verify} messages. - * @param message Parameter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Intent.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new GetTestCaseRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest); - /** - * Decodes a Parameter message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Parameter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Intent.Parameter; + /** GetTestCaseRequest name. */ + public name: string; - /** - * Decodes a Parameter message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Parameter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Intent.Parameter; + /** + * Creates a new GetTestCaseRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTestCaseRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest): google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest; - /** - * Verifies a Parameter message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Encodes the specified GetTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest.verify|verify} messages. + * @param message GetTestCaseRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a Parameter message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Parameter - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Intent.Parameter; + /** + * Encodes the specified GetTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest.verify|verify} messages. + * @param message GetTestCaseRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a Parameter message. Also converts values to other types if specified. - * @param message Parameter - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Intent.Parameter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a GetTestCaseRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTestCaseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest; - /** - * Converts this Parameter to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } + /** + * Decodes a GetTestCaseRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetTestCaseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest; - /** Properties of a ListIntentsRequest. */ - interface IListIntentsRequest { + /** + * Verifies a GetTestCaseRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** ListIntentsRequest parent */ - parent?: (string|null); + /** + * Creates a GetTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetTestCaseRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest; - /** ListIntentsRequest languageCode */ - languageCode?: (string|null); + /** + * Creates a plain object from a GetTestCaseRequest message. Also converts values to other types if specified. + * @param message GetTestCaseRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ListIntentsRequest intentView */ - intentView?: (google.cloud.dialogflow.cx.v3beta1.IntentView|keyof typeof google.cloud.dialogflow.cx.v3beta1.IntentView|null); + /** + * Converts this GetTestCaseRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** ListIntentsRequest pageSize */ - pageSize?: (number|null); + /** Properties of a RunTestCaseRequest. */ + interface IRunTestCaseRequest { - /** ListIntentsRequest pageToken */ - pageToken?: (string|null); + /** RunTestCaseRequest name */ + name?: (string|null); + + /** RunTestCaseRequest environment */ + environment?: (string|null); } - /** Represents a ListIntentsRequest. */ - class ListIntentsRequest implements IListIntentsRequest { + /** Represents a RunTestCaseRequest. */ + class RunTestCaseRequest implements IRunTestCaseRequest { /** - * Constructs a new ListIntentsRequest. + * Constructs a new RunTestCaseRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest); - - /** ListIntentsRequest parent. */ - public parent: string; - - /** ListIntentsRequest languageCode. */ - public languageCode: string; - - /** ListIntentsRequest intentView. */ - public intentView: (google.cloud.dialogflow.cx.v3beta1.IntentView|keyof typeof google.cloud.dialogflow.cx.v3beta1.IntentView); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest); - /** ListIntentsRequest pageSize. */ - public pageSize: number; + /** RunTestCaseRequest name. */ + public name: string; - /** ListIntentsRequest pageToken. */ - public pageToken: string; + /** RunTestCaseRequest environment. */ + public environment: string; /** - * Creates a new ListIntentsRequest instance using the specified properties. + * Creates a new RunTestCaseRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListIntentsRequest instance + * @returns RunTestCaseRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest): google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest): google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest; /** - * Encodes the specified ListIntentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest.verify|verify} messages. - * @param message ListIntentsRequest message or plain object to encode + * Encodes the specified RunTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest.verify|verify} messages. + * @param message RunTestCaseRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListIntentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest.verify|verify} messages. - * @param message ListIntentsRequest message or plain object to encode + * Encodes the specified RunTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest.verify|verify} messages. + * @param message RunTestCaseRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListIntentsRequest message from the specified reader or buffer. + * Decodes a RunTestCaseRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListIntentsRequest + * @returns RunTestCaseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest; /** - * Decodes a ListIntentsRequest message from the specified reader or buffer, length delimited. + * Decodes a RunTestCaseRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListIntentsRequest + * @returns RunTestCaseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest; /** - * Verifies a ListIntentsRequest message. + * Verifies a RunTestCaseRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListIntentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RunTestCaseRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListIntentsRequest + * @returns RunTestCaseRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest; /** - * Creates a plain object from a ListIntentsRequest message. Also converts values to other types if specified. - * @param message ListIntentsRequest + * Creates a plain object from a RunTestCaseRequest message. Also converts values to other types if specified. + * @param message RunTestCaseRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListIntentsRequest to JSON. + * Converts this RunTestCaseRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListIntentsResponse. */ - interface IListIntentsResponse { - - /** ListIntentsResponse intents */ - intents?: (google.cloud.dialogflow.cx.v3beta1.IIntent[]|null); + /** Properties of a RunTestCaseResponse. */ + interface IRunTestCaseResponse { - /** ListIntentsResponse nextPageToken */ - nextPageToken?: (string|null); + /** RunTestCaseResponse result */ + result?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null); } - /** Represents a ListIntentsResponse. */ - class ListIntentsResponse implements IListIntentsResponse { + /** Represents a RunTestCaseResponse. */ + class RunTestCaseResponse implements IRunTestCaseResponse { /** - * Constructs a new ListIntentsResponse. + * Constructs a new RunTestCaseResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse); - - /** ListIntentsResponse intents. */ - public intents: google.cloud.dialogflow.cx.v3beta1.IIntent[]; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse); - /** ListIntentsResponse nextPageToken. */ - public nextPageToken: string; + /** RunTestCaseResponse result. */ + public result?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null); /** - * Creates a new ListIntentsResponse instance using the specified properties. + * Creates a new RunTestCaseResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListIntentsResponse instance + * @returns RunTestCaseResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse): google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse): google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse; /** - * Encodes the specified ListIntentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse.verify|verify} messages. - * @param message ListIntentsResponse message or plain object to encode + * Encodes the specified RunTestCaseResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse.verify|verify} messages. + * @param message RunTestCaseResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListIntentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse.verify|verify} messages. - * @param message ListIntentsResponse message or plain object to encode + * Encodes the specified RunTestCaseResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse.verify|verify} messages. + * @param message RunTestCaseResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListIntentsResponse message from the specified reader or buffer. + * Decodes a RunTestCaseResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListIntentsResponse + * @returns RunTestCaseResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse; /** - * Decodes a ListIntentsResponse message from the specified reader or buffer, length delimited. + * Decodes a RunTestCaseResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListIntentsResponse + * @returns RunTestCaseResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse; /** - * Verifies a ListIntentsResponse message. + * Verifies a RunTestCaseResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListIntentsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RunTestCaseResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListIntentsResponse + * @returns RunTestCaseResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse; /** - * Creates a plain object from a ListIntentsResponse message. Also converts values to other types if specified. - * @param message ListIntentsResponse + * Creates a plain object from a RunTestCaseResponse message. Also converts values to other types if specified. + * @param message RunTestCaseResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListIntentsResponse to JSON. + * Converts this RunTestCaseResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetIntentRequest. */ - interface IGetIntentRequest { - - /** GetIntentRequest name */ - name?: (string|null); - - /** GetIntentRequest languageCode */ - languageCode?: (string|null); + /** Properties of a RunTestCaseMetadata. */ + interface IRunTestCaseMetadata { } - /** Represents a GetIntentRequest. */ - class GetIntentRequest implements IGetIntentRequest { + /** Represents a RunTestCaseMetadata. */ + class RunTestCaseMetadata implements IRunTestCaseMetadata { /** - * Constructs a new GetIntentRequest. + * Constructs a new RunTestCaseMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest); - - /** GetIntentRequest name. */ - public name: string; - - /** GetIntentRequest languageCode. */ - public languageCode: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata); /** - * Creates a new GetIntentRequest instance using the specified properties. + * Creates a new RunTestCaseMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns GetIntentRequest instance + * @returns RunTestCaseMetadata instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest): google.cloud.dialogflow.cx.v3beta1.GetIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata): google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata; /** - * Encodes the specified GetIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetIntentRequest.verify|verify} messages. - * @param message GetIntentRequest message or plain object to encode + * Encodes the specified RunTestCaseMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata.verify|verify} messages. + * @param message RunTestCaseMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetIntentRequest.verify|verify} messages. - * @param message GetIntentRequest message or plain object to encode + * Encodes the specified RunTestCaseMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata.verify|verify} messages. + * @param message RunTestCaseMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetIntentRequest message from the specified reader or buffer. + * Decodes a RunTestCaseMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetIntentRequest + * @returns RunTestCaseMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata; /** - * Decodes a GetIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a RunTestCaseMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetIntentRequest + * @returns RunTestCaseMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata; /** - * Verifies a GetIntentRequest message. + * Verifies a RunTestCaseMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RunTestCaseMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetIntentRequest + * @returns RunTestCaseMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata; /** - * Creates a plain object from a GetIntentRequest message. Also converts values to other types if specified. - * @param message GetIntentRequest + * Creates a plain object from a RunTestCaseMetadata message. Also converts values to other types if specified. + * @param message RunTestCaseMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetIntentRequest to JSON. + * Converts this RunTestCaseMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateIntentRequest. */ - interface ICreateIntentRequest { + /** Properties of a BatchRunTestCasesRequest. */ + interface IBatchRunTestCasesRequest { - /** CreateIntentRequest parent */ + /** BatchRunTestCasesRequest parent */ parent?: (string|null); - /** CreateIntentRequest intent */ - intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); + /** BatchRunTestCasesRequest environment */ + environment?: (string|null); - /** CreateIntentRequest languageCode */ - languageCode?: (string|null); + /** BatchRunTestCasesRequest testCases */ + testCases?: (string[]|null); } - /** Represents a CreateIntentRequest. */ - class CreateIntentRequest implements ICreateIntentRequest { + /** Represents a BatchRunTestCasesRequest. */ + class BatchRunTestCasesRequest implements IBatchRunTestCasesRequest { /** - * Constructs a new CreateIntentRequest. + * Constructs a new BatchRunTestCasesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest); - /** CreateIntentRequest parent. */ + /** BatchRunTestCasesRequest parent. */ public parent: string; - /** CreateIntentRequest intent. */ - public intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); + /** BatchRunTestCasesRequest environment. */ + public environment: string; - /** CreateIntentRequest languageCode. */ - public languageCode: string; + /** BatchRunTestCasesRequest testCases. */ + public testCases: string[]; /** - * Creates a new CreateIntentRequest instance using the specified properties. + * Creates a new BatchRunTestCasesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateIntentRequest instance + * @returns BatchRunTestCasesRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest): google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest; /** - * Encodes the specified CreateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest.verify|verify} messages. - * @param message CreateIntentRequest message or plain object to encode + * Encodes the specified BatchRunTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest.verify|verify} messages. + * @param message BatchRunTestCasesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest.verify|verify} messages. - * @param message CreateIntentRequest message or plain object to encode + * Encodes the specified BatchRunTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest.verify|verify} messages. + * @param message BatchRunTestCasesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateIntentRequest message from the specified reader or buffer. + * Decodes a BatchRunTestCasesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateIntentRequest + * @returns BatchRunTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest; /** - * Decodes a CreateIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchRunTestCasesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateIntentRequest + * @returns BatchRunTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest; /** - * Verifies a CreateIntentRequest message. + * Verifies a BatchRunTestCasesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchRunTestCasesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateIntentRequest + * @returns BatchRunTestCasesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest; /** - * Creates a plain object from a CreateIntentRequest message. Also converts values to other types if specified. - * @param message CreateIntentRequest + * Creates a plain object from a BatchRunTestCasesRequest message. Also converts values to other types if specified. + * @param message BatchRunTestCasesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateIntentRequest to JSON. + * Converts this BatchRunTestCasesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateIntentRequest. */ - interface IUpdateIntentRequest { - - /** UpdateIntentRequest intent */ - intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); - - /** UpdateIntentRequest languageCode */ - languageCode?: (string|null); + /** Properties of a BatchRunTestCasesResponse. */ + interface IBatchRunTestCasesResponse { - /** UpdateIntentRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** BatchRunTestCasesResponse results */ + results?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseResult[]|null); } - /** Represents an UpdateIntentRequest. */ - class UpdateIntentRequest implements IUpdateIntentRequest { + /** Represents a BatchRunTestCasesResponse. */ + class BatchRunTestCasesResponse implements IBatchRunTestCasesResponse { /** - * Constructs a new UpdateIntentRequest. + * Constructs a new BatchRunTestCasesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest); - - /** UpdateIntentRequest intent. */ - public intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); - - /** UpdateIntentRequest languageCode. */ - public languageCode: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse); - /** UpdateIntentRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** BatchRunTestCasesResponse results. */ + public results: google.cloud.dialogflow.cx.v3beta1.ITestCaseResult[]; /** - * Creates a new UpdateIntentRequest instance using the specified properties. + * Creates a new BatchRunTestCasesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateIntentRequest instance + * @returns BatchRunTestCasesResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest): google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse; /** - * Encodes the specified UpdateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest.verify|verify} messages. - * @param message UpdateIntentRequest message or plain object to encode + * Encodes the specified BatchRunTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse.verify|verify} messages. + * @param message BatchRunTestCasesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest.verify|verify} messages. - * @param message UpdateIntentRequest message or plain object to encode + * Encodes the specified BatchRunTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse.verify|verify} messages. + * @param message BatchRunTestCasesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateIntentRequest message from the specified reader or buffer. + * Decodes a BatchRunTestCasesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateIntentRequest + * @returns BatchRunTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse; /** - * Decodes an UpdateIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchRunTestCasesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateIntentRequest + * @returns BatchRunTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse; /** - * Verifies an UpdateIntentRequest message. + * Verifies a BatchRunTestCasesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchRunTestCasesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateIntentRequest + * @returns BatchRunTestCasesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse; /** - * Creates a plain object from an UpdateIntentRequest message. Also converts values to other types if specified. - * @param message UpdateIntentRequest + * Creates a plain object from a BatchRunTestCasesResponse message. Also converts values to other types if specified. + * @param message BatchRunTestCasesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateIntentRequest to JSON. + * Converts this BatchRunTestCasesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteIntentRequest. */ - interface IDeleteIntentRequest { + /** Properties of a BatchRunTestCasesMetadata. */ + interface IBatchRunTestCasesMetadata { - /** DeleteIntentRequest name */ - name?: (string|null); + /** BatchRunTestCasesMetadata errors */ + errors?: (google.cloud.dialogflow.cx.v3beta1.ITestError[]|null); } - /** Represents a DeleteIntentRequest. */ - class DeleteIntentRequest implements IDeleteIntentRequest { + /** Represents a BatchRunTestCasesMetadata. */ + class BatchRunTestCasesMetadata implements IBatchRunTestCasesMetadata { /** - * Constructs a new DeleteIntentRequest. + * Constructs a new BatchRunTestCasesMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata); - /** DeleteIntentRequest name. */ - public name: string; + /** BatchRunTestCasesMetadata errors. */ + public errors: google.cloud.dialogflow.cx.v3beta1.ITestError[]; /** - * Creates a new DeleteIntentRequest instance using the specified properties. + * Creates a new BatchRunTestCasesMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteIntentRequest instance + * @returns BatchRunTestCasesMetadata instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest): google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata; /** - * Encodes the specified DeleteIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest.verify|verify} messages. - * @param message DeleteIntentRequest message or plain object to encode + * Encodes the specified BatchRunTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata.verify|verify} messages. + * @param message BatchRunTestCasesMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest.verify|verify} messages. - * @param message DeleteIntentRequest message or plain object to encode + * Encodes the specified BatchRunTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata.verify|verify} messages. + * @param message BatchRunTestCasesMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteIntentRequest message from the specified reader or buffer. + * Decodes a BatchRunTestCasesMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteIntentRequest + * @returns BatchRunTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata; /** - * Decodes a DeleteIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchRunTestCasesMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteIntentRequest + * @returns BatchRunTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata; /** - * Verifies a DeleteIntentRequest message. + * Verifies a BatchRunTestCasesMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchRunTestCasesMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteIntentRequest + * @returns BatchRunTestCasesMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata; /** - * Creates a plain object from a DeleteIntentRequest message. Also converts values to other types if specified. - * @param message DeleteIntentRequest + * Creates a plain object from a BatchRunTestCasesMetadata message. Also converts values to other types if specified. + * @param message BatchRunTestCasesMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteIntentRequest to JSON. + * Converts this BatchRunTestCasesMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** IntentView enum. */ - enum IntentView { - INTENT_VIEW_UNSPECIFIED = 0, - INTENT_VIEW_PARTIAL = 1, - INTENT_VIEW_FULL = 2 - } + /** Properties of a TestError. */ + interface ITestError { - /** Represents a Sessions */ - class Sessions extends $protobuf.rpc.Service { + /** TestError testCase */ + testCase?: (string|null); - /** - * Constructs a new Sessions service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** TestError status */ + status?: (google.rpc.IStatus|null); - /** - * Creates new Sessions service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Sessions; + /** TestError testTime */ + testTime?: (google.protobuf.ITimestamp|null); + } - /** - * Calls DetectIntent. - * @param request DetectIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DetectIntentResponse - */ - public detectIntent(request: google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Sessions.DetectIntentCallback): void; + /** Represents a TestError. */ + class TestError implements ITestError { /** - * Calls DetectIntent. - * @param request DetectIntentRequest message or plain object - * @returns Promise + * Constructs a new TestError. + * @param [properties] Properties to set */ - public detectIntent(request: google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest): Promise; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITestError); - /** - * Calls StreamingDetectIntent. - * @param request StreamingDetectIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and StreamingDetectIntentResponse - */ - public streamingDetectIntent(request: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Sessions.StreamingDetectIntentCallback): void; + /** TestError testCase. */ + public testCase: string; + + /** TestError status. */ + public status?: (google.rpc.IStatus|null); + + /** TestError testTime. */ + public testTime?: (google.protobuf.ITimestamp|null); /** - * Calls StreamingDetectIntent. - * @param request StreamingDetectIntentRequest message or plain object - * @returns Promise + * Creates a new TestError instance using the specified properties. + * @param [properties] Properties to set + * @returns TestError instance */ - public streamingDetectIntent(request: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest): Promise; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITestError): google.cloud.dialogflow.cx.v3beta1.TestError; /** - * Calls MatchIntent. - * @param request MatchIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and MatchIntentResponse + * Encodes the specified TestError message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestError.verify|verify} messages. + * @param message TestError message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public matchIntent(request: google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntentCallback): void; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITestError, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls MatchIntent. - * @param request MatchIntentRequest message or plain object - * @returns Promise + * Encodes the specified TestError message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestError.verify|verify} messages. + * @param message TestError message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public matchIntent(request: google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest): Promise; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITestError, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls FulfillIntent. - * @param request FulfillIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and FulfillIntentResponse + * Decodes a TestError message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TestError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public fulfillIntent(request: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Sessions.FulfillIntentCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TestError; /** - * Calls FulfillIntent. - * @param request FulfillIntentRequest message or plain object - * @returns Promise + * Decodes a TestError message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TestError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public fulfillIntent(request: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest): Promise; - } - - namespace Sessions { + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TestError; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#detectIntent}. - * @param error Error, if any - * @param [response] DetectIntentResponse + * Verifies a TestError message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type DetectIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#streamingDetectIntent}. - * @param error Error, if any - * @param [response] StreamingDetectIntentResponse + * Creates a TestError message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TestError */ - type StreamingDetectIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TestError; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#matchIntent}. - * @param error Error, if any - * @param [response] MatchIntentResponse + * Creates a plain object from a TestError message. Also converts values to other types if specified. + * @param message TestError + * @param [options] Conversion options + * @returns Plain object */ - type MatchIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse) => void; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TestError, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#fulfillIntent}. - * @param error Error, if any - * @param [response] FulfillIntentResponse + * Converts this TestError to JSON. + * @returns JSON object */ - type FulfillIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse) => void; + public toJSON(): { [k: string]: any }; } - /** Properties of a DetectIntentRequest. */ - interface IDetectIntentRequest { - - /** DetectIntentRequest session */ - session?: (string|null); + /** Properties of an ImportTestCasesRequest. */ + interface IImportTestCasesRequest { - /** DetectIntentRequest queryParams */ - queryParams?: (google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null); + /** ImportTestCasesRequest parent */ + parent?: (string|null); - /** DetectIntentRequest queryInput */ - queryInput?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); + /** ImportTestCasesRequest gcsUri */ + gcsUri?: (string|null); - /** DetectIntentRequest outputAudioConfig */ - outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); + /** ImportTestCasesRequest content */ + content?: (Uint8Array|string|null); } - /** Represents a DetectIntentRequest. */ - class DetectIntentRequest implements IDetectIntentRequest { + /** Represents an ImportTestCasesRequest. */ + class ImportTestCasesRequest implements IImportTestCasesRequest { /** - * Constructs a new DetectIntentRequest. + * Constructs a new ImportTestCasesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest); - /** DetectIntentRequest session. */ - public session: string; + /** ImportTestCasesRequest parent. */ + public parent: string; - /** DetectIntentRequest queryParams. */ - public queryParams?: (google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null); + /** ImportTestCasesRequest gcsUri. */ + public gcsUri: string; - /** DetectIntentRequest queryInput. */ - public queryInput?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); + /** ImportTestCasesRequest content. */ + public content: (Uint8Array|string); - /** DetectIntentRequest outputAudioConfig. */ - public outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); + /** ImportTestCasesRequest source. */ + public source?: ("gcsUri"|"content"); /** - * Creates a new DetectIntentRequest instance using the specified properties. + * Creates a new ImportTestCasesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DetectIntentRequest instance + * @returns ImportTestCasesRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest): google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest; /** - * Encodes the specified DetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.verify|verify} messages. - * @param message DetectIntentRequest message or plain object to encode + * Encodes the specified ImportTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest.verify|verify} messages. + * @param message ImportTestCasesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.verify|verify} messages. - * @param message DetectIntentRequest message or plain object to encode + * Encodes the specified ImportTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest.verify|verify} messages. + * @param message ImportTestCasesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DetectIntentRequest message from the specified reader or buffer. + * Decodes an ImportTestCasesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DetectIntentRequest + * @returns ImportTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest; /** - * Decodes a DetectIntentRequest message from the specified reader or buffer, length delimited. + * Decodes an ImportTestCasesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DetectIntentRequest + * @returns ImportTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest; /** - * Verifies a DetectIntentRequest message. + * Verifies an ImportTestCasesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DetectIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ImportTestCasesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DetectIntentRequest + * @returns ImportTestCasesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest; /** - * Creates a plain object from a DetectIntentRequest message. Also converts values to other types if specified. - * @param message DetectIntentRequest + * Creates a plain object from an ImportTestCasesRequest message. Also converts values to other types if specified. + * @param message ImportTestCasesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DetectIntentRequest to JSON. + * Converts this ImportTestCasesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DetectIntentResponse. */ - interface IDetectIntentResponse { - - /** DetectIntentResponse responseId */ - responseId?: (string|null); - - /** DetectIntentResponse queryResult */ - queryResult?: (google.cloud.dialogflow.cx.v3beta1.IQueryResult|null); - - /** DetectIntentResponse outputAudio */ - outputAudio?: (Uint8Array|string|null); + /** Properties of an ImportTestCasesResponse. */ + interface IImportTestCasesResponse { - /** DetectIntentResponse outputAudioConfig */ - outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); + /** ImportTestCasesResponse names */ + names?: (string[]|null); } - /** Represents a DetectIntentResponse. */ - class DetectIntentResponse implements IDetectIntentResponse { + /** Represents an ImportTestCasesResponse. */ + class ImportTestCasesResponse implements IImportTestCasesResponse { /** - * Constructs a new DetectIntentResponse. + * Constructs a new ImportTestCasesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse); - - /** DetectIntentResponse responseId. */ - public responseId: string; - - /** DetectIntentResponse queryResult. */ - public queryResult?: (google.cloud.dialogflow.cx.v3beta1.IQueryResult|null); - - /** DetectIntentResponse outputAudio. */ - public outputAudio: (Uint8Array|string); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse); - /** DetectIntentResponse outputAudioConfig. */ - public outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); + /** ImportTestCasesResponse names. */ + public names: string[]; /** - * Creates a new DetectIntentResponse instance using the specified properties. + * Creates a new ImportTestCasesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DetectIntentResponse instance + * @returns ImportTestCasesResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse): google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse; /** - * Encodes the specified DetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.verify|verify} messages. - * @param message DetectIntentResponse message or plain object to encode + * Encodes the specified ImportTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse.verify|verify} messages. + * @param message ImportTestCasesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.verify|verify} messages. - * @param message DetectIntentResponse message or plain object to encode + * Encodes the specified ImportTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse.verify|verify} messages. + * @param message ImportTestCasesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DetectIntentResponse message from the specified reader or buffer. + * Decodes an ImportTestCasesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DetectIntentResponse + * @returns ImportTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse; /** - * Decodes a DetectIntentResponse message from the specified reader or buffer, length delimited. + * Decodes an ImportTestCasesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DetectIntentResponse + * @returns ImportTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse; /** - * Verifies a DetectIntentResponse message. + * Verifies an ImportTestCasesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DetectIntentResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ImportTestCasesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DetectIntentResponse + * @returns ImportTestCasesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse; /** - * Creates a plain object from a DetectIntentResponse message. Also converts values to other types if specified. - * @param message DetectIntentResponse + * Creates a plain object from an ImportTestCasesResponse message. Also converts values to other types if specified. + * @param message ImportTestCasesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DetectIntentResponse to JSON. + * Converts this ImportTestCasesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a StreamingDetectIntentRequest. */ - interface IStreamingDetectIntentRequest { - - /** StreamingDetectIntentRequest session */ - session?: (string|null); - - /** StreamingDetectIntentRequest queryParams */ - queryParams?: (google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null); - - /** StreamingDetectIntentRequest queryInput */ - queryInput?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); + /** Properties of an ImportTestCasesMetadata. */ + interface IImportTestCasesMetadata { - /** StreamingDetectIntentRequest outputAudioConfig */ - outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); + /** ImportTestCasesMetadata errors */ + errors?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseError[]|null); } - /** Represents a StreamingDetectIntentRequest. */ - class StreamingDetectIntentRequest implements IStreamingDetectIntentRequest { + /** Represents an ImportTestCasesMetadata. */ + class ImportTestCasesMetadata implements IImportTestCasesMetadata { /** - * Constructs a new StreamingDetectIntentRequest. + * Constructs a new ImportTestCasesMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest); - - /** StreamingDetectIntentRequest session. */ - public session: string; - - /** StreamingDetectIntentRequest queryParams. */ - public queryParams?: (google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null); - - /** StreamingDetectIntentRequest queryInput. */ - public queryInput?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata); - /** StreamingDetectIntentRequest outputAudioConfig. */ - public outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); + /** ImportTestCasesMetadata errors. */ + public errors: google.cloud.dialogflow.cx.v3beta1.ITestCaseError[]; /** - * Creates a new StreamingDetectIntentRequest instance using the specified properties. + * Creates a new ImportTestCasesMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns StreamingDetectIntentRequest instance + * @returns ImportTestCasesMetadata instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata; /** - * Encodes the specified StreamingDetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.verify|verify} messages. - * @param message StreamingDetectIntentRequest message or plain object to encode + * Encodes the specified ImportTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata.verify|verify} messages. + * @param message ImportTestCasesMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StreamingDetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.verify|verify} messages. - * @param message StreamingDetectIntentRequest message or plain object to encode + * Encodes the specified ImportTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata.verify|verify} messages. + * @param message ImportTestCasesMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer. + * Decodes an ImportTestCasesMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StreamingDetectIntentRequest + * @returns ImportTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata; /** - * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer, length delimited. + * Decodes an ImportTestCasesMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StreamingDetectIntentRequest + * @returns ImportTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata; /** - * Verifies a StreamingDetectIntentRequest message. + * Verifies an ImportTestCasesMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StreamingDetectIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ImportTestCasesMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StreamingDetectIntentRequest + * @returns ImportTestCasesMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata; /** - * Creates a plain object from a StreamingDetectIntentRequest message. Also converts values to other types if specified. - * @param message StreamingDetectIntentRequest + * Creates a plain object from an ImportTestCasesMetadata message. Also converts values to other types if specified. + * @param message ImportTestCasesMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StreamingDetectIntentRequest to JSON. + * Converts this ImportTestCasesMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a StreamingDetectIntentResponse. */ - interface IStreamingDetectIntentResponse { + /** Properties of a TestCaseError. */ + interface ITestCaseError { - /** StreamingDetectIntentResponse recognitionResult */ - recognitionResult?: (google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult|null); + /** TestCaseError testCase */ + testCase?: (google.cloud.dialogflow.cx.v3beta1.ITestCase|null); - /** StreamingDetectIntentResponse detectIntentResponse */ - detectIntentResponse?: (google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse|null); + /** TestCaseError status */ + status?: (google.rpc.IStatus|null); } - /** Represents a StreamingDetectIntentResponse. */ - class StreamingDetectIntentResponse implements IStreamingDetectIntentResponse { + /** Represents a TestCaseError. */ + class TestCaseError implements ITestCaseError { /** - * Constructs a new StreamingDetectIntentResponse. + * Constructs a new TestCaseError. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse); - - /** StreamingDetectIntentResponse recognitionResult. */ - public recognitionResult?: (google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITestCaseError); - /** StreamingDetectIntentResponse detectIntentResponse. */ - public detectIntentResponse?: (google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse|null); + /** TestCaseError testCase. */ + public testCase?: (google.cloud.dialogflow.cx.v3beta1.ITestCase|null); - /** StreamingDetectIntentResponse response. */ - public response?: ("recognitionResult"|"detectIntentResponse"); + /** TestCaseError status. */ + public status?: (google.rpc.IStatus|null); /** - * Creates a new StreamingDetectIntentResponse instance using the specified properties. + * Creates a new TestCaseError instance using the specified properties. * @param [properties] Properties to set - * @returns StreamingDetectIntentResponse instance + * @returns TestCaseError instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITestCaseError): google.cloud.dialogflow.cx.v3beta1.TestCaseError; /** - * Encodes the specified StreamingDetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse.verify|verify} messages. - * @param message StreamingDetectIntentResponse message or plain object to encode + * Encodes the specified TestCaseError message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCaseError.verify|verify} messages. + * @param message TestCaseError message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITestCaseError, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StreamingDetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse.verify|verify} messages. - * @param message StreamingDetectIntentResponse message or plain object to encode + * Encodes the specified TestCaseError message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCaseError.verify|verify} messages. + * @param message TestCaseError message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITestCaseError, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer. + * Decodes a TestCaseError message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StreamingDetectIntentResponse + * @returns TestCaseError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TestCaseError; /** - * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer, length delimited. + * Decodes a TestCaseError message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StreamingDetectIntentResponse + * @returns TestCaseError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TestCaseError; /** - * Verifies a StreamingDetectIntentResponse message. + * Verifies a TestCaseError message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StreamingDetectIntentResponse message from a plain object. Also converts values to their respective internal types. + * Creates a TestCaseError message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StreamingDetectIntentResponse + * @returns TestCaseError */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TestCaseError; /** - * Creates a plain object from a StreamingDetectIntentResponse message. Also converts values to other types if specified. - * @param message StreamingDetectIntentResponse + * Creates a plain object from a TestCaseError message. Also converts values to other types if specified. + * @param message TestCaseError * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TestCaseError, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StreamingDetectIntentResponse to JSON. + * Converts this TestCaseError to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a StreamingRecognitionResult. */ - interface IStreamingRecognitionResult { - - /** StreamingRecognitionResult messageType */ - messageType?: (google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType|keyof typeof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType|null); - - /** StreamingRecognitionResult transcript */ - transcript?: (string|null); - - /** StreamingRecognitionResult isFinal */ - isFinal?: (boolean|null); + /** Properties of an ExportTestCasesRequest. */ + interface IExportTestCasesRequest { - /** StreamingRecognitionResult confidence */ - confidence?: (number|null); + /** ExportTestCasesRequest parent */ + parent?: (string|null); - /** StreamingRecognitionResult stability */ - stability?: (number|null); + /** ExportTestCasesRequest gcsUri */ + gcsUri?: (string|null); - /** StreamingRecognitionResult speechWordInfo */ - speechWordInfo?: (google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo[]|null); + /** ExportTestCasesRequest dataFormat */ + dataFormat?: (google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat|keyof typeof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat|null); - /** StreamingRecognitionResult speechEndOffset */ - speechEndOffset?: (google.protobuf.IDuration|null); + /** ExportTestCasesRequest filter */ + filter?: (string|null); } - /** Represents a StreamingRecognitionResult. */ - class StreamingRecognitionResult implements IStreamingRecognitionResult { + /** Represents an ExportTestCasesRequest. */ + class ExportTestCasesRequest implements IExportTestCasesRequest { /** - * Constructs a new StreamingRecognitionResult. + * Constructs a new ExportTestCasesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult); - - /** StreamingRecognitionResult messageType. */ - public messageType: (google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType|keyof typeof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType); - - /** StreamingRecognitionResult transcript. */ - public transcript: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest); - /** StreamingRecognitionResult isFinal. */ - public isFinal: boolean; + /** ExportTestCasesRequest parent. */ + public parent: string; - /** StreamingRecognitionResult confidence. */ - public confidence: number; + /** ExportTestCasesRequest gcsUri. */ + public gcsUri: string; - /** StreamingRecognitionResult stability. */ - public stability: number; + /** ExportTestCasesRequest dataFormat. */ + public dataFormat: (google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat|keyof typeof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat); - /** StreamingRecognitionResult speechWordInfo. */ - public speechWordInfo: google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo[]; + /** ExportTestCasesRequest filter. */ + public filter: string; - /** StreamingRecognitionResult speechEndOffset. */ - public speechEndOffset?: (google.protobuf.IDuration|null); + /** ExportTestCasesRequest destination. */ + public destination?: "gcsUri"; /** - * Creates a new StreamingRecognitionResult instance using the specified properties. + * Creates a new ExportTestCasesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns StreamingRecognitionResult instance + * @returns ExportTestCasesRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult): google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest; /** - * Encodes the specified StreamingRecognitionResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.verify|verify} messages. - * @param message StreamingRecognitionResult message or plain object to encode + * Encodes the specified ExportTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.verify|verify} messages. + * @param message ExportTestCasesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StreamingRecognitionResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.verify|verify} messages. - * @param message StreamingRecognitionResult message or plain object to encode + * Encodes the specified ExportTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.verify|verify} messages. + * @param message ExportTestCasesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StreamingRecognitionResult message from the specified reader or buffer. + * Decodes an ExportTestCasesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StreamingRecognitionResult + * @returns ExportTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest; /** - * Decodes a StreamingRecognitionResult message from the specified reader or buffer, length delimited. + * Decodes an ExportTestCasesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StreamingRecognitionResult + * @returns ExportTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest; /** - * Verifies a StreamingRecognitionResult message. + * Verifies an ExportTestCasesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StreamingRecognitionResult message from a plain object. Also converts values to their respective internal types. + * Creates an ExportTestCasesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StreamingRecognitionResult + * @returns ExportTestCasesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest; /** - * Creates a plain object from a StreamingRecognitionResult message. Also converts values to other types if specified. - * @param message StreamingRecognitionResult + * Creates a plain object from an ExportTestCasesRequest message. Also converts values to other types if specified. + * @param message ExportTestCasesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StreamingRecognitionResult to JSON. + * Converts this ExportTestCasesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace StreamingRecognitionResult { + namespace ExportTestCasesRequest { - /** MessageType enum. */ - enum MessageType { - MESSAGE_TYPE_UNSPECIFIED = 0, - TRANSCRIPT = 1, - END_OF_SINGLE_UTTERANCE = 2 + /** DataFormat enum. */ + enum DataFormat { + DATA_FORMAT_UNSPECIFIED = 0, + BLOB = 1, + JSON = 2 } } - /** Properties of a QueryParameters. */ - interface IQueryParameters { - - /** QueryParameters timeZone */ - timeZone?: (string|null); - - /** QueryParameters geoLocation */ - geoLocation?: (google.type.ILatLng|null); - - /** QueryParameters sessionEntityTypes */ - sessionEntityTypes?: (google.cloud.dialogflow.cx.v3beta1.ISessionEntityType[]|null); - - /** QueryParameters payload */ - payload?: (google.protobuf.IStruct|null); - - /** QueryParameters parameters */ - parameters?: (google.protobuf.IStruct|null); - - /** QueryParameters disableWebhook */ - disableWebhook?: (boolean|null); + /** Properties of an ExportTestCasesResponse. */ + interface IExportTestCasesResponse { - /** QueryParameters analyzeQueryTextSentiment */ - analyzeQueryTextSentiment?: (boolean|null); + /** ExportTestCasesResponse gcsUri */ + gcsUri?: (string|null); - /** QueryParameters webhookHeaders */ - webhookHeaders?: ({ [k: string]: string }|null); + /** ExportTestCasesResponse content */ + content?: (Uint8Array|string|null); } - /** Represents a QueryParameters. */ - class QueryParameters implements IQueryParameters { + /** Represents an ExportTestCasesResponse. */ + class ExportTestCasesResponse implements IExportTestCasesResponse { /** - * Constructs a new QueryParameters. + * Constructs a new ExportTestCasesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IQueryParameters); - - /** QueryParameters timeZone. */ - public timeZone: string; - - /** QueryParameters geoLocation. */ - public geoLocation?: (google.type.ILatLng|null); - - /** QueryParameters sessionEntityTypes. */ - public sessionEntityTypes: google.cloud.dialogflow.cx.v3beta1.ISessionEntityType[]; - - /** QueryParameters payload. */ - public payload?: (google.protobuf.IStruct|null); - - /** QueryParameters parameters. */ - public parameters?: (google.protobuf.IStruct|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse); - /** QueryParameters disableWebhook. */ - public disableWebhook: boolean; + /** ExportTestCasesResponse gcsUri. */ + public gcsUri: string; - /** QueryParameters analyzeQueryTextSentiment. */ - public analyzeQueryTextSentiment: boolean; + /** ExportTestCasesResponse content. */ + public content: (Uint8Array|string); - /** QueryParameters webhookHeaders. */ - public webhookHeaders: { [k: string]: string }; + /** ExportTestCasesResponse destination. */ + public destination?: ("gcsUri"|"content"); /** - * Creates a new QueryParameters instance using the specified properties. + * Creates a new ExportTestCasesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns QueryParameters instance + * @returns ExportTestCasesResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IQueryParameters): google.cloud.dialogflow.cx.v3beta1.QueryParameters; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse; /** - * Encodes the specified QueryParameters message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryParameters.verify|verify} messages. - * @param message QueryParameters message or plain object to encode + * Encodes the specified ExportTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse.verify|verify} messages. + * @param message ExportTestCasesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IQueryParameters, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryParameters message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryParameters.verify|verify} messages. - * @param message QueryParameters message or plain object to encode + * Encodes the specified ExportTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse.verify|verify} messages. + * @param message ExportTestCasesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IQueryParameters, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryParameters message from the specified reader or buffer. + * Decodes an ExportTestCasesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryParameters + * @returns ExportTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.QueryParameters; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse; /** - * Decodes a QueryParameters message from the specified reader or buffer, length delimited. + * Decodes an ExportTestCasesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryParameters + * @returns ExportTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.QueryParameters; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse; /** - * Verifies a QueryParameters message. + * Verifies an ExportTestCasesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryParameters message from a plain object. Also converts values to their respective internal types. + * Creates an ExportTestCasesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryParameters + * @returns ExportTestCasesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.QueryParameters; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse; /** - * Creates a plain object from a QueryParameters message. Also converts values to other types if specified. - * @param message QueryParameters + * Creates a plain object from an ExportTestCasesResponse message. Also converts values to other types if specified. + * @param message ExportTestCasesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.QueryParameters, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryParameters to JSON. + * Converts this ExportTestCasesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryInput. */ - interface IQueryInput { - - /** QueryInput text */ - text?: (google.cloud.dialogflow.cx.v3beta1.ITextInput|null); - - /** QueryInput intent */ - intent?: (google.cloud.dialogflow.cx.v3beta1.IIntentInput|null); - - /** QueryInput audio */ - audio?: (google.cloud.dialogflow.cx.v3beta1.IAudioInput|null); - - /** QueryInput event */ - event?: (google.cloud.dialogflow.cx.v3beta1.IEventInput|null); - - /** QueryInput dtmf */ - dtmf?: (google.cloud.dialogflow.cx.v3beta1.IDtmfInput|null); - - /** QueryInput languageCode */ - languageCode?: (string|null); + /** Properties of an ExportTestCasesMetadata. */ + interface IExportTestCasesMetadata { } - /** Represents a QueryInput. */ - class QueryInput implements IQueryInput { + /** Represents an ExportTestCasesMetadata. */ + class ExportTestCasesMetadata implements IExportTestCasesMetadata { /** - * Constructs a new QueryInput. + * Constructs a new ExportTestCasesMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IQueryInput); - - /** QueryInput text. */ - public text?: (google.cloud.dialogflow.cx.v3beta1.ITextInput|null); - - /** QueryInput intent. */ - public intent?: (google.cloud.dialogflow.cx.v3beta1.IIntentInput|null); - - /** QueryInput audio. */ - public audio?: (google.cloud.dialogflow.cx.v3beta1.IAudioInput|null); - - /** QueryInput event. */ - public event?: (google.cloud.dialogflow.cx.v3beta1.IEventInput|null); - - /** QueryInput dtmf. */ - public dtmf?: (google.cloud.dialogflow.cx.v3beta1.IDtmfInput|null); - - /** QueryInput languageCode. */ - public languageCode: string; - - /** QueryInput input. */ - public input?: ("text"|"intent"|"audio"|"event"|"dtmf"); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata); /** - * Creates a new QueryInput instance using the specified properties. + * Creates a new ExportTestCasesMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns QueryInput instance + * @returns ExportTestCasesMetadata instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IQueryInput): google.cloud.dialogflow.cx.v3beta1.QueryInput; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata; /** - * Encodes the specified QueryInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryInput.verify|verify} messages. - * @param message QueryInput message or plain object to encode + * Encodes the specified ExportTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata.verify|verify} messages. + * @param message ExportTestCasesMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IQueryInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryInput.verify|verify} messages. - * @param message QueryInput message or plain object to encode + * Encodes the specified ExportTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata.verify|verify} messages. + * @param message ExportTestCasesMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IQueryInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryInput message from the specified reader or buffer. + * Decodes an ExportTestCasesMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryInput + * @returns ExportTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.QueryInput; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata; /** - * Decodes a QueryInput message from the specified reader or buffer, length delimited. + * Decodes an ExportTestCasesMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryInput + * @returns ExportTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.QueryInput; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata; /** - * Verifies a QueryInput message. + * Verifies an ExportTestCasesMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryInput message from a plain object. Also converts values to their respective internal types. + * Creates an ExportTestCasesMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryInput + * @returns ExportTestCasesMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.QueryInput; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata; /** - * Creates a plain object from a QueryInput message. Also converts values to other types if specified. - * @param message QueryInput + * Creates a plain object from an ExportTestCasesMetadata message. Also converts values to other types if specified. + * @param message ExportTestCasesMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.QueryInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryInput to JSON. + * Converts this ExportTestCasesMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryResult. */ - interface IQueryResult { - - /** QueryResult text */ - text?: (string|null); - - /** QueryResult triggerIntent */ - triggerIntent?: (string|null); - - /** QueryResult transcript */ - transcript?: (string|null); - - /** QueryResult triggerEvent */ - triggerEvent?: (string|null); - - /** QueryResult languageCode */ - languageCode?: (string|null); - - /** QueryResult parameters */ - parameters?: (google.protobuf.IStruct|null); - - /** QueryResult responseMessages */ - responseMessages?: (google.cloud.dialogflow.cx.v3beta1.IResponseMessage[]|null); - - /** QueryResult webhookStatuses */ - webhookStatuses?: (google.rpc.IStatus[]|null); - - /** QueryResult webhookPayloads */ - webhookPayloads?: (google.protobuf.IStruct[]|null); - - /** QueryResult currentPage */ - currentPage?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); - - /** QueryResult intent */ - intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); + /** Properties of a ListTestCaseResultsRequest. */ + interface IListTestCaseResultsRequest { - /** QueryResult intentDetectionConfidence */ - intentDetectionConfidence?: (number|null); + /** ListTestCaseResultsRequest parent */ + parent?: (string|null); - /** QueryResult match */ - match?: (google.cloud.dialogflow.cx.v3beta1.IMatch|null); + /** ListTestCaseResultsRequest pageSize */ + pageSize?: (number|null); - /** QueryResult diagnosticInfo */ - diagnosticInfo?: (google.protobuf.IStruct|null); + /** ListTestCaseResultsRequest pageToken */ + pageToken?: (string|null); - /** QueryResult sentimentAnalysisResult */ - sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult|null); + /** ListTestCaseResultsRequest filter */ + filter?: (string|null); } - /** Represents a QueryResult. */ - class QueryResult implements IQueryResult { + /** Represents a ListTestCaseResultsRequest. */ + class ListTestCaseResultsRequest implements IListTestCaseResultsRequest { /** - * Constructs a new QueryResult. + * Constructs a new ListTestCaseResultsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IQueryResult); - - /** QueryResult text. */ - public text: string; - - /** QueryResult triggerIntent. */ - public triggerIntent: string; - - /** QueryResult transcript. */ - public transcript: string; - - /** QueryResult triggerEvent. */ - public triggerEvent: string; - - /** QueryResult languageCode. */ - public languageCode: string; - - /** QueryResult parameters. */ - public parameters?: (google.protobuf.IStruct|null); - - /** QueryResult responseMessages. */ - public responseMessages: google.cloud.dialogflow.cx.v3beta1.IResponseMessage[]; - - /** QueryResult webhookStatuses. */ - public webhookStatuses: google.rpc.IStatus[]; - - /** QueryResult webhookPayloads. */ - public webhookPayloads: google.protobuf.IStruct[]; - - /** QueryResult currentPage. */ - public currentPage?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); - - /** QueryResult intent. */ - public intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); - - /** QueryResult intentDetectionConfidence. */ - public intentDetectionConfidence: number; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest); - /** QueryResult match. */ - public match?: (google.cloud.dialogflow.cx.v3beta1.IMatch|null); + /** ListTestCaseResultsRequest parent. */ + public parent: string; - /** QueryResult diagnosticInfo. */ - public diagnosticInfo?: (google.protobuf.IStruct|null); + /** ListTestCaseResultsRequest pageSize. */ + public pageSize: number; - /** QueryResult sentimentAnalysisResult. */ - public sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult|null); + /** ListTestCaseResultsRequest pageToken. */ + public pageToken: string; - /** QueryResult query. */ - public query?: ("text"|"triggerIntent"|"transcript"|"triggerEvent"); + /** ListTestCaseResultsRequest filter. */ + public filter: string; /** - * Creates a new QueryResult instance using the specified properties. + * Creates a new ListTestCaseResultsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns QueryResult instance + * @returns ListTestCaseResultsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IQueryResult): google.cloud.dialogflow.cx.v3beta1.QueryResult; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest; /** - * Encodes the specified QueryResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryResult.verify|verify} messages. - * @param message QueryResult message or plain object to encode + * Encodes the specified ListTestCaseResultsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest.verify|verify} messages. + * @param message ListTestCaseResultsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryResult.verify|verify} messages. - * @param message QueryResult message or plain object to encode + * Encodes the specified ListTestCaseResultsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest.verify|verify} messages. + * @param message ListTestCaseResultsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryResult message from the specified reader or buffer. + * Decodes a ListTestCaseResultsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryResult + * @returns ListTestCaseResultsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.QueryResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest; /** - * Decodes a QueryResult message from the specified reader or buffer, length delimited. + * Decodes a ListTestCaseResultsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryResult + * @returns ListTestCaseResultsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.QueryResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest; /** - * Verifies a QueryResult message. + * Verifies a ListTestCaseResultsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryResult message from a plain object. Also converts values to their respective internal types. + * Creates a ListTestCaseResultsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryResult + * @returns ListTestCaseResultsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.QueryResult; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest; /** - * Creates a plain object from a QueryResult message. Also converts values to other types if specified. - * @param message QueryResult + * Creates a plain object from a ListTestCaseResultsRequest message. Also converts values to other types if specified. + * @param message ListTestCaseResultsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.QueryResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryResult to JSON. + * Converts this ListTestCaseResultsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TextInput. */ - interface ITextInput { + /** Properties of a ListTestCaseResultsResponse. */ + interface IListTestCaseResultsResponse { - /** TextInput text */ - text?: (string|null); + /** ListTestCaseResultsResponse testCaseResults */ + testCaseResults?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseResult[]|null); + + /** ListTestCaseResultsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a TextInput. */ - class TextInput implements ITextInput { + /** Represents a ListTestCaseResultsResponse. */ + class ListTestCaseResultsResponse implements IListTestCaseResultsResponse { /** - * Constructs a new TextInput. + * Constructs a new ListTestCaseResultsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITextInput); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse); - /** TextInput text. */ - public text: string; + /** ListTestCaseResultsResponse testCaseResults. */ + public testCaseResults: google.cloud.dialogflow.cx.v3beta1.ITestCaseResult[]; + + /** ListTestCaseResultsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new TextInput instance using the specified properties. + * Creates a new ListTestCaseResultsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns TextInput instance + * @returns ListTestCaseResultsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITextInput): google.cloud.dialogflow.cx.v3beta1.TextInput; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse; /** - * Encodes the specified TextInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TextInput.verify|verify} messages. - * @param message TextInput message or plain object to encode + * Encodes the specified ListTestCaseResultsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse.verify|verify} messages. + * @param message ListTestCaseResultsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITextInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TextInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TextInput.verify|verify} messages. - * @param message TextInput message or plain object to encode + * Encodes the specified ListTestCaseResultsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse.verify|verify} messages. + * @param message ListTestCaseResultsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITextInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TextInput message from the specified reader or buffer. + * Decodes a ListTestCaseResultsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TextInput + * @returns ListTestCaseResultsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TextInput; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse; /** - * Decodes a TextInput message from the specified reader or buffer, length delimited. + * Decodes a ListTestCaseResultsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TextInput + * @returns ListTestCaseResultsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TextInput; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse; /** - * Verifies a TextInput message. + * Verifies a ListTestCaseResultsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TextInput message from a plain object. Also converts values to their respective internal types. + * Creates a ListTestCaseResultsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TextInput + * @returns ListTestCaseResultsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TextInput; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse; /** - * Creates a plain object from a TextInput message. Also converts values to other types if specified. - * @param message TextInput + * Creates a plain object from a ListTestCaseResultsResponse message. Also converts values to other types if specified. + * @param message ListTestCaseResultsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TextInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TextInput to JSON. + * Converts this ListTestCaseResultsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an IntentInput. */ - interface IIntentInput { - - /** IntentInput intent */ - intent?: (string|null); + /** TestResult enum. */ + enum TestResult { + TEST_RESULT_UNSPECIFIED = 0, + PASSED = 1, + FAILED = 2 } - /** Represents an IntentInput. */ - class IntentInput implements IIntentInput { + /** Represents an Intents */ + class Intents extends $protobuf.rpc.Service { /** - * Constructs a new IntentInput. - * @param [properties] Properties to set + * Constructs a new Intents service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IIntentInput); + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** IntentInput intent. */ - public intent: string; + /** + * Creates new Intents service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Intents; /** - * Creates a new IntentInput instance using the specified properties. - * @param [properties] Properties to set - * @returns IntentInput instance + * Calls ListIntents. + * @param request ListIntentsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListIntentsResponse */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IIntentInput): google.cloud.dialogflow.cx.v3beta1.IntentInput; + public listIntents(request: google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Intents.ListIntentsCallback): void; /** - * Encodes the specified IntentInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentInput.verify|verify} messages. - * @param message IntentInput message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ListIntents. + * @param request ListIntentsRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IIntentInput, writer?: $protobuf.Writer): $protobuf.Writer; + public listIntents(request: google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest): Promise; /** - * Encodes the specified IntentInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentInput.verify|verify} messages. - * @param message IntentInput message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls GetIntent. + * @param request GetIntentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Intent */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IIntentInput, writer?: $protobuf.Writer): $protobuf.Writer; + public getIntent(request: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Intents.GetIntentCallback): void; /** - * Decodes an IntentInput message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns IntentInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetIntent. + * @param request GetIntentRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.IntentInput; + public getIntent(request: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest): Promise; /** - * Decodes an IntentInput message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns IntentInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateIntent. + * @param request CreateIntentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Intent */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.IntentInput; + public createIntent(request: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Intents.CreateIntentCallback): void; /** - * Verifies an IntentInput message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls CreateIntent. + * @param request CreateIntentRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public createIntent(request: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest): Promise; /** - * Creates an IntentInput message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns IntentInput + * Calls UpdateIntent. + * @param request UpdateIntentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Intent */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.IntentInput; + public updateIntent(request: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Intents.UpdateIntentCallback): void; /** - * Creates a plain object from an IntentInput message. Also converts values to other types if specified. - * @param message IntentInput - * @param [options] Conversion options - * @returns Plain object + * Calls UpdateIntent. + * @param request UpdateIntentRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.IntentInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public updateIntent(request: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest): Promise; /** - * Converts this IntentInput to JSON. - * @returns JSON object + * Calls DeleteIntent. + * @param request DeleteIntentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public toJSON(): { [k: string]: any }; + public deleteIntent(request: google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Intents.DeleteIntentCallback): void; + + /** + * Calls DeleteIntent. + * @param request DeleteIntentRequest message or plain object + * @returns Promise + */ + public deleteIntent(request: google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest): Promise; } - /** Properties of an AudioInput. */ - interface IAudioInput { + namespace Intents { - /** AudioInput config */ - config?: (google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig|null); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#listIntents}. + * @param error Error, if any + * @param [response] ListIntentsResponse + */ + type ListIntentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse) => void; - /** AudioInput audio */ - audio?: (Uint8Array|string|null); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#getIntent}. + * @param error Error, if any + * @param [response] Intent + */ + type GetIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Intent) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#createIntent}. + * @param error Error, if any + * @param [response] Intent + */ + type CreateIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Intent) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#updateIntent}. + * @param error Error, if any + * @param [response] Intent + */ + type UpdateIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Intent) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#deleteIntent}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteIntentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; } - /** Represents an AudioInput. */ - class AudioInput implements IAudioInput { + /** Properties of an Intent. */ + interface IIntent { + + /** Intent name */ + name?: (string|null); + + /** Intent displayName */ + displayName?: (string|null); + + /** Intent trainingPhrases */ + trainingPhrases?: (google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase[]|null); + + /** Intent parameters */ + parameters?: (google.cloud.dialogflow.cx.v3beta1.Intent.IParameter[]|null); + + /** Intent priority */ + priority?: (number|null); + + /** Intent isFallback */ + isFallback?: (boolean|null); + + /** Intent labels */ + labels?: ({ [k: string]: string }|null); + + /** Intent description */ + description?: (string|null); + } + + /** Represents an Intent. */ + class Intent implements IIntent { /** - * Constructs a new AudioInput. + * Constructs a new Intent. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IAudioInput); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IIntent); - /** AudioInput config. */ - public config?: (google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig|null); + /** Intent name. */ + public name: string; - /** AudioInput audio. */ - public audio: (Uint8Array|string); + /** Intent displayName. */ + public displayName: string; + + /** Intent trainingPhrases. */ + public trainingPhrases: google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase[]; + + /** Intent parameters. */ + public parameters: google.cloud.dialogflow.cx.v3beta1.Intent.IParameter[]; + + /** Intent priority. */ + public priority: number; + + /** Intent isFallback. */ + public isFallback: boolean; + + /** Intent labels. */ + public labels: { [k: string]: string }; + + /** Intent description. */ + public description: string; /** - * Creates a new AudioInput instance using the specified properties. + * Creates a new Intent instance using the specified properties. * @param [properties] Properties to set - * @returns AudioInput instance + * @returns Intent instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IAudioInput): google.cloud.dialogflow.cx.v3beta1.AudioInput; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IIntent): google.cloud.dialogflow.cx.v3beta1.Intent; /** - * Encodes the specified AudioInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AudioInput.verify|verify} messages. - * @param message AudioInput message or plain object to encode + * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.verify|verify} messages. + * @param message Intent message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IAudioInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AudioInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AudioInput.verify|verify} messages. - * @param message AudioInput message or plain object to encode + * Encodes the specified Intent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.verify|verify} messages. + * @param message Intent message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IAudioInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AudioInput message from the specified reader or buffer. + * Decodes an Intent message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AudioInput + * @returns Intent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.AudioInput; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Intent; /** - * Decodes an AudioInput message from the specified reader or buffer, length delimited. + * Decodes an Intent message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AudioInput + * @returns Intent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.AudioInput; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Intent; /** - * Verifies an AudioInput message. + * Verifies an Intent message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates an AudioInput message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AudioInput - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.AudioInput; + /** + * Creates an Intent message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Intent + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Intent; + + /** + * Creates a plain object from an Intent message. Also converts values to other types if specified. + * @param message Intent + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Intent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Intent to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace Intent { + + /** Properties of a TrainingPhrase. */ + interface ITrainingPhrase { + + /** TrainingPhrase id */ + id?: (string|null); + + /** TrainingPhrase parts */ + parts?: (google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart[]|null); + + /** TrainingPhrase repeatCount */ + repeatCount?: (number|null); + } + + /** Represents a TrainingPhrase. */ + class TrainingPhrase implements ITrainingPhrase { + + /** + * Constructs a new TrainingPhrase. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase); + + /** TrainingPhrase id. */ + public id: string; + + /** TrainingPhrase parts. */ + public parts: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart[]; + + /** TrainingPhrase repeatCount. */ + public repeatCount: number; + + /** + * Creates a new TrainingPhrase instance using the specified properties. + * @param [properties] Properties to set + * @returns TrainingPhrase instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase; + + /** + * Encodes the specified TrainingPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.verify|verify} messages. + * @param message TrainingPhrase message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TrainingPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.verify|verify} messages. + * @param message TrainingPhrase message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TrainingPhrase message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TrainingPhrase + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase; + + /** + * Decodes a TrainingPhrase message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TrainingPhrase + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase; + + /** + * Verifies a TrainingPhrase message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TrainingPhrase message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TrainingPhrase + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase; + + /** + * Creates a plain object from a TrainingPhrase message. Also converts values to other types if specified. + * @param message TrainingPhrase + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TrainingPhrase to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace TrainingPhrase { + + /** Properties of a Part. */ + interface IPart { + + /** Part text */ + text?: (string|null); + + /** Part parameterId */ + parameterId?: (string|null); + } + + /** Represents a Part. */ + class Part implements IPart { - /** - * Creates a plain object from an AudioInput message. Also converts values to other types if specified. - * @param message AudioInput - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.AudioInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new Part. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart); - /** - * Converts this AudioInput to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Part text. */ + public text: string; - /** Properties of an EventInput. */ - interface IEventInput { + /** Part parameterId. */ + public parameterId: string; - /** EventInput event */ - event?: (string|null); - } + /** + * Creates a new Part instance using the specified properties. + * @param [properties] Properties to set + * @returns Part instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part; - /** Represents an EventInput. */ - class EventInput implements IEventInput { + /** + * Encodes the specified Part message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.verify|verify} messages. + * @param message Part message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new EventInput. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IEventInput); + /** + * Encodes the specified Part message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.verify|verify} messages. + * @param message Part message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart, writer?: $protobuf.Writer): $protobuf.Writer; - /** EventInput event. */ - public event: string; + /** + * Decodes a Part message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Part + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part; - /** - * Creates a new EventInput instance using the specified properties. - * @param [properties] Properties to set - * @returns EventInput instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IEventInput): google.cloud.dialogflow.cx.v3beta1.EventInput; + /** + * Decodes a Part message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Part + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part; - /** - * Encodes the specified EventInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventInput.verify|verify} messages. - * @param message EventInput message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IEventInput, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a Part message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Encodes the specified EventInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventInput.verify|verify} messages. - * @param message EventInput message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IEventInput, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a Part message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Part + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part; - /** - * Decodes an EventInput message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EventInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.EventInput; + /** + * Creates a plain object from a Part message. Also converts values to other types if specified. + * @param message Part + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes an EventInput message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EventInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.EventInput; + /** + * Converts this Part to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } - /** - * Verifies an EventInput message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Properties of a Parameter. */ + interface IParameter { - /** - * Creates an EventInput message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EventInput - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.EventInput; + /** Parameter id */ + id?: (string|null); - /** - * Creates a plain object from an EventInput message. Also converts values to other types if specified. - * @param message EventInput - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.EventInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Parameter entityType */ + entityType?: (string|null); - /** - * Converts this EventInput to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Parameter isList */ + isList?: (boolean|null); - /** Properties of a DtmfInput. */ - interface IDtmfInput { + /** Parameter redact */ + redact?: (boolean|null); + } - /** DtmfInput digits */ - digits?: (string|null); + /** Represents a Parameter. */ + class Parameter implements IParameter { - /** DtmfInput finishDigit */ - finishDigit?: (string|null); - } + /** + * Constructs a new Parameter. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Intent.IParameter); - /** Represents a DtmfInput. */ - class DtmfInput implements IDtmfInput { + /** Parameter id. */ + public id: string; - /** - * Constructs a new DtmfInput. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDtmfInput); + /** Parameter entityType. */ + public entityType: string; - /** DtmfInput digits. */ - public digits: string; + /** Parameter isList. */ + public isList: boolean; - /** DtmfInput finishDigit. */ - public finishDigit: string; + /** Parameter redact. */ + public redact: boolean; - /** - * Creates a new DtmfInput instance using the specified properties. - * @param [properties] Properties to set - * @returns DtmfInput instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDtmfInput): google.cloud.dialogflow.cx.v3beta1.DtmfInput; + /** + * Creates a new Parameter instance using the specified properties. + * @param [properties] Properties to set + * @returns Parameter instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Intent.IParameter): google.cloud.dialogflow.cx.v3beta1.Intent.Parameter; - /** - * Encodes the specified DtmfInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DtmfInput.verify|verify} messages. - * @param message DtmfInput message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDtmfInput, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.verify|verify} messages. + * @param message Parameter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Intent.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DtmfInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DtmfInput.verify|verify} messages. - * @param message DtmfInput message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDtmfInput, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.verify|verify} messages. + * @param message Parameter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Intent.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a DtmfInput message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DtmfInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DtmfInput; + /** + * Decodes a Parameter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Parameter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Intent.Parameter; - /** - * Decodes a DtmfInput message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DtmfInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DtmfInput; + /** + * Decodes a Parameter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Parameter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Intent.Parameter; - /** - * Verifies a DtmfInput message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Verifies a Parameter message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a DtmfInput message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DtmfInput - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DtmfInput; + /** + * Creates a Parameter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Parameter + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Intent.Parameter; - /** - * Creates a plain object from a DtmfInput message. Also converts values to other types if specified. - * @param message DtmfInput - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DtmfInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a Parameter message. Also converts values to other types if specified. + * @param message Parameter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Intent.Parameter, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this DtmfInput to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this Parameter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Properties of a Match. */ - interface IMatch { - - /** Match intent */ - intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); + /** Properties of a ListIntentsRequest. */ + interface IListIntentsRequest { - /** Match event */ - event?: (string|null); + /** ListIntentsRequest parent */ + parent?: (string|null); - /** Match parameters */ - parameters?: (google.protobuf.IStruct|null); + /** ListIntentsRequest languageCode */ + languageCode?: (string|null); - /** Match resolvedInput */ - resolvedInput?: (string|null); + /** ListIntentsRequest intentView */ + intentView?: (google.cloud.dialogflow.cx.v3beta1.IntentView|keyof typeof google.cloud.dialogflow.cx.v3beta1.IntentView|null); - /** Match matchType */ - matchType?: (google.cloud.dialogflow.cx.v3beta1.Match.MatchType|keyof typeof google.cloud.dialogflow.cx.v3beta1.Match.MatchType|null); + /** ListIntentsRequest pageSize */ + pageSize?: (number|null); - /** Match confidence */ - confidence?: (number|null); + /** ListIntentsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a Match. */ - class Match implements IMatch { + /** Represents a ListIntentsRequest. */ + class ListIntentsRequest implements IListIntentsRequest { /** - * Constructs a new Match. + * Constructs a new ListIntentsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IMatch); - - /** Match intent. */ - public intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest); - /** Match event. */ - public event: string; + /** ListIntentsRequest parent. */ + public parent: string; - /** Match parameters. */ - public parameters?: (google.protobuf.IStruct|null); + /** ListIntentsRequest languageCode. */ + public languageCode: string; - /** Match resolvedInput. */ - public resolvedInput: string; + /** ListIntentsRequest intentView. */ + public intentView: (google.cloud.dialogflow.cx.v3beta1.IntentView|keyof typeof google.cloud.dialogflow.cx.v3beta1.IntentView); - /** Match matchType. */ - public matchType: (google.cloud.dialogflow.cx.v3beta1.Match.MatchType|keyof typeof google.cloud.dialogflow.cx.v3beta1.Match.MatchType); + /** ListIntentsRequest pageSize. */ + public pageSize: number; - /** Match confidence. */ - public confidence: number; + /** ListIntentsRequest pageToken. */ + public pageToken: string; /** - * Creates a new Match instance using the specified properties. + * Creates a new ListIntentsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Match instance + * @returns ListIntentsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IMatch): google.cloud.dialogflow.cx.v3beta1.Match; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest): google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest; /** - * Encodes the specified Match message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Match.verify|verify} messages. - * @param message Match message or plain object to encode + * Encodes the specified ListIntentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest.verify|verify} messages. + * @param message ListIntentsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IMatch, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Match message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Match.verify|verify} messages. - * @param message Match message or plain object to encode + * Encodes the specified ListIntentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest.verify|verify} messages. + * @param message ListIntentsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IMatch, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Match message from the specified reader or buffer. + * Decodes a ListIntentsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Match + * @returns ListIntentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Match; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest; /** - * Decodes a Match message from the specified reader or buffer, length delimited. + * Decodes a ListIntentsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Match + * @returns ListIntentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Match; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest; /** - * Verifies a Match message. + * Verifies a ListIntentsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Match message from a plain object. Also converts values to their respective internal types. + * Creates a ListIntentsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Match + * @returns ListIntentsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Match; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest; /** - * Creates a plain object from a Match message. Also converts values to other types if specified. - * @param message Match + * Creates a plain object from a ListIntentsRequest message. Also converts values to other types if specified. + * @param message ListIntentsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Match, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Match to JSON. + * Converts this ListIntentsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Match { - - /** MatchType enum. */ - enum MatchType { - MATCH_TYPE_UNSPECIFIED = 0, - INTENT = 1, - DIRECT_INTENT = 2, - PARAMETER_FILLING = 3, - NO_MATCH = 4, - NO_INPUT = 5, - EVENT = 6 - } - } - - /** Properties of a MatchIntentRequest. */ - interface IMatchIntentRequest { - - /** MatchIntentRequest session */ - session?: (string|null); + /** Properties of a ListIntentsResponse. */ + interface IListIntentsResponse { - /** MatchIntentRequest queryParams */ - queryParams?: (google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null); + /** ListIntentsResponse intents */ + intents?: (google.cloud.dialogflow.cx.v3beta1.IIntent[]|null); - /** MatchIntentRequest queryInput */ - queryInput?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); + /** ListIntentsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a MatchIntentRequest. */ - class MatchIntentRequest implements IMatchIntentRequest { + /** Represents a ListIntentsResponse. */ + class ListIntentsResponse implements IListIntentsResponse { /** - * Constructs a new MatchIntentRequest. + * Constructs a new ListIntentsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest); - - /** MatchIntentRequest session. */ - public session: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse); - /** MatchIntentRequest queryParams. */ - public queryParams?: (google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null); + /** ListIntentsResponse intents. */ + public intents: google.cloud.dialogflow.cx.v3beta1.IIntent[]; - /** MatchIntentRequest queryInput. */ - public queryInput?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); + /** ListIntentsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new MatchIntentRequest instance using the specified properties. + * Creates a new ListIntentsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns MatchIntentRequest instance + * @returns ListIntentsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest): google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse): google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse; /** - * Encodes the specified MatchIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.verify|verify} messages. - * @param message MatchIntentRequest message or plain object to encode + * Encodes the specified ListIntentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse.verify|verify} messages. + * @param message ListIntentsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MatchIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.verify|verify} messages. - * @param message MatchIntentRequest message or plain object to encode + * Encodes the specified ListIntentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse.verify|verify} messages. + * @param message ListIntentsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MatchIntentRequest message from the specified reader or buffer. + * Decodes a ListIntentsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MatchIntentRequest + * @returns ListIntentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse; /** - * Decodes a MatchIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a ListIntentsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MatchIntentRequest + * @returns ListIntentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse; /** - * Verifies a MatchIntentRequest message. + * Verifies a ListIntentsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MatchIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListIntentsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MatchIntentRequest + * @returns ListIntentsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse; /** - * Creates a plain object from a MatchIntentRequest message. Also converts values to other types if specified. - * @param message MatchIntentRequest + * Creates a plain object from a ListIntentsResponse message. Also converts values to other types if specified. + * @param message ListIntentsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MatchIntentRequest to JSON. + * Converts this ListIntentsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MatchIntentResponse. */ - interface IMatchIntentResponse { - - /** MatchIntentResponse text */ - text?: (string|null); - - /** MatchIntentResponse triggerIntent */ - triggerIntent?: (string|null); - - /** MatchIntentResponse transcript */ - transcript?: (string|null); - - /** MatchIntentResponse triggerEvent */ - triggerEvent?: (string|null); + /** Properties of a GetIntentRequest. */ + interface IGetIntentRequest { - /** MatchIntentResponse matches */ - matches?: (google.cloud.dialogflow.cx.v3beta1.IMatch[]|null); + /** GetIntentRequest name */ + name?: (string|null); - /** MatchIntentResponse currentPage */ - currentPage?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + /** GetIntentRequest languageCode */ + languageCode?: (string|null); } - /** Represents a MatchIntentResponse. */ - class MatchIntentResponse implements IMatchIntentResponse { + /** Represents a GetIntentRequest. */ + class GetIntentRequest implements IGetIntentRequest { /** - * Constructs a new MatchIntentResponse. + * Constructs a new GetIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse); - - /** MatchIntentResponse text. */ - public text: string; - - /** MatchIntentResponse triggerIntent. */ - public triggerIntent: string; - - /** MatchIntentResponse transcript. */ - public transcript: string; - - /** MatchIntentResponse triggerEvent. */ - public triggerEvent: string; - - /** MatchIntentResponse matches. */ - public matches: google.cloud.dialogflow.cx.v3beta1.IMatch[]; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest); - /** MatchIntentResponse currentPage. */ - public currentPage?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + /** GetIntentRequest name. */ + public name: string; - /** MatchIntentResponse query. */ - public query?: ("text"|"triggerIntent"|"transcript"|"triggerEvent"); + /** GetIntentRequest languageCode. */ + public languageCode: string; /** - * Creates a new MatchIntentResponse instance using the specified properties. + * Creates a new GetIntentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MatchIntentResponse instance + * @returns GetIntentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse): google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest): google.cloud.dialogflow.cx.v3beta1.GetIntentRequest; /** - * Encodes the specified MatchIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse.verify|verify} messages. - * @param message MatchIntentResponse message or plain object to encode + * Encodes the specified GetIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetIntentRequest.verify|verify} messages. + * @param message GetIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MatchIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse.verify|verify} messages. - * @param message MatchIntentResponse message or plain object to encode + * Encodes the specified GetIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetIntentRequest.verify|verify} messages. + * @param message GetIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MatchIntentResponse message from the specified reader or buffer. + * Decodes a GetIntentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MatchIntentResponse + * @returns GetIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetIntentRequest; /** - * Decodes a MatchIntentResponse message from the specified reader or buffer, length delimited. + * Decodes a GetIntentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MatchIntentResponse + * @returns GetIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetIntentRequest; /** - * Verifies a MatchIntentResponse message. + * Verifies a GetIntentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MatchIntentResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetIntentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MatchIntentResponse + * @returns GetIntentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetIntentRequest; /** - * Creates a plain object from a MatchIntentResponse message. Also converts values to other types if specified. - * @param message MatchIntentResponse + * Creates a plain object from a GetIntentRequest message. Also converts values to other types if specified. + * @param message GetIntentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MatchIntentResponse to JSON. + * Converts this GetIntentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a FulfillIntentRequest. */ - interface IFulfillIntentRequest { + /** Properties of a CreateIntentRequest. */ + interface ICreateIntentRequest { - /** FulfillIntentRequest matchIntentRequest */ - matchIntentRequest?: (google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest|null); + /** CreateIntentRequest parent */ + parent?: (string|null); - /** FulfillIntentRequest match */ - match?: (google.cloud.dialogflow.cx.v3beta1.IMatch|null); + /** CreateIntentRequest intent */ + intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); - /** FulfillIntentRequest outputAudioConfig */ - outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); + /** CreateIntentRequest languageCode */ + languageCode?: (string|null); } - /** Represents a FulfillIntentRequest. */ - class FulfillIntentRequest implements IFulfillIntentRequest { + /** Represents a CreateIntentRequest. */ + class CreateIntentRequest implements ICreateIntentRequest { /** - * Constructs a new FulfillIntentRequest. + * Constructs a new CreateIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest); - /** FulfillIntentRequest matchIntentRequest. */ - public matchIntentRequest?: (google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest|null); + /** CreateIntentRequest parent. */ + public parent: string; - /** FulfillIntentRequest match. */ - public match?: (google.cloud.dialogflow.cx.v3beta1.IMatch|null); + /** CreateIntentRequest intent. */ + public intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); - /** FulfillIntentRequest outputAudioConfig. */ - public outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); + /** CreateIntentRequest languageCode. */ + public languageCode: string; /** - * Creates a new FulfillIntentRequest instance using the specified properties. + * Creates a new CreateIntentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FulfillIntentRequest instance + * @returns CreateIntentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest): google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest): google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest; /** - * Encodes the specified FulfillIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest.verify|verify} messages. - * @param message FulfillIntentRequest message or plain object to encode + * Encodes the specified CreateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest.verify|verify} messages. + * @param message CreateIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FulfillIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest.verify|verify} messages. - * @param message FulfillIntentRequest message or plain object to encode + * Encodes the specified CreateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest.verify|verify} messages. + * @param message CreateIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FulfillIntentRequest message from the specified reader or buffer. + * Decodes a CreateIntentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FulfillIntentRequest + * @returns CreateIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest; /** - * Decodes a FulfillIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateIntentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FulfillIntentRequest + * @returns CreateIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest; /** - * Verifies a FulfillIntentRequest message. + * Verifies a CreateIntentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FulfillIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateIntentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FulfillIntentRequest + * @returns CreateIntentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest; /** - * Creates a plain object from a FulfillIntentRequest message. Also converts values to other types if specified. - * @param message FulfillIntentRequest + * Creates a plain object from a CreateIntentRequest message. Also converts values to other types if specified. + * @param message CreateIntentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FulfillIntentRequest to JSON. + * Converts this CreateIntentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a FulfillIntentResponse. */ - interface IFulfillIntentResponse { - - /** FulfillIntentResponse responseId */ - responseId?: (string|null); + /** Properties of an UpdateIntentRequest. */ + interface IUpdateIntentRequest { - /** FulfillIntentResponse queryResult */ - queryResult?: (google.cloud.dialogflow.cx.v3beta1.IQueryResult|null); + /** UpdateIntentRequest intent */ + intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); - /** FulfillIntentResponse outputAudio */ - outputAudio?: (Uint8Array|string|null); + /** UpdateIntentRequest languageCode */ + languageCode?: (string|null); - /** FulfillIntentResponse outputAudioConfig */ - outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); + /** UpdateIntentRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a FulfillIntentResponse. */ - class FulfillIntentResponse implements IFulfillIntentResponse { + /** Represents an UpdateIntentRequest. */ + class UpdateIntentRequest implements IUpdateIntentRequest { /** - * Constructs a new FulfillIntentResponse. + * Constructs a new UpdateIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse); - - /** FulfillIntentResponse responseId. */ - public responseId: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest); - /** FulfillIntentResponse queryResult. */ - public queryResult?: (google.cloud.dialogflow.cx.v3beta1.IQueryResult|null); + /** UpdateIntentRequest intent. */ + public intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); - /** FulfillIntentResponse outputAudio. */ - public outputAudio: (Uint8Array|string); + /** UpdateIntentRequest languageCode. */ + public languageCode: string; - /** FulfillIntentResponse outputAudioConfig. */ - public outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); + /** UpdateIntentRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new FulfillIntentResponse instance using the specified properties. + * Creates a new UpdateIntentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FulfillIntentResponse instance + * @returns UpdateIntentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse): google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest): google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest; /** - * Encodes the specified FulfillIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse.verify|verify} messages. - * @param message FulfillIntentResponse message or plain object to encode + * Encodes the specified UpdateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest.verify|verify} messages. + * @param message UpdateIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FulfillIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse.verify|verify} messages. - * @param message FulfillIntentResponse message or plain object to encode + * Encodes the specified UpdateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest.verify|verify} messages. + * @param message UpdateIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FulfillIntentResponse message from the specified reader or buffer. + * Decodes an UpdateIntentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FulfillIntentResponse + * @returns UpdateIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest; /** - * Decodes a FulfillIntentResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateIntentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FulfillIntentResponse + * @returns UpdateIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest; /** - * Verifies a FulfillIntentResponse message. + * Verifies an UpdateIntentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FulfillIntentResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateIntentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FulfillIntentResponse + * @returns UpdateIntentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest; /** - * Creates a plain object from a FulfillIntentResponse message. Also converts values to other types if specified. - * @param message FulfillIntentResponse + * Creates a plain object from an UpdateIntentRequest message. Also converts values to other types if specified. + * @param message UpdateIntentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FulfillIntentResponse to JSON. + * Converts this UpdateIntentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SentimentAnalysisResult. */ - interface ISentimentAnalysisResult { - - /** SentimentAnalysisResult score */ - score?: (number|null); + /** Properties of a DeleteIntentRequest. */ + interface IDeleteIntentRequest { - /** SentimentAnalysisResult magnitude */ - magnitude?: (number|null); + /** DeleteIntentRequest name */ + name?: (string|null); } - /** Represents a SentimentAnalysisResult. */ - class SentimentAnalysisResult implements ISentimentAnalysisResult { + /** Represents a DeleteIntentRequest. */ + class DeleteIntentRequest implements IDeleteIntentRequest { /** - * Constructs a new SentimentAnalysisResult. + * Constructs a new DeleteIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult); - - /** SentimentAnalysisResult score. */ - public score: number; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest); - /** SentimentAnalysisResult magnitude. */ - public magnitude: number; + /** DeleteIntentRequest name. */ + public name: string; /** - * Creates a new SentimentAnalysisResult instance using the specified properties. + * Creates a new DeleteIntentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SentimentAnalysisResult instance + * @returns DeleteIntentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult): google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest): google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest; /** - * Encodes the specified SentimentAnalysisResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.verify|verify} messages. - * @param message SentimentAnalysisResult message or plain object to encode + * Encodes the specified DeleteIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest.verify|verify} messages. + * @param message DeleteIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SentimentAnalysisResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.verify|verify} messages. - * @param message SentimentAnalysisResult message or plain object to encode + * Encodes the specified DeleteIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest.verify|verify} messages. + * @param message DeleteIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SentimentAnalysisResult message from the specified reader or buffer. + * Decodes a DeleteIntentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SentimentAnalysisResult + * @returns DeleteIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest; /** - * Decodes a SentimentAnalysisResult message from the specified reader or buffer, length delimited. + * Decodes a DeleteIntentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SentimentAnalysisResult + * @returns DeleteIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest; /** - * Verifies a SentimentAnalysisResult message. + * Verifies a DeleteIntentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SentimentAnalysisResult message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteIntentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SentimentAnalysisResult + * @returns DeleteIntentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest; /** - * Creates a plain object from a SentimentAnalysisResult message. Also converts values to other types if specified. - * @param message SentimentAnalysisResult + * Creates a plain object from a DeleteIntentRequest message. Also converts values to other types if specified. + * @param message DeleteIntentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SentimentAnalysisResult to JSON. + * Converts this DeleteIntentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a SessionEntityTypes */ - class SessionEntityTypes extends $protobuf.rpc.Service { + /** IntentView enum. */ + enum IntentView { + INTENT_VIEW_UNSPECIFIED = 0, + INTENT_VIEW_PARTIAL = 1, + INTENT_VIEW_FULL = 2 + } + + /** Represents a Sessions */ + class Sessions extends $protobuf.rpc.Service { /** - * Constructs a new SessionEntityTypes service. + * Constructs a new Sessions service. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited @@ -39096,5839 +39191,5782 @@ export namespace google { constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates new SessionEntityTypes service using the specified rpc implementation. + * Creates new Sessions service using the specified rpc implementation. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SessionEntityTypes; - - /** - * Calls ListSessionEntityTypes. - * @param request ListSessionEntityTypesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListSessionEntityTypesResponse - */ - public listSessionEntityTypes(request: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest, callback: google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.ListSessionEntityTypesCallback): void; - - /** - * Calls ListSessionEntityTypes. - * @param request ListSessionEntityTypesRequest message or plain object - * @returns Promise - */ - public listSessionEntityTypes(request: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest): Promise; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Sessions; /** - * Calls GetSessionEntityType. - * @param request GetSessionEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SessionEntityType + * Calls DetectIntent. + * @param request DetectIntentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DetectIntentResponse */ - public getSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.GetSessionEntityTypeCallback): void; + public detectIntent(request: google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Sessions.DetectIntentCallback): void; /** - * Calls GetSessionEntityType. - * @param request GetSessionEntityTypeRequest message or plain object + * Calls DetectIntent. + * @param request DetectIntentRequest message or plain object * @returns Promise */ - public getSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest): Promise; + public detectIntent(request: google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest): Promise; /** - * Calls CreateSessionEntityType. - * @param request CreateSessionEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SessionEntityType + * Calls StreamingDetectIntent. + * @param request StreamingDetectIntentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and StreamingDetectIntentResponse */ - public createSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.CreateSessionEntityTypeCallback): void; + public streamingDetectIntent(request: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Sessions.StreamingDetectIntentCallback): void; /** - * Calls CreateSessionEntityType. - * @param request CreateSessionEntityTypeRequest message or plain object + * Calls StreamingDetectIntent. + * @param request StreamingDetectIntentRequest message or plain object * @returns Promise */ - public createSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest): Promise; + public streamingDetectIntent(request: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest): Promise; /** - * Calls UpdateSessionEntityType. - * @param request UpdateSessionEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SessionEntityType + * Calls MatchIntent. + * @param request MatchIntentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and MatchIntentResponse */ - public updateSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.UpdateSessionEntityTypeCallback): void; + public matchIntent(request: google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntentCallback): void; /** - * Calls UpdateSessionEntityType. - * @param request UpdateSessionEntityTypeRequest message or plain object + * Calls MatchIntent. + * @param request MatchIntentRequest message or plain object * @returns Promise */ - public updateSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest): Promise; + public matchIntent(request: google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest): Promise; /** - * Calls DeleteSessionEntityType. - * @param request DeleteSessionEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Calls FulfillIntent. + * @param request FulfillIntentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and FulfillIntentResponse */ - public deleteSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.DeleteSessionEntityTypeCallback): void; + public fulfillIntent(request: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Sessions.FulfillIntentCallback): void; /** - * Calls DeleteSessionEntityType. - * @param request DeleteSessionEntityTypeRequest message or plain object + * Calls FulfillIntent. + * @param request FulfillIntentRequest message or plain object * @returns Promise */ - public deleteSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest): Promise; + public fulfillIntent(request: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest): Promise; } - namespace SessionEntityTypes { - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#listSessionEntityTypes}. - * @param error Error, if any - * @param [response] ListSessionEntityTypesResponse - */ - type ListSessionEntityTypesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse) => void; + namespace Sessions { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#getSessionEntityType}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#detectIntent}. * @param error Error, if any - * @param [response] SessionEntityType + * @param [response] DetectIntentResponse */ - type GetSessionEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.SessionEntityType) => void; + type DetectIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#createSessionEntityType}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#streamingDetectIntent}. * @param error Error, if any - * @param [response] SessionEntityType + * @param [response] StreamingDetectIntentResponse */ - type CreateSessionEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.SessionEntityType) => void; + type StreamingDetectIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#updateSessionEntityType}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#matchIntent}. * @param error Error, if any - * @param [response] SessionEntityType + * @param [response] MatchIntentResponse */ - type UpdateSessionEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.SessionEntityType) => void; + type MatchIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#deleteSessionEntityType}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#fulfillIntent}. * @param error Error, if any - * @param [response] Empty + * @param [response] FulfillIntentResponse */ - type DeleteSessionEntityTypeCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + type FulfillIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse) => void; } - /** Properties of a SessionEntityType. */ - interface ISessionEntityType { + /** Properties of a DetectIntentRequest. */ + interface IDetectIntentRequest { - /** SessionEntityType name */ - name?: (string|null); + /** DetectIntentRequest session */ + session?: (string|null); - /** SessionEntityType entityOverrideMode */ - entityOverrideMode?: (google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode|keyof typeof google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode|null); + /** DetectIntentRequest queryParams */ + queryParams?: (google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null); - /** SessionEntityType entities */ - entities?: (google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity[]|null); + /** DetectIntentRequest queryInput */ + queryInput?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); + + /** DetectIntentRequest outputAudioConfig */ + outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); } - /** Represents a SessionEntityType. */ - class SessionEntityType implements ISessionEntityType { + /** Represents a DetectIntentRequest. */ + class DetectIntentRequest implements IDetectIntentRequest { /** - * Constructs a new SessionEntityType. + * Constructs a new DetectIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ISessionEntityType); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest); - /** SessionEntityType name. */ - public name: string; + /** DetectIntentRequest session. */ + public session: string; - /** SessionEntityType entityOverrideMode. */ - public entityOverrideMode: (google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode|keyof typeof google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode); + /** DetectIntentRequest queryParams. */ + public queryParams?: (google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null); - /** SessionEntityType entities. */ - public entities: google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity[]; + /** DetectIntentRequest queryInput. */ + public queryInput?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); + + /** DetectIntentRequest outputAudioConfig. */ + public outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); /** - * Creates a new SessionEntityType instance using the specified properties. + * Creates a new DetectIntentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SessionEntityType instance + * @returns DetectIntentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ISessionEntityType): google.cloud.dialogflow.cx.v3beta1.SessionEntityType; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest): google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest; /** - * Encodes the specified SessionEntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify|verify} messages. - * @param message SessionEntityType message or plain object to encode + * Encodes the specified DetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.verify|verify} messages. + * @param message DetectIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ISessionEntityType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SessionEntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify|verify} messages. - * @param message SessionEntityType message or plain object to encode + * Encodes the specified DetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.verify|verify} messages. + * @param message DetectIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ISessionEntityType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SessionEntityType message from the specified reader or buffer. + * Decodes a DetectIntentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SessionEntityType + * @returns DetectIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.SessionEntityType; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest; /** - * Decodes a SessionEntityType message from the specified reader or buffer, length delimited. + * Decodes a DetectIntentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SessionEntityType + * @returns DetectIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.SessionEntityType; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest; /** - * Verifies a SessionEntityType message. + * Verifies a DetectIntentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SessionEntityType message from a plain object. Also converts values to their respective internal types. + * Creates a DetectIntentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SessionEntityType + * @returns DetectIntentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SessionEntityType; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest; /** - * Creates a plain object from a SessionEntityType message. Also converts values to other types if specified. - * @param message SessionEntityType + * Creates a plain object from a DetectIntentRequest message. Also converts values to other types if specified. + * @param message DetectIntentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.SessionEntityType, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SessionEntityType to JSON. + * Converts this DetectIntentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace SessionEntityType { - - /** EntityOverrideMode enum. */ - enum EntityOverrideMode { - ENTITY_OVERRIDE_MODE_UNSPECIFIED = 0, - ENTITY_OVERRIDE_MODE_OVERRIDE = 1, - ENTITY_OVERRIDE_MODE_SUPPLEMENT = 2 - } - } + /** Properties of a DetectIntentResponse. */ + interface IDetectIntentResponse { - /** Properties of a ListSessionEntityTypesRequest. */ - interface IListSessionEntityTypesRequest { + /** DetectIntentResponse responseId */ + responseId?: (string|null); - /** ListSessionEntityTypesRequest parent */ - parent?: (string|null); + /** DetectIntentResponse queryResult */ + queryResult?: (google.cloud.dialogflow.cx.v3beta1.IQueryResult|null); - /** ListSessionEntityTypesRequest pageSize */ - pageSize?: (number|null); + /** DetectIntentResponse outputAudio */ + outputAudio?: (Uint8Array|string|null); - /** ListSessionEntityTypesRequest pageToken */ - pageToken?: (string|null); + /** DetectIntentResponse outputAudioConfig */ + outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); } - /** Represents a ListSessionEntityTypesRequest. */ - class ListSessionEntityTypesRequest implements IListSessionEntityTypesRequest { + /** Represents a DetectIntentResponse. */ + class DetectIntentResponse implements IDetectIntentResponse { /** - * Constructs a new ListSessionEntityTypesRequest. + * Constructs a new DetectIntentResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse); - /** ListSessionEntityTypesRequest parent. */ - public parent: string; + /** DetectIntentResponse responseId. */ + public responseId: string; - /** ListSessionEntityTypesRequest pageSize. */ - public pageSize: number; + /** DetectIntentResponse queryResult. */ + public queryResult?: (google.cloud.dialogflow.cx.v3beta1.IQueryResult|null); - /** ListSessionEntityTypesRequest pageToken. */ - public pageToken: string; + /** DetectIntentResponse outputAudio. */ + public outputAudio: (Uint8Array|string); + + /** DetectIntentResponse outputAudioConfig. */ + public outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); /** - * Creates a new ListSessionEntityTypesRequest instance using the specified properties. + * Creates a new DetectIntentResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListSessionEntityTypesRequest instance + * @returns DetectIntentResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse): google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse; /** - * Encodes the specified ListSessionEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest.verify|verify} messages. - * @param message ListSessionEntityTypesRequest message or plain object to encode + * Encodes the specified DetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.verify|verify} messages. + * @param message DetectIntentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListSessionEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest.verify|verify} messages. - * @param message ListSessionEntityTypesRequest message or plain object to encode + * Encodes the specified DetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.verify|verify} messages. + * @param message DetectIntentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer. + * Decodes a DetectIntentResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListSessionEntityTypesRequest + * @returns DetectIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse; /** - * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer, length delimited. + * Decodes a DetectIntentResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListSessionEntityTypesRequest + * @returns DetectIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse; /** - * Verifies a ListSessionEntityTypesRequest message. + * Verifies a DetectIntentResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListSessionEntityTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DetectIntentResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListSessionEntityTypesRequest + * @returns DetectIntentResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse; /** - * Creates a plain object from a ListSessionEntityTypesRequest message. Also converts values to other types if specified. - * @param message ListSessionEntityTypesRequest + * Creates a plain object from a DetectIntentResponse message. Also converts values to other types if specified. + * @param message DetectIntentResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListSessionEntityTypesRequest to JSON. + * Converts this DetectIntentResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListSessionEntityTypesResponse. */ - interface IListSessionEntityTypesResponse { + /** Properties of a StreamingDetectIntentRequest. */ + interface IStreamingDetectIntentRequest { - /** ListSessionEntityTypesResponse sessionEntityTypes */ - sessionEntityTypes?: (google.cloud.dialogflow.cx.v3beta1.ISessionEntityType[]|null); + /** StreamingDetectIntentRequest session */ + session?: (string|null); - /** ListSessionEntityTypesResponse nextPageToken */ - nextPageToken?: (string|null); + /** StreamingDetectIntentRequest queryParams */ + queryParams?: (google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null); + + /** StreamingDetectIntentRequest queryInput */ + queryInput?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); + + /** StreamingDetectIntentRequest outputAudioConfig */ + outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); } - /** Represents a ListSessionEntityTypesResponse. */ - class ListSessionEntityTypesResponse implements IListSessionEntityTypesResponse { + /** Represents a StreamingDetectIntentRequest. */ + class StreamingDetectIntentRequest implements IStreamingDetectIntentRequest { /** - * Constructs a new ListSessionEntityTypesResponse. + * Constructs a new StreamingDetectIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest); - /** ListSessionEntityTypesResponse sessionEntityTypes. */ - public sessionEntityTypes: google.cloud.dialogflow.cx.v3beta1.ISessionEntityType[]; + /** StreamingDetectIntentRequest session. */ + public session: string; - /** ListSessionEntityTypesResponse nextPageToken. */ - public nextPageToken: string; + /** StreamingDetectIntentRequest queryParams. */ + public queryParams?: (google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null); + + /** StreamingDetectIntentRequest queryInput. */ + public queryInput?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); + + /** StreamingDetectIntentRequest outputAudioConfig. */ + public outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); /** - * Creates a new ListSessionEntityTypesResponse instance using the specified properties. + * Creates a new StreamingDetectIntentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListSessionEntityTypesResponse instance + * @returns StreamingDetectIntentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest; /** - * Encodes the specified ListSessionEntityTypesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse.verify|verify} messages. - * @param message ListSessionEntityTypesResponse message or plain object to encode + * Encodes the specified StreamingDetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.verify|verify} messages. + * @param message StreamingDetectIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListSessionEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse.verify|verify} messages. - * @param message ListSessionEntityTypesResponse message or plain object to encode + * Encodes the specified StreamingDetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.verify|verify} messages. + * @param message StreamingDetectIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListSessionEntityTypesResponse message from the specified reader or buffer. + * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListSessionEntityTypesResponse + * @returns StreamingDetectIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest; /** - * Decodes a ListSessionEntityTypesResponse message from the specified reader or buffer, length delimited. + * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListSessionEntityTypesResponse + * @returns StreamingDetectIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest; /** - * Verifies a ListSessionEntityTypesResponse message. + * Verifies a StreamingDetectIntentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListSessionEntityTypesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingDetectIntentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListSessionEntityTypesResponse + * @returns StreamingDetectIntentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest; /** - * Creates a plain object from a ListSessionEntityTypesResponse message. Also converts values to other types if specified. - * @param message ListSessionEntityTypesResponse + * Creates a plain object from a StreamingDetectIntentRequest message. Also converts values to other types if specified. + * @param message StreamingDetectIntentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListSessionEntityTypesResponse to JSON. + * Converts this StreamingDetectIntentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetSessionEntityTypeRequest. */ - interface IGetSessionEntityTypeRequest { + /** Properties of a StreamingDetectIntentResponse. */ + interface IStreamingDetectIntentResponse { - /** GetSessionEntityTypeRequest name */ - name?: (string|null); + /** StreamingDetectIntentResponse recognitionResult */ + recognitionResult?: (google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult|null); + + /** StreamingDetectIntentResponse detectIntentResponse */ + detectIntentResponse?: (google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse|null); } - /** Represents a GetSessionEntityTypeRequest. */ - class GetSessionEntityTypeRequest implements IGetSessionEntityTypeRequest { + /** Represents a StreamingDetectIntentResponse. */ + class StreamingDetectIntentResponse implements IStreamingDetectIntentResponse { /** - * Constructs a new GetSessionEntityTypeRequest. + * Constructs a new StreamingDetectIntentResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse); - /** GetSessionEntityTypeRequest name. */ - public name: string; + /** StreamingDetectIntentResponse recognitionResult. */ + public recognitionResult?: (google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult|null); + + /** StreamingDetectIntentResponse detectIntentResponse. */ + public detectIntentResponse?: (google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse|null); + + /** StreamingDetectIntentResponse response. */ + public response?: ("recognitionResult"|"detectIntentResponse"); /** - * Creates a new GetSessionEntityTypeRequest instance using the specified properties. + * Creates a new StreamingDetectIntentResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetSessionEntityTypeRequest instance + * @returns StreamingDetectIntentResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse; /** - * Encodes the specified GetSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest.verify|verify} messages. - * @param message GetSessionEntityTypeRequest message or plain object to encode + * Encodes the specified StreamingDetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse.verify|verify} messages. + * @param message StreamingDetectIntentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest.verify|verify} messages. - * @param message GetSessionEntityTypeRequest message or plain object to encode + * Encodes the specified StreamingDetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse.verify|verify} messages. + * @param message StreamingDetectIntentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer. + * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetSessionEntityTypeRequest + * @returns StreamingDetectIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse; /** - * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetSessionEntityTypeRequest + * @returns StreamingDetectIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse; /** - * Verifies a GetSessionEntityTypeRequest message. + * Verifies a StreamingDetectIntentResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingDetectIntentResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetSessionEntityTypeRequest + * @returns StreamingDetectIntentResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse; /** - * Creates a plain object from a GetSessionEntityTypeRequest message. Also converts values to other types if specified. - * @param message GetSessionEntityTypeRequest + * Creates a plain object from a StreamingDetectIntentResponse message. Also converts values to other types if specified. + * @param message StreamingDetectIntentResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSessionEntityTypeRequest to JSON. + * Converts this StreamingDetectIntentResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateSessionEntityTypeRequest. */ - interface ICreateSessionEntityTypeRequest { + /** Properties of a StreamingRecognitionResult. */ + interface IStreamingRecognitionResult { - /** CreateSessionEntityTypeRequest parent */ - parent?: (string|null); + /** StreamingRecognitionResult messageType */ + messageType?: (google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType|keyof typeof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType|null); - /** CreateSessionEntityTypeRequest sessionEntityType */ - sessionEntityType?: (google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null); + /** StreamingRecognitionResult transcript */ + transcript?: (string|null); + + /** StreamingRecognitionResult isFinal */ + isFinal?: (boolean|null); + + /** StreamingRecognitionResult confidence */ + confidence?: (number|null); + + /** StreamingRecognitionResult stability */ + stability?: (number|null); + + /** StreamingRecognitionResult speechWordInfo */ + speechWordInfo?: (google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo[]|null); + + /** StreamingRecognitionResult speechEndOffset */ + speechEndOffset?: (google.protobuf.IDuration|null); } - /** Represents a CreateSessionEntityTypeRequest. */ - class CreateSessionEntityTypeRequest implements ICreateSessionEntityTypeRequest { + /** Represents a StreamingRecognitionResult. */ + class StreamingRecognitionResult implements IStreamingRecognitionResult { /** - * Constructs a new CreateSessionEntityTypeRequest. + * Constructs a new StreamingRecognitionResult. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult); - /** CreateSessionEntityTypeRequest parent. */ - public parent: string; + /** StreamingRecognitionResult messageType. */ + public messageType: (google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType|keyof typeof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType); - /** CreateSessionEntityTypeRequest sessionEntityType. */ - public sessionEntityType?: (google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null); + /** StreamingRecognitionResult transcript. */ + public transcript: string; + + /** StreamingRecognitionResult isFinal. */ + public isFinal: boolean; + + /** StreamingRecognitionResult confidence. */ + public confidence: number; + + /** StreamingRecognitionResult stability. */ + public stability: number; + + /** StreamingRecognitionResult speechWordInfo. */ + public speechWordInfo: google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo[]; + + /** StreamingRecognitionResult speechEndOffset. */ + public speechEndOffset?: (google.protobuf.IDuration|null); /** - * Creates a new CreateSessionEntityTypeRequest instance using the specified properties. + * Creates a new StreamingRecognitionResult instance using the specified properties. * @param [properties] Properties to set - * @returns CreateSessionEntityTypeRequest instance + * @returns StreamingRecognitionResult instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult): google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult; /** - * Encodes the specified CreateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest.verify|verify} messages. - * @param message CreateSessionEntityTypeRequest message or plain object to encode + * Encodes the specified StreamingRecognitionResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.verify|verify} messages. + * @param message StreamingRecognitionResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest.verify|verify} messages. - * @param message CreateSessionEntityTypeRequest message or plain object to encode + * Encodes the specified StreamingRecognitionResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.verify|verify} messages. + * @param message StreamingRecognitionResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer. + * Decodes a StreamingRecognitionResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateSessionEntityTypeRequest + * @returns StreamingRecognitionResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult; /** - * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a StreamingRecognitionResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateSessionEntityTypeRequest + * @returns StreamingRecognitionResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult; /** - * Verifies a CreateSessionEntityTypeRequest message. + * Verifies a StreamingRecognitionResult message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingRecognitionResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateSessionEntityTypeRequest + * @returns StreamingRecognitionResult */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult; /** - * Creates a plain object from a CreateSessionEntityTypeRequest message. Also converts values to other types if specified. - * @param message CreateSessionEntityTypeRequest + * Creates a plain object from a StreamingRecognitionResult message. Also converts values to other types if specified. + * @param message StreamingRecognitionResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateSessionEntityTypeRequest to JSON. + * Converts this StreamingRecognitionResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateSessionEntityTypeRequest. */ - interface IUpdateSessionEntityTypeRequest { + namespace StreamingRecognitionResult { - /** UpdateSessionEntityTypeRequest sessionEntityType */ - sessionEntityType?: (google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null); + /** MessageType enum. */ + enum MessageType { + MESSAGE_TYPE_UNSPECIFIED = 0, + TRANSCRIPT = 1, + END_OF_SINGLE_UTTERANCE = 2 + } + } - /** UpdateSessionEntityTypeRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** Properties of a QueryParameters. */ + interface IQueryParameters { + + /** QueryParameters timeZone */ + timeZone?: (string|null); + + /** QueryParameters geoLocation */ + geoLocation?: (google.type.ILatLng|null); + + /** QueryParameters sessionEntityTypes */ + sessionEntityTypes?: (google.cloud.dialogflow.cx.v3beta1.ISessionEntityType[]|null); + + /** QueryParameters payload */ + payload?: (google.protobuf.IStruct|null); + + /** QueryParameters parameters */ + parameters?: (google.protobuf.IStruct|null); + + /** QueryParameters disableWebhook */ + disableWebhook?: (boolean|null); + + /** QueryParameters analyzeQueryTextSentiment */ + analyzeQueryTextSentiment?: (boolean|null); + + /** QueryParameters webhookHeaders */ + webhookHeaders?: ({ [k: string]: string }|null); } - /** Represents an UpdateSessionEntityTypeRequest. */ - class UpdateSessionEntityTypeRequest implements IUpdateSessionEntityTypeRequest { + /** Represents a QueryParameters. */ + class QueryParameters implements IQueryParameters { /** - * Constructs a new UpdateSessionEntityTypeRequest. + * Constructs a new QueryParameters. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IQueryParameters); - /** UpdateSessionEntityTypeRequest sessionEntityType. */ - public sessionEntityType?: (google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null); + /** QueryParameters timeZone. */ + public timeZone: string; - /** UpdateSessionEntityTypeRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** QueryParameters geoLocation. */ + public geoLocation?: (google.type.ILatLng|null); + + /** QueryParameters sessionEntityTypes. */ + public sessionEntityTypes: google.cloud.dialogflow.cx.v3beta1.ISessionEntityType[]; + + /** QueryParameters payload. */ + public payload?: (google.protobuf.IStruct|null); + + /** QueryParameters parameters. */ + public parameters?: (google.protobuf.IStruct|null); + + /** QueryParameters disableWebhook. */ + public disableWebhook: boolean; + + /** QueryParameters analyzeQueryTextSentiment. */ + public analyzeQueryTextSentiment: boolean; + + /** QueryParameters webhookHeaders. */ + public webhookHeaders: { [k: string]: string }; /** - * Creates a new UpdateSessionEntityTypeRequest instance using the specified properties. + * Creates a new QueryParameters instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateSessionEntityTypeRequest instance + * @returns QueryParameters instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IQueryParameters): google.cloud.dialogflow.cx.v3beta1.QueryParameters; /** - * Encodes the specified UpdateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest.verify|verify} messages. - * @param message UpdateSessionEntityTypeRequest message or plain object to encode + * Encodes the specified QueryParameters message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryParameters.verify|verify} messages. + * @param message QueryParameters message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IQueryParameters, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UpdateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest.verify|verify} messages. - * @param message UpdateSessionEntityTypeRequest message or plain object to encode + /** + * Encodes the specified QueryParameters message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryParameters.verify|verify} messages. + * @param message QueryParameters message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IQueryParameters, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateSessionEntityTypeRequest message from the specified reader or buffer. + * Decodes a QueryParameters message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateSessionEntityTypeRequest + * @returns QueryParameters * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.QueryParameters; /** - * Decodes an UpdateSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryParameters message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateSessionEntityTypeRequest + * @returns QueryParameters * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.QueryParameters; /** - * Verifies an UpdateSessionEntityTypeRequest message. + * Verifies a QueryParameters message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryParameters message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateSessionEntityTypeRequest + * @returns QueryParameters */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.QueryParameters; /** - * Creates a plain object from an UpdateSessionEntityTypeRequest message. Also converts values to other types if specified. - * @param message UpdateSessionEntityTypeRequest + * Creates a plain object from a QueryParameters message. Also converts values to other types if specified. + * @param message QueryParameters * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.QueryParameters, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateSessionEntityTypeRequest to JSON. + * Converts this QueryParameters to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteSessionEntityTypeRequest. */ - interface IDeleteSessionEntityTypeRequest { + /** Properties of a QueryInput. */ + interface IQueryInput { - /** DeleteSessionEntityTypeRequest name */ - name?: (string|null); + /** QueryInput text */ + text?: (google.cloud.dialogflow.cx.v3beta1.ITextInput|null); + + /** QueryInput intent */ + intent?: (google.cloud.dialogflow.cx.v3beta1.IIntentInput|null); + + /** QueryInput audio */ + audio?: (google.cloud.dialogflow.cx.v3beta1.IAudioInput|null); + + /** QueryInput event */ + event?: (google.cloud.dialogflow.cx.v3beta1.IEventInput|null); + + /** QueryInput dtmf */ + dtmf?: (google.cloud.dialogflow.cx.v3beta1.IDtmfInput|null); + + /** QueryInput languageCode */ + languageCode?: (string|null); } - /** Represents a DeleteSessionEntityTypeRequest. */ - class DeleteSessionEntityTypeRequest implements IDeleteSessionEntityTypeRequest { + /** Represents a QueryInput. */ + class QueryInput implements IQueryInput { /** - * Constructs a new DeleteSessionEntityTypeRequest. + * Constructs a new QueryInput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IQueryInput); - /** DeleteSessionEntityTypeRequest name. */ - public name: string; + /** QueryInput text. */ + public text?: (google.cloud.dialogflow.cx.v3beta1.ITextInput|null); + + /** QueryInput intent. */ + public intent?: (google.cloud.dialogflow.cx.v3beta1.IIntentInput|null); + + /** QueryInput audio. */ + public audio?: (google.cloud.dialogflow.cx.v3beta1.IAudioInput|null); + + /** QueryInput event. */ + public event?: (google.cloud.dialogflow.cx.v3beta1.IEventInput|null); + + /** QueryInput dtmf. */ + public dtmf?: (google.cloud.dialogflow.cx.v3beta1.IDtmfInput|null); + + /** QueryInput languageCode. */ + public languageCode: string; + + /** QueryInput input. */ + public input?: ("text"|"intent"|"audio"|"event"|"dtmf"); /** - * Creates a new DeleteSessionEntityTypeRequest instance using the specified properties. + * Creates a new QueryInput instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteSessionEntityTypeRequest instance + * @returns QueryInput instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IQueryInput): google.cloud.dialogflow.cx.v3beta1.QueryInput; /** - * Encodes the specified DeleteSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest.verify|verify} messages. - * @param message DeleteSessionEntityTypeRequest message or plain object to encode + * Encodes the specified QueryInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryInput.verify|verify} messages. + * @param message QueryInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IQueryInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest.verify|verify} messages. - * @param message DeleteSessionEntityTypeRequest message or plain object to encode + * Encodes the specified QueryInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryInput.verify|verify} messages. + * @param message QueryInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IQueryInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer. + * Decodes a QueryInput message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteSessionEntityTypeRequest + * @returns QueryInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.QueryInput; /** - * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryInput message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteSessionEntityTypeRequest + * @returns QueryInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.QueryInput; /** - * Verifies a DeleteSessionEntityTypeRequest message. + * Verifies a QueryInput message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryInput message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteSessionEntityTypeRequest + * @returns QueryInput */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.QueryInput; /** - * Creates a plain object from a DeleteSessionEntityTypeRequest message. Also converts values to other types if specified. - * @param message DeleteSessionEntityTypeRequest + * Creates a plain object from a QueryInput message. Also converts values to other types if specified. + * @param message QueryInput * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.QueryInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteSessionEntityTypeRequest to JSON. + * Converts this QueryInput to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a TestCases */ - class TestCases extends $protobuf.rpc.Service { + /** Properties of a QueryResult. */ + interface IQueryResult { - /** - * Constructs a new TestCases service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** QueryResult text */ + text?: (string|null); - /** - * Creates new TestCases service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): TestCases; + /** QueryResult triggerIntent */ + triggerIntent?: (string|null); - /** - * Calls ListTestCases. - * @param request ListTestCasesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListTestCasesResponse - */ - public listTestCases(request: google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.ListTestCasesCallback): void; + /** QueryResult transcript */ + transcript?: (string|null); - /** - * Calls ListTestCases. - * @param request ListTestCasesRequest message or plain object - * @returns Promise - */ - public listTestCases(request: google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest): Promise; + /** QueryResult triggerEvent */ + triggerEvent?: (string|null); - /** - * Calls BatchDeleteTestCases. - * @param request BatchDeleteTestCasesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public batchDeleteTestCases(request: google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.BatchDeleteTestCasesCallback): void; + /** QueryResult languageCode */ + languageCode?: (string|null); - /** - * Calls BatchDeleteTestCases. - * @param request BatchDeleteTestCasesRequest message or plain object - * @returns Promise - */ - public batchDeleteTestCases(request: google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest): Promise; + /** QueryResult parameters */ + parameters?: (google.protobuf.IStruct|null); - /** - * Calls GetTestCase. - * @param request GetTestCaseRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TestCase - */ - public getTestCase(request: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.GetTestCaseCallback): void; + /** QueryResult responseMessages */ + responseMessages?: (google.cloud.dialogflow.cx.v3beta1.IResponseMessage[]|null); - /** - * Calls GetTestCase. - * @param request GetTestCaseRequest message or plain object - * @returns Promise - */ - public getTestCase(request: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest): Promise; + /** QueryResult webhookStatuses */ + webhookStatuses?: (google.rpc.IStatus[]|null); - /** - * Calls CreateTestCase. - * @param request CreateTestCaseRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TestCase - */ - public createTestCase(request: google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.CreateTestCaseCallback): void; + /** QueryResult webhookPayloads */ + webhookPayloads?: (google.protobuf.IStruct[]|null); - /** - * Calls CreateTestCase. - * @param request CreateTestCaseRequest message or plain object - * @returns Promise - */ - public createTestCase(request: google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest): Promise; + /** QueryResult currentPage */ + currentPage?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); - /** - * Calls UpdateTestCase. - * @param request UpdateTestCaseRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TestCase - */ - public updateTestCase(request: google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.UpdateTestCaseCallback): void; + /** QueryResult intent */ + intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); - /** - * Calls UpdateTestCase. - * @param request UpdateTestCaseRequest message or plain object - * @returns Promise - */ - public updateTestCase(request: google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest): Promise; + /** QueryResult intentDetectionConfidence */ + intentDetectionConfidence?: (number|null); - /** - * Calls RunTestCase. - * @param request RunTestCaseRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public runTestCase(request: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.RunTestCaseCallback): void; + /** QueryResult match */ + match?: (google.cloud.dialogflow.cx.v3beta1.IMatch|null); - /** - * Calls RunTestCase. - * @param request RunTestCaseRequest message or plain object - * @returns Promise - */ - public runTestCase(request: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest): Promise; + /** QueryResult diagnosticInfo */ + diagnosticInfo?: (google.protobuf.IStruct|null); - /** - * Calls BatchRunTestCases. - * @param request BatchRunTestCasesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public batchRunTestCases(request: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.BatchRunTestCasesCallback): void; + /** QueryResult sentimentAnalysisResult */ + sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult|null); + } - /** - * Calls BatchRunTestCases. - * @param request BatchRunTestCasesRequest message or plain object - * @returns Promise - */ - public batchRunTestCases(request: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest): Promise; + /** Represents a QueryResult. */ + class QueryResult implements IQueryResult { /** - * Calls CalculateCoverage. - * @param request CalculateCoverageRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CalculateCoverageResponse + * Constructs a new QueryResult. + * @param [properties] Properties to set */ - public calculateCoverage(request: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.CalculateCoverageCallback): void; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IQueryResult); - /** - * Calls CalculateCoverage. - * @param request CalculateCoverageRequest message or plain object - * @returns Promise - */ - public calculateCoverage(request: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest): Promise; + /** QueryResult text. */ + public text: string; - /** - * Calls ImportTestCases. - * @param request ImportTestCasesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public importTestCases(request: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.ImportTestCasesCallback): void; + /** QueryResult triggerIntent. */ + public triggerIntent: string; - /** - * Calls ImportTestCases. - * @param request ImportTestCasesRequest message or plain object - * @returns Promise - */ - public importTestCases(request: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest): Promise; + /** QueryResult transcript. */ + public transcript: string; - /** - * Calls ExportTestCases. - * @param request ExportTestCasesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public exportTestCases(request: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.ExportTestCasesCallback): void; + /** QueryResult triggerEvent. */ + public triggerEvent: string; - /** - * Calls ExportTestCases. - * @param request ExportTestCasesRequest message or plain object - * @returns Promise - */ - public exportTestCases(request: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest): Promise; + /** QueryResult languageCode. */ + public languageCode: string; - /** - * Calls ListTestCaseResults. - * @param request ListTestCaseResultsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListTestCaseResultsResponse - */ - public listTestCaseResults(request: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.ListTestCaseResultsCallback): void; + /** QueryResult parameters. */ + public parameters?: (google.protobuf.IStruct|null); - /** - * Calls ListTestCaseResults. - * @param request ListTestCaseResultsRequest message or plain object - * @returns Promise - */ - public listTestCaseResults(request: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest): Promise; - } + /** QueryResult responseMessages. */ + public responseMessages: google.cloud.dialogflow.cx.v3beta1.IResponseMessage[]; - namespace TestCases { + /** QueryResult webhookStatuses. */ + public webhookStatuses: google.rpc.IStatus[]; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#listTestCases}. - * @param error Error, if any - * @param [response] ListTestCasesResponse - */ - type ListTestCasesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse) => void; + /** QueryResult webhookPayloads. */ + public webhookPayloads: google.protobuf.IStruct[]; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#batchDeleteTestCases}. - * @param error Error, if any - * @param [response] Empty - */ - type BatchDeleteTestCasesCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + /** QueryResult currentPage. */ + public currentPage?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + + /** QueryResult intent. */ + public intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); + + /** QueryResult intentDetectionConfidence. */ + public intentDetectionConfidence: number; + + /** QueryResult match. */ + public match?: (google.cloud.dialogflow.cx.v3beta1.IMatch|null); + + /** QueryResult diagnosticInfo. */ + public diagnosticInfo?: (google.protobuf.IStruct|null); + + /** QueryResult sentimentAnalysisResult. */ + public sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult|null); + + /** QueryResult query. */ + public query?: ("text"|"triggerIntent"|"transcript"|"triggerEvent"); /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#getTestCase}. - * @param error Error, if any - * @param [response] TestCase + * Creates a new QueryResult instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryResult instance */ - type GetTestCaseCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TestCase) => void; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IQueryResult): google.cloud.dialogflow.cx.v3beta1.QueryResult; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#createTestCase}. - * @param error Error, if any - * @param [response] TestCase + * Encodes the specified QueryResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryResult.verify|verify} messages. + * @param message QueryResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type CreateTestCaseCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TestCase) => void; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#updateTestCase}. - * @param error Error, if any - * @param [response] TestCase + * Encodes the specified QueryResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryResult.verify|verify} messages. + * @param message QueryResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type UpdateTestCaseCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TestCase) => void; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#runTestCase}. - * @param error Error, if any - * @param [response] Operation + * Decodes a QueryResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QueryResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type RunTestCaseCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.QueryResult; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#batchRunTestCases}. - * @param error Error, if any - * @param [response] Operation + * Decodes a QueryResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QueryResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type BatchRunTestCasesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.QueryResult; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#calculateCoverage}. - * @param error Error, if any - * @param [response] CalculateCoverageResponse + * Verifies a QueryResult message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type CalculateCoverageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#importTestCases}. - * @param error Error, if any - * @param [response] Operation + * Creates a QueryResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryResult */ - type ImportTestCasesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.QueryResult; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#exportTestCases}. - * @param error Error, if any - * @param [response] Operation + * Creates a plain object from a QueryResult message. Also converts values to other types if specified. + * @param message QueryResult + * @param [options] Conversion options + * @returns Plain object */ - type ExportTestCasesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.QueryResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#listTestCaseResults}. - * @param error Error, if any - * @param [response] ListTestCaseResultsResponse + * Converts this QueryResult to JSON. + * @returns JSON object */ - type ListTestCaseResultsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse) => void; + public toJSON(): { [k: string]: any }; } - /** Properties of a TestCase. */ - interface ITestCase { - - /** TestCase name */ - name?: (string|null); - - /** TestCase tags */ - tags?: (string[]|null); - - /** TestCase displayName */ - displayName?: (string|null); - - /** TestCase notes */ - notes?: (string|null); - - /** TestCase testConfig */ - testConfig?: (google.cloud.dialogflow.cx.v3beta1.ITestConfig|null); - - /** TestCase testCaseConversationTurns */ - testCaseConversationTurns?: (google.cloud.dialogflow.cx.v3beta1.IConversationTurn[]|null); - - /** TestCase creationTime */ - creationTime?: (google.protobuf.ITimestamp|null); + /** Properties of a TextInput. */ + interface ITextInput { - /** TestCase lastTestResult */ - lastTestResult?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null); + /** TextInput text */ + text?: (string|null); } - /** Represents a TestCase. */ - class TestCase implements ITestCase { + /** Represents a TextInput. */ + class TextInput implements ITextInput { /** - * Constructs a new TestCase. + * Constructs a new TextInput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITestCase); - - /** TestCase name. */ - public name: string; - - /** TestCase tags. */ - public tags: string[]; - - /** TestCase displayName. */ - public displayName: string; - - /** TestCase notes. */ - public notes: string; - - /** TestCase testConfig. */ - public testConfig?: (google.cloud.dialogflow.cx.v3beta1.ITestConfig|null); - - /** TestCase testCaseConversationTurns. */ - public testCaseConversationTurns: google.cloud.dialogflow.cx.v3beta1.IConversationTurn[]; - - /** TestCase creationTime. */ - public creationTime?: (google.protobuf.ITimestamp|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITextInput); - /** TestCase lastTestResult. */ - public lastTestResult?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null); + /** TextInput text. */ + public text: string; /** - * Creates a new TestCase instance using the specified properties. + * Creates a new TextInput instance using the specified properties. * @param [properties] Properties to set - * @returns TestCase instance + * @returns TextInput instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITestCase): google.cloud.dialogflow.cx.v3beta1.TestCase; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITextInput): google.cloud.dialogflow.cx.v3beta1.TextInput; /** - * Encodes the specified TestCase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCase.verify|verify} messages. - * @param message TestCase message or plain object to encode + * Encodes the specified TextInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TextInput.verify|verify} messages. + * @param message TextInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITestCase, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITextInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TestCase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCase.verify|verify} messages. - * @param message TestCase message or plain object to encode + * Encodes the specified TextInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TextInput.verify|verify} messages. + * @param message TextInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITestCase, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITextInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TestCase message from the specified reader or buffer. + * Decodes a TextInput message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TestCase + * @returns TextInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TestCase; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TextInput; /** - * Decodes a TestCase message from the specified reader or buffer, length delimited. + * Decodes a TextInput message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TestCase + * @returns TextInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TestCase; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TextInput; /** - * Verifies a TestCase message. + * Verifies a TextInput message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TestCase message from a plain object. Also converts values to their respective internal types. + * Creates a TextInput message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TestCase + * @returns TextInput */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TestCase; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TextInput; /** - * Creates a plain object from a TestCase message. Also converts values to other types if specified. - * @param message TestCase + * Creates a plain object from a TextInput message. Also converts values to other types if specified. + * @param message TextInput * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TestCase, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TextInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TestCase to JSON. + * Converts this TextInput to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TestCaseResult. */ - interface ITestCaseResult { - - /** TestCaseResult name */ - name?: (string|null); - - /** TestCaseResult environment */ - environment?: (string|null); - - /** TestCaseResult conversationTurns */ - conversationTurns?: (google.cloud.dialogflow.cx.v3beta1.IConversationTurn[]|null); - - /** TestCaseResult testResult */ - testResult?: (google.cloud.dialogflow.cx.v3beta1.TestResult|keyof typeof google.cloud.dialogflow.cx.v3beta1.TestResult|null); + /** Properties of an IntentInput. */ + interface IIntentInput { - /** TestCaseResult testTime */ - testTime?: (google.protobuf.ITimestamp|null); + /** IntentInput intent */ + intent?: (string|null); } - /** Represents a TestCaseResult. */ - class TestCaseResult implements ITestCaseResult { + /** Represents an IntentInput. */ + class IntentInput implements IIntentInput { /** - * Constructs a new TestCaseResult. + * Constructs a new IntentInput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITestCaseResult); - - /** TestCaseResult name. */ - public name: string; - - /** TestCaseResult environment. */ - public environment: string; - - /** TestCaseResult conversationTurns. */ - public conversationTurns: google.cloud.dialogflow.cx.v3beta1.IConversationTurn[]; - - /** TestCaseResult testResult. */ - public testResult: (google.cloud.dialogflow.cx.v3beta1.TestResult|keyof typeof google.cloud.dialogflow.cx.v3beta1.TestResult); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IIntentInput); - /** TestCaseResult testTime. */ - public testTime?: (google.protobuf.ITimestamp|null); + /** IntentInput intent. */ + public intent: string; /** - * Creates a new TestCaseResult instance using the specified properties. + * Creates a new IntentInput instance using the specified properties. * @param [properties] Properties to set - * @returns TestCaseResult instance + * @returns IntentInput instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITestCaseResult): google.cloud.dialogflow.cx.v3beta1.TestCaseResult; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IIntentInput): google.cloud.dialogflow.cx.v3beta1.IntentInput; /** - * Encodes the specified TestCaseResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCaseResult.verify|verify} messages. - * @param message TestCaseResult message or plain object to encode + * Encodes the specified IntentInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentInput.verify|verify} messages. + * @param message IntentInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITestCaseResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IIntentInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TestCaseResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCaseResult.verify|verify} messages. - * @param message TestCaseResult message or plain object to encode + * Encodes the specified IntentInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentInput.verify|verify} messages. + * @param message IntentInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITestCaseResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IIntentInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TestCaseResult message from the specified reader or buffer. + * Decodes an IntentInput message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TestCaseResult + * @returns IntentInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TestCaseResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.IntentInput; /** - * Decodes a TestCaseResult message from the specified reader or buffer, length delimited. + * Decodes an IntentInput message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TestCaseResult + * @returns IntentInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TestCaseResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.IntentInput; /** - * Verifies a TestCaseResult message. + * Verifies an IntentInput message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TestCaseResult message from a plain object. Also converts values to their respective internal types. + * Creates an IntentInput message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TestCaseResult + * @returns IntentInput */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TestCaseResult; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.IntentInput; /** - * Creates a plain object from a TestCaseResult message. Also converts values to other types if specified. - * @param message TestCaseResult + * Creates a plain object from an IntentInput message. Also converts values to other types if specified. + * @param message IntentInput * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TestCaseResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.IntentInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TestCaseResult to JSON. + * Converts this IntentInput to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TestConfig. */ - interface ITestConfig { + /** Properties of an AudioInput. */ + interface IAudioInput { - /** TestConfig trackingParameters */ - trackingParameters?: (string[]|null); + /** AudioInput config */ + config?: (google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig|null); - /** TestConfig flow */ - flow?: (string|null); + /** AudioInput audio */ + audio?: (Uint8Array|string|null); } - /** Represents a TestConfig. */ - class TestConfig implements ITestConfig { + /** Represents an AudioInput. */ + class AudioInput implements IAudioInput { /** - * Constructs a new TestConfig. + * Constructs a new AudioInput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITestConfig); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IAudioInput); - /** TestConfig trackingParameters. */ - public trackingParameters: string[]; + /** AudioInput config. */ + public config?: (google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig|null); - /** TestConfig flow. */ - public flow: string; + /** AudioInput audio. */ + public audio: (Uint8Array|string); /** - * Creates a new TestConfig instance using the specified properties. + * Creates a new AudioInput instance using the specified properties. * @param [properties] Properties to set - * @returns TestConfig instance + * @returns AudioInput instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITestConfig): google.cloud.dialogflow.cx.v3beta1.TestConfig; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IAudioInput): google.cloud.dialogflow.cx.v3beta1.AudioInput; /** - * Encodes the specified TestConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestConfig.verify|verify} messages. - * @param message TestConfig message or plain object to encode + * Encodes the specified AudioInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AudioInput.verify|verify} messages. + * @param message AudioInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITestConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IAudioInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TestConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestConfig.verify|verify} messages. - * @param message TestConfig message or plain object to encode + * Encodes the specified AudioInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AudioInput.verify|verify} messages. + * @param message AudioInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITestConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IAudioInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TestConfig message from the specified reader or buffer. + * Decodes an AudioInput message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TestConfig + * @returns AudioInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TestConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.AudioInput; /** - * Decodes a TestConfig message from the specified reader or buffer, length delimited. + * Decodes an AudioInput message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TestConfig + * @returns AudioInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TestConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.AudioInput; /** - * Verifies a TestConfig message. + * Verifies an AudioInput message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TestConfig message from a plain object. Also converts values to their respective internal types. + * Creates an AudioInput message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TestConfig + * @returns AudioInput */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TestConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.AudioInput; /** - * Creates a plain object from a TestConfig message. Also converts values to other types if specified. - * @param message TestConfig + * Creates a plain object from an AudioInput message. Also converts values to other types if specified. + * @param message AudioInput * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TestConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.AudioInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TestConfig to JSON. + * Converts this AudioInput to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ConversationTurn. */ - interface IConversationTurn { - - /** ConversationTurn userInput */ - userInput?: (google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput|null); + /** Properties of an EventInput. */ + interface IEventInput { - /** ConversationTurn virtualAgentOutput */ - virtualAgentOutput?: (google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput|null); + /** EventInput event */ + event?: (string|null); } - /** Represents a ConversationTurn. */ - class ConversationTurn implements IConversationTurn { + /** Represents an EventInput. */ + class EventInput implements IEventInput { /** - * Constructs a new ConversationTurn. + * Constructs a new EventInput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IConversationTurn); - - /** ConversationTurn userInput. */ - public userInput?: (google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IEventInput); - /** ConversationTurn virtualAgentOutput. */ - public virtualAgentOutput?: (google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput|null); + /** EventInput event. */ + public event: string; /** - * Creates a new ConversationTurn instance using the specified properties. + * Creates a new EventInput instance using the specified properties. * @param [properties] Properties to set - * @returns ConversationTurn instance + * @returns EventInput instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IConversationTurn): google.cloud.dialogflow.cx.v3beta1.ConversationTurn; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IEventInput): google.cloud.dialogflow.cx.v3beta1.EventInput; /** - * Encodes the specified ConversationTurn message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.verify|verify} messages. - * @param message ConversationTurn message or plain object to encode + * Encodes the specified EventInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventInput.verify|verify} messages. + * @param message EventInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IConversationTurn, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IEventInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ConversationTurn message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.verify|verify} messages. - * @param message ConversationTurn message or plain object to encode + * Encodes the specified EventInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventInput.verify|verify} messages. + * @param message EventInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IConversationTurn, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IEventInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ConversationTurn message from the specified reader or buffer. + * Decodes an EventInput message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ConversationTurn + * @returns EventInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ConversationTurn; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.EventInput; /** - * Decodes a ConversationTurn message from the specified reader or buffer, length delimited. + * Decodes an EventInput message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ConversationTurn + * @returns EventInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ConversationTurn; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.EventInput; /** - * Verifies a ConversationTurn message. + * Verifies an EventInput message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ConversationTurn message from a plain object. Also converts values to their respective internal types. + * Creates an EventInput message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ConversationTurn + * @returns EventInput */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ConversationTurn; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.EventInput; /** - * Creates a plain object from a ConversationTurn message. Also converts values to other types if specified. - * @param message ConversationTurn + * Creates a plain object from an EventInput message. Also converts values to other types if specified. + * @param message EventInput * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ConversationTurn, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.EventInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ConversationTurn to JSON. + * Converts this EventInput to JSON. * @returns JSON object */ - public toJSON(): { [k: string]: any }; - } - - namespace ConversationTurn { - - /** Properties of a UserInput. */ - interface IUserInput { - - /** UserInput input */ - input?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); - - /** UserInput injectedParameters */ - injectedParameters?: (google.protobuf.IStruct|null); - - /** UserInput isWebhookEnabled */ - isWebhookEnabled?: (boolean|null); - } - - /** Represents a UserInput. */ - class UserInput implements IUserInput { - - /** - * Constructs a new UserInput. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput); - - /** UserInput input. */ - public input?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); - - /** UserInput injectedParameters. */ - public injectedParameters?: (google.protobuf.IStruct|null); - - /** UserInput isWebhookEnabled. */ - public isWebhookEnabled: boolean; - - /** - * Creates a new UserInput instance using the specified properties. - * @param [properties] Properties to set - * @returns UserInput instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput): google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput; - - /** - * Encodes the specified UserInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.verify|verify} messages. - * @param message UserInput message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UserInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.verify|verify} messages. - * @param message UserInput message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a UserInput message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UserInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput; - - /** - * Decodes a UserInput message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput; - - /** - * Verifies a UserInput message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a UserInput message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UserInput - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput; - - /** - * Creates a plain object from a UserInput message. Also converts values to other types if specified. - * @param message UserInput - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UserInput to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a VirtualAgentOutput. */ - interface IVirtualAgentOutput { - - /** VirtualAgentOutput sessionParameters */ - sessionParameters?: (google.protobuf.IStruct|null); - - /** VirtualAgentOutput differences */ - differences?: (google.cloud.dialogflow.cx.v3beta1.ITestRunDifference[]|null); - - /** VirtualAgentOutput diagnosticInfo */ - diagnosticInfo?: (google.protobuf.IStruct|null); - - /** VirtualAgentOutput triggeredIntent */ - triggeredIntent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); - - /** VirtualAgentOutput currentPage */ - currentPage?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); - - /** VirtualAgentOutput textResponses */ - textResponses?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText[]|null); - - /** VirtualAgentOutput status */ - status?: (google.rpc.IStatus|null); - } - - /** Represents a VirtualAgentOutput. */ - class VirtualAgentOutput implements IVirtualAgentOutput { - - /** - * Constructs a new VirtualAgentOutput. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput); - - /** VirtualAgentOutput sessionParameters. */ - public sessionParameters?: (google.protobuf.IStruct|null); - - /** VirtualAgentOutput differences. */ - public differences: google.cloud.dialogflow.cx.v3beta1.ITestRunDifference[]; - - /** VirtualAgentOutput diagnosticInfo. */ - public diagnosticInfo?: (google.protobuf.IStruct|null); - - /** VirtualAgentOutput triggeredIntent. */ - public triggeredIntent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); - - /** VirtualAgentOutput currentPage. */ - public currentPage?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); - - /** VirtualAgentOutput textResponses. */ - public textResponses: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText[]; - - /** VirtualAgentOutput status. */ - public status?: (google.rpc.IStatus|null); - - /** - * Creates a new VirtualAgentOutput instance using the specified properties. - * @param [properties] Properties to set - * @returns VirtualAgentOutput instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput): google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput; - - /** - * Encodes the specified VirtualAgentOutput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.verify|verify} messages. - * @param message VirtualAgentOutput message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified VirtualAgentOutput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.verify|verify} messages. - * @param message VirtualAgentOutput message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a VirtualAgentOutput message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VirtualAgentOutput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput; - - /** - * Decodes a VirtualAgentOutput message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VirtualAgentOutput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput; - - /** - * Verifies a VirtualAgentOutput message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a VirtualAgentOutput message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VirtualAgentOutput - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput; - - /** - * Creates a plain object from a VirtualAgentOutput message. Also converts values to other types if specified. - * @param message VirtualAgentOutput - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this VirtualAgentOutput to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + public toJSON(): { [k: string]: any }; } - /** Properties of a TestRunDifference. */ - interface ITestRunDifference { + /** Properties of a DtmfInput. */ + interface IDtmfInput { - /** TestRunDifference type */ - type?: (google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType|keyof typeof google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType|null); + /** DtmfInput digits */ + digits?: (string|null); - /** TestRunDifference description */ - description?: (string|null); + /** DtmfInput finishDigit */ + finishDigit?: (string|null); } - /** Represents a TestRunDifference. */ - class TestRunDifference implements ITestRunDifference { + /** Represents a DtmfInput. */ + class DtmfInput implements IDtmfInput { /** - * Constructs a new TestRunDifference. + * Constructs a new DtmfInput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITestRunDifference); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDtmfInput); - /** TestRunDifference type. */ - public type: (google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType|keyof typeof google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType); + /** DtmfInput digits. */ + public digits: string; - /** TestRunDifference description. */ - public description: string; + /** DtmfInput finishDigit. */ + public finishDigit: string; /** - * Creates a new TestRunDifference instance using the specified properties. + * Creates a new DtmfInput instance using the specified properties. * @param [properties] Properties to set - * @returns TestRunDifference instance + * @returns DtmfInput instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITestRunDifference): google.cloud.dialogflow.cx.v3beta1.TestRunDifference; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDtmfInput): google.cloud.dialogflow.cx.v3beta1.DtmfInput; /** - * Encodes the specified TestRunDifference message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestRunDifference.verify|verify} messages. - * @param message TestRunDifference message or plain object to encode + * Encodes the specified DtmfInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DtmfInput.verify|verify} messages. + * @param message DtmfInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITestRunDifference, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDtmfInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TestRunDifference message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestRunDifference.verify|verify} messages. - * @param message TestRunDifference message or plain object to encode + * Encodes the specified DtmfInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DtmfInput.verify|verify} messages. + * @param message DtmfInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITestRunDifference, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDtmfInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TestRunDifference message from the specified reader or buffer. + * Decodes a DtmfInput message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TestRunDifference + * @returns DtmfInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TestRunDifference; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DtmfInput; /** - * Decodes a TestRunDifference message from the specified reader or buffer, length delimited. + * Decodes a DtmfInput message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TestRunDifference + * @returns DtmfInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TestRunDifference; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DtmfInput; /** - * Verifies a TestRunDifference message. + * Verifies a DtmfInput message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TestRunDifference message from a plain object. Also converts values to their respective internal types. + * Creates a DtmfInput message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TestRunDifference + * @returns DtmfInput */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TestRunDifference; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DtmfInput; /** - * Creates a plain object from a TestRunDifference message. Also converts values to other types if specified. - * @param message TestRunDifference + * Creates a plain object from a DtmfInput message. Also converts values to other types if specified. + * @param message DtmfInput * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TestRunDifference, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DtmfInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TestRunDifference to JSON. + * Converts this DtmfInput to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace TestRunDifference { + /** Properties of a Match. */ + interface IMatch { - /** DiffType enum. */ - enum DiffType { - DIFF_TYPE_UNSPECIFIED = 0, - INTENT = 1, - PAGE = 2, - PARAMETERS = 3, - UTTERANCE = 4 - } - } + /** Match intent */ + intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); - /** Properties of a TransitionCoverage. */ - interface ITransitionCoverage { + /** Match event */ + event?: (string|null); - /** TransitionCoverage transitions */ - transitions?: (google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition[]|null); + /** Match parameters */ + parameters?: (google.protobuf.IStruct|null); - /** TransitionCoverage coverageScore */ - coverageScore?: (number|null); + /** Match resolvedInput */ + resolvedInput?: (string|null); + + /** Match matchType */ + matchType?: (google.cloud.dialogflow.cx.v3beta1.Match.MatchType|keyof typeof google.cloud.dialogflow.cx.v3beta1.Match.MatchType|null); + + /** Match confidence */ + confidence?: (number|null); } - /** Represents a TransitionCoverage. */ - class TransitionCoverage implements ITransitionCoverage { + /** Represents a Match. */ + class Match implements IMatch { /** - * Constructs a new TransitionCoverage. + * Constructs a new Match. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IMatch); - /** TransitionCoverage transitions. */ - public transitions: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition[]; + /** Match intent. */ + public intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); - /** TransitionCoverage coverageScore. */ - public coverageScore: number; + /** Match event. */ + public event: string; + + /** Match parameters. */ + public parameters?: (google.protobuf.IStruct|null); + + /** Match resolvedInput. */ + public resolvedInput: string; + + /** Match matchType. */ + public matchType: (google.cloud.dialogflow.cx.v3beta1.Match.MatchType|keyof typeof google.cloud.dialogflow.cx.v3beta1.Match.MatchType); + + /** Match confidence. */ + public confidence: number; /** - * Creates a new TransitionCoverage instance using the specified properties. + * Creates a new Match instance using the specified properties. * @param [properties] Properties to set - * @returns TransitionCoverage instance + * @returns Match instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IMatch): google.cloud.dialogflow.cx.v3beta1.Match; /** - * Encodes the specified TransitionCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.verify|verify} messages. - * @param message TransitionCoverage message or plain object to encode + * Encodes the specified Match message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Match.verify|verify} messages. + * @param message Match message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IMatch, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TransitionCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.verify|verify} messages. - * @param message TransitionCoverage message or plain object to encode + * Encodes the specified Match message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Match.verify|verify} messages. + * @param message Match message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IMatch, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TransitionCoverage message from the specified reader or buffer. + * Decodes a Match message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TransitionCoverage + * @returns Match * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Match; /** - * Decodes a TransitionCoverage message from the specified reader or buffer, length delimited. + * Decodes a Match message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TransitionCoverage + * @returns Match * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Match; /** - * Verifies a TransitionCoverage message. + * Verifies a Match message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TransitionCoverage message from a plain object. Also converts values to their respective internal types. + * Creates a Match message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TransitionCoverage + * @returns Match */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Match; /** - * Creates a plain object from a TransitionCoverage message. Also converts values to other types if specified. - * @param message TransitionCoverage + * Creates a plain object from a Match message. Also converts values to other types if specified. + * @param message Match * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Match, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TransitionCoverage to JSON. + * Converts this Match to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace TransitionCoverage { + namespace Match { - /** Properties of a TransitionNode. */ - interface ITransitionNode { + /** MatchType enum. */ + enum MatchType { + MATCH_TYPE_UNSPECIFIED = 0, + INTENT = 1, + DIRECT_INTENT = 2, + PARAMETER_FILLING = 3, + NO_MATCH = 4, + NO_INPUT = 5, + EVENT = 6 + } + } - /** TransitionNode page */ - page?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + /** Properties of a MatchIntentRequest. */ + interface IMatchIntentRequest { - /** TransitionNode flow */ - flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); - } + /** MatchIntentRequest session */ + session?: (string|null); - /** Represents a TransitionNode. */ - class TransitionNode implements ITransitionNode { + /** MatchIntentRequest queryParams */ + queryParams?: (google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null); - /** - * Constructs a new TransitionNode. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode); + /** MatchIntentRequest queryInput */ + queryInput?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); + } - /** TransitionNode page. */ - public page?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + /** Represents a MatchIntentRequest. */ + class MatchIntentRequest implements IMatchIntentRequest { - /** TransitionNode flow. */ - public flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); + /** + * Constructs a new MatchIntentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest); - /** TransitionNode kind. */ - public kind?: ("page"|"flow"); + /** MatchIntentRequest session. */ + public session: string; - /** - * Creates a new TransitionNode instance using the specified properties. - * @param [properties] Properties to set - * @returns TransitionNode instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode; + /** MatchIntentRequest queryParams. */ + public queryParams?: (google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null); - /** - * Encodes the specified TransitionNode message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.verify|verify} messages. - * @param message TransitionNode message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode, writer?: $protobuf.Writer): $protobuf.Writer; + /** MatchIntentRequest queryInput. */ + public queryInput?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); - /** - * Encodes the specified TransitionNode message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.verify|verify} messages. - * @param message TransitionNode message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new MatchIntentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MatchIntentRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest): google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest; - /** - * Decodes a TransitionNode message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TransitionNode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode; + /** + * Encodes the specified MatchIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.verify|verify} messages. + * @param message MatchIntentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a TransitionNode message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TransitionNode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode; + /** + * Encodes the specified MatchIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.verify|verify} messages. + * @param message MatchIntentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a TransitionNode message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a MatchIntentRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MatchIntentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest; - /** - * Creates a TransitionNode message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TransitionNode - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode; + /** + * Decodes a MatchIntentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MatchIntentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest; - /** - * Creates a plain object from a TransitionNode message. Also converts values to other types if specified. - * @param message TransitionNode - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Verifies a MatchIntentRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Converts this TransitionNode to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Creates a MatchIntentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MatchIntentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest; - /** Properties of a Transition. */ - interface ITransition { + /** + * Creates a plain object from a MatchIntentRequest message. Also converts values to other types if specified. + * @param message MatchIntentRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Transition source */ - source?: (google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null); + /** + * Converts this MatchIntentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Transition index */ - index?: (number|null); + /** Properties of a MatchIntentResponse. */ + interface IMatchIntentResponse { - /** Transition target */ - target?: (google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null); + /** MatchIntentResponse text */ + text?: (string|null); - /** Transition covered */ - covered?: (boolean|null); + /** MatchIntentResponse triggerIntent */ + triggerIntent?: (string|null); - /** Transition transitionRoute */ - transitionRoute?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null); + /** MatchIntentResponse transcript */ + transcript?: (string|null); - /** Transition eventHandler */ - eventHandler?: (google.cloud.dialogflow.cx.v3beta1.IEventHandler|null); - } + /** MatchIntentResponse triggerEvent */ + triggerEvent?: (string|null); - /** Represents a Transition. */ - class Transition implements ITransition { + /** MatchIntentResponse matches */ + matches?: (google.cloud.dialogflow.cx.v3beta1.IMatch[]|null); - /** - * Constructs a new Transition. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition); + /** MatchIntentResponse currentPage */ + currentPage?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + } - /** Transition source. */ - public source?: (google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null); + /** Represents a MatchIntentResponse. */ + class MatchIntentResponse implements IMatchIntentResponse { - /** Transition index. */ - public index: number; + /** + * Constructs a new MatchIntentResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse); - /** Transition target. */ - public target?: (google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null); + /** MatchIntentResponse text. */ + public text: string; - /** Transition covered. */ - public covered: boolean; + /** MatchIntentResponse triggerIntent. */ + public triggerIntent: string; - /** Transition transitionRoute. */ - public transitionRoute?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null); + /** MatchIntentResponse transcript. */ + public transcript: string; - /** Transition eventHandler. */ - public eventHandler?: (google.cloud.dialogflow.cx.v3beta1.IEventHandler|null); + /** MatchIntentResponse triggerEvent. */ + public triggerEvent: string; - /** Transition detail. */ - public detail?: ("transitionRoute"|"eventHandler"); + /** MatchIntentResponse matches. */ + public matches: google.cloud.dialogflow.cx.v3beta1.IMatch[]; - /** - * Creates a new Transition instance using the specified properties. - * @param [properties] Properties to set - * @returns Transition instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition; + /** MatchIntentResponse currentPage. */ + public currentPage?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); - /** - * Encodes the specified Transition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.verify|verify} messages. - * @param message Transition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition, writer?: $protobuf.Writer): $protobuf.Writer; + /** MatchIntentResponse query. */ + public query?: ("text"|"triggerIntent"|"transcript"|"triggerEvent"); - /** - * Encodes the specified Transition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.verify|verify} messages. - * @param message Transition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new MatchIntentResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MatchIntentResponse instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse): google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse; - /** - * Decodes a Transition message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Transition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition; + /** + * Encodes the specified MatchIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse.verify|verify} messages. + * @param message MatchIntentResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a Transition message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Transition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition; + /** + * Encodes the specified MatchIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse.verify|verify} messages. + * @param message MatchIntentResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a Transition message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a MatchIntentResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MatchIntentResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse; + + /** + * Decodes a MatchIntentResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MatchIntentResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse; - /** - * Creates a Transition message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Transition - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition; + /** + * Verifies a MatchIntentResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a plain object from a Transition message. Also converts values to other types if specified. - * @param message Transition - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a MatchIntentResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MatchIntentResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse; - /** - * Converts this Transition to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Creates a plain object from a MatchIntentResponse message. Also converts values to other types if specified. + * @param message MatchIntentResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MatchIntentResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Properties of a TransitionRouteGroupCoverage. */ - interface ITransitionRouteGroupCoverage { + /** Properties of a FulfillIntentRequest. */ + interface IFulfillIntentRequest { - /** TransitionRouteGroupCoverage coverages */ - coverages?: (google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage[]|null); + /** FulfillIntentRequest matchIntentRequest */ + matchIntentRequest?: (google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest|null); - /** TransitionRouteGroupCoverage coverageScore */ - coverageScore?: (number|null); + /** FulfillIntentRequest match */ + match?: (google.cloud.dialogflow.cx.v3beta1.IMatch|null); + + /** FulfillIntentRequest outputAudioConfig */ + outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); } - /** Represents a TransitionRouteGroupCoverage. */ - class TransitionRouteGroupCoverage implements ITransitionRouteGroupCoverage { + /** Represents a FulfillIntentRequest. */ + class FulfillIntentRequest implements IFulfillIntentRequest { /** - * Constructs a new TransitionRouteGroupCoverage. + * Constructs a new FulfillIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest); - /** TransitionRouteGroupCoverage coverages. */ - public coverages: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage[]; + /** FulfillIntentRequest matchIntentRequest. */ + public matchIntentRequest?: (google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest|null); - /** TransitionRouteGroupCoverage coverageScore. */ - public coverageScore: number; + /** FulfillIntentRequest match. */ + public match?: (google.cloud.dialogflow.cx.v3beta1.IMatch|null); + + /** FulfillIntentRequest outputAudioConfig. */ + public outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); /** - * Creates a new TransitionRouteGroupCoverage instance using the specified properties. + * Creates a new FulfillIntentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TransitionRouteGroupCoverage instance + * @returns FulfillIntentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest): google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest; /** - * Encodes the specified TransitionRouteGroupCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.verify|verify} messages. - * @param message TransitionRouteGroupCoverage message or plain object to encode + * Encodes the specified FulfillIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest.verify|verify} messages. + * @param message FulfillIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TransitionRouteGroupCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.verify|verify} messages. - * @param message TransitionRouteGroupCoverage message or plain object to encode + * Encodes the specified FulfillIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest.verify|verify} messages. + * @param message FulfillIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TransitionRouteGroupCoverage message from the specified reader or buffer. + * Decodes a FulfillIntentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TransitionRouteGroupCoverage + * @returns FulfillIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest; /** - * Decodes a TransitionRouteGroupCoverage message from the specified reader or buffer, length delimited. + * Decodes a FulfillIntentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TransitionRouteGroupCoverage + * @returns FulfillIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest; /** - * Verifies a TransitionRouteGroupCoverage message. + * Verifies a FulfillIntentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TransitionRouteGroupCoverage message from a plain object. Also converts values to their respective internal types. + * Creates a FulfillIntentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TransitionRouteGroupCoverage + * @returns FulfillIntentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest; /** - * Creates a plain object from a TransitionRouteGroupCoverage message. Also converts values to other types if specified. - * @param message TransitionRouteGroupCoverage + * Creates a plain object from a FulfillIntentRequest message. Also converts values to other types if specified. + * @param message FulfillIntentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TransitionRouteGroupCoverage to JSON. + * Converts this FulfillIntentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace TransitionRouteGroupCoverage { - - /** Properties of a Coverage. */ - interface ICoverage { - - /** Coverage routeGroup */ - routeGroup?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null); - - /** Coverage transitions */ - transitions?: (google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition[]|null); + /** Properties of a FulfillIntentResponse. */ + interface IFulfillIntentResponse { - /** Coverage coverageScore */ - coverageScore?: (number|null); - } + /** FulfillIntentResponse responseId */ + responseId?: (string|null); - /** Represents a Coverage. */ - class Coverage implements ICoverage { + /** FulfillIntentResponse queryResult */ + queryResult?: (google.cloud.dialogflow.cx.v3beta1.IQueryResult|null); - /** - * Constructs a new Coverage. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage); + /** FulfillIntentResponse outputAudio */ + outputAudio?: (Uint8Array|string|null); - /** Coverage routeGroup. */ - public routeGroup?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null); + /** FulfillIntentResponse outputAudioConfig */ + outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); + } - /** Coverage transitions. */ - public transitions: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition[]; + /** Represents a FulfillIntentResponse. */ + class FulfillIntentResponse implements IFulfillIntentResponse { - /** Coverage coverageScore. */ - public coverageScore: number; + /** + * Constructs a new FulfillIntentResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse); - /** - * Creates a new Coverage instance using the specified properties. - * @param [properties] Properties to set - * @returns Coverage instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage; + /** FulfillIntentResponse responseId. */ + public responseId: string; - /** - * Encodes the specified Coverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.verify|verify} messages. - * @param message Coverage message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage, writer?: $protobuf.Writer): $protobuf.Writer; + /** FulfillIntentResponse queryResult. */ + public queryResult?: (google.cloud.dialogflow.cx.v3beta1.IQueryResult|null); - /** - * Encodes the specified Coverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.verify|verify} messages. - * @param message Coverage message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage, writer?: $protobuf.Writer): $protobuf.Writer; + /** FulfillIntentResponse outputAudio. */ + public outputAudio: (Uint8Array|string); - /** - * Decodes a Coverage message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Coverage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage; + /** FulfillIntentResponse outputAudioConfig. */ + public outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); - /** - * Decodes a Coverage message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Coverage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage; + /** + * Creates a new FulfillIntentResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns FulfillIntentResponse instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse): google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse; - /** - * Verifies a Coverage message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Encodes the specified FulfillIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse.verify|verify} messages. + * @param message FulfillIntentResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a Coverage message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Coverage - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage; + /** + * Encodes the specified FulfillIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse.verify|verify} messages. + * @param message FulfillIntentResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a Coverage message. Also converts values to other types if specified. - * @param message Coverage - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a FulfillIntentResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FulfillIntentResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse; - /** - * Converts this Coverage to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Decodes a FulfillIntentResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FulfillIntentResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse; - namespace Coverage { + /** + * Verifies a FulfillIntentResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Properties of a Transition. */ - interface ITransition { + /** + * Creates a FulfillIntentResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FulfillIntentResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse; - /** Transition transitionRoute */ - transitionRoute?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null); + /** + * Creates a plain object from a FulfillIntentResponse message. Also converts values to other types if specified. + * @param message FulfillIntentResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Transition covered */ - covered?: (boolean|null); - } + /** + * Converts this FulfillIntentResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Represents a Transition. */ - class Transition implements ITransition { + /** Properties of a SentimentAnalysisResult. */ + interface ISentimentAnalysisResult { - /** - * Constructs a new Transition. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition); + /** SentimentAnalysisResult score */ + score?: (number|null); - /** Transition transitionRoute. */ - public transitionRoute?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null); + /** SentimentAnalysisResult magnitude */ + magnitude?: (number|null); + } - /** Transition covered. */ - public covered: boolean; + /** Represents a SentimentAnalysisResult. */ + class SentimentAnalysisResult implements ISentimentAnalysisResult { - /** - * Creates a new Transition instance using the specified properties. - * @param [properties] Properties to set - * @returns Transition instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition; + /** + * Constructs a new SentimentAnalysisResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult); - /** - * Encodes the specified Transition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.verify|verify} messages. - * @param message Transition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition, writer?: $protobuf.Writer): $protobuf.Writer; + /** SentimentAnalysisResult score. */ + public score: number; - /** - * Encodes the specified Transition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.verify|verify} messages. - * @param message Transition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition, writer?: $protobuf.Writer): $protobuf.Writer; + /** SentimentAnalysisResult magnitude. */ + public magnitude: number; - /** - * Decodes a Transition message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Transition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition; + /** + * Creates a new SentimentAnalysisResult instance using the specified properties. + * @param [properties] Properties to set + * @returns SentimentAnalysisResult instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult): google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult; - /** - * Decodes a Transition message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Transition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition; + /** + * Encodes the specified SentimentAnalysisResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.verify|verify} messages. + * @param message SentimentAnalysisResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a Transition message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Encodes the specified SentimentAnalysisResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.verify|verify} messages. + * @param message SentimentAnalysisResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a Transition message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Transition - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition; + /** + * Decodes a SentimentAnalysisResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SentimentAnalysisResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult; - /** - * Creates a plain object from a Transition message. Also converts values to other types if specified. - * @param message Transition - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a SentimentAnalysisResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SentimentAnalysisResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult; - /** - * Converts this Transition to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - } + /** + * Verifies a SentimentAnalysisResult message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Properties of an IntentCoverage. */ - interface IIntentCoverage { + /** + * Creates a SentimentAnalysisResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SentimentAnalysisResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult; - /** IntentCoverage intents */ - intents?: (google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent[]|null); + /** + * Creates a plain object from a SentimentAnalysisResult message. Also converts values to other types if specified. + * @param message SentimentAnalysisResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** IntentCoverage coverageScore */ - coverageScore?: (number|null); + /** + * Converts this SentimentAnalysisResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Represents an IntentCoverage. */ - class IntentCoverage implements IIntentCoverage { + /** Represents a SessionEntityTypes */ + class SessionEntityTypes extends $protobuf.rpc.Service { /** - * Constructs a new IntentCoverage. - * @param [properties] Properties to set + * Constructs a new SessionEntityTypes service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IIntentCoverage); - - /** IntentCoverage intents. */ - public intents: google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent[]; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** IntentCoverage coverageScore. */ - public coverageScore: number; + /** + * Creates new SessionEntityTypes service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SessionEntityTypes; /** - * Creates a new IntentCoverage instance using the specified properties. - * @param [properties] Properties to set - * @returns IntentCoverage instance + * Calls ListSessionEntityTypes. + * @param request ListSessionEntityTypesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListSessionEntityTypesResponse */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IIntentCoverage): google.cloud.dialogflow.cx.v3beta1.IntentCoverage; + public listSessionEntityTypes(request: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest, callback: google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.ListSessionEntityTypesCallback): void; /** - * Encodes the specified IntentCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentCoverage.verify|verify} messages. - * @param message IntentCoverage message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ListSessionEntityTypes. + * @param request ListSessionEntityTypesRequest message or plain object + * @returns Promise + */ + public listSessionEntityTypes(request: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest): Promise; + + /** + * Calls GetSessionEntityType. + * @param request GetSessionEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SessionEntityType */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IIntentCoverage, writer?: $protobuf.Writer): $protobuf.Writer; + public getSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.GetSessionEntityTypeCallback): void; /** - * Encodes the specified IntentCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentCoverage.verify|verify} messages. - * @param message IntentCoverage message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls GetSessionEntityType. + * @param request GetSessionEntityTypeRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IIntentCoverage, writer?: $protobuf.Writer): $protobuf.Writer; + public getSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest): Promise; /** - * Decodes an IntentCoverage message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns IntentCoverage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateSessionEntityType. + * @param request CreateSessionEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SessionEntityType */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.IntentCoverage; + public createSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.CreateSessionEntityTypeCallback): void; /** - * Decodes an IntentCoverage message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns IntentCoverage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateSessionEntityType. + * @param request CreateSessionEntityTypeRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.IntentCoverage; + public createSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest): Promise; /** - * Verifies an IntentCoverage message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls UpdateSessionEntityType. + * @param request UpdateSessionEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SessionEntityType */ - public static verify(message: { [k: string]: any }): (string|null); + public updateSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.UpdateSessionEntityTypeCallback): void; /** - * Creates an IntentCoverage message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns IntentCoverage + * Calls UpdateSessionEntityType. + * @param request UpdateSessionEntityTypeRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.IntentCoverage; + public updateSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest): Promise; /** - * Creates a plain object from an IntentCoverage message. Also converts values to other types if specified. - * @param message IntentCoverage - * @param [options] Conversion options - * @returns Plain object + * Calls DeleteSessionEntityType. + * @param request DeleteSessionEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.IntentCoverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public deleteSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.DeleteSessionEntityTypeCallback): void; /** - * Converts this IntentCoverage to JSON. - * @returns JSON object + * Calls DeleteSessionEntityType. + * @param request DeleteSessionEntityTypeRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; + public deleteSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest): Promise; } - namespace IntentCoverage { - - /** Properties of an Intent. */ - interface IIntent { - - /** Intent intent */ - intent?: (string|null); - - /** Intent covered */ - covered?: (boolean|null); - } - - /** Represents an Intent. */ - class Intent implements IIntent { - - /** - * Constructs a new Intent. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent); - - /** Intent intent. */ - public intent: string; - - /** Intent covered. */ - public covered: boolean; - - /** - * Creates a new Intent instance using the specified properties. - * @param [properties] Properties to set - * @returns Intent instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent): google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent; - - /** - * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent.verify|verify} messages. - * @param message Intent message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Intent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent.verify|verify} messages. - * @param message Intent message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Intent message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Intent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent; + namespace SessionEntityTypes { - /** - * Decodes an Intent message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Intent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#listSessionEntityTypes}. + * @param error Error, if any + * @param [response] ListSessionEntityTypesResponse + */ + type ListSessionEntityTypesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse) => void; - /** - * Verifies an Intent message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#getSessionEntityType}. + * @param error Error, if any + * @param [response] SessionEntityType + */ + type GetSessionEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.SessionEntityType) => void; - /** - * Creates an Intent message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Intent - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#createSessionEntityType}. + * @param error Error, if any + * @param [response] SessionEntityType + */ + type CreateSessionEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.SessionEntityType) => void; - /** - * Creates a plain object from an Intent message. Also converts values to other types if specified. - * @param message Intent - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#updateSessionEntityType}. + * @param error Error, if any + * @param [response] SessionEntityType + */ + type UpdateSessionEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.SessionEntityType) => void; - /** - * Converts this Intent to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#deleteSessionEntityType}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteSessionEntityTypeCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; } - /** Properties of a CalculateCoverageRequest. */ - interface ICalculateCoverageRequest { + /** Properties of a SessionEntityType. */ + interface ISessionEntityType { - /** CalculateCoverageRequest agent */ - agent?: (string|null); + /** SessionEntityType name */ + name?: (string|null); - /** CalculateCoverageRequest type */ - type?: (google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType|keyof typeof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType|null); + /** SessionEntityType entityOverrideMode */ + entityOverrideMode?: (google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode|keyof typeof google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode|null); + + /** SessionEntityType entities */ + entities?: (google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity[]|null); } - /** Represents a CalculateCoverageRequest. */ - class CalculateCoverageRequest implements ICalculateCoverageRequest { + /** Represents a SessionEntityType. */ + class SessionEntityType implements ISessionEntityType { /** - * Constructs a new CalculateCoverageRequest. + * Constructs a new SessionEntityType. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ISessionEntityType); - /** CalculateCoverageRequest agent. */ - public agent: string; + /** SessionEntityType name. */ + public name: string; - /** CalculateCoverageRequest type. */ - public type: (google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType|keyof typeof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType); + /** SessionEntityType entityOverrideMode. */ + public entityOverrideMode: (google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode|keyof typeof google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode); + + /** SessionEntityType entities. */ + public entities: google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity[]; /** - * Creates a new CalculateCoverageRequest instance using the specified properties. + * Creates a new SessionEntityType instance using the specified properties. * @param [properties] Properties to set - * @returns CalculateCoverageRequest instance + * @returns SessionEntityType instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ISessionEntityType): google.cloud.dialogflow.cx.v3beta1.SessionEntityType; /** - * Encodes the specified CalculateCoverageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.verify|verify} messages. - * @param message CalculateCoverageRequest message or plain object to encode + * Encodes the specified SessionEntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify|verify} messages. + * @param message SessionEntityType message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ISessionEntityType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CalculateCoverageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.verify|verify} messages. - * @param message CalculateCoverageRequest message or plain object to encode + * Encodes the specified SessionEntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify|verify} messages. + * @param message SessionEntityType message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ISessionEntityType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CalculateCoverageRequest message from the specified reader or buffer. + * Decodes a SessionEntityType message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CalculateCoverageRequest + * @returns SessionEntityType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.SessionEntityType; /** - * Decodes a CalculateCoverageRequest message from the specified reader or buffer, length delimited. + * Decodes a SessionEntityType message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CalculateCoverageRequest + * @returns SessionEntityType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.SessionEntityType; /** - * Verifies a CalculateCoverageRequest message. + * Verifies a SessionEntityType message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CalculateCoverageRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SessionEntityType message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CalculateCoverageRequest + * @returns SessionEntityType */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SessionEntityType; /** - * Creates a plain object from a CalculateCoverageRequest message. Also converts values to other types if specified. - * @param message CalculateCoverageRequest + * Creates a plain object from a SessionEntityType message. Also converts values to other types if specified. + * @param message SessionEntityType * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.SessionEntityType, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CalculateCoverageRequest to JSON. + * Converts this SessionEntityType to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace CalculateCoverageRequest { + namespace SessionEntityType { - /** CoverageType enum. */ - enum CoverageType { - COVERAGE_TYPE_UNSPECIFIED = 0, - INTENT = 1, - PAGE_TRANSITION = 2, - TRANSITION_ROUTE_GROUP = 3 + /** EntityOverrideMode enum. */ + enum EntityOverrideMode { + ENTITY_OVERRIDE_MODE_UNSPECIFIED = 0, + ENTITY_OVERRIDE_MODE_OVERRIDE = 1, + ENTITY_OVERRIDE_MODE_SUPPLEMENT = 2 } } - /** Properties of a CalculateCoverageResponse. */ - interface ICalculateCoverageResponse { - - /** CalculateCoverageResponse agent */ - agent?: (string|null); + /** Properties of a ListSessionEntityTypesRequest. */ + interface IListSessionEntityTypesRequest { - /** CalculateCoverageResponse intentCoverage */ - intentCoverage?: (google.cloud.dialogflow.cx.v3beta1.IIntentCoverage|null); + /** ListSessionEntityTypesRequest parent */ + parent?: (string|null); - /** CalculateCoverageResponse transitionCoverage */ - transitionCoverage?: (google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage|null); + /** ListSessionEntityTypesRequest pageSize */ + pageSize?: (number|null); - /** CalculateCoverageResponse routeGroupCoverage */ - routeGroupCoverage?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage|null); + /** ListSessionEntityTypesRequest pageToken */ + pageToken?: (string|null); } - /** Represents a CalculateCoverageResponse. */ - class CalculateCoverageResponse implements ICalculateCoverageResponse { + /** Represents a ListSessionEntityTypesRequest. */ + class ListSessionEntityTypesRequest implements IListSessionEntityTypesRequest { /** - * Constructs a new CalculateCoverageResponse. + * Constructs a new ListSessionEntityTypesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse); - - /** CalculateCoverageResponse agent. */ - public agent: string; - - /** CalculateCoverageResponse intentCoverage. */ - public intentCoverage?: (google.cloud.dialogflow.cx.v3beta1.IIntentCoverage|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest); - /** CalculateCoverageResponse transitionCoverage. */ - public transitionCoverage?: (google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage|null); + /** ListSessionEntityTypesRequest parent. */ + public parent: string; - /** CalculateCoverageResponse routeGroupCoverage. */ - public routeGroupCoverage?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage|null); + /** ListSessionEntityTypesRequest pageSize. */ + public pageSize: number; - /** CalculateCoverageResponse coverageType. */ - public coverageType?: ("intentCoverage"|"transitionCoverage"|"routeGroupCoverage"); + /** ListSessionEntityTypesRequest pageToken. */ + public pageToken: string; /** - * Creates a new CalculateCoverageResponse instance using the specified properties. + * Creates a new ListSessionEntityTypesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CalculateCoverageResponse instance + * @returns ListSessionEntityTypesRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest; /** - * Encodes the specified CalculateCoverageResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse.verify|verify} messages. - * @param message CalculateCoverageResponse message or plain object to encode + * Encodes the specified ListSessionEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest.verify|verify} messages. + * @param message ListSessionEntityTypesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CalculateCoverageResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse.verify|verify} messages. - * @param message CalculateCoverageResponse message or plain object to encode + * Encodes the specified ListSessionEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest.verify|verify} messages. + * @param message ListSessionEntityTypesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CalculateCoverageResponse message from the specified reader or buffer. + * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CalculateCoverageResponse + * @returns ListSessionEntityTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest; /** - * Decodes a CalculateCoverageResponse message from the specified reader or buffer, length delimited. + * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CalculateCoverageResponse + * @returns ListSessionEntityTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest; /** - * Verifies a CalculateCoverageResponse message. + * Verifies a ListSessionEntityTypesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CalculateCoverageResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListSessionEntityTypesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CalculateCoverageResponse + * @returns ListSessionEntityTypesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest; /** - * Creates a plain object from a CalculateCoverageResponse message. Also converts values to other types if specified. - * @param message CalculateCoverageResponse + * Creates a plain object from a ListSessionEntityTypesRequest message. Also converts values to other types if specified. + * @param message ListSessionEntityTypesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CalculateCoverageResponse to JSON. + * Converts this ListSessionEntityTypesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListTestCasesRequest. */ - interface IListTestCasesRequest { - - /** ListTestCasesRequest parent */ - parent?: (string|null); - - /** ListTestCasesRequest pageSize */ - pageSize?: (number|null); + /** Properties of a ListSessionEntityTypesResponse. */ + interface IListSessionEntityTypesResponse { - /** ListTestCasesRequest pageToken */ - pageToken?: (string|null); + /** ListSessionEntityTypesResponse sessionEntityTypes */ + sessionEntityTypes?: (google.cloud.dialogflow.cx.v3beta1.ISessionEntityType[]|null); - /** ListTestCasesRequest view */ - view?: (google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView|keyof typeof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView|null); + /** ListSessionEntityTypesResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a ListTestCasesRequest. */ - class ListTestCasesRequest implements IListTestCasesRequest { + /** Represents a ListSessionEntityTypesResponse. */ + class ListSessionEntityTypesResponse implements IListSessionEntityTypesResponse { /** - * Constructs a new ListTestCasesRequest. + * Constructs a new ListSessionEntityTypesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest); - - /** ListTestCasesRequest parent. */ - public parent: string; - - /** ListTestCasesRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse); - /** ListTestCasesRequest pageToken. */ - public pageToken: string; + /** ListSessionEntityTypesResponse sessionEntityTypes. */ + public sessionEntityTypes: google.cloud.dialogflow.cx.v3beta1.ISessionEntityType[]; - /** ListTestCasesRequest view. */ - public view: (google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView|keyof typeof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView); + /** ListSessionEntityTypesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ListTestCasesRequest instance using the specified properties. + * Creates a new ListSessionEntityTypesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListTestCasesRequest instance + * @returns ListSessionEntityTypesResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest): google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse; /** - * Encodes the specified ListTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.verify|verify} messages. - * @param message ListTestCasesRequest message or plain object to encode + * Encodes the specified ListSessionEntityTypesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse.verify|verify} messages. + * @param message ListSessionEntityTypesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.verify|verify} messages. - * @param message ListTestCasesRequest message or plain object to encode + * Encodes the specified ListSessionEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse.verify|verify} messages. + * @param message ListSessionEntityTypesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTestCasesRequest message from the specified reader or buffer. + * Decodes a ListSessionEntityTypesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTestCasesRequest + * @returns ListSessionEntityTypesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse; /** - * Decodes a ListTestCasesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListSessionEntityTypesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTestCasesRequest + * @returns ListSessionEntityTypesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse; /** - * Verifies a ListTestCasesRequest message. + * Verifies a ListSessionEntityTypesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListSessionEntityTypesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTestCasesRequest + * @returns ListSessionEntityTypesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse; /** - * Creates a plain object from a ListTestCasesRequest message. Also converts values to other types if specified. - * @param message ListTestCasesRequest + * Creates a plain object from a ListSessionEntityTypesResponse message. Also converts values to other types if specified. + * @param message ListSessionEntityTypesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTestCasesRequest to JSON. + * Converts this ListSessionEntityTypesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace ListTestCasesRequest { - - /** TestCaseView enum. */ - enum TestCaseView { - TEST_CASE_VIEW_UNSPECIFIED = 0, - BASIC = 1, - FULL = 2 - } - } - - /** Properties of a ListTestCasesResponse. */ - interface IListTestCasesResponse { - - /** ListTestCasesResponse testCases */ - testCases?: (google.cloud.dialogflow.cx.v3beta1.ITestCase[]|null); + /** Properties of a GetSessionEntityTypeRequest. */ + interface IGetSessionEntityTypeRequest { - /** ListTestCasesResponse nextPageToken */ - nextPageToken?: (string|null); + /** GetSessionEntityTypeRequest name */ + name?: (string|null); } - /** Represents a ListTestCasesResponse. */ - class ListTestCasesResponse implements IListTestCasesResponse { + /** Represents a GetSessionEntityTypeRequest. */ + class GetSessionEntityTypeRequest implements IGetSessionEntityTypeRequest { /** - * Constructs a new ListTestCasesResponse. + * Constructs a new GetSessionEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse); - - /** ListTestCasesResponse testCases. */ - public testCases: google.cloud.dialogflow.cx.v3beta1.ITestCase[]; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest); - /** ListTestCasesResponse nextPageToken. */ - public nextPageToken: string; + /** GetSessionEntityTypeRequest name. */ + public name: string; /** - * Creates a new ListTestCasesResponse instance using the specified properties. + * Creates a new GetSessionEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListTestCasesResponse instance + * @returns GetSessionEntityTypeRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse): google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest; /** - * Encodes the specified ListTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse.verify|verify} messages. - * @param message ListTestCasesResponse message or plain object to encode + * Encodes the specified GetSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest.verify|verify} messages. + * @param message GetSessionEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse.verify|verify} messages. - * @param message ListTestCasesResponse message or plain object to encode + * Encodes the specified GetSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest.verify|verify} messages. + * @param message GetSessionEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTestCasesResponse message from the specified reader or buffer. + * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTestCasesResponse + * @returns GetSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest; /** - * Decodes a ListTestCasesResponse message from the specified reader or buffer, length delimited. + * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTestCasesResponse + * @returns GetSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest; /** - * Verifies a ListTestCasesResponse message. + * Verifies a GetSessionEntityTypeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListTestCasesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTestCasesResponse + * @returns GetSessionEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest; /** - * Creates a plain object from a ListTestCasesResponse message. Also converts values to other types if specified. - * @param message ListTestCasesResponse + * Creates a plain object from a GetSessionEntityTypeRequest message. Also converts values to other types if specified. + * @param message GetSessionEntityTypeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTestCasesResponse to JSON. + * Converts this GetSessionEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BatchDeleteTestCasesRequest. */ - interface IBatchDeleteTestCasesRequest { + /** Properties of a CreateSessionEntityTypeRequest. */ + interface ICreateSessionEntityTypeRequest { - /** BatchDeleteTestCasesRequest parent */ + /** CreateSessionEntityTypeRequest parent */ parent?: (string|null); - /** BatchDeleteTestCasesRequest names */ - names?: (string[]|null); + /** CreateSessionEntityTypeRequest sessionEntityType */ + sessionEntityType?: (google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null); } - /** Represents a BatchDeleteTestCasesRequest. */ - class BatchDeleteTestCasesRequest implements IBatchDeleteTestCasesRequest { + /** Represents a CreateSessionEntityTypeRequest. */ + class CreateSessionEntityTypeRequest implements ICreateSessionEntityTypeRequest { /** - * Constructs a new BatchDeleteTestCasesRequest. + * Constructs a new CreateSessionEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest); - /** BatchDeleteTestCasesRequest parent. */ + /** CreateSessionEntityTypeRequest parent. */ public parent: string; - /** BatchDeleteTestCasesRequest names. */ - public names: string[]; + /** CreateSessionEntityTypeRequest sessionEntityType. */ + public sessionEntityType?: (google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null); /** - * Creates a new BatchDeleteTestCasesRequest instance using the specified properties. + * Creates a new CreateSessionEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BatchDeleteTestCasesRequest instance + * @returns CreateSessionEntityTypeRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest): google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest; /** - * Encodes the specified BatchDeleteTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest.verify|verify} messages. - * @param message BatchDeleteTestCasesRequest message or plain object to encode + * Encodes the specified CreateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest.verify|verify} messages. + * @param message CreateSessionEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchDeleteTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest.verify|verify} messages. - * @param message BatchDeleteTestCasesRequest message or plain object to encode + * Encodes the specified CreateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest.verify|verify} messages. + * @param message CreateSessionEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchDeleteTestCasesRequest message from the specified reader or buffer. + * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchDeleteTestCasesRequest + * @returns CreateSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest; /** - * Decodes a BatchDeleteTestCasesRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchDeleteTestCasesRequest + * @returns CreateSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest; /** - * Verifies a BatchDeleteTestCasesRequest message. + * Verifies a CreateSessionEntityTypeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchDeleteTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchDeleteTestCasesRequest + * @returns CreateSessionEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest; /** - * Creates a plain object from a BatchDeleteTestCasesRequest message. Also converts values to other types if specified. - * @param message BatchDeleteTestCasesRequest + * Creates a plain object from a CreateSessionEntityTypeRequest message. Also converts values to other types if specified. + * @param message CreateSessionEntityTypeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchDeleteTestCasesRequest to JSON. + * Converts this CreateSessionEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateTestCaseRequest. */ - interface ICreateTestCaseRequest { + /** Properties of an UpdateSessionEntityTypeRequest. */ + interface IUpdateSessionEntityTypeRequest { - /** CreateTestCaseRequest parent */ - parent?: (string|null); + /** UpdateSessionEntityTypeRequest sessionEntityType */ + sessionEntityType?: (google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null); - /** CreateTestCaseRequest testCase */ - testCase?: (google.cloud.dialogflow.cx.v3beta1.ITestCase|null); + /** UpdateSessionEntityTypeRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a CreateTestCaseRequest. */ - class CreateTestCaseRequest implements ICreateTestCaseRequest { + /** Represents an UpdateSessionEntityTypeRequest. */ + class UpdateSessionEntityTypeRequest implements IUpdateSessionEntityTypeRequest { /** - * Constructs a new CreateTestCaseRequest. + * Constructs a new UpdateSessionEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest); - /** CreateTestCaseRequest parent. */ - public parent: string; + /** UpdateSessionEntityTypeRequest sessionEntityType. */ + public sessionEntityType?: (google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null); - /** CreateTestCaseRequest testCase. */ - public testCase?: (google.cloud.dialogflow.cx.v3beta1.ITestCase|null); + /** UpdateSessionEntityTypeRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new CreateTestCaseRequest instance using the specified properties. + * Creates a new UpdateSessionEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateTestCaseRequest instance + * @returns UpdateSessionEntityTypeRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest): google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest; /** - * Encodes the specified CreateTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest.verify|verify} messages. - * @param message CreateTestCaseRequest message or plain object to encode + * Encodes the specified UpdateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest.verify|verify} messages. + * @param message UpdateSessionEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest.verify|verify} messages. - * @param message CreateTestCaseRequest message or plain object to encode + * Encodes the specified UpdateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest.verify|verify} messages. + * @param message UpdateSessionEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateTestCaseRequest message from the specified reader or buffer. + * Decodes an UpdateSessionEntityTypeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateTestCaseRequest + * @returns UpdateSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest; /** - * Decodes a CreateTestCaseRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateSessionEntityTypeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateTestCaseRequest + * @returns UpdateSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest; /** - * Verifies a CreateTestCaseRequest message. + * Verifies an UpdateSessionEntityTypeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateTestCaseRequest + * @returns UpdateSessionEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest; /** - * Creates a plain object from a CreateTestCaseRequest message. Also converts values to other types if specified. - * @param message CreateTestCaseRequest + * Creates a plain object from an UpdateSessionEntityTypeRequest message. Also converts values to other types if specified. + * @param message UpdateSessionEntityTypeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateTestCaseRequest to JSON. + * Converts this UpdateSessionEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateTestCaseRequest. */ - interface IUpdateTestCaseRequest { - - /** UpdateTestCaseRequest testCase */ - testCase?: (google.cloud.dialogflow.cx.v3beta1.ITestCase|null); + /** Properties of a DeleteSessionEntityTypeRequest. */ + interface IDeleteSessionEntityTypeRequest { - /** UpdateTestCaseRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** DeleteSessionEntityTypeRequest name */ + name?: (string|null); } - /** Represents an UpdateTestCaseRequest. */ - class UpdateTestCaseRequest implements IUpdateTestCaseRequest { + /** Represents a DeleteSessionEntityTypeRequest. */ + class DeleteSessionEntityTypeRequest implements IDeleteSessionEntityTypeRequest { /** - * Constructs a new UpdateTestCaseRequest. + * Constructs a new DeleteSessionEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest); - - /** UpdateTestCaseRequest testCase. */ - public testCase?: (google.cloud.dialogflow.cx.v3beta1.ITestCase|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest); - /** UpdateTestCaseRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** DeleteSessionEntityTypeRequest name. */ + public name: string; /** - * Creates a new UpdateTestCaseRequest instance using the specified properties. + * Creates a new DeleteSessionEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateTestCaseRequest instance + * @returns DeleteSessionEntityTypeRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest): google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest; /** - * Encodes the specified UpdateTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest.verify|verify} messages. - * @param message UpdateTestCaseRequest message or plain object to encode + * Encodes the specified DeleteSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest.verify|verify} messages. + * @param message DeleteSessionEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest.verify|verify} messages. - * @param message UpdateTestCaseRequest message or plain object to encode + * Encodes the specified DeleteSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest.verify|verify} messages. + * @param message DeleteSessionEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateTestCaseRequest message from the specified reader or buffer. + * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateTestCaseRequest + * @returns DeleteSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest; /** - * Decodes an UpdateTestCaseRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateTestCaseRequest + * @returns DeleteSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest; /** - * Verifies an UpdateTestCaseRequest message. + * Verifies a DeleteSessionEntityTypeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateTestCaseRequest + * @returns DeleteSessionEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest; /** - * Creates a plain object from an UpdateTestCaseRequest message. Also converts values to other types if specified. - * @param message UpdateTestCaseRequest + * Creates a plain object from a DeleteSessionEntityTypeRequest message. Also converts values to other types if specified. + * @param message DeleteSessionEntityTypeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateTestCaseRequest to JSON. + * Converts this DeleteSessionEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetTestCaseRequest. */ - interface IGetTestCaseRequest { + /** Represents a TransitionRouteGroups */ + class TransitionRouteGroups extends $protobuf.rpc.Service { - /** GetTestCaseRequest name */ - name?: (string|null); - } + /** + * Constructs a new TransitionRouteGroups service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** Represents a GetTestCaseRequest. */ - class GetTestCaseRequest implements IGetTestCaseRequest { + /** + * Creates new TransitionRouteGroups service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): TransitionRouteGroups; /** - * Constructs a new GetTestCaseRequest. - * @param [properties] Properties to set + * Calls ListTransitionRouteGroups. + * @param request ListTransitionRouteGroupsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListTransitionRouteGroupsResponse */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest); + public listTransitionRouteGroups(request: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest, callback: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.ListTransitionRouteGroupsCallback): void; - /** GetTestCaseRequest name. */ - public name: string; + /** + * Calls ListTransitionRouteGroups. + * @param request ListTransitionRouteGroupsRequest message or plain object + * @returns Promise + */ + public listTransitionRouteGroups(request: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest): Promise; /** - * Creates a new GetTestCaseRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetTestCaseRequest instance + * Calls GetTransitionRouteGroup. + * @param request GetTransitionRouteGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TransitionRouteGroup */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest): google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest; + public getTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.GetTransitionRouteGroupCallback): void; /** - * Encodes the specified GetTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest.verify|verify} messages. - * @param message GetTestCaseRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls GetTransitionRouteGroup. + * @param request GetTransitionRouteGroupRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public getTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest): Promise; /** - * Encodes the specified GetTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest.verify|verify} messages. - * @param message GetTestCaseRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CreateTransitionRouteGroup. + * @param request CreateTransitionRouteGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TransitionRouteGroup */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public createTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.CreateTransitionRouteGroupCallback): void; /** - * Decodes a GetTestCaseRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetTestCaseRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateTransitionRouteGroup. + * @param request CreateTransitionRouteGroupRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest; + public createTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest): Promise; /** - * Decodes a GetTestCaseRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetTestCaseRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls UpdateTransitionRouteGroup. + * @param request UpdateTransitionRouteGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TransitionRouteGroup */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest; + public updateTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.UpdateTransitionRouteGroupCallback): void; /** - * Verifies a GetTestCaseRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls UpdateTransitionRouteGroup. + * @param request UpdateTransitionRouteGroupRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public updateTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest): Promise; /** - * Creates a GetTestCaseRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetTestCaseRequest + * Calls DeleteTransitionRouteGroup. + * @param request DeleteTransitionRouteGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest; + public deleteTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.DeleteTransitionRouteGroupCallback): void; /** - * Creates a plain object from a GetTestCaseRequest message. Also converts values to other types if specified. - * @param message GetTestCaseRequest - * @param [options] Conversion options - * @returns Plain object + * Calls DeleteTransitionRouteGroup. + * @param request DeleteTransitionRouteGroupRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public deleteTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest): Promise; + } + + namespace TransitionRouteGroups { /** - * Converts this GetTestCaseRequest to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#listTransitionRouteGroups}. + * @param error Error, if any + * @param [response] ListTransitionRouteGroupsResponse */ - public toJSON(): { [k: string]: any }; + type ListTransitionRouteGroupsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#getTransitionRouteGroup}. + * @param error Error, if any + * @param [response] TransitionRouteGroup + */ + type GetTransitionRouteGroupCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#createTransitionRouteGroup}. + * @param error Error, if any + * @param [response] TransitionRouteGroup + */ + type CreateTransitionRouteGroupCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#updateTransitionRouteGroup}. + * @param error Error, if any + * @param [response] TransitionRouteGroup + */ + type UpdateTransitionRouteGroupCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#deleteTransitionRouteGroup}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteTransitionRouteGroupCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; } - /** Properties of a RunTestCaseRequest. */ - interface IRunTestCaseRequest { + /** Properties of a TransitionRouteGroup. */ + interface ITransitionRouteGroup { - /** RunTestCaseRequest name */ + /** TransitionRouteGroup name */ name?: (string|null); - /** RunTestCaseRequest environment */ - environment?: (string|null); + /** TransitionRouteGroup displayName */ + displayName?: (string|null); + + /** TransitionRouteGroup transitionRoutes */ + transitionRoutes?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute[]|null); } - /** Represents a RunTestCaseRequest. */ - class RunTestCaseRequest implements IRunTestCaseRequest { + /** Represents a TransitionRouteGroup. */ + class TransitionRouteGroup implements ITransitionRouteGroup { /** - * Constructs a new RunTestCaseRequest. + * Constructs a new TransitionRouteGroup. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup); - /** RunTestCaseRequest name. */ + /** TransitionRouteGroup name. */ public name: string; - /** RunTestCaseRequest environment. */ - public environment: string; + /** TransitionRouteGroup displayName. */ + public displayName: string; + + /** TransitionRouteGroup transitionRoutes. */ + public transitionRoutes: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute[]; /** - * Creates a new RunTestCaseRequest instance using the specified properties. + * Creates a new TransitionRouteGroup instance using the specified properties. * @param [properties] Properties to set - * @returns RunTestCaseRequest instance + * @returns TransitionRouteGroup instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest): google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup; /** - * Encodes the specified RunTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest.verify|verify} messages. - * @param message RunTestCaseRequest message or plain object to encode + * Encodes the specified TransitionRouteGroup message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify|verify} messages. + * @param message TransitionRouteGroup message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RunTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest.verify|verify} messages. - * @param message RunTestCaseRequest message or plain object to encode + * Encodes the specified TransitionRouteGroup message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify|verify} messages. + * @param message TransitionRouteGroup message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RunTestCaseRequest message from the specified reader or buffer. + * Decodes a TransitionRouteGroup message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RunTestCaseRequest + * @returns TransitionRouteGroup * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup; /** - * Decodes a RunTestCaseRequest message from the specified reader or buffer, length delimited. + * Decodes a TransitionRouteGroup message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RunTestCaseRequest + * @returns TransitionRouteGroup * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup; /** - * Verifies a RunTestCaseRequest message. + * Verifies a TransitionRouteGroup message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RunTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TransitionRouteGroup message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RunTestCaseRequest + * @returns TransitionRouteGroup */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup; /** - * Creates a plain object from a RunTestCaseRequest message. Also converts values to other types if specified. - * @param message RunTestCaseRequest + * Creates a plain object from a TransitionRouteGroup message. Also converts values to other types if specified. + * @param message TransitionRouteGroup * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RunTestCaseRequest to JSON. + * Converts this TransitionRouteGroup to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RunTestCaseResponse. */ - interface IRunTestCaseResponse { + /** Properties of a ListTransitionRouteGroupsRequest. */ + interface IListTransitionRouteGroupsRequest { - /** RunTestCaseResponse result */ - result?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null); + /** ListTransitionRouteGroupsRequest parent */ + parent?: (string|null); + + /** ListTransitionRouteGroupsRequest pageSize */ + pageSize?: (number|null); + + /** ListTransitionRouteGroupsRequest pageToken */ + pageToken?: (string|null); + + /** ListTransitionRouteGroupsRequest languageCode */ + languageCode?: (string|null); } - /** Represents a RunTestCaseResponse. */ - class RunTestCaseResponse implements IRunTestCaseResponse { + /** Represents a ListTransitionRouteGroupsRequest. */ + class ListTransitionRouteGroupsRequest implements IListTransitionRouteGroupsRequest { /** - * Constructs a new RunTestCaseResponse. + * Constructs a new ListTransitionRouteGroupsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest); - /** RunTestCaseResponse result. */ - public result?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null); + /** ListTransitionRouteGroupsRequest parent. */ + public parent: string; + + /** ListTransitionRouteGroupsRequest pageSize. */ + public pageSize: number; + + /** ListTransitionRouteGroupsRequest pageToken. */ + public pageToken: string; + + /** ListTransitionRouteGroupsRequest languageCode. */ + public languageCode: string; /** - * Creates a new RunTestCaseResponse instance using the specified properties. + * Creates a new ListTransitionRouteGroupsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RunTestCaseResponse instance + * @returns ListTransitionRouteGroupsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse): google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest; /** - * Encodes the specified RunTestCaseResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse.verify|verify} messages. - * @param message RunTestCaseResponse message or plain object to encode + * Encodes the specified ListTransitionRouteGroupsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest.verify|verify} messages. + * @param message ListTransitionRouteGroupsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RunTestCaseResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse.verify|verify} messages. - * @param message RunTestCaseResponse message or plain object to encode + * Encodes the specified ListTransitionRouteGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest.verify|verify} messages. + * @param message ListTransitionRouteGroupsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RunTestCaseResponse message from the specified reader or buffer. + * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RunTestCaseResponse + * @returns ListTransitionRouteGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest; /** - * Decodes a RunTestCaseResponse message from the specified reader or buffer, length delimited. + * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RunTestCaseResponse + * @returns ListTransitionRouteGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest; /** - * Verifies a RunTestCaseResponse message. + * Verifies a ListTransitionRouteGroupsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RunTestCaseResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListTransitionRouteGroupsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RunTestCaseResponse + * @returns ListTransitionRouteGroupsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest; /** - * Creates a plain object from a RunTestCaseResponse message. Also converts values to other types if specified. - * @param message RunTestCaseResponse + * Creates a plain object from a ListTransitionRouteGroupsRequest message. Also converts values to other types if specified. + * @param message ListTransitionRouteGroupsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RunTestCaseResponse to JSON. + * Converts this ListTransitionRouteGroupsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RunTestCaseMetadata. */ - interface IRunTestCaseMetadata { + /** Properties of a ListTransitionRouteGroupsResponse. */ + interface IListTransitionRouteGroupsResponse { + + /** ListTransitionRouteGroupsResponse transitionRouteGroups */ + transitionRouteGroups?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup[]|null); + + /** ListTransitionRouteGroupsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a RunTestCaseMetadata. */ - class RunTestCaseMetadata implements IRunTestCaseMetadata { + /** Represents a ListTransitionRouteGroupsResponse. */ + class ListTransitionRouteGroupsResponse implements IListTransitionRouteGroupsResponse { /** - * Constructs a new RunTestCaseMetadata. + * Constructs a new ListTransitionRouteGroupsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse); + + /** ListTransitionRouteGroupsResponse transitionRouteGroups. */ + public transitionRouteGroups: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup[]; + + /** ListTransitionRouteGroupsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new RunTestCaseMetadata instance using the specified properties. + * Creates a new ListTransitionRouteGroupsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RunTestCaseMetadata instance + * @returns ListTransitionRouteGroupsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata): google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse; /** - * Encodes the specified RunTestCaseMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata.verify|verify} messages. - * @param message RunTestCaseMetadata message or plain object to encode + * Encodes the specified ListTransitionRouteGroupsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse.verify|verify} messages. + * @param message ListTransitionRouteGroupsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RunTestCaseMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata.verify|verify} messages. - * @param message RunTestCaseMetadata message or plain object to encode + * Encodes the specified ListTransitionRouteGroupsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse.verify|verify} messages. + * @param message ListTransitionRouteGroupsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RunTestCaseMetadata message from the specified reader or buffer. + * Decodes a ListTransitionRouteGroupsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RunTestCaseMetadata + * @returns ListTransitionRouteGroupsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse; /** - * Decodes a RunTestCaseMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListTransitionRouteGroupsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RunTestCaseMetadata + * @returns ListTransitionRouteGroupsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse; /** - * Verifies a RunTestCaseMetadata message. + * Verifies a ListTransitionRouteGroupsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RunTestCaseMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListTransitionRouteGroupsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RunTestCaseMetadata + * @returns ListTransitionRouteGroupsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse; /** - * Creates a plain object from a RunTestCaseMetadata message. Also converts values to other types if specified. - * @param message RunTestCaseMetadata + * Creates a plain object from a ListTransitionRouteGroupsResponse message. Also converts values to other types if specified. + * @param message ListTransitionRouteGroupsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RunTestCaseMetadata to JSON. + * Converts this ListTransitionRouteGroupsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BatchRunTestCasesRequest. */ - interface IBatchRunTestCasesRequest { - - /** BatchRunTestCasesRequest parent */ - parent?: (string|null); + /** Properties of a GetTransitionRouteGroupRequest. */ + interface IGetTransitionRouteGroupRequest { - /** BatchRunTestCasesRequest environment */ - environment?: (string|null); + /** GetTransitionRouteGroupRequest name */ + name?: (string|null); - /** BatchRunTestCasesRequest testCases */ - testCases?: (string[]|null); + /** GetTransitionRouteGroupRequest languageCode */ + languageCode?: (string|null); } - /** Represents a BatchRunTestCasesRequest. */ - class BatchRunTestCasesRequest implements IBatchRunTestCasesRequest { + /** Represents a GetTransitionRouteGroupRequest. */ + class GetTransitionRouteGroupRequest implements IGetTransitionRouteGroupRequest { /** - * Constructs a new BatchRunTestCasesRequest. + * Constructs a new GetTransitionRouteGroupRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest); - - /** BatchRunTestCasesRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest); - /** BatchRunTestCasesRequest environment. */ - public environment: string; + /** GetTransitionRouteGroupRequest name. */ + public name: string; - /** BatchRunTestCasesRequest testCases. */ - public testCases: string[]; + /** GetTransitionRouteGroupRequest languageCode. */ + public languageCode: string; /** - * Creates a new BatchRunTestCasesRequest instance using the specified properties. + * Creates a new GetTransitionRouteGroupRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BatchRunTestCasesRequest instance + * @returns GetTransitionRouteGroupRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest; /** - * Encodes the specified BatchRunTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest.verify|verify} messages. - * @param message BatchRunTestCasesRequest message or plain object to encode + * Encodes the specified GetTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest.verify|verify} messages. + * @param message GetTransitionRouteGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchRunTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest.verify|verify} messages. - * @param message BatchRunTestCasesRequest message or plain object to encode + * Encodes the specified GetTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest.verify|verify} messages. + * @param message GetTransitionRouteGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchRunTestCasesRequest message from the specified reader or buffer. + * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchRunTestCasesRequest + * @returns GetTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest; /** - * Decodes a BatchRunTestCasesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchRunTestCasesRequest + * @returns GetTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest; /** - * Verifies a BatchRunTestCasesRequest message. + * Verifies a GetTransitionRouteGroupRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchRunTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchRunTestCasesRequest + * @returns GetTransitionRouteGroupRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest; /** - * Creates a plain object from a BatchRunTestCasesRequest message. Also converts values to other types if specified. - * @param message BatchRunTestCasesRequest + * Creates a plain object from a GetTransitionRouteGroupRequest message. Also converts values to other types if specified. + * @param message GetTransitionRouteGroupRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchRunTestCasesRequest to JSON. + * Converts this GetTransitionRouteGroupRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BatchRunTestCasesResponse. */ - interface IBatchRunTestCasesResponse { + /** Properties of a CreateTransitionRouteGroupRequest. */ + interface ICreateTransitionRouteGroupRequest { - /** BatchRunTestCasesResponse results */ - results?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseResult[]|null); + /** CreateTransitionRouteGroupRequest parent */ + parent?: (string|null); + + /** CreateTransitionRouteGroupRequest transitionRouteGroup */ + transitionRouteGroup?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null); + + /** CreateTransitionRouteGroupRequest languageCode */ + languageCode?: (string|null); } - /** Represents a BatchRunTestCasesResponse. */ - class BatchRunTestCasesResponse implements IBatchRunTestCasesResponse { + /** Represents a CreateTransitionRouteGroupRequest. */ + class CreateTransitionRouteGroupRequest implements ICreateTransitionRouteGroupRequest { /** - * Constructs a new BatchRunTestCasesResponse. + * Constructs a new CreateTransitionRouteGroupRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest); - /** BatchRunTestCasesResponse results. */ - public results: google.cloud.dialogflow.cx.v3beta1.ITestCaseResult[]; + /** CreateTransitionRouteGroupRequest parent. */ + public parent: string; + + /** CreateTransitionRouteGroupRequest transitionRouteGroup. */ + public transitionRouteGroup?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null); + + /** CreateTransitionRouteGroupRequest languageCode. */ + public languageCode: string; /** - * Creates a new BatchRunTestCasesResponse instance using the specified properties. + * Creates a new CreateTransitionRouteGroupRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BatchRunTestCasesResponse instance + * @returns CreateTransitionRouteGroupRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest; /** - * Encodes the specified BatchRunTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse.verify|verify} messages. - * @param message BatchRunTestCasesResponse message or plain object to encode + * Encodes the specified CreateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest.verify|verify} messages. + * @param message CreateTransitionRouteGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchRunTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse.verify|verify} messages. - * @param message BatchRunTestCasesResponse message or plain object to encode + * Encodes the specified CreateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest.verify|verify} messages. + * @param message CreateTransitionRouteGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchRunTestCasesResponse message from the specified reader or buffer. + * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchRunTestCasesResponse + * @returns CreateTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest; /** - * Decodes a BatchRunTestCasesResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchRunTestCasesResponse + * @returns CreateTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest; /** - * Verifies a BatchRunTestCasesResponse message. + * Verifies a CreateTransitionRouteGroupRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchRunTestCasesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchRunTestCasesResponse + * @returns CreateTransitionRouteGroupRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest; /** - * Creates a plain object from a BatchRunTestCasesResponse message. Also converts values to other types if specified. - * @param message BatchRunTestCasesResponse + * Creates a plain object from a CreateTransitionRouteGroupRequest message. Also converts values to other types if specified. + * @param message CreateTransitionRouteGroupRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchRunTestCasesResponse to JSON. + * Converts this CreateTransitionRouteGroupRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BatchRunTestCasesMetadata. */ - interface IBatchRunTestCasesMetadata { + /** Properties of an UpdateTransitionRouteGroupRequest. */ + interface IUpdateTransitionRouteGroupRequest { - /** BatchRunTestCasesMetadata errors */ - errors?: (google.cloud.dialogflow.cx.v3beta1.ITestError[]|null); + /** UpdateTransitionRouteGroupRequest transitionRouteGroup */ + transitionRouteGroup?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null); + + /** UpdateTransitionRouteGroupRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateTransitionRouteGroupRequest languageCode */ + languageCode?: (string|null); } - /** Represents a BatchRunTestCasesMetadata. */ - class BatchRunTestCasesMetadata implements IBatchRunTestCasesMetadata { + /** Represents an UpdateTransitionRouteGroupRequest. */ + class UpdateTransitionRouteGroupRequest implements IUpdateTransitionRouteGroupRequest { /** - * Constructs a new BatchRunTestCasesMetadata. + * Constructs a new UpdateTransitionRouteGroupRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest); - /** BatchRunTestCasesMetadata errors. */ - public errors: google.cloud.dialogflow.cx.v3beta1.ITestError[]; + /** UpdateTransitionRouteGroupRequest transitionRouteGroup. */ + public transitionRouteGroup?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null); + + /** UpdateTransitionRouteGroupRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateTransitionRouteGroupRequest languageCode. */ + public languageCode: string; /** - * Creates a new BatchRunTestCasesMetadata instance using the specified properties. + * Creates a new UpdateTransitionRouteGroupRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BatchRunTestCasesMetadata instance + * @returns UpdateTransitionRouteGroupRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest; /** - * Encodes the specified BatchRunTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata.verify|verify} messages. - * @param message BatchRunTestCasesMetadata message or plain object to encode + * Encodes the specified UpdateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest.verify|verify} messages. + * @param message UpdateTransitionRouteGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchRunTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata.verify|verify} messages. - * @param message BatchRunTestCasesMetadata message or plain object to encode + * Encodes the specified UpdateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest.verify|verify} messages. + * @param message UpdateTransitionRouteGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchRunTestCasesMetadata message from the specified reader or buffer. + * Decodes an UpdateTransitionRouteGroupRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchRunTestCasesMetadata + * @returns UpdateTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest; /** - * Decodes a BatchRunTestCasesMetadata message from the specified reader or buffer, length delimited. + * Decodes an UpdateTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchRunTestCasesMetadata + * @returns UpdateTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest; /** - * Verifies a BatchRunTestCasesMetadata message. + * Verifies an UpdateTransitionRouteGroupRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchRunTestCasesMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchRunTestCasesMetadata + * @returns UpdateTransitionRouteGroupRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest; /** - * Creates a plain object from a BatchRunTestCasesMetadata message. Also converts values to other types if specified. - * @param message BatchRunTestCasesMetadata + * Creates a plain object from an UpdateTransitionRouteGroupRequest message. Also converts values to other types if specified. + * @param message UpdateTransitionRouteGroupRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchRunTestCasesMetadata to JSON. + * Converts this UpdateTransitionRouteGroupRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TestError. */ - interface ITestError { - - /** TestError testCase */ - testCase?: (string|null); + /** Properties of a DeleteTransitionRouteGroupRequest. */ + interface IDeleteTransitionRouteGroupRequest { - /** TestError status */ - status?: (google.rpc.IStatus|null); + /** DeleteTransitionRouteGroupRequest name */ + name?: (string|null); - /** TestError testTime */ - testTime?: (google.protobuf.ITimestamp|null); + /** DeleteTransitionRouteGroupRequest force */ + force?: (boolean|null); } - /** Represents a TestError. */ - class TestError implements ITestError { + /** Represents a DeleteTransitionRouteGroupRequest. */ + class DeleteTransitionRouteGroupRequest implements IDeleteTransitionRouteGroupRequest { /** - * Constructs a new TestError. + * Constructs a new DeleteTransitionRouteGroupRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITestError); - - /** TestError testCase. */ - public testCase: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest); - /** TestError status. */ - public status?: (google.rpc.IStatus|null); + /** DeleteTransitionRouteGroupRequest name. */ + public name: string; - /** TestError testTime. */ - public testTime?: (google.protobuf.ITimestamp|null); + /** DeleteTransitionRouteGroupRequest force. */ + public force: boolean; /** - * Creates a new TestError instance using the specified properties. + * Creates a new DeleteTransitionRouteGroupRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TestError instance + * @returns DeleteTransitionRouteGroupRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITestError): google.cloud.dialogflow.cx.v3beta1.TestError; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest; /** - * Encodes the specified TestError message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestError.verify|verify} messages. - * @param message TestError message or plain object to encode + * Encodes the specified DeleteTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest.verify|verify} messages. + * @param message DeleteTransitionRouteGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITestError, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TestError message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestError.verify|verify} messages. - * @param message TestError message or plain object to encode + * Encodes the specified DeleteTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest.verify|verify} messages. + * @param message DeleteTransitionRouteGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITestError, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TestError message from the specified reader or buffer. + * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TestError + * @returns DeleteTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TestError; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest; /** - * Decodes a TestError message from the specified reader or buffer, length delimited. + * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TestError + * @returns DeleteTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TestError; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest; /** - * Verifies a TestError message. + * Verifies a DeleteTransitionRouteGroupRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TestError message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TestError + * @returns DeleteTransitionRouteGroupRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TestError; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest; /** - * Creates a plain object from a TestError message. Also converts values to other types if specified. - * @param message TestError + * Creates a plain object from a DeleteTransitionRouteGroupRequest message. Also converts values to other types if specified. + * @param message DeleteTransitionRouteGroupRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TestError, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TestError to JSON. + * Converts this DeleteTransitionRouteGroupRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ImportTestCasesRequest. */ - interface IImportTestCasesRequest { - - /** ImportTestCasesRequest parent */ - parent?: (string|null); - - /** ImportTestCasesRequest gcsUri */ - gcsUri?: (string|null); - - /** ImportTestCasesRequest content */ - content?: (Uint8Array|string|null); - } - - /** Represents an ImportTestCasesRequest. */ - class ImportTestCasesRequest implements IImportTestCasesRequest { + /** Represents an Experiments */ + class Experiments extends $protobuf.rpc.Service { /** - * Constructs a new ImportTestCasesRequest. - * @param [properties] Properties to set + * Constructs a new Experiments service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest); - - /** ImportTestCasesRequest parent. */ - public parent: string; - - /** ImportTestCasesRequest gcsUri. */ - public gcsUri: string; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** ImportTestCasesRequest content. */ - public content: (Uint8Array|string); + /** + * Creates new Experiments service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Experiments; - /** ImportTestCasesRequest source. */ - public source?: ("gcsUri"|"content"); + /** + * Calls ListExperiments. + * @param request ListExperimentsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListExperimentsResponse + */ + public listExperiments(request: google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Experiments.ListExperimentsCallback): void; /** - * Creates a new ImportTestCasesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ImportTestCasesRequest instance + * Calls ListExperiments. + * @param request ListExperimentsRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest; + public listExperiments(request: google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest): Promise; /** - * Encodes the specified ImportTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest.verify|verify} messages. - * @param message ImportTestCasesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls GetExperiment. + * @param request GetExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Experiment */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public getExperiment(request: google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Experiments.GetExperimentCallback): void; /** - * Encodes the specified ImportTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest.verify|verify} messages. - * @param message ImportTestCasesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls GetExperiment. + * @param request GetExperimentRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public getExperiment(request: google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest): Promise; /** - * Decodes an ImportTestCasesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImportTestCasesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateExperiment. + * @param request CreateExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Experiment */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest; + public createExperiment(request: google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Experiments.CreateExperimentCallback): void; /** - * Decodes an ImportTestCasesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImportTestCasesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateExperiment. + * @param request CreateExperimentRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest; + public createExperiment(request: google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest): Promise; /** - * Verifies an ImportTestCasesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls UpdateExperiment. + * @param request UpdateExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Experiment */ - public static verify(message: { [k: string]: any }): (string|null); + public updateExperiment(request: google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Experiments.UpdateExperimentCallback): void; /** - * Creates an ImportTestCasesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImportTestCasesRequest + * Calls UpdateExperiment. + * @param request UpdateExperimentRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest; + public updateExperiment(request: google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest): Promise; /** - * Creates a plain object from an ImportTestCasesRequest message. Also converts values to other types if specified. - * @param message ImportTestCasesRequest - * @param [options] Conversion options - * @returns Plain object + * Calls DeleteExperiment. + * @param request DeleteExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public deleteExperiment(request: google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Experiments.DeleteExperimentCallback): void; /** - * Converts this ImportTestCasesRequest to JSON. - * @returns JSON object + * Calls DeleteExperiment. + * @param request DeleteExperimentRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an ImportTestCasesResponse. */ - interface IImportTestCasesResponse { - - /** ImportTestCasesResponse names */ - names?: (string[]|null); - } - - /** Represents an ImportTestCasesResponse. */ - class ImportTestCasesResponse implements IImportTestCasesResponse { + public deleteExperiment(request: google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest): Promise; /** - * Constructs a new ImportTestCasesResponse. - * @param [properties] Properties to set + * Calls StartExperiment. + * @param request StartExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Experiment */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse); + public startExperiment(request: google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Experiments.StartExperimentCallback): void; - /** ImportTestCasesResponse names. */ - public names: string[]; + /** + * Calls StartExperiment. + * @param request StartExperimentRequest message or plain object + * @returns Promise + */ + public startExperiment(request: google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest): Promise; /** - * Creates a new ImportTestCasesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ImportTestCasesResponse instance + * Calls StopExperiment. + * @param request StopExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Experiment */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse; + public stopExperiment(request: google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Experiments.StopExperimentCallback): void; /** - * Encodes the specified ImportTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse.verify|verify} messages. - * @param message ImportTestCasesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls StopExperiment. + * @param request StopExperimentRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public stopExperiment(request: google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest): Promise; + } + + namespace Experiments { /** - * Encodes the specified ImportTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse.verify|verify} messages. - * @param message ImportTestCasesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#listExperiments}. + * @param error Error, if any + * @param [response] ListExperimentsResponse */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + type ListExperimentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse) => void; /** - * Decodes an ImportTestCasesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImportTestCasesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#getExperiment}. + * @param error Error, if any + * @param [response] Experiment */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse; + type GetExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Experiment) => void; /** - * Decodes an ImportTestCasesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImportTestCasesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#createExperiment}. + * @param error Error, if any + * @param [response] Experiment */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse; + type CreateExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Experiment) => void; /** - * Verifies an ImportTestCasesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#updateExperiment}. + * @param error Error, if any + * @param [response] Experiment */ - public static verify(message: { [k: string]: any }): (string|null); + type UpdateExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Experiment) => void; /** - * Creates an ImportTestCasesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImportTestCasesResponse + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#deleteExperiment}. + * @param error Error, if any + * @param [response] Empty */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse; + type DeleteExperimentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Creates a plain object from an ImportTestCasesResponse message. Also converts values to other types if specified. - * @param message ImportTestCasesResponse - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#startExperiment}. + * @param error Error, if any + * @param [response] Experiment */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type StartExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Experiment) => void; /** - * Converts this ImportTestCasesResponse to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#stopExperiment}. + * @param error Error, if any + * @param [response] Experiment */ - public toJSON(): { [k: string]: any }; + type StopExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Experiment) => void; } - /** Properties of an ImportTestCasesMetadata. */ - interface IImportTestCasesMetadata { + /** Properties of an Experiment. */ + interface IExperiment { - /** ImportTestCasesMetadata errors */ - errors?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseError[]|null); + /** Experiment name */ + name?: (string|null); + + /** Experiment displayName */ + displayName?: (string|null); + + /** Experiment description */ + description?: (string|null); + + /** Experiment state */ + state?: (google.cloud.dialogflow.cx.v3beta1.Experiment.State|keyof typeof google.cloud.dialogflow.cx.v3beta1.Experiment.State|null); + + /** Experiment definition */ + definition?: (google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition|null); + + /** Experiment result */ + result?: (google.cloud.dialogflow.cx.v3beta1.Experiment.IResult|null); + + /** Experiment createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Experiment startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** Experiment endTime */ + endTime?: (google.protobuf.ITimestamp|null); + + /** Experiment lastUpdateTime */ + lastUpdateTime?: (google.protobuf.ITimestamp|null); + + /** Experiment experimentLength */ + experimentLength?: (google.protobuf.IDuration|null); + + /** Experiment variantsHistory */ + variantsHistory?: (google.cloud.dialogflow.cx.v3beta1.IVariantsHistory[]|null); } - /** Represents an ImportTestCasesMetadata. */ - class ImportTestCasesMetadata implements IImportTestCasesMetadata { + /** Represents an Experiment. */ + class Experiment implements IExperiment { /** - * Constructs a new ImportTestCasesMetadata. + * Constructs a new Experiment. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExperiment); - /** ImportTestCasesMetadata errors. */ - public errors: google.cloud.dialogflow.cx.v3beta1.ITestCaseError[]; + /** Experiment name. */ + public name: string; + + /** Experiment displayName. */ + public displayName: string; + + /** Experiment description. */ + public description: string; + + /** Experiment state. */ + public state: (google.cloud.dialogflow.cx.v3beta1.Experiment.State|keyof typeof google.cloud.dialogflow.cx.v3beta1.Experiment.State); + + /** Experiment definition. */ + public definition?: (google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition|null); + + /** Experiment result. */ + public result?: (google.cloud.dialogflow.cx.v3beta1.Experiment.IResult|null); + + /** Experiment createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Experiment startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** Experiment endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** Experiment lastUpdateTime. */ + public lastUpdateTime?: (google.protobuf.ITimestamp|null); + + /** Experiment experimentLength. */ + public experimentLength?: (google.protobuf.IDuration|null); + + /** Experiment variantsHistory. */ + public variantsHistory: google.cloud.dialogflow.cx.v3beta1.IVariantsHistory[]; /** - * Creates a new ImportTestCasesMetadata instance using the specified properties. + * Creates a new Experiment instance using the specified properties. * @param [properties] Properties to set - * @returns ImportTestCasesMetadata instance + * @returns Experiment instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IExperiment): google.cloud.dialogflow.cx.v3beta1.Experiment; /** - * Encodes the specified ImportTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata.verify|verify} messages. - * @param message ImportTestCasesMetadata message or plain object to encode + * Encodes the specified Experiment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.verify|verify} messages. + * @param message Experiment message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IExperiment, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ImportTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata.verify|verify} messages. - * @param message ImportTestCasesMetadata message or plain object to encode + * Encodes the specified Experiment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.verify|verify} messages. + * @param message Experiment message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IExperiment, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImportTestCasesMetadata message from the specified reader or buffer. + * Decodes an Experiment message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ImportTestCasesMetadata + * @returns Experiment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Experiment; /** - * Decodes an ImportTestCasesMetadata message from the specified reader or buffer, length delimited. + * Decodes an Experiment message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ImportTestCasesMetadata + * @returns Experiment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Experiment; /** - * Verifies an ImportTestCasesMetadata message. + * Verifies an Experiment message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ImportTestCasesMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an Experiment message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ImportTestCasesMetadata + * @returns Experiment */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Experiment; /** - * Creates a plain object from an ImportTestCasesMetadata message. Also converts values to other types if specified. - * @param message ImportTestCasesMetadata + * Creates a plain object from an Experiment message. Also converts values to other types if specified. + * @param message Experiment * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Experiment, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImportTestCasesMetadata to JSON. + * Converts this Experiment to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TestCaseError. */ - interface ITestCaseError { + namespace Experiment { + + /** Properties of a Definition. */ + interface IDefinition { + + /** Definition condition */ + condition?: (string|null); + + /** Definition versionVariants */ + versionVariants?: (google.cloud.dialogflow.cx.v3beta1.IVersionVariants|null); + } + + /** Represents a Definition. */ + class Definition implements IDefinition { + + /** + * Constructs a new Definition. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition); + + /** Definition condition. */ + public condition: string; + + /** Definition versionVariants. */ + public versionVariants?: (google.cloud.dialogflow.cx.v3beta1.IVersionVariants|null); + + /** Definition variants. */ + public variants?: "versionVariants"; + + /** + * Creates a new Definition instance using the specified properties. + * @param [properties] Properties to set + * @returns Definition instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition): google.cloud.dialogflow.cx.v3beta1.Experiment.Definition; + + /** + * Encodes the specified Definition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.verify|verify} messages. + * @param message Definition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Definition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.verify|verify} messages. + * @param message Definition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Definition message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Definition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Experiment.Definition; + + /** + * Decodes a Definition message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Definition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Experiment.Definition; + + /** + * Verifies a Definition message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Definition message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Definition + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Experiment.Definition; + + /** + * Creates a plain object from a Definition message. Also converts values to other types if specified. + * @param message Definition + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Definition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Definition to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Result. */ + interface IResult { + + /** Result versionMetrics */ + versionMetrics?: (google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics[]|null); + + /** Result lastUpdateTime */ + lastUpdateTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a Result. */ + class Result implements IResult { + + /** + * Constructs a new Result. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.IResult); + + /** Result versionMetrics. */ + public versionMetrics: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics[]; + + /** Result lastUpdateTime. */ + public lastUpdateTime?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new Result instance using the specified properties. + * @param [properties] Properties to set + * @returns Result instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.IResult): google.cloud.dialogflow.cx.v3beta1.Experiment.Result; + + /** + * Encodes the specified Result message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.verify|verify} messages. + * @param message Result message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Experiment.IResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Result message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.verify|verify} messages. + * @param message Result message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Experiment.IResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Result message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Result + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Experiment.Result; + + /** + * Decodes a Result message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Result + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Experiment.Result; + + /** + * Verifies a Result message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Result message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Result + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Experiment.Result; + + /** + * Creates a plain object from a Result message. Also converts values to other types if specified. + * @param message Result + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Result to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace Result { + + /** Properties of a ConfidenceInterval. */ + interface IConfidenceInterval { + + /** ConfidenceInterval confidenceLevel */ + confidenceLevel?: (number|null); + + /** ConfidenceInterval ratio */ + ratio?: (number|null); + + /** ConfidenceInterval lowerBound */ + lowerBound?: (number|null); + + /** ConfidenceInterval upperBound */ + upperBound?: (number|null); + } + + /** Represents a ConfidenceInterval. */ + class ConfidenceInterval implements IConfidenceInterval { + + /** + * Constructs a new ConfidenceInterval. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval); + + /** ConfidenceInterval confidenceLevel. */ + public confidenceLevel: number; + + /** ConfidenceInterval ratio. */ + public ratio: number; - /** TestCaseError testCase */ - testCase?: (google.cloud.dialogflow.cx.v3beta1.ITestCase|null); + /** ConfidenceInterval lowerBound. */ + public lowerBound: number; - /** TestCaseError status */ - status?: (google.rpc.IStatus|null); - } + /** ConfidenceInterval upperBound. */ + public upperBound: number; - /** Represents a TestCaseError. */ - class TestCaseError implements ITestCaseError { + /** + * Creates a new ConfidenceInterval instance using the specified properties. + * @param [properties] Properties to set + * @returns ConfidenceInterval instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval; - /** - * Constructs a new TestCaseError. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITestCaseError); + /** + * Encodes the specified ConfidenceInterval message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.verify|verify} messages. + * @param message ConfidenceInterval message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval, writer?: $protobuf.Writer): $protobuf.Writer; - /** TestCaseError testCase. */ - public testCase?: (google.cloud.dialogflow.cx.v3beta1.ITestCase|null); + /** + * Encodes the specified ConfidenceInterval message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.verify|verify} messages. + * @param message ConfidenceInterval message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval, writer?: $protobuf.Writer): $protobuf.Writer; - /** TestCaseError status. */ - public status?: (google.rpc.IStatus|null); + /** + * Decodes a ConfidenceInterval message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConfidenceInterval + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval; - /** - * Creates a new TestCaseError instance using the specified properties. - * @param [properties] Properties to set - * @returns TestCaseError instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITestCaseError): google.cloud.dialogflow.cx.v3beta1.TestCaseError; + /** + * Decodes a ConfidenceInterval message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ConfidenceInterval + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval; - /** - * Encodes the specified TestCaseError message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCaseError.verify|verify} messages. - * @param message TestCaseError message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITestCaseError, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a ConfidenceInterval message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Encodes the specified TestCaseError message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCaseError.verify|verify} messages. - * @param message TestCaseError message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITestCaseError, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a ConfidenceInterval message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConfidenceInterval + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval; - /** - * Decodes a TestCaseError message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TestCaseError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TestCaseError; + /** + * Creates a plain object from a ConfidenceInterval message. Also converts values to other types if specified. + * @param message ConfidenceInterval + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes a TestCaseError message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TestCaseError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TestCaseError; + /** + * Converts this ConfidenceInterval to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Verifies a TestCaseError message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Properties of a Metric. */ + interface IMetric { - /** - * Creates a TestCaseError message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TestCaseError - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TestCaseError; + /** Metric type */ + type?: (google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType|keyof typeof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType|null); - /** - * Creates a plain object from a TestCaseError message. Also converts values to other types if specified. - * @param message TestCaseError - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TestCaseError, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Metric countType */ + countType?: (google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType|keyof typeof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType|null); - /** - * Converts this TestCaseError to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Metric ratio */ + ratio?: (number|null); - /** Properties of an ExportTestCasesRequest. */ - interface IExportTestCasesRequest { + /** Metric count */ + count?: (number|null); - /** ExportTestCasesRequest parent */ - parent?: (string|null); + /** Metric confidenceInterval */ + confidenceInterval?: (google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval|null); + } - /** ExportTestCasesRequest gcsUri */ - gcsUri?: (string|null); + /** Represents a Metric. */ + class Metric implements IMetric { - /** ExportTestCasesRequest dataFormat */ - dataFormat?: (google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat|keyof typeof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat|null); + /** + * Constructs a new Metric. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric); - /** ExportTestCasesRequest filter */ - filter?: (string|null); - } + /** Metric type. */ + public type: (google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType|keyof typeof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType); - /** Represents an ExportTestCasesRequest. */ - class ExportTestCasesRequest implements IExportTestCasesRequest { + /** Metric countType. */ + public countType: (google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType|keyof typeof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType); - /** - * Constructs a new ExportTestCasesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest); + /** Metric ratio. */ + public ratio: number; - /** ExportTestCasesRequest parent. */ - public parent: string; + /** Metric count. */ + public count: number; - /** ExportTestCasesRequest gcsUri. */ - public gcsUri: string; + /** Metric confidenceInterval. */ + public confidenceInterval?: (google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval|null); - /** ExportTestCasesRequest dataFormat. */ - public dataFormat: (google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat|keyof typeof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat); + /** Metric value. */ + public value?: ("ratio"|"count"); - /** ExportTestCasesRequest filter. */ - public filter: string; + /** + * Creates a new Metric instance using the specified properties. + * @param [properties] Properties to set + * @returns Metric instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric; - /** ExportTestCasesRequest destination. */ - public destination?: "gcsUri"; + /** + * Encodes the specified Metric message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.verify|verify} messages. + * @param message Metric message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new ExportTestCasesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExportTestCasesRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest; + /** + * Encodes the specified Metric message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.verify|verify} messages. + * @param message Metric message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ExportTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.verify|verify} messages. - * @param message ExportTestCasesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a Metric message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Metric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric; - /** - * Encodes the specified ExportTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.verify|verify} messages. - * @param message ExportTestCasesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a Metric message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Metric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric; - /** - * Decodes an ExportTestCasesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExportTestCasesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest; + /** + * Verifies a Metric message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes an ExportTestCasesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExportTestCasesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest; + /** + * Creates a Metric message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Metric + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric; - /** - * Verifies an ExportTestCasesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a plain object from a Metric message. Also converts values to other types if specified. + * @param message Metric + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates an ExportTestCasesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExportTestCasesRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest; + /** + * Converts this Metric to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Creates a plain object from an ExportTestCasesRequest message. Also converts values to other types if specified. - * @param message ExportTestCasesRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of a VersionMetrics. */ + interface IVersionMetrics { - /** - * Converts this ExportTestCasesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** VersionMetrics version */ + version?: (string|null); - namespace ExportTestCasesRequest { + /** VersionMetrics metrics */ + metrics?: (google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric[]|null); - /** DataFormat enum. */ - enum DataFormat { - DATA_FORMAT_UNSPECIFIED = 0, - BLOB = 1, - JSON = 2 - } - } + /** VersionMetrics sessionCount */ + sessionCount?: (number|null); + } - /** Properties of an ExportTestCasesResponse. */ - interface IExportTestCasesResponse { + /** Represents a VersionMetrics. */ + class VersionMetrics implements IVersionMetrics { - /** ExportTestCasesResponse gcsUri */ - gcsUri?: (string|null); + /** + * Constructs a new VersionMetrics. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics); - /** ExportTestCasesResponse content */ - content?: (Uint8Array|string|null); - } + /** VersionMetrics version. */ + public version: string; - /** Represents an ExportTestCasesResponse. */ - class ExportTestCasesResponse implements IExportTestCasesResponse { + /** VersionMetrics metrics. */ + public metrics: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric[]; - /** - * Constructs a new ExportTestCasesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse); + /** VersionMetrics sessionCount. */ + public sessionCount: number; - /** ExportTestCasesResponse gcsUri. */ - public gcsUri: string; + /** + * Creates a new VersionMetrics instance using the specified properties. + * @param [properties] Properties to set + * @returns VersionMetrics instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics; - /** ExportTestCasesResponse content. */ - public content: (Uint8Array|string); + /** + * Encodes the specified VersionMetrics message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.verify|verify} messages. + * @param message VersionMetrics message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics, writer?: $protobuf.Writer): $protobuf.Writer; - /** ExportTestCasesResponse destination. */ - public destination?: ("gcsUri"|"content"); + /** + * Encodes the specified VersionMetrics message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.verify|verify} messages. + * @param message VersionMetrics message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new ExportTestCasesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ExportTestCasesResponse instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse; + /** + * Decodes a VersionMetrics message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VersionMetrics + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics; - /** - * Encodes the specified ExportTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse.verify|verify} messages. - * @param message ExportTestCasesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a VersionMetrics message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VersionMetrics + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics; - /** - * Encodes the specified ExportTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse.verify|verify} messages. - * @param message ExportTestCasesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a VersionMetrics message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes an ExportTestCasesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExportTestCasesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse; + /** + * Creates a VersionMetrics message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VersionMetrics + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics; - /** - * Decodes an ExportTestCasesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExportTestCasesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse; + /** + * Creates a plain object from a VersionMetrics message. Also converts values to other types if specified. + * @param message VersionMetrics + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Verifies an ExportTestCasesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Converts this VersionMetrics to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Creates an ExportTestCasesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExportTestCasesResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse; + /** MetricType enum. */ + enum MetricType { + METRIC_UNSPECIFIED = 0, + CONTAINED_SESSION_NO_CALLBACK_RATE = 1, + LIVE_AGENT_HANDOFF_RATE = 2, + CALLBACK_SESSION_RATE = 3, + ABANDONED_SESSION_RATE = 4, + SESSION_END_RATE = 5 + } - /** - * Creates a plain object from an ExportTestCasesResponse message. Also converts values to other types if specified. - * @param message ExportTestCasesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** CountType enum. */ + enum CountType { + COUNT_TYPE_UNSPECIFIED = 0, + TOTAL_NO_MATCH_COUNT = 1, + TOTAL_TURN_COUNT = 2, + AVERAGE_TURN_COUNT = 3 + } + } - /** - * Converts this ExportTestCasesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + DRAFT = 1, + RUNNING = 2, + DONE = 3 + } } - /** Properties of an ExportTestCasesMetadata. */ - interface IExportTestCasesMetadata { + /** Properties of a VersionVariants. */ + interface IVersionVariants { + + /** VersionVariants variants */ + variants?: (google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant[]|null); } - /** Represents an ExportTestCasesMetadata. */ - class ExportTestCasesMetadata implements IExportTestCasesMetadata { + /** Represents a VersionVariants. */ + class VersionVariants implements IVersionVariants { /** - * Constructs a new ExportTestCasesMetadata. + * Constructs a new VersionVariants. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IVersionVariants); + + /** VersionVariants variants. */ + public variants: google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant[]; /** - * Creates a new ExportTestCasesMetadata instance using the specified properties. + * Creates a new VersionVariants instance using the specified properties. * @param [properties] Properties to set - * @returns ExportTestCasesMetadata instance + * @returns VersionVariants instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IVersionVariants): google.cloud.dialogflow.cx.v3beta1.VersionVariants; /** - * Encodes the specified ExportTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata.verify|verify} messages. - * @param message ExportTestCasesMetadata message or plain object to encode + * Encodes the specified VersionVariants message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VersionVariants.verify|verify} messages. + * @param message VersionVariants message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IVersionVariants, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata.verify|verify} messages. - * @param message ExportTestCasesMetadata message or plain object to encode + * Encodes the specified VersionVariants message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VersionVariants.verify|verify} messages. + * @param message VersionVariants message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IVersionVariants, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportTestCasesMetadata message from the specified reader or buffer. + * Decodes a VersionVariants message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportTestCasesMetadata + * @returns VersionVariants * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.VersionVariants; /** - * Decodes an ExportTestCasesMetadata message from the specified reader or buffer, length delimited. + * Decodes a VersionVariants message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportTestCasesMetadata + * @returns VersionVariants * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.VersionVariants; /** - * Verifies an ExportTestCasesMetadata message. + * Verifies a VersionVariants message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ExportTestCasesMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a VersionVariants message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportTestCasesMetadata + * @returns VersionVariants */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.VersionVariants; /** - * Creates a plain object from an ExportTestCasesMetadata message. Also converts values to other types if specified. - * @param message ExportTestCasesMetadata + * Creates a plain object from a VersionVariants message. Also converts values to other types if specified. + * @param message VersionVariants * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.VersionVariants, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportTestCasesMetadata to JSON. + * Converts this VersionVariants to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListTestCaseResultsRequest. */ - interface IListTestCaseResultsRequest { + namespace VersionVariants { - /** ListTestCaseResultsRequest parent */ - parent?: (string|null); + /** Properties of a Variant. */ + interface IVariant { - /** ListTestCaseResultsRequest pageSize */ - pageSize?: (number|null); + /** Variant version */ + version?: (string|null); - /** ListTestCaseResultsRequest pageToken */ - pageToken?: (string|null); + /** Variant trafficAllocation */ + trafficAllocation?: (number|null); - /** ListTestCaseResultsRequest filter */ - filter?: (string|null); + /** Variant isControlGroup */ + isControlGroup?: (boolean|null); + } + + /** Represents a Variant. */ + class Variant implements IVariant { + + /** + * Constructs a new Variant. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant); + + /** Variant version. */ + public version: string; + + /** Variant trafficAllocation. */ + public trafficAllocation: number; + + /** Variant isControlGroup. */ + public isControlGroup: boolean; + + /** + * Creates a new Variant instance using the specified properties. + * @param [properties] Properties to set + * @returns Variant instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant): google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant; + + /** + * Encodes the specified Variant message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant.verify|verify} messages. + * @param message Variant message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Variant message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant.verify|verify} messages. + * @param message Variant message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Variant message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Variant + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant; + + /** + * Decodes a Variant message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Variant + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant; + + /** + * Verifies a Variant message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Variant message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Variant + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant; + + /** + * Creates a plain object from a Variant message. Also converts values to other types if specified. + * @param message Variant + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Variant to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Represents a ListTestCaseResultsRequest. */ - class ListTestCaseResultsRequest implements IListTestCaseResultsRequest { + /** Properties of a VariantsHistory. */ + interface IVariantsHistory { + + /** VariantsHistory versionVariants */ + versionVariants?: (google.cloud.dialogflow.cx.v3beta1.IVersionVariants|null); + + /** VariantsHistory updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a VariantsHistory. */ + class VariantsHistory implements IVariantsHistory { /** - * Constructs a new ListTestCaseResultsRequest. + * Constructs a new VariantsHistory. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest); - - /** ListTestCaseResultsRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IVariantsHistory); - /** ListTestCaseResultsRequest pageSize. */ - public pageSize: number; + /** VariantsHistory versionVariants. */ + public versionVariants?: (google.cloud.dialogflow.cx.v3beta1.IVersionVariants|null); - /** ListTestCaseResultsRequest pageToken. */ - public pageToken: string; + /** VariantsHistory updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** ListTestCaseResultsRequest filter. */ - public filter: string; + /** VariantsHistory variants. */ + public variants?: "versionVariants"; /** - * Creates a new ListTestCaseResultsRequest instance using the specified properties. + * Creates a new VariantsHistory instance using the specified properties. * @param [properties] Properties to set - * @returns ListTestCaseResultsRequest instance + * @returns VariantsHistory instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IVariantsHistory): google.cloud.dialogflow.cx.v3beta1.VariantsHistory; /** - * Encodes the specified ListTestCaseResultsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest.verify|verify} messages. - * @param message ListTestCaseResultsRequest message or plain object to encode + * Encodes the specified VariantsHistory message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VariantsHistory.verify|verify} messages. + * @param message VariantsHistory message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IVariantsHistory, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTestCaseResultsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest.verify|verify} messages. - * @param message ListTestCaseResultsRequest message or plain object to encode + * Encodes the specified VariantsHistory message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VariantsHistory.verify|verify} messages. + * @param message VariantsHistory message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IVariantsHistory, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTestCaseResultsRequest message from the specified reader or buffer. + * Decodes a VariantsHistory message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTestCaseResultsRequest + * @returns VariantsHistory * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.VariantsHistory; /** - * Decodes a ListTestCaseResultsRequest message from the specified reader or buffer, length delimited. + * Decodes a VariantsHistory message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTestCaseResultsRequest + * @returns VariantsHistory * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.VariantsHistory; /** - * Verifies a ListTestCaseResultsRequest message. + * Verifies a VariantsHistory message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListTestCaseResultsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VariantsHistory message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTestCaseResultsRequest + * @returns VariantsHistory */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.VariantsHistory; /** - * Creates a plain object from a ListTestCaseResultsRequest message. Also converts values to other types if specified. - * @param message ListTestCaseResultsRequest + * Creates a plain object from a VariantsHistory message. Also converts values to other types if specified. + * @param message VariantsHistory * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.VariantsHistory, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTestCaseResultsRequest to JSON. + * Converts this VariantsHistory to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListTestCaseResultsResponse. */ - interface IListTestCaseResultsResponse { + /** Properties of a ListExperimentsRequest. */ + interface IListExperimentsRequest { - /** ListTestCaseResultsResponse testCaseResults */ - testCaseResults?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseResult[]|null); + /** ListExperimentsRequest parent */ + parent?: (string|null); - /** ListTestCaseResultsResponse nextPageToken */ - nextPageToken?: (string|null); + /** ListExperimentsRequest pageSize */ + pageSize?: (number|null); + + /** ListExperimentsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a ListTestCaseResultsResponse. */ - class ListTestCaseResultsResponse implements IListTestCaseResultsResponse { + /** Represents a ListExperimentsRequest. */ + class ListExperimentsRequest implements IListExperimentsRequest { /** - * Constructs a new ListTestCaseResultsResponse. + * Constructs a new ListExperimentsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest); - /** ListTestCaseResultsResponse testCaseResults. */ - public testCaseResults: google.cloud.dialogflow.cx.v3beta1.ITestCaseResult[]; + /** ListExperimentsRequest parent. */ + public parent: string; - /** ListTestCaseResultsResponse nextPageToken. */ - public nextPageToken: string; + /** ListExperimentsRequest pageSize. */ + public pageSize: number; + + /** ListExperimentsRequest pageToken. */ + public pageToken: string; /** - * Creates a new ListTestCaseResultsResponse instance using the specified properties. + * Creates a new ListExperimentsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListTestCaseResultsResponse instance + * @returns ListExperimentsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest): google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest; /** - * Encodes the specified ListTestCaseResultsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse.verify|verify} messages. - * @param message ListTestCaseResultsResponse message or plain object to encode + * Encodes the specified ListExperimentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest.verify|verify} messages. + * @param message ListExperimentsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTestCaseResultsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse.verify|verify} messages. - * @param message ListTestCaseResultsResponse message or plain object to encode + * Encodes the specified ListExperimentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest.verify|verify} messages. + * @param message ListExperimentsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTestCaseResultsResponse message from the specified reader or buffer. + * Decodes a ListExperimentsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTestCaseResultsResponse + * @returns ListExperimentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest; /** - * Decodes a ListTestCaseResultsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListExperimentsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTestCaseResultsResponse + * @returns ListExperimentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest; /** - * Verifies a ListTestCaseResultsResponse message. + * Verifies a ListExperimentsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListTestCaseResultsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListExperimentsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTestCaseResultsResponse + * @returns ListExperimentsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest; /** - * Creates a plain object from a ListTestCaseResultsResponse message. Also converts values to other types if specified. - * @param message ListTestCaseResultsResponse + * Creates a plain object from a ListExperimentsRequest message. Also converts values to other types if specified. + * @param message ListExperimentsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTestCaseResultsResponse to JSON. + * Converts this ListExperimentsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** TestResult enum. */ - enum TestResult { - TEST_RESULT_UNSPECIFIED = 0, - PASSED = 1, - FAILED = 2 - } - - /** Represents a TransitionRouteGroups */ - class TransitionRouteGroups extends $protobuf.rpc.Service { - - /** - * Constructs a new TransitionRouteGroups service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new TransitionRouteGroups service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): TransitionRouteGroups; - - /** - * Calls ListTransitionRouteGroups. - * @param request ListTransitionRouteGroupsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListTransitionRouteGroupsResponse - */ - public listTransitionRouteGroups(request: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest, callback: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.ListTransitionRouteGroupsCallback): void; - - /** - * Calls ListTransitionRouteGroups. - * @param request ListTransitionRouteGroupsRequest message or plain object - * @returns Promise - */ - public listTransitionRouteGroups(request: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest): Promise; - - /** - * Calls GetTransitionRouteGroup. - * @param request GetTransitionRouteGroupRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TransitionRouteGroup - */ - public getTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.GetTransitionRouteGroupCallback): void; - - /** - * Calls GetTransitionRouteGroup. - * @param request GetTransitionRouteGroupRequest message or plain object - * @returns Promise - */ - public getTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest): Promise; - - /** - * Calls CreateTransitionRouteGroup. - * @param request CreateTransitionRouteGroupRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TransitionRouteGroup - */ - public createTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.CreateTransitionRouteGroupCallback): void; - - /** - * Calls CreateTransitionRouteGroup. - * @param request CreateTransitionRouteGroupRequest message or plain object - * @returns Promise - */ - public createTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest): Promise; - - /** - * Calls UpdateTransitionRouteGroup. - * @param request UpdateTransitionRouteGroupRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TransitionRouteGroup - */ - public updateTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.UpdateTransitionRouteGroupCallback): void; - - /** - * Calls UpdateTransitionRouteGroup. - * @param request UpdateTransitionRouteGroupRequest message or plain object - * @returns Promise - */ - public updateTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest): Promise; - - /** - * Calls DeleteTransitionRouteGroup. - * @param request DeleteTransitionRouteGroupRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public deleteTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.DeleteTransitionRouteGroupCallback): void; - - /** - * Calls DeleteTransitionRouteGroup. - * @param request DeleteTransitionRouteGroupRequest message or plain object - * @returns Promise - */ - public deleteTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest): Promise; - } - - namespace TransitionRouteGroups { - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#listTransitionRouteGroups}. - * @param error Error, if any - * @param [response] ListTransitionRouteGroupsResponse - */ - type ListTransitionRouteGroupsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#getTransitionRouteGroup}. - * @param error Error, if any - * @param [response] TransitionRouteGroup - */ - type GetTransitionRouteGroupCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#createTransitionRouteGroup}. - * @param error Error, if any - * @param [response] TransitionRouteGroup - */ - type CreateTransitionRouteGroupCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#updateTransitionRouteGroup}. - * @param error Error, if any - * @param [response] TransitionRouteGroup - */ - type UpdateTransitionRouteGroupCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#deleteTransitionRouteGroup}. - * @param error Error, if any - * @param [response] Empty - */ - type DeleteTransitionRouteGroupCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - } - - /** Properties of a TransitionRouteGroup. */ - interface ITransitionRouteGroup { - - /** TransitionRouteGroup name */ - name?: (string|null); + /** Properties of a ListExperimentsResponse. */ + interface IListExperimentsResponse { - /** TransitionRouteGroup displayName */ - displayName?: (string|null); + /** ListExperimentsResponse experiments */ + experiments?: (google.cloud.dialogflow.cx.v3beta1.IExperiment[]|null); - /** TransitionRouteGroup transitionRoutes */ - transitionRoutes?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute[]|null); + /** ListExperimentsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a TransitionRouteGroup. */ - class TransitionRouteGroup implements ITransitionRouteGroup { + /** Represents a ListExperimentsResponse. */ + class ListExperimentsResponse implements IListExperimentsResponse { /** - * Constructs a new TransitionRouteGroup. + * Constructs a new ListExperimentsResponse. * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup); - - /** TransitionRouteGroup name. */ - public name: string; + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListExperimentsResponse); - /** TransitionRouteGroup displayName. */ - public displayName: string; + /** ListExperimentsResponse experiments. */ + public experiments: google.cloud.dialogflow.cx.v3beta1.IExperiment[]; - /** TransitionRouteGroup transitionRoutes. */ - public transitionRoutes: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute[]; + /** ListExperimentsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new TransitionRouteGroup instance using the specified properties. + * Creates a new ListExperimentsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns TransitionRouteGroup instance + * @returns ListExperimentsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListExperimentsResponse): google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse; /** - * Encodes the specified TransitionRouteGroup message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify|verify} messages. - * @param message TransitionRouteGroup message or plain object to encode + * Encodes the specified ListExperimentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse.verify|verify} messages. + * @param message ListExperimentsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListExperimentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TransitionRouteGroup message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify|verify} messages. - * @param message TransitionRouteGroup message or plain object to encode + * Encodes the specified ListExperimentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse.verify|verify} messages. + * @param message ListExperimentsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListExperimentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TransitionRouteGroup message from the specified reader or buffer. + * Decodes a ListExperimentsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TransitionRouteGroup + * @returns ListExperimentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse; /** - * Decodes a TransitionRouteGroup message from the specified reader or buffer, length delimited. + * Decodes a ListExperimentsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TransitionRouteGroup + * @returns ListExperimentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse; /** - * Verifies a TransitionRouteGroup message. + * Verifies a ListExperimentsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TransitionRouteGroup message from a plain object. Also converts values to their respective internal types. + * Creates a ListExperimentsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TransitionRouteGroup + * @returns ListExperimentsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse; /** - * Creates a plain object from a TransitionRouteGroup message. Also converts values to other types if specified. - * @param message TransitionRouteGroup + * Creates a plain object from a ListExperimentsResponse message. Also converts values to other types if specified. + * @param message ListExperimentsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TransitionRouteGroup to JSON. + * Converts this ListExperimentsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListTransitionRouteGroupsRequest. */ - interface IListTransitionRouteGroupsRequest { - - /** ListTransitionRouteGroupsRequest parent */ - parent?: (string|null); - - /** ListTransitionRouteGroupsRequest pageSize */ - pageSize?: (number|null); - - /** ListTransitionRouteGroupsRequest pageToken */ - pageToken?: (string|null); + /** Properties of a GetExperimentRequest. */ + interface IGetExperimentRequest { - /** ListTransitionRouteGroupsRequest languageCode */ - languageCode?: (string|null); + /** GetExperimentRequest name */ + name?: (string|null); } - /** Represents a ListTransitionRouteGroupsRequest. */ - class ListTransitionRouteGroupsRequest implements IListTransitionRouteGroupsRequest { + /** Represents a GetExperimentRequest. */ + class GetExperimentRequest implements IGetExperimentRequest { /** - * Constructs a new ListTransitionRouteGroupsRequest. + * Constructs a new GetExperimentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest); - - /** ListTransitionRouteGroupsRequest parent. */ - public parent: string; - - /** ListTransitionRouteGroupsRequest pageSize. */ - public pageSize: number; - - /** ListTransitionRouteGroupsRequest pageToken. */ - public pageToken: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest); - /** ListTransitionRouteGroupsRequest languageCode. */ - public languageCode: string; + /** GetExperimentRequest name. */ + public name: string; /** - * Creates a new ListTransitionRouteGroupsRequest instance using the specified properties. + * Creates a new GetExperimentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListTransitionRouteGroupsRequest instance + * @returns GetExperimentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest): google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest; /** - * Encodes the specified ListTransitionRouteGroupsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest.verify|verify} messages. - * @param message ListTransitionRouteGroupsRequest message or plain object to encode + * Encodes the specified GetExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest.verify|verify} messages. + * @param message GetExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTransitionRouteGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest.verify|verify} messages. - * @param message ListTransitionRouteGroupsRequest message or plain object to encode + * Encodes the specified GetExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest.verify|verify} messages. + * @param message GetExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer. + * Decodes a GetExperimentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTransitionRouteGroupsRequest + * @returns GetExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest; /** - * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetExperimentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTransitionRouteGroupsRequest + * @returns GetExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest; /** - * Verifies a ListTransitionRouteGroupsRequest message. + * Verifies a GetExperimentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListTransitionRouteGroupsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetExperimentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTransitionRouteGroupsRequest + * @returns GetExperimentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest; /** - * Creates a plain object from a ListTransitionRouteGroupsRequest message. Also converts values to other types if specified. - * @param message ListTransitionRouteGroupsRequest + * Creates a plain object from a GetExperimentRequest message. Also converts values to other types if specified. + * @param message GetExperimentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTransitionRouteGroupsRequest to JSON. + * Converts this GetExperimentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListTransitionRouteGroupsResponse. */ - interface IListTransitionRouteGroupsResponse { + /** Properties of a CreateExperimentRequest. */ + interface ICreateExperimentRequest { - /** ListTransitionRouteGroupsResponse transitionRouteGroups */ - transitionRouteGroups?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup[]|null); + /** CreateExperimentRequest parent */ + parent?: (string|null); - /** ListTransitionRouteGroupsResponse nextPageToken */ - nextPageToken?: (string|null); + /** CreateExperimentRequest experiment */ + experiment?: (google.cloud.dialogflow.cx.v3beta1.IExperiment|null); } - /** Represents a ListTransitionRouteGroupsResponse. */ - class ListTransitionRouteGroupsResponse implements IListTransitionRouteGroupsResponse { + /** Represents a CreateExperimentRequest. */ + class CreateExperimentRequest implements ICreateExperimentRequest { /** - * Constructs a new ListTransitionRouteGroupsResponse. + * Constructs a new CreateExperimentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest); - /** ListTransitionRouteGroupsResponse transitionRouteGroups. */ - public transitionRouteGroups: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup[]; + /** CreateExperimentRequest parent. */ + public parent: string; - /** ListTransitionRouteGroupsResponse nextPageToken. */ - public nextPageToken: string; + /** CreateExperimentRequest experiment. */ + public experiment?: (google.cloud.dialogflow.cx.v3beta1.IExperiment|null); /** - * Creates a new ListTransitionRouteGroupsResponse instance using the specified properties. + * Creates a new CreateExperimentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListTransitionRouteGroupsResponse instance + * @returns CreateExperimentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest): google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest; /** - * Encodes the specified ListTransitionRouteGroupsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse.verify|verify} messages. - * @param message ListTransitionRouteGroupsResponse message or plain object to encode + * Encodes the specified CreateExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest.verify|verify} messages. + * @param message CreateExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTransitionRouteGroupsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse.verify|verify} messages. - * @param message ListTransitionRouteGroupsResponse message or plain object to encode + * Encodes the specified CreateExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest.verify|verify} messages. + * @param message CreateExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTransitionRouteGroupsResponse message from the specified reader or buffer. + * Decodes a CreateExperimentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTransitionRouteGroupsResponse + * @returns CreateExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest; /** - * Decodes a ListTransitionRouteGroupsResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateExperimentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTransitionRouteGroupsResponse + * @returns CreateExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest; /** - * Verifies a ListTransitionRouteGroupsResponse message. + * Verifies a CreateExperimentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListTransitionRouteGroupsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateExperimentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTransitionRouteGroupsResponse + * @returns CreateExperimentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest; /** - * Creates a plain object from a ListTransitionRouteGroupsResponse message. Also converts values to other types if specified. - * @param message ListTransitionRouteGroupsResponse + * Creates a plain object from a CreateExperimentRequest message. Also converts values to other types if specified. + * @param message CreateExperimentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTransitionRouteGroupsResponse to JSON. + * Converts this CreateExperimentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetTransitionRouteGroupRequest. */ - interface IGetTransitionRouteGroupRequest { + /** Properties of an UpdateExperimentRequest. */ + interface IUpdateExperimentRequest { - /** GetTransitionRouteGroupRequest name */ - name?: (string|null); + /** UpdateExperimentRequest experiment */ + experiment?: (google.cloud.dialogflow.cx.v3beta1.IExperiment|null); - /** GetTransitionRouteGroupRequest languageCode */ - languageCode?: (string|null); + /** UpdateExperimentRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a GetTransitionRouteGroupRequest. */ - class GetTransitionRouteGroupRequest implements IGetTransitionRouteGroupRequest { + /** Represents an UpdateExperimentRequest. */ + class UpdateExperimentRequest implements IUpdateExperimentRequest { /** - * Constructs a new GetTransitionRouteGroupRequest. + * Constructs a new UpdateExperimentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest); - /** GetTransitionRouteGroupRequest name. */ - public name: string; + /** UpdateExperimentRequest experiment. */ + public experiment?: (google.cloud.dialogflow.cx.v3beta1.IExperiment|null); - /** GetTransitionRouteGroupRequest languageCode. */ - public languageCode: string; + /** UpdateExperimentRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new GetTransitionRouteGroupRequest instance using the specified properties. + * Creates a new UpdateExperimentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetTransitionRouteGroupRequest instance + * @returns UpdateExperimentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest): google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest; /** - * Encodes the specified GetTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest.verify|verify} messages. - * @param message GetTransitionRouteGroupRequest message or plain object to encode + * Encodes the specified UpdateExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest.verify|verify} messages. + * @param message UpdateExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest.verify|verify} messages. - * @param message GetTransitionRouteGroupRequest message or plain object to encode + * Encodes the specified UpdateExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest.verify|verify} messages. + * @param message UpdateExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer. + * Decodes an UpdateExperimentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetTransitionRouteGroupRequest + * @returns UpdateExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest; /** - * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateExperimentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTransitionRouteGroupRequest + * @returns UpdateExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest; /** - * Verifies a GetTransitionRouteGroupRequest message. + * Verifies an UpdateExperimentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateExperimentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTransitionRouteGroupRequest + * @returns UpdateExperimentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest; /** - * Creates a plain object from a GetTransitionRouteGroupRequest message. Also converts values to other types if specified. - * @param message GetTransitionRouteGroupRequest + * Creates a plain object from an UpdateExperimentRequest message. Also converts values to other types if specified. + * @param message UpdateExperimentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTransitionRouteGroupRequest to JSON. + * Converts this UpdateExperimentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateTransitionRouteGroupRequest. */ - interface ICreateTransitionRouteGroupRequest { - - /** CreateTransitionRouteGroupRequest parent */ - parent?: (string|null); - - /** CreateTransitionRouteGroupRequest transitionRouteGroup */ - transitionRouteGroup?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null); + /** Properties of a DeleteExperimentRequest. */ + interface IDeleteExperimentRequest { - /** CreateTransitionRouteGroupRequest languageCode */ - languageCode?: (string|null); + /** DeleteExperimentRequest name */ + name?: (string|null); } - /** Represents a CreateTransitionRouteGroupRequest. */ - class CreateTransitionRouteGroupRequest implements ICreateTransitionRouteGroupRequest { + /** Represents a DeleteExperimentRequest. */ + class DeleteExperimentRequest implements IDeleteExperimentRequest { /** - * Constructs a new CreateTransitionRouteGroupRequest. + * Constructs a new DeleteExperimentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest); - - /** CreateTransitionRouteGroupRequest parent. */ - public parent: string; - - /** CreateTransitionRouteGroupRequest transitionRouteGroup. */ - public transitionRouteGroup?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest); - /** CreateTransitionRouteGroupRequest languageCode. */ - public languageCode: string; + /** DeleteExperimentRequest name. */ + public name: string; /** - * Creates a new CreateTransitionRouteGroupRequest instance using the specified properties. + * Creates a new DeleteExperimentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateTransitionRouteGroupRequest instance + * @returns DeleteExperimentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest): google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest; /** - * Encodes the specified CreateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest.verify|verify} messages. - * @param message CreateTransitionRouteGroupRequest message or plain object to encode + * Encodes the specified DeleteExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest.verify|verify} messages. + * @param message DeleteExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest.verify|verify} messages. - * @param message CreateTransitionRouteGroupRequest message or plain object to encode + * Encodes the specified DeleteExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest.verify|verify} messages. + * @param message DeleteExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer. + * Decodes a DeleteExperimentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateTransitionRouteGroupRequest + * @returns DeleteExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest; /** - * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteExperimentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateTransitionRouteGroupRequest + * @returns DeleteExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest; /** - * Verifies a CreateTransitionRouteGroupRequest message. + * Verifies a DeleteExperimentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteExperimentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateTransitionRouteGroupRequest + * @returns DeleteExperimentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest; /** - * Creates a plain object from a CreateTransitionRouteGroupRequest message. Also converts values to other types if specified. - * @param message CreateTransitionRouteGroupRequest + * Creates a plain object from a DeleteExperimentRequest message. Also converts values to other types if specified. + * @param message DeleteExperimentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateTransitionRouteGroupRequest to JSON. + * Converts this DeleteExperimentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateTransitionRouteGroupRequest. */ - interface IUpdateTransitionRouteGroupRequest { - - /** UpdateTransitionRouteGroupRequest transitionRouteGroup */ - transitionRouteGroup?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null); - - /** UpdateTransitionRouteGroupRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** Properties of a StartExperimentRequest. */ + interface IStartExperimentRequest { - /** UpdateTransitionRouteGroupRequest languageCode */ - languageCode?: (string|null); + /** StartExperimentRequest name */ + name?: (string|null); } - /** Represents an UpdateTransitionRouteGroupRequest. */ - class UpdateTransitionRouteGroupRequest implements IUpdateTransitionRouteGroupRequest { + /** Represents a StartExperimentRequest. */ + class StartExperimentRequest implements IStartExperimentRequest { /** - * Constructs a new UpdateTransitionRouteGroupRequest. + * Constructs a new StartExperimentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest); - - /** UpdateTransitionRouteGroupRequest transitionRouteGroup. */ - public transitionRouteGroup?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null); - - /** UpdateTransitionRouteGroupRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest); - /** UpdateTransitionRouteGroupRequest languageCode. */ - public languageCode: string; + /** StartExperimentRequest name. */ + public name: string; /** - * Creates a new UpdateTransitionRouteGroupRequest instance using the specified properties. + * Creates a new StartExperimentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateTransitionRouteGroupRequest instance + * @returns StartExperimentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest): google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest; /** - * Encodes the specified UpdateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest.verify|verify} messages. - * @param message UpdateTransitionRouteGroupRequest message or plain object to encode + * Encodes the specified StartExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest.verify|verify} messages. + * @param message StartExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest.verify|verify} messages. - * @param message UpdateTransitionRouteGroupRequest message or plain object to encode + * Encodes the specified StartExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest.verify|verify} messages. + * @param message StartExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateTransitionRouteGroupRequest message from the specified reader or buffer. + * Decodes a StartExperimentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateTransitionRouteGroupRequest + * @returns StartExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest; /** - * Decodes an UpdateTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. + * Decodes a StartExperimentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateTransitionRouteGroupRequest + * @returns StartExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest; /** - * Verifies an UpdateTransitionRouteGroupRequest message. + * Verifies a StartExperimentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StartExperimentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateTransitionRouteGroupRequest + * @returns StartExperimentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest; /** - * Creates a plain object from an UpdateTransitionRouteGroupRequest message. Also converts values to other types if specified. - * @param message UpdateTransitionRouteGroupRequest + * Creates a plain object from a StartExperimentRequest message. Also converts values to other types if specified. + * @param message StartExperimentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateTransitionRouteGroupRequest to JSON. + * Converts this StartExperimentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteTransitionRouteGroupRequest. */ - interface IDeleteTransitionRouteGroupRequest { + /** Properties of a StopExperimentRequest. */ + interface IStopExperimentRequest { - /** DeleteTransitionRouteGroupRequest name */ + /** StopExperimentRequest name */ name?: (string|null); - - /** DeleteTransitionRouteGroupRequest force */ - force?: (boolean|null); } - /** Represents a DeleteTransitionRouteGroupRequest. */ - class DeleteTransitionRouteGroupRequest implements IDeleteTransitionRouteGroupRequest { + /** Represents a StopExperimentRequest. */ + class StopExperimentRequest implements IStopExperimentRequest { /** - * Constructs a new DeleteTransitionRouteGroupRequest. + * Constructs a new StopExperimentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest); - /** DeleteTransitionRouteGroupRequest name. */ + /** StopExperimentRequest name. */ public name: string; - /** DeleteTransitionRouteGroupRequest force. */ - public force: boolean; - /** - * Creates a new DeleteTransitionRouteGroupRequest instance using the specified properties. + * Creates a new StopExperimentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteTransitionRouteGroupRequest instance + * @returns StopExperimentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest): google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest; /** - * Encodes the specified DeleteTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest.verify|verify} messages. - * @param message DeleteTransitionRouteGroupRequest message or plain object to encode + * Encodes the specified StopExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest.verify|verify} messages. + * @param message StopExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest.verify|verify} messages. - * @param message DeleteTransitionRouteGroupRequest message or plain object to encode + * Encodes the specified StopExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest.verify|verify} messages. + * @param message StopExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer. + * Decodes a StopExperimentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteTransitionRouteGroupRequest + * @returns StopExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest; /** - * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. + * Decodes a StopExperimentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteTransitionRouteGroupRequest + * @returns StopExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest; /** - * Verifies a DeleteTransitionRouteGroupRequest message. + * Verifies a StopExperimentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StopExperimentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteTransitionRouteGroupRequest + * @returns StopExperimentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest; /** - * Creates a plain object from a DeleteTransitionRouteGroupRequest message. Also converts values to other types if specified. - * @param message DeleteTransitionRouteGroupRequest + * Creates a plain object from a StopExperimentRequest message. Also converts values to other types if specified. + * @param message StopExperimentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteTransitionRouteGroupRequest to JSON. + * Converts this StopExperimentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; diff --git a/packages/google-cloud-dialogflow-cx/protos/protos.js b/packages/google-cloud-dialogflow-cx/protos/protos.js index 7258d8ea983..57db663c08a 100644 --- a/packages/google-cloud-dialogflow-cx/protos/protos.js +++ b/packages/google-cloud-dialogflow-cx/protos/protos.js @@ -2734,6 +2734,7 @@ * @property {string|null} [name] RestoreAgentRequest name * @property {string|null} [agentUri] RestoreAgentRequest agentUri * @property {Uint8Array|null} [agentContent] RestoreAgentRequest agentContent + * @property {google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption|null} [restoreOption] RestoreAgentRequest restoreOption */ /** @@ -2775,6 +2776,14 @@ */ RestoreAgentRequest.prototype.agentContent = $util.newBuffer([]); + /** + * RestoreAgentRequest restoreOption. + * @member {google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption} restoreOption + * @memberof google.cloud.dialogflow.cx.v3.RestoreAgentRequest + * @instance + */ + RestoreAgentRequest.prototype.restoreOption = 0; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -2819,6 +2828,8 @@ writer.uint32(/* id 2, wireType 2 =*/18).string(message.agentUri); if (message.agentContent != null && Object.hasOwnProperty.call(message, "agentContent")) writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.agentContent); + if (message.restoreOption != null && Object.hasOwnProperty.call(message, "restoreOption")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.restoreOption); return writer; }; @@ -2862,6 +2873,9 @@ case 3: message.agentContent = reader.bytes(); break; + case 5: + message.restoreOption = reader.int32(); + break; default: reader.skipType(tag & 7); break; @@ -2913,6 +2927,15 @@ if (!(message.agentContent && typeof message.agentContent.length === "number" || $util.isString(message.agentContent))) return "agentContent: buffer expected"; } + if (message.restoreOption != null && message.hasOwnProperty("restoreOption")) + switch (message.restoreOption) { + default: + return "restoreOption: enum value expected"; + case 0: + case 1: + case 2: + break; + } return null; }; @@ -2937,6 +2960,20 @@ $util.base64.decode(object.agentContent, message.agentContent = $util.newBuffer($util.base64.length(object.agentContent)), 0); else if (object.agentContent.length) message.agentContent = object.agentContent; + switch (object.restoreOption) { + case "RESTORE_OPTION_UNSPECIFIED": + case 0: + message.restoreOption = 0; + break; + case "KEEP": + case 1: + message.restoreOption = 1; + break; + case "FALLBACK": + case 2: + message.restoreOption = 2; + break; + } return message; }; @@ -2953,8 +2990,10 @@ if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.name = ""; + object.restoreOption = options.enums === String ? "RESTORE_OPTION_UNSPECIFIED" : 0; + } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; if (message.agentUri != null && message.hasOwnProperty("agentUri")) { @@ -2967,6 +3006,8 @@ if (options.oneofs) object.agent = "agentContent"; } + if (message.restoreOption != null && message.hasOwnProperty("restoreOption")) + object.restoreOption = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption[message.restoreOption] : message.restoreOption; return object; }; @@ -2981,6 +3022,22 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * RestoreOption enum. + * @name google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption + * @enum {number} + * @property {number} RESTORE_OPTION_UNSPECIFIED=0 RESTORE_OPTION_UNSPECIFIED value + * @property {number} KEEP=1 KEEP value + * @property {number} FALLBACK=2 FALLBACK value + */ + RestoreAgentRequest.RestoreOption = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RESTORE_OPTION_UNSPECIFIED"] = 0; + values[valuesById[1] = "KEEP"] = 1; + values[valuesById[2] = "FALLBACK"] = 2; + return values; + })(); + return RestoreAgentRequest; })(); @@ -20743,484 +20800,574 @@ return LookupEnvironmentHistoryResponse; })(); - v3.Experiments = (function() { + v3.TestCases = (function() { /** - * Constructs a new Experiments service. + * Constructs a new TestCases service. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an Experiments + * @classdesc Represents a TestCases * @extends $protobuf.rpc.Service * @constructor * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - function Experiments(rpcImpl, requestDelimited, responseDelimited) { + function TestCases(rpcImpl, requestDelimited, responseDelimited) { $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - (Experiments.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Experiments; + (TestCases.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = TestCases; /** - * Creates new Experiments service using the specified rpc implementation. + * Creates new TestCases service using the specified rpc implementation. * @function create - * @memberof google.cloud.dialogflow.cx.v3.Experiments + * @memberof google.cloud.dialogflow.cx.v3.TestCases * @static * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {Experiments} RPC service. Useful where requests and/or responses are streamed. + * @returns {TestCases} RPC service. Useful where requests and/or responses are streamed. */ - Experiments.create = function create(rpcImpl, requestDelimited, responseDelimited) { + TestCases.create = function create(rpcImpl, requestDelimited, responseDelimited) { return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#listExperiments}. - * @memberof google.cloud.dialogflow.cx.v3.Experiments - * @typedef ListExperimentsCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#listTestCases}. + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @typedef ListTestCasesCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.ListExperimentsResponse} [response] ListExperimentsResponse + * @param {google.cloud.dialogflow.cx.v3.ListTestCasesResponse} [response] ListTestCasesResponse */ /** - * Calls ListExperiments. - * @function listExperiments - * @memberof google.cloud.dialogflow.cx.v3.Experiments + * Calls ListTestCases. + * @function listTestCases + * @memberof google.cloud.dialogflow.cx.v3.TestCases * @instance - * @param {google.cloud.dialogflow.cx.v3.IListExperimentsRequest} request ListExperimentsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Experiments.ListExperimentsCallback} callback Node-style callback called with the error, if any, and ListExperimentsResponse + * @param {google.cloud.dialogflow.cx.v3.IListTestCasesRequest} request ListTestCasesRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TestCases.ListTestCasesCallback} callback Node-style callback called with the error, if any, and ListTestCasesResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(Experiments.prototype.listExperiments = function listExperiments(request, callback) { - return this.rpcCall(listExperiments, $root.google.cloud.dialogflow.cx.v3.ListExperimentsRequest, $root.google.cloud.dialogflow.cx.v3.ListExperimentsResponse, request, callback); - }, "name", { value: "ListExperiments" }); + Object.defineProperty(TestCases.prototype.listTestCases = function listTestCases(request, callback) { + return this.rpcCall(listTestCases, $root.google.cloud.dialogflow.cx.v3.ListTestCasesRequest, $root.google.cloud.dialogflow.cx.v3.ListTestCasesResponse, request, callback); + }, "name", { value: "ListTestCases" }); /** - * Calls ListExperiments. - * @function listExperiments - * @memberof google.cloud.dialogflow.cx.v3.Experiments + * Calls ListTestCases. + * @function listTestCases + * @memberof google.cloud.dialogflow.cx.v3.TestCases * @instance - * @param {google.cloud.dialogflow.cx.v3.IListExperimentsRequest} request ListExperimentsRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IListTestCasesRequest} request ListTestCasesRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#getExperiment}. - * @memberof google.cloud.dialogflow.cx.v3.Experiments - * @typedef GetExperimentCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#batchDeleteTestCases}. + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @typedef BatchDeleteTestCasesCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.Experiment} [response] Experiment + * @param {google.protobuf.Empty} [response] Empty */ /** - * Calls GetExperiment. - * @function getExperiment - * @memberof google.cloud.dialogflow.cx.v3.Experiments + * Calls BatchDeleteTestCases. + * @function batchDeleteTestCases + * @memberof google.cloud.dialogflow.cx.v3.TestCases * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetExperimentRequest} request GetExperimentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Experiments.GetExperimentCallback} callback Node-style callback called with the error, if any, and Experiment + * @param {google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest} request BatchDeleteTestCasesRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TestCases.BatchDeleteTestCasesCallback} callback Node-style callback called with the error, if any, and Empty * @returns {undefined} * @variation 1 */ - Object.defineProperty(Experiments.prototype.getExperiment = function getExperiment(request, callback) { - return this.rpcCall(getExperiment, $root.google.cloud.dialogflow.cx.v3.GetExperimentRequest, $root.google.cloud.dialogflow.cx.v3.Experiment, request, callback); - }, "name", { value: "GetExperiment" }); + Object.defineProperty(TestCases.prototype.batchDeleteTestCases = function batchDeleteTestCases(request, callback) { + return this.rpcCall(batchDeleteTestCases, $root.google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "BatchDeleteTestCases" }); /** - * Calls GetExperiment. - * @function getExperiment - * @memberof google.cloud.dialogflow.cx.v3.Experiments + * Calls BatchDeleteTestCases. + * @function batchDeleteTestCases + * @memberof google.cloud.dialogflow.cx.v3.TestCases * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetExperimentRequest} request GetExperimentRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest} request BatchDeleteTestCasesRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#createExperiment}. - * @memberof google.cloud.dialogflow.cx.v3.Experiments - * @typedef CreateExperimentCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#getTestCase}. + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @typedef GetTestCaseCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.Experiment} [response] Experiment + * @param {google.cloud.dialogflow.cx.v3.TestCase} [response] TestCase */ /** - * Calls CreateExperiment. - * @function createExperiment - * @memberof google.cloud.dialogflow.cx.v3.Experiments + * Calls GetTestCase. + * @function getTestCase + * @memberof google.cloud.dialogflow.cx.v3.TestCases * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateExperimentRequest} request CreateExperimentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Experiments.CreateExperimentCallback} callback Node-style callback called with the error, if any, and Experiment + * @param {google.cloud.dialogflow.cx.v3.IGetTestCaseRequest} request GetTestCaseRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TestCases.GetTestCaseCallback} callback Node-style callback called with the error, if any, and TestCase * @returns {undefined} * @variation 1 */ - Object.defineProperty(Experiments.prototype.createExperiment = function createExperiment(request, callback) { - return this.rpcCall(createExperiment, $root.google.cloud.dialogflow.cx.v3.CreateExperimentRequest, $root.google.cloud.dialogflow.cx.v3.Experiment, request, callback); - }, "name", { value: "CreateExperiment" }); + Object.defineProperty(TestCases.prototype.getTestCase = function getTestCase(request, callback) { + return this.rpcCall(getTestCase, $root.google.cloud.dialogflow.cx.v3.GetTestCaseRequest, $root.google.cloud.dialogflow.cx.v3.TestCase, request, callback); + }, "name", { value: "GetTestCase" }); /** - * Calls CreateExperiment. - * @function createExperiment - * @memberof google.cloud.dialogflow.cx.v3.Experiments + * Calls GetTestCase. + * @function getTestCase + * @memberof google.cloud.dialogflow.cx.v3.TestCases * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateExperimentRequest} request CreateExperimentRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IGetTestCaseRequest} request GetTestCaseRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#updateExperiment}. - * @memberof google.cloud.dialogflow.cx.v3.Experiments - * @typedef UpdateExperimentCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#createTestCase}. + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @typedef CreateTestCaseCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.Experiment} [response] Experiment + * @param {google.cloud.dialogflow.cx.v3.TestCase} [response] TestCase */ /** - * Calls UpdateExperiment. - * @function updateExperiment - * @memberof google.cloud.dialogflow.cx.v3.Experiments + * Calls CreateTestCase. + * @function createTestCase + * @memberof google.cloud.dialogflow.cx.v3.TestCases * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest} request UpdateExperimentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Experiments.UpdateExperimentCallback} callback Node-style callback called with the error, if any, and Experiment + * @param {google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest} request CreateTestCaseRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TestCases.CreateTestCaseCallback} callback Node-style callback called with the error, if any, and TestCase * @returns {undefined} * @variation 1 */ - Object.defineProperty(Experiments.prototype.updateExperiment = function updateExperiment(request, callback) { - return this.rpcCall(updateExperiment, $root.google.cloud.dialogflow.cx.v3.UpdateExperimentRequest, $root.google.cloud.dialogflow.cx.v3.Experiment, request, callback); - }, "name", { value: "UpdateExperiment" }); + Object.defineProperty(TestCases.prototype.createTestCase = function createTestCase(request, callback) { + return this.rpcCall(createTestCase, $root.google.cloud.dialogflow.cx.v3.CreateTestCaseRequest, $root.google.cloud.dialogflow.cx.v3.TestCase, request, callback); + }, "name", { value: "CreateTestCase" }); /** - * Calls UpdateExperiment. - * @function updateExperiment - * @memberof google.cloud.dialogflow.cx.v3.Experiments + * Calls CreateTestCase. + * @function createTestCase + * @memberof google.cloud.dialogflow.cx.v3.TestCases * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest} request UpdateExperimentRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest} request CreateTestCaseRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#deleteExperiment}. - * @memberof google.cloud.dialogflow.cx.v3.Experiments - * @typedef DeleteExperimentCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#updateTestCase}. + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @typedef UpdateTestCaseCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * @param {google.cloud.dialogflow.cx.v3.TestCase} [response] TestCase */ /** - * Calls DeleteExperiment. - * @function deleteExperiment - * @memberof google.cloud.dialogflow.cx.v3.Experiments + * Calls UpdateTestCase. + * @function updateTestCase + * @memberof google.cloud.dialogflow.cx.v3.TestCases * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest} request DeleteExperimentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Experiments.DeleteExperimentCallback} callback Node-style callback called with the error, if any, and Empty + * @param {google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest} request UpdateTestCaseRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TestCases.UpdateTestCaseCallback} callback Node-style callback called with the error, if any, and TestCase * @returns {undefined} * @variation 1 */ - Object.defineProperty(Experiments.prototype.deleteExperiment = function deleteExperiment(request, callback) { - return this.rpcCall(deleteExperiment, $root.google.cloud.dialogflow.cx.v3.DeleteExperimentRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteExperiment" }); + Object.defineProperty(TestCases.prototype.updateTestCase = function updateTestCase(request, callback) { + return this.rpcCall(updateTestCase, $root.google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest, $root.google.cloud.dialogflow.cx.v3.TestCase, request, callback); + }, "name", { value: "UpdateTestCase" }); /** - * Calls DeleteExperiment. - * @function deleteExperiment - * @memberof google.cloud.dialogflow.cx.v3.Experiments + * Calls UpdateTestCase. + * @function updateTestCase + * @memberof google.cloud.dialogflow.cx.v3.TestCases * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest} request DeleteExperimentRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest} request UpdateTestCaseRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#startExperiment}. - * @memberof google.cloud.dialogflow.cx.v3.Experiments - * @typedef StartExperimentCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#runTestCase}. + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @typedef RunTestCaseCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.Experiment} [response] Experiment + * @param {google.longrunning.Operation} [response] Operation */ /** - * Calls StartExperiment. - * @function startExperiment - * @memberof google.cloud.dialogflow.cx.v3.Experiments + * Calls RunTestCase. + * @function runTestCase + * @memberof google.cloud.dialogflow.cx.v3.TestCases * @instance - * @param {google.cloud.dialogflow.cx.v3.IStartExperimentRequest} request StartExperimentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Experiments.StartExperimentCallback} callback Node-style callback called with the error, if any, and Experiment + * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseRequest} request RunTestCaseRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TestCases.RunTestCaseCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ - Object.defineProperty(Experiments.prototype.startExperiment = function startExperiment(request, callback) { - return this.rpcCall(startExperiment, $root.google.cloud.dialogflow.cx.v3.StartExperimentRequest, $root.google.cloud.dialogflow.cx.v3.Experiment, request, callback); - }, "name", { value: "StartExperiment" }); + Object.defineProperty(TestCases.prototype.runTestCase = function runTestCase(request, callback) { + return this.rpcCall(runTestCase, $root.google.cloud.dialogflow.cx.v3.RunTestCaseRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "RunTestCase" }); /** - * Calls StartExperiment. - * @function startExperiment - * @memberof google.cloud.dialogflow.cx.v3.Experiments + * Calls RunTestCase. + * @function runTestCase + * @memberof google.cloud.dialogflow.cx.v3.TestCases * @instance - * @param {google.cloud.dialogflow.cx.v3.IStartExperimentRequest} request StartExperimentRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseRequest} request RunTestCaseRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#stopExperiment}. - * @memberof google.cloud.dialogflow.cx.v3.Experiments - * @typedef StopExperimentCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#batchRunTestCases}. + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @typedef BatchRunTestCasesCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.Experiment} [response] Experiment + * @param {google.longrunning.Operation} [response] Operation */ /** - * Calls StopExperiment. - * @function stopExperiment - * @memberof google.cloud.dialogflow.cx.v3.Experiments + * Calls BatchRunTestCases. + * @function batchRunTestCases + * @memberof google.cloud.dialogflow.cx.v3.TestCases * @instance - * @param {google.cloud.dialogflow.cx.v3.IStopExperimentRequest} request StopExperimentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Experiments.StopExperimentCallback} callback Node-style callback called with the error, if any, and Experiment + * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest} request BatchRunTestCasesRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TestCases.BatchRunTestCasesCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ - Object.defineProperty(Experiments.prototype.stopExperiment = function stopExperiment(request, callback) { - return this.rpcCall(stopExperiment, $root.google.cloud.dialogflow.cx.v3.StopExperimentRequest, $root.google.cloud.dialogflow.cx.v3.Experiment, request, callback); - }, "name", { value: "StopExperiment" }); + Object.defineProperty(TestCases.prototype.batchRunTestCases = function batchRunTestCases(request, callback) { + return this.rpcCall(batchRunTestCases, $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "BatchRunTestCases" }); /** - * Calls StopExperiment. - * @function stopExperiment - * @memberof google.cloud.dialogflow.cx.v3.Experiments + * Calls BatchRunTestCases. + * @function batchRunTestCases + * @memberof google.cloud.dialogflow.cx.v3.TestCases * @instance - * @param {google.cloud.dialogflow.cx.v3.IStopExperimentRequest} request StopExperimentRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest} request BatchRunTestCasesRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ - return Experiments; - })(); - - v3.Experiment = (function() { - /** - * Properties of an Experiment. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IExperiment - * @property {string|null} [name] Experiment name - * @property {string|null} [displayName] Experiment displayName - * @property {string|null} [description] Experiment description - * @property {google.cloud.dialogflow.cx.v3.Experiment.State|null} [state] Experiment state - * @property {google.cloud.dialogflow.cx.v3.Experiment.IDefinition|null} [definition] Experiment definition - * @property {google.cloud.dialogflow.cx.v3.Experiment.IResult|null} [result] Experiment result - * @property {google.protobuf.ITimestamp|null} [createTime] Experiment createTime - * @property {google.protobuf.ITimestamp|null} [startTime] Experiment startTime - * @property {google.protobuf.ITimestamp|null} [endTime] Experiment endTime - * @property {google.protobuf.ITimestamp|null} [lastUpdateTime] Experiment lastUpdateTime - * @property {google.protobuf.IDuration|null} [experimentLength] Experiment experimentLength - * @property {Array.|null} [variantsHistory] Experiment variantsHistory + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#calculateCoverage}. + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @typedef CalculateCoverageCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.CalculateCoverageResponse} [response] CalculateCoverageResponse */ /** - * Constructs a new Experiment. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an Experiment. - * @implements IExperiment - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IExperiment=} [properties] Properties to set + * Calls CalculateCoverage. + * @function calculateCoverage + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest} request CalculateCoverageRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TestCases.CalculateCoverageCallback} callback Node-style callback called with the error, if any, and CalculateCoverageResponse + * @returns {undefined} + * @variation 1 */ - function Experiment(properties) { - this.variantsHistory = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Object.defineProperty(TestCases.prototype.calculateCoverage = function calculateCoverage(request, callback) { + return this.rpcCall(calculateCoverage, $root.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest, $root.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse, request, callback); + }, "name", { value: "CalculateCoverage" }); /** - * Experiment name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * Calls CalculateCoverage. + * @function calculateCoverage + * @memberof google.cloud.dialogflow.cx.v3.TestCases * @instance + * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest} request CalculateCoverageRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - Experiment.prototype.name = ""; /** - * Experiment displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @instance + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#importTestCases}. + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @typedef ImportTestCasesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - Experiment.prototype.displayName = ""; /** - * Experiment description. - * @member {string} description - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * Calls ImportTestCases. + * @function importTestCases + * @memberof google.cloud.dialogflow.cx.v3.TestCases * @instance + * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesRequest} request ImportTestCasesRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TestCases.ImportTestCasesCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - Experiment.prototype.description = ""; + Object.defineProperty(TestCases.prototype.importTestCases = function importTestCases(request, callback) { + return this.rpcCall(importTestCases, $root.google.cloud.dialogflow.cx.v3.ImportTestCasesRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "ImportTestCases" }); /** - * Experiment state. - * @member {google.cloud.dialogflow.cx.v3.Experiment.State} state - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * Calls ImportTestCases. + * @function importTestCases + * @memberof google.cloud.dialogflow.cx.v3.TestCases * @instance + * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesRequest} request ImportTestCasesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - Experiment.prototype.state = 0; /** - * Experiment definition. - * @member {google.cloud.dialogflow.cx.v3.Experiment.IDefinition|null|undefined} definition - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @instance + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#exportTestCases}. + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @typedef ExportTestCasesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - Experiment.prototype.definition = null; /** - * Experiment result. - * @member {google.cloud.dialogflow.cx.v3.Experiment.IResult|null|undefined} result - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * Calls ExportTestCases. + * @function exportTestCases + * @memberof google.cloud.dialogflow.cx.v3.TestCases * @instance + * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesRequest} request ExportTestCasesRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TestCases.ExportTestCasesCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - Experiment.prototype.result = null; + Object.defineProperty(TestCases.prototype.exportTestCases = function exportTestCases(request, callback) { + return this.rpcCall(exportTestCases, $root.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "ExportTestCases" }); /** - * Experiment createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * Calls ExportTestCases. + * @function exportTestCases + * @memberof google.cloud.dialogflow.cx.v3.TestCases * @instance + * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesRequest} request ExportTestCasesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - Experiment.prototype.createTime = null; /** - * Experiment startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @instance + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#listTestCaseResults}. + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @typedef ListTestCaseResultsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse} [response] ListTestCaseResultsResponse */ - Experiment.prototype.startTime = null; /** - * Experiment endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * Calls ListTestCaseResults. + * @function listTestCaseResults + * @memberof google.cloud.dialogflow.cx.v3.TestCases * @instance + * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest} request ListTestCaseResultsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TestCases.ListTestCaseResultsCallback} callback Node-style callback called with the error, if any, and ListTestCaseResultsResponse + * @returns {undefined} + * @variation 1 */ - Experiment.prototype.endTime = null; + Object.defineProperty(TestCases.prototype.listTestCaseResults = function listTestCaseResults(request, callback) { + return this.rpcCall(listTestCaseResults, $root.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest, $root.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse, request, callback); + }, "name", { value: "ListTestCaseResults" }); /** - * Experiment lastUpdateTime. - * @member {google.protobuf.ITimestamp|null|undefined} lastUpdateTime - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * Calls ListTestCaseResults. + * @function listTestCaseResults + * @memberof google.cloud.dialogflow.cx.v3.TestCases * @instance + * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest} request ListTestCaseResultsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - Experiment.prototype.lastUpdateTime = null; + + return TestCases; + })(); + + v3.TestCase = (function() { /** - * Experiment experimentLength. - * @member {google.protobuf.IDuration|null|undefined} experimentLength - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @instance + * Properties of a TestCase. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface ITestCase + * @property {string|null} [name] TestCase name + * @property {Array.|null} [tags] TestCase tags + * @property {string|null} [displayName] TestCase displayName + * @property {string|null} [notes] TestCase notes + * @property {google.cloud.dialogflow.cx.v3.ITestConfig|null} [testConfig] TestCase testConfig + * @property {Array.|null} [testCaseConversationTurns] TestCase testCaseConversationTurns + * @property {google.protobuf.ITimestamp|null} [creationTime] TestCase creationTime + * @property {google.cloud.dialogflow.cx.v3.ITestCaseResult|null} [lastTestResult] TestCase lastTestResult */ - Experiment.prototype.experimentLength = null; /** - * Experiment variantsHistory. - * @member {Array.} variantsHistory - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * Constructs a new TestCase. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a TestCase. + * @implements ITestCase + * @constructor + * @param {google.cloud.dialogflow.cx.v3.ITestCase=} [properties] Properties to set + */ + function TestCase(properties) { + this.tags = []; + this.testCaseConversationTurns = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TestCase name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.TestCase * @instance */ - Experiment.prototype.variantsHistory = $util.emptyArray; + TestCase.prototype.name = ""; /** - * Creates a new Experiment instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @static - * @param {google.cloud.dialogflow.cx.v3.IExperiment=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Experiment} Experiment instance + * TestCase tags. + * @member {Array.} tags + * @memberof google.cloud.dialogflow.cx.v3.TestCase + * @instance */ - Experiment.create = function create(properties) { - return new Experiment(properties); - }; + TestCase.prototype.tags = $util.emptyArray; /** - * Encodes the specified Experiment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.verify|verify} messages. + * TestCase displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.TestCase + * @instance + */ + TestCase.prototype.displayName = ""; + + /** + * TestCase notes. + * @member {string} notes + * @memberof google.cloud.dialogflow.cx.v3.TestCase + * @instance + */ + TestCase.prototype.notes = ""; + + /** + * TestCase testConfig. + * @member {google.cloud.dialogflow.cx.v3.ITestConfig|null|undefined} testConfig + * @memberof google.cloud.dialogflow.cx.v3.TestCase + * @instance + */ + TestCase.prototype.testConfig = null; + + /** + * TestCase testCaseConversationTurns. + * @member {Array.} testCaseConversationTurns + * @memberof google.cloud.dialogflow.cx.v3.TestCase + * @instance + */ + TestCase.prototype.testCaseConversationTurns = $util.emptyArray; + + /** + * TestCase creationTime. + * @member {google.protobuf.ITimestamp|null|undefined} creationTime + * @memberof google.cloud.dialogflow.cx.v3.TestCase + * @instance + */ + TestCase.prototype.creationTime = null; + + /** + * TestCase lastTestResult. + * @member {google.cloud.dialogflow.cx.v3.ITestCaseResult|null|undefined} lastTestResult + * @memberof google.cloud.dialogflow.cx.v3.TestCase + * @instance + */ + TestCase.prototype.lastTestResult = null; + + /** + * Creates a new TestCase instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.TestCase + * @static + * @param {google.cloud.dialogflow.cx.v3.ITestCase=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TestCase} TestCase instance + */ + TestCase.create = function create(properties) { + return new TestCase(properties); + }; + + /** + * Encodes the specified TestCase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCase.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @memberof google.cloud.dialogflow.cx.v3.TestCase * @static - * @param {google.cloud.dialogflow.cx.v3.IExperiment} message Experiment message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITestCase} message TestCase message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Experiment.encode = function encode(message, writer) { + TestCase.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.tags != null && message.tags.length) + for (var i = 0; i < message.tags.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.tags[i]); if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state); - if (message.definition != null && Object.hasOwnProperty.call(message, "definition")) - $root.google.cloud.dialogflow.cx.v3.Experiment.Definition.encode(message.definition, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.google.cloud.dialogflow.cx.v3.Experiment.Result.encode(message.result, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.lastUpdateTime != null && Object.hasOwnProperty.call(message, "lastUpdateTime")) - $root.google.protobuf.Timestamp.encode(message.lastUpdateTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.experimentLength != null && Object.hasOwnProperty.call(message, "experimentLength")) - $root.google.protobuf.Duration.encode(message.experimentLength, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.variantsHistory != null && message.variantsHistory.length) - for (var i = 0; i < message.variantsHistory.length; ++i) - $root.google.cloud.dialogflow.cx.v3.VariantsHistory.encode(message.variantsHistory[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); + if (message.notes != null && Object.hasOwnProperty.call(message, "notes")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.notes); + if (message.testCaseConversationTurns != null && message.testCaseConversationTurns.length) + for (var i = 0; i < message.testCaseConversationTurns.length; ++i) + $root.google.cloud.dialogflow.cx.v3.ConversationTurn.encode(message.testCaseConversationTurns[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.creationTime != null && Object.hasOwnProperty.call(message, "creationTime")) + $root.google.protobuf.Timestamp.encode(message.creationTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.lastTestResult != null && Object.hasOwnProperty.call(message, "lastTestResult")) + $root.google.cloud.dialogflow.cx.v3.TestCaseResult.encode(message.lastTestResult, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.testConfig != null && Object.hasOwnProperty.call(message, "testConfig")) + $root.google.cloud.dialogflow.cx.v3.TestConfig.encode(message.testConfig, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); return writer; }; /** - * Encodes the specified Experiment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.verify|verify} messages. + * Encodes the specified TestCase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCase.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @memberof google.cloud.dialogflow.cx.v3.TestCase * @static - * @param {google.cloud.dialogflow.cx.v3.IExperiment} message Experiment message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITestCase} message TestCase message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Experiment.encodeDelimited = function encodeDelimited(message, writer) { + TestCase.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Experiment message from the specified reader or buffer. + * Decodes a TestCase message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @memberof google.cloud.dialogflow.cx.v3.TestCase * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.Experiment} Experiment + * @returns {google.cloud.dialogflow.cx.v3.TestCase} TestCase * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Experiment.decode = function decode(reader, length) { + TestCase.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Experiment(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TestCase(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -21228,39 +21375,29 @@ message.name = reader.string(); break; case 2: - message.displayName = reader.string(); + if (!(message.tags && message.tags.length)) + message.tags = []; + message.tags.push(reader.string()); break; case 3: - message.description = reader.string(); + message.displayName = reader.string(); break; case 4: - message.state = reader.int32(); - break; - case 5: - message.definition = $root.google.cloud.dialogflow.cx.v3.Experiment.Definition.decode(reader, reader.uint32()); - break; - case 6: - message.result = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.decode(reader, reader.uint32()); - break; - case 7: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.notes = reader.string(); break; - case 8: - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + case 13: + message.testConfig = $root.google.cloud.dialogflow.cx.v3.TestConfig.decode(reader, reader.uint32()); break; - case 9: - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + case 5: + if (!(message.testCaseConversationTurns && message.testCaseConversationTurns.length)) + message.testCaseConversationTurns = []; + message.testCaseConversationTurns.push($root.google.cloud.dialogflow.cx.v3.ConversationTurn.decode(reader, reader.uint32())); break; case 10: - message.lastUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 11: - message.experimentLength = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + message.creationTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; case 12: - if (!(message.variantsHistory && message.variantsHistory.length)) - message.variantsHistory = []; - message.variantsHistory.push($root.google.cloud.dialogflow.cx.v3.VariantsHistory.decode(reader, reader.uint32())); + message.lastTestResult = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -21271,597 +21408,1078 @@ }; /** - * Decodes an Experiment message from the specified reader or buffer, length delimited. + * Decodes a TestCase message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @memberof google.cloud.dialogflow.cx.v3.TestCase * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Experiment} Experiment + * @returns {google.cloud.dialogflow.cx.v3.TestCase} TestCase * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Experiment.decodeDelimited = function decodeDelimited(reader) { + TestCase.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Experiment message. + * Verifies a TestCase message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @memberof google.cloud.dialogflow.cx.v3.TestCase * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Experiment.verify = function verify(message) { + TestCase.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!Array.isArray(message.tags)) + return "tags: array expected"; + for (var i = 0; i < message.tags.length; ++i) + if (!$util.isString(message.tags[i])) + return "tags: string[] expected"; + } if (message.displayName != null && message.hasOwnProperty("displayName")) if (!$util.isString(message.displayName)) return "displayName: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.definition != null && message.hasOwnProperty("definition")) { - var error = $root.google.cloud.dialogflow.cx.v3.Experiment.Definition.verify(message.definition); - if (error) - return "definition." + error; - } - if (message.result != null && message.hasOwnProperty("result")) { - var error = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.verify(message.result); - if (error) - return "result." + error; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (message.notes != null && message.hasOwnProperty("notes")) + if (!$util.isString(message.notes)) + return "notes: string expected"; + if (message.testConfig != null && message.hasOwnProperty("testConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3.TestConfig.verify(message.testConfig); if (error) - return "startTime." + error; + return "testConfig." + error; } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; + if (message.testCaseConversationTurns != null && message.hasOwnProperty("testCaseConversationTurns")) { + if (!Array.isArray(message.testCaseConversationTurns)) + return "testCaseConversationTurns: array expected"; + for (var i = 0; i < message.testCaseConversationTurns.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.verify(message.testCaseConversationTurns[i]); + if (error) + return "testCaseConversationTurns." + error; + } } - if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.lastUpdateTime); + if (message.creationTime != null && message.hasOwnProperty("creationTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.creationTime); if (error) - return "lastUpdateTime." + error; + return "creationTime." + error; } - if (message.experimentLength != null && message.hasOwnProperty("experimentLength")) { - var error = $root.google.protobuf.Duration.verify(message.experimentLength); + if (message.lastTestResult != null && message.hasOwnProperty("lastTestResult")) { + var error = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.verify(message.lastTestResult); if (error) - return "experimentLength." + error; - } - if (message.variantsHistory != null && message.hasOwnProperty("variantsHistory")) { - if (!Array.isArray(message.variantsHistory)) - return "variantsHistory: array expected"; - for (var i = 0; i < message.variantsHistory.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.VariantsHistory.verify(message.variantsHistory[i]); - if (error) - return "variantsHistory." + error; - } + return "lastTestResult." + error; } return null; }; /** - * Creates an Experiment message from a plain object. Also converts values to their respective internal types. + * Creates a TestCase message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @memberof google.cloud.dialogflow.cx.v3.TestCase * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Experiment} Experiment + * @returns {google.cloud.dialogflow.cx.v3.TestCase} TestCase */ - Experiment.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Experiment) + TestCase.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.TestCase) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Experiment(); + var message = new $root.google.cloud.dialogflow.cx.v3.TestCase(); if (object.name != null) message.name = String(object.name); + if (object.tags) { + if (!Array.isArray(object.tags)) + throw TypeError(".google.cloud.dialogflow.cx.v3.TestCase.tags: array expected"); + message.tags = []; + for (var i = 0; i < object.tags.length; ++i) + message.tags[i] = String(object.tags[i]); + } if (object.displayName != null) message.displayName = String(object.displayName); - if (object.description != null) - message.description = String(object.description); - switch (object.state) { - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "DRAFT": - case 1: - message.state = 1; - break; - case "RUNNING": - case 2: - message.state = 2; - break; - case "DONE": - case 3: - message.state = 3; - break; - } - if (object.definition != null) { - if (typeof object.definition !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.definition: object expected"); - message.definition = $root.google.cloud.dialogflow.cx.v3.Experiment.Definition.fromObject(object.definition); - } - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.result: object expected"); - message.result = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.fromObject(object.result); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + if (object.notes != null) + message.notes = String(object.notes); + if (object.testConfig != null) { + if (typeof object.testConfig !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TestCase.testConfig: object expected"); + message.testConfig = $root.google.cloud.dialogflow.cx.v3.TestConfig.fromObject(object.testConfig); } - if (object.lastUpdateTime != null) { - if (typeof object.lastUpdateTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.lastUpdateTime: object expected"); - message.lastUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.lastUpdateTime); + if (object.testCaseConversationTurns) { + if (!Array.isArray(object.testCaseConversationTurns)) + throw TypeError(".google.cloud.dialogflow.cx.v3.TestCase.testCaseConversationTurns: array expected"); + message.testCaseConversationTurns = []; + for (var i = 0; i < object.testCaseConversationTurns.length; ++i) { + if (typeof object.testCaseConversationTurns[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TestCase.testCaseConversationTurns: object expected"); + message.testCaseConversationTurns[i] = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.fromObject(object.testCaseConversationTurns[i]); + } } - if (object.experimentLength != null) { - if (typeof object.experimentLength !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.experimentLength: object expected"); - message.experimentLength = $root.google.protobuf.Duration.fromObject(object.experimentLength); + if (object.creationTime != null) { + if (typeof object.creationTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TestCase.creationTime: object expected"); + message.creationTime = $root.google.protobuf.Timestamp.fromObject(object.creationTime); } - if (object.variantsHistory) { - if (!Array.isArray(object.variantsHistory)) - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.variantsHistory: array expected"); - message.variantsHistory = []; - for (var i = 0; i < object.variantsHistory.length; ++i) { - if (typeof object.variantsHistory[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.variantsHistory: object expected"); - message.variantsHistory[i] = $root.google.cloud.dialogflow.cx.v3.VariantsHistory.fromObject(object.variantsHistory[i]); - } + if (object.lastTestResult != null) { + if (typeof object.lastTestResult !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TestCase.lastTestResult: object expected"); + message.lastTestResult = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.fromObject(object.lastTestResult); } return message; }; /** - * Creates a plain object from an Experiment message. Also converts values to other types if specified. + * Creates a plain object from a TestCase message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @memberof google.cloud.dialogflow.cx.v3.TestCase * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment} message Experiment + * @param {google.cloud.dialogflow.cx.v3.TestCase} message TestCase * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Experiment.toObject = function toObject(message, options) { + TestCase.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.variantsHistory = []; + if (options.arrays || options.defaults) { + object.tags = []; + object.testCaseConversationTurns = []; + } if (options.defaults) { object.name = ""; object.displayName = ""; - object.description = ""; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.definition = null; - object.result = null; - object.createTime = null; - object.startTime = null; - object.endTime = null; - object.lastUpdateTime = null; - object.experimentLength = null; + object.notes = ""; + object.creationTime = null; + object.lastTestResult = null; + object.testConfig = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.tags && message.tags.length) { + object.tags = []; + for (var j = 0; j < message.tags.length; ++j) + object.tags[j] = message.tags[j]; + } if (message.displayName != null && message.hasOwnProperty("displayName")) object.displayName = message.displayName; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.Experiment.State[message.state] : message.state; - if (message.definition != null && message.hasOwnProperty("definition")) - object.definition = $root.google.cloud.dialogflow.cx.v3.Experiment.Definition.toObject(message.definition, options); - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.toObject(message.result, options); - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) - object.lastUpdateTime = $root.google.protobuf.Timestamp.toObject(message.lastUpdateTime, options); - if (message.experimentLength != null && message.hasOwnProperty("experimentLength")) - object.experimentLength = $root.google.protobuf.Duration.toObject(message.experimentLength, options); - if (message.variantsHistory && message.variantsHistory.length) { - object.variantsHistory = []; - for (var j = 0; j < message.variantsHistory.length; ++j) - object.variantsHistory[j] = $root.google.cloud.dialogflow.cx.v3.VariantsHistory.toObject(message.variantsHistory[j], options); + if (message.notes != null && message.hasOwnProperty("notes")) + object.notes = message.notes; + if (message.testCaseConversationTurns && message.testCaseConversationTurns.length) { + object.testCaseConversationTurns = []; + for (var j = 0; j < message.testCaseConversationTurns.length; ++j) + object.testCaseConversationTurns[j] = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.toObject(message.testCaseConversationTurns[j], options); } + if (message.creationTime != null && message.hasOwnProperty("creationTime")) + object.creationTime = $root.google.protobuf.Timestamp.toObject(message.creationTime, options); + if (message.lastTestResult != null && message.hasOwnProperty("lastTestResult")) + object.lastTestResult = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.toObject(message.lastTestResult, options); + if (message.testConfig != null && message.hasOwnProperty("testConfig")) + object.testConfig = $root.google.cloud.dialogflow.cx.v3.TestConfig.toObject(message.testConfig, options); return object; }; /** - * Converts this Experiment to JSON. + * Converts this TestCase to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @memberof google.cloud.dialogflow.cx.v3.TestCase * @instance * @returns {Object.} JSON object */ - Experiment.prototype.toJSON = function toJSON() { + TestCase.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - Experiment.Definition = (function() { + return TestCase; + })(); - /** - * Properties of a Definition. - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @interface IDefinition - * @property {string|null} [condition] Definition condition - * @property {google.cloud.dialogflow.cx.v3.IVersionVariants|null} [versionVariants] Definition versionVariants - */ + v3.TestCaseResult = (function() { - /** - * Constructs a new Definition. - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @classdesc Represents a Definition. - * @implements IDefinition - * @constructor - * @param {google.cloud.dialogflow.cx.v3.Experiment.IDefinition=} [properties] Properties to set - */ - function Definition(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a TestCaseResult. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface ITestCaseResult + * @property {string|null} [name] TestCaseResult name + * @property {string|null} [environment] TestCaseResult environment + * @property {Array.|null} [conversationTurns] TestCaseResult conversationTurns + * @property {google.cloud.dialogflow.cx.v3.TestResult|null} [testResult] TestCaseResult testResult + * @property {google.protobuf.ITimestamp|null} [testTime] TestCaseResult testTime + */ - /** - * Definition condition. - * @member {string} condition - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition - * @instance - */ - Definition.prototype.condition = ""; + /** + * Constructs a new TestCaseResult. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a TestCaseResult. + * @implements ITestCaseResult + * @constructor + * @param {google.cloud.dialogflow.cx.v3.ITestCaseResult=} [properties] Properties to set + */ + function TestCaseResult(properties) { + this.conversationTurns = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Definition versionVariants. - * @member {google.cloud.dialogflow.cx.v3.IVersionVariants|null|undefined} versionVariants - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition - * @instance - */ - Definition.prototype.versionVariants = null; + /** + * TestCaseResult name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * @instance + */ + TestCaseResult.prototype.name = ""; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * TestCaseResult environment. + * @member {string} environment + * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * @instance + */ + TestCaseResult.prototype.environment = ""; - /** - * Definition variants. - * @member {"versionVariants"|undefined} variants - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition - * @instance - */ - Object.defineProperty(Definition.prototype, "variants", { - get: $util.oneOfGetter($oneOfFields = ["versionVariants"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * TestCaseResult conversationTurns. + * @member {Array.} conversationTurns + * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * @instance + */ + TestCaseResult.prototype.conversationTurns = $util.emptyArray; - /** - * Creates a new Definition instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.IDefinition=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Definition} Definition instance - */ - Definition.create = function create(properties) { - return new Definition(properties); - }; + /** + * TestCaseResult testResult. + * @member {google.cloud.dialogflow.cx.v3.TestResult} testResult + * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * @instance + */ + TestCaseResult.prototype.testResult = 0; - /** - * Encodes the specified Definition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Definition.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.IDefinition} message Definition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Definition.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.condition != null && Object.hasOwnProperty.call(message, "condition")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.condition); - if (message.versionVariants != null && Object.hasOwnProperty.call(message, "versionVariants")) - $root.google.cloud.dialogflow.cx.v3.VersionVariants.encode(message.versionVariants, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * TestCaseResult testTime. + * @member {google.protobuf.ITimestamp|null|undefined} testTime + * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * @instance + */ + TestCaseResult.prototype.testTime = null; - /** - * Encodes the specified Definition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Definition.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.IDefinition} message Definition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Definition.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new TestCaseResult instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * @static + * @param {google.cloud.dialogflow.cx.v3.ITestCaseResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TestCaseResult} TestCaseResult instance + */ + TestCaseResult.create = function create(properties) { + return new TestCaseResult(properties); + }; - /** - * Decodes a Definition message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Definition} Definition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Definition.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Definition(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.condition = reader.string(); - break; - case 2: - message.versionVariants = $root.google.cloud.dialogflow.cx.v3.VersionVariants.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified TestCaseResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCaseResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * @static + * @param {google.cloud.dialogflow.cx.v3.ITestCaseResult} message TestCaseResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestCaseResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.environment); + if (message.conversationTurns != null && message.conversationTurns.length) + for (var i = 0; i < message.conversationTurns.length; ++i) + $root.google.cloud.dialogflow.cx.v3.ConversationTurn.encode(message.conversationTurns[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.testResult != null && Object.hasOwnProperty.call(message, "testResult")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.testResult); + if (message.testTime != null && Object.hasOwnProperty.call(message, "testTime")) + $root.google.protobuf.Timestamp.encode(message.testTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; - /** - * Decodes a Definition message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Definition} Definition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Definition.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified TestCaseResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCaseResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * @static + * @param {google.cloud.dialogflow.cx.v3.ITestCaseResult} message TestCaseResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestCaseResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies a Definition message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Definition.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.condition != null && message.hasOwnProperty("condition")) - if (!$util.isString(message.condition)) - return "condition: string expected"; - if (message.versionVariants != null && message.hasOwnProperty("versionVariants")) { - properties.variants = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.VersionVariants.verify(message.versionVariants); - if (error) - return "versionVariants." + error; - } + /** + * Decodes a TestCaseResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.TestCaseResult} TestCaseResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestCaseResult.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TestCaseResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.environment = reader.string(); + break; + case 3: + if (!(message.conversationTurns && message.conversationTurns.length)) + message.conversationTurns = []; + message.conversationTurns.push($root.google.cloud.dialogflow.cx.v3.ConversationTurn.decode(reader, reader.uint32())); + break; + case 4: + message.testResult = reader.int32(); + break; + case 5: + message.testTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; } - return null; - }; + } + return message; + }; - /** - * Creates a Definition message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Definition} Definition - */ - Definition.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Experiment.Definition) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Definition(); - if (object.condition != null) - message.condition = String(object.condition); - if (object.versionVariants != null) { - if (typeof object.versionVariants !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.Definition.versionVariants: object expected"); - message.versionVariants = $root.google.cloud.dialogflow.cx.v3.VersionVariants.fromObject(object.versionVariants); - } - return message; - }; + /** + * Decodes a TestCaseResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.TestCaseResult} TestCaseResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestCaseResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from a Definition message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Definition} message Definition - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Definition.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.condition = ""; - if (message.condition != null && message.hasOwnProperty("condition")) - object.condition = message.condition; - if (message.versionVariants != null && message.hasOwnProperty("versionVariants")) { - object.versionVariants = $root.google.cloud.dialogflow.cx.v3.VersionVariants.toObject(message.versionVariants, options); - if (options.oneofs) - object.variants = "versionVariants"; + /** + * Verifies a TestCaseResult message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TestCaseResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.environment != null && message.hasOwnProperty("environment")) + if (!$util.isString(message.environment)) + return "environment: string expected"; + if (message.conversationTurns != null && message.hasOwnProperty("conversationTurns")) { + if (!Array.isArray(message.conversationTurns)) + return "conversationTurns: array expected"; + for (var i = 0; i < message.conversationTurns.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.verify(message.conversationTurns[i]); + if (error) + return "conversationTurns." + error; } - return object; - }; + } + if (message.testResult != null && message.hasOwnProperty("testResult")) + switch (message.testResult) { + default: + return "testResult: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.testTime != null && message.hasOwnProperty("testTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.testTime); + if (error) + return "testTime." + error; + } + return null; + }; - /** - * Converts this Definition to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition - * @instance - * @returns {Object.} JSON object - */ - Definition.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a TestCaseResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.TestCaseResult} TestCaseResult + */ + TestCaseResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.TestCaseResult) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.TestCaseResult(); + if (object.name != null) + message.name = String(object.name); + if (object.environment != null) + message.environment = String(object.environment); + if (object.conversationTurns) { + if (!Array.isArray(object.conversationTurns)) + throw TypeError(".google.cloud.dialogflow.cx.v3.TestCaseResult.conversationTurns: array expected"); + message.conversationTurns = []; + for (var i = 0; i < object.conversationTurns.length; ++i) { + if (typeof object.conversationTurns[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TestCaseResult.conversationTurns: object expected"); + message.conversationTurns[i] = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.fromObject(object.conversationTurns[i]); + } + } + switch (object.testResult) { + case "TEST_RESULT_UNSPECIFIED": + case 0: + message.testResult = 0; + break; + case "PASSED": + case 1: + message.testResult = 1; + break; + case "FAILED": + case 2: + message.testResult = 2; + break; + } + if (object.testTime != null) { + if (typeof object.testTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TestCaseResult.testTime: object expected"); + message.testTime = $root.google.protobuf.Timestamp.fromObject(object.testTime); + } + return message; + }; - return Definition; - })(); + /** + * Creates a plain object from a TestCaseResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * @static + * @param {google.cloud.dialogflow.cx.v3.TestCaseResult} message TestCaseResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TestCaseResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.conversationTurns = []; + if (options.defaults) { + object.name = ""; + object.environment = ""; + object.testResult = options.enums === String ? "TEST_RESULT_UNSPECIFIED" : 0; + object.testTime = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = message.environment; + if (message.conversationTurns && message.conversationTurns.length) { + object.conversationTurns = []; + for (var j = 0; j < message.conversationTurns.length; ++j) + object.conversationTurns[j] = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.toObject(message.conversationTurns[j], options); + } + if (message.testResult != null && message.hasOwnProperty("testResult")) + object.testResult = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.TestResult[message.testResult] : message.testResult; + if (message.testTime != null && message.hasOwnProperty("testTime")) + object.testTime = $root.google.protobuf.Timestamp.toObject(message.testTime, options); + return object; + }; - Experiment.Result = (function() { + /** + * Converts this TestCaseResult to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * @instance + * @returns {Object.} JSON object + */ + TestCaseResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Properties of a Result. - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @interface IResult - * @property {Array.|null} [versionMetrics] Result versionMetrics - * @property {google.protobuf.ITimestamp|null} [lastUpdateTime] Result lastUpdateTime - */ + return TestCaseResult; + })(); - /** - * Constructs a new Result. - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @classdesc Represents a Result. - * @implements IResult - * @constructor - * @param {google.cloud.dialogflow.cx.v3.Experiment.IResult=} [properties] Properties to set - */ - function Result(properties) { - this.versionMetrics = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v3.TestConfig = (function() { - /** - * Result versionMetrics. - * @member {Array.} versionMetrics - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result - * @instance - */ - Result.prototype.versionMetrics = $util.emptyArray; + /** + * Properties of a TestConfig. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface ITestConfig + * @property {Array.|null} [trackingParameters] TestConfig trackingParameters + * @property {string|null} [flow] TestConfig flow + */ - /** - * Result lastUpdateTime. - * @member {google.protobuf.ITimestamp|null|undefined} lastUpdateTime - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result - * @instance - */ - Result.prototype.lastUpdateTime = null; + /** + * Constructs a new TestConfig. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a TestConfig. + * @implements ITestConfig + * @constructor + * @param {google.cloud.dialogflow.cx.v3.ITestConfig=} [properties] Properties to set + */ + function TestConfig(properties) { + this.trackingParameters = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a new Result instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.IResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result} Result instance - */ - Result.create = function create(properties) { - return new Result(properties); - }; + /** + * TestConfig trackingParameters. + * @member {Array.} trackingParameters + * @memberof google.cloud.dialogflow.cx.v3.TestConfig + * @instance + */ + TestConfig.prototype.trackingParameters = $util.emptyArray; - /** - * Encodes the specified Result message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + /** + * TestConfig flow. + * @member {string} flow + * @memberof google.cloud.dialogflow.cx.v3.TestConfig + * @instance + */ + TestConfig.prototype.flow = ""; + + /** + * Creates a new TestConfig instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.TestConfig + * @static + * @param {google.cloud.dialogflow.cx.v3.ITestConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TestConfig} TestConfig instance + */ + TestConfig.create = function create(properties) { + return new TestConfig(properties); + }; + + /** + * Encodes the specified TestConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.TestConfig + * @static + * @param {google.cloud.dialogflow.cx.v3.ITestConfig} message TestConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.trackingParameters != null && message.trackingParameters.length) + for (var i = 0; i < message.trackingParameters.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.trackingParameters[i]); + if (message.flow != null && Object.hasOwnProperty.call(message, "flow")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.flow); + return writer; + }; + + /** + * Encodes the specified TestConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.TestConfig + * @static + * @param {google.cloud.dialogflow.cx.v3.ITestConfig} message TestConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TestConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.TestConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.TestConfig} TestConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TestConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.trackingParameters && message.trackingParameters.length)) + message.trackingParameters = []; + message.trackingParameters.push(reader.string()); + break; + case 2: + message.flow = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TestConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.TestConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.TestConfig} TestConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TestConfig message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.TestConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TestConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.trackingParameters != null && message.hasOwnProperty("trackingParameters")) { + if (!Array.isArray(message.trackingParameters)) + return "trackingParameters: array expected"; + for (var i = 0; i < message.trackingParameters.length; ++i) + if (!$util.isString(message.trackingParameters[i])) + return "trackingParameters: string[] expected"; + } + if (message.flow != null && message.hasOwnProperty("flow")) + if (!$util.isString(message.flow)) + return "flow: string expected"; + return null; + }; + + /** + * Creates a TestConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.TestConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.TestConfig} TestConfig + */ + TestConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.TestConfig) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.TestConfig(); + if (object.trackingParameters) { + if (!Array.isArray(object.trackingParameters)) + throw TypeError(".google.cloud.dialogflow.cx.v3.TestConfig.trackingParameters: array expected"); + message.trackingParameters = []; + for (var i = 0; i < object.trackingParameters.length; ++i) + message.trackingParameters[i] = String(object.trackingParameters[i]); + } + if (object.flow != null) + message.flow = String(object.flow); + return message; + }; + + /** + * Creates a plain object from a TestConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.TestConfig + * @static + * @param {google.cloud.dialogflow.cx.v3.TestConfig} message TestConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TestConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.trackingParameters = []; + if (options.defaults) + object.flow = ""; + if (message.trackingParameters && message.trackingParameters.length) { + object.trackingParameters = []; + for (var j = 0; j < message.trackingParameters.length; ++j) + object.trackingParameters[j] = message.trackingParameters[j]; + } + if (message.flow != null && message.hasOwnProperty("flow")) + object.flow = message.flow; + return object; + }; + + /** + * Converts this TestConfig to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.TestConfig + * @instance + * @returns {Object.} JSON object + */ + TestConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return TestConfig; + })(); + + v3.ConversationTurn = (function() { + + /** + * Properties of a ConversationTurn. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IConversationTurn + * @property {google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput|null} [userInput] ConversationTurn userInput + * @property {google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput|null} [virtualAgentOutput] ConversationTurn virtualAgentOutput + */ + + /** + * Constructs a new ConversationTurn. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a ConversationTurn. + * @implements IConversationTurn + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IConversationTurn=} [properties] Properties to set + */ + function ConversationTurn(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ConversationTurn userInput. + * @member {google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput|null|undefined} userInput + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * @instance + */ + ConversationTurn.prototype.userInput = null; + + /** + * ConversationTurn virtualAgentOutput. + * @member {google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput|null|undefined} virtualAgentOutput + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * @instance + */ + ConversationTurn.prototype.virtualAgentOutput = null; + + /** + * Creates a new ConversationTurn instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * @static + * @param {google.cloud.dialogflow.cx.v3.IConversationTurn=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn} ConversationTurn instance + */ + ConversationTurn.create = function create(properties) { + return new ConversationTurn(properties); + }; + + /** + * Encodes the specified ConversationTurn message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * @static + * @param {google.cloud.dialogflow.cx.v3.IConversationTurn} message ConversationTurn message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConversationTurn.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.userInput != null && Object.hasOwnProperty.call(message, "userInput")) + $root.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.encode(message.userInput, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.virtualAgentOutput != null && Object.hasOwnProperty.call(message, "virtualAgentOutput")) + $root.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.encode(message.virtualAgentOutput, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ConversationTurn message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * @static + * @param {google.cloud.dialogflow.cx.v3.IConversationTurn} message ConversationTurn message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConversationTurn.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ConversationTurn message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn} ConversationTurn + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConversationTurn.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ConversationTurn(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.userInput = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.decode(reader, reader.uint32()); + break; + case 2: + message.virtualAgentOutput = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ConversationTurn message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn} ConversationTurn + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConversationTurn.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ConversationTurn message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConversationTurn.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.userInput != null && message.hasOwnProperty("userInput")) { + var error = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.verify(message.userInput); + if (error) + return "userInput." + error; + } + if (message.virtualAgentOutput != null && message.hasOwnProperty("virtualAgentOutput")) { + var error = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.verify(message.virtualAgentOutput); + if (error) + return "virtualAgentOutput." + error; + } + return null; + }; + + /** + * Creates a ConversationTurn message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn} ConversationTurn + */ + ConversationTurn.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ConversationTurn) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.ConversationTurn(); + if (object.userInput != null) { + if (typeof object.userInput !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.userInput: object expected"); + message.userInput = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.fromObject(object.userInput); + } + if (object.virtualAgentOutput != null) { + if (typeof object.virtualAgentOutput !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.virtualAgentOutput: object expected"); + message.virtualAgentOutput = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.fromObject(object.virtualAgentOutput); + } + return message; + }; + + /** + * Creates a plain object from a ConversationTurn message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * @static + * @param {google.cloud.dialogflow.cx.v3.ConversationTurn} message ConversationTurn + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ConversationTurn.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.userInput = null; + object.virtualAgentOutput = null; + } + if (message.userInput != null && message.hasOwnProperty("userInput")) + object.userInput = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.toObject(message.userInput, options); + if (message.virtualAgentOutput != null && message.hasOwnProperty("virtualAgentOutput")) + object.virtualAgentOutput = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.toObject(message.virtualAgentOutput, options); + return object; + }; + + /** + * Converts this ConversationTurn to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * @instance + * @returns {Object.} JSON object + */ + ConversationTurn.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + ConversationTurn.UserInput = (function() { + + /** + * Properties of a UserInput. + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * @interface IUserInput + * @property {google.cloud.dialogflow.cx.v3.IQueryInput|null} [input] UserInput input + * @property {google.protobuf.IStruct|null} [injectedParameters] UserInput injectedParameters + * @property {boolean|null} [isWebhookEnabled] UserInput isWebhookEnabled + */ + + /** + * Constructs a new UserInput. + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * @classdesc Represents a UserInput. + * @implements IUserInput + * @constructor + * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput=} [properties] Properties to set + */ + function UserInput(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UserInput input. + * @member {google.cloud.dialogflow.cx.v3.IQueryInput|null|undefined} input + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput + * @instance + */ + UserInput.prototype.input = null; + + /** + * UserInput injectedParameters. + * @member {google.protobuf.IStruct|null|undefined} injectedParameters + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput + * @instance + */ + UserInput.prototype.injectedParameters = null; + + /** + * UserInput isWebhookEnabled. + * @member {boolean} isWebhookEnabled + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput + * @instance + */ + UserInput.prototype.isWebhookEnabled = false; + + /** + * Creates a new UserInput instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.IResult} message Result message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput} UserInput instance + */ + UserInput.create = function create(properties) { + return new UserInput(properties); + }; + + /** + * Encodes the specified UserInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput + * @static + * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput} message UserInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Result.encode = function encode(message, writer) { + UserInput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.versionMetrics != null && message.versionMetrics.length) - for (var i = 0; i < message.versionMetrics.length; ++i) - $root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.encode(message.versionMetrics[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.lastUpdateTime != null && Object.hasOwnProperty.call(message, "lastUpdateTime")) - $root.google.protobuf.Timestamp.encode(message.lastUpdateTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.injectedParameters != null && Object.hasOwnProperty.call(message, "injectedParameters")) + $root.google.protobuf.Struct.encode(message.injectedParameters, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.isWebhookEnabled != null && Object.hasOwnProperty.call(message, "isWebhookEnabled")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isWebhookEnabled); + if (message.input != null && Object.hasOwnProperty.call(message, "input")) + $root.google.cloud.dialogflow.cx.v3.QueryInput.encode(message.input, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified Result message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.verify|verify} messages. + * Encodes the specified UserInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.IResult} message Result message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput} message UserInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Result.encodeDelimited = function encodeDelimited(message, writer) { + UserInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Result message from the specified reader or buffer. + * Decodes a UserInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result} Result + * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput} UserInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Result.decode = function decode(reader, length) { + UserInput.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.versionMetrics && message.versionMetrics.length)) - message.versionMetrics = []; - message.versionMetrics.push($root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.decode(reader, reader.uint32())); + case 5: + message.input = $root.google.cloud.dialogflow.cx.v3.QueryInput.decode(reader, reader.uint32()); break; case 2: - message.lastUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.injectedParameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 3: + message.isWebhookEnabled = reader.bool(); break; default: reader.skipType(tag & 7); @@ -21872,2399 +22490,786 @@ }; /** - * Decodes a Result message from the specified reader or buffer, length delimited. + * Decodes a UserInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result} Result + * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput} UserInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Result.decodeDelimited = function decodeDelimited(reader) { + UserInput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Result message. + * Verifies a UserInput message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Result.verify = function verify(message) { + UserInput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.versionMetrics != null && message.hasOwnProperty("versionMetrics")) { - if (!Array.isArray(message.versionMetrics)) - return "versionMetrics: array expected"; - for (var i = 0; i < message.versionMetrics.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.verify(message.versionMetrics[i]); - if (error) - return "versionMetrics." + error; - } + if (message.input != null && message.hasOwnProperty("input")) { + var error = $root.google.cloud.dialogflow.cx.v3.QueryInput.verify(message.input); + if (error) + return "input." + error; } - if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.lastUpdateTime); + if (message.injectedParameters != null && message.hasOwnProperty("injectedParameters")) { + var error = $root.google.protobuf.Struct.verify(message.injectedParameters); if (error) - return "lastUpdateTime." + error; + return "injectedParameters." + error; } + if (message.isWebhookEnabled != null && message.hasOwnProperty("isWebhookEnabled")) + if (typeof message.isWebhookEnabled !== "boolean") + return "isWebhookEnabled: boolean expected"; return null; }; /** - * Creates a Result message from a plain object. Also converts values to their respective internal types. + * Creates a UserInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result} Result + * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput} UserInput */ - Result.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Experiment.Result) + UserInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result(); - if (object.versionMetrics) { - if (!Array.isArray(object.versionMetrics)) - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.Result.versionMetrics: array expected"); - message.versionMetrics = []; - for (var i = 0; i < object.versionMetrics.length; ++i) { - if (typeof object.versionMetrics[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.Result.versionMetrics: object expected"); - message.versionMetrics[i] = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.fromObject(object.versionMetrics[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput(); + if (object.input != null) { + if (typeof object.input !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.input: object expected"); + message.input = $root.google.cloud.dialogflow.cx.v3.QueryInput.fromObject(object.input); } - if (object.lastUpdateTime != null) { - if (typeof object.lastUpdateTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.Result.lastUpdateTime: object expected"); - message.lastUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.lastUpdateTime); + if (object.injectedParameters != null) { + if (typeof object.injectedParameters !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.injectedParameters: object expected"); + message.injectedParameters = $root.google.protobuf.Struct.fromObject(object.injectedParameters); } + if (object.isWebhookEnabled != null) + message.isWebhookEnabled = Boolean(object.isWebhookEnabled); return message; }; /** - * Creates a plain object from a Result message. Also converts values to other types if specified. + * Creates a plain object from a UserInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result} message Result + * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput} message UserInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Result.toObject = function toObject(message, options) { + UserInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.versionMetrics = []; - if (options.defaults) - object.lastUpdateTime = null; - if (message.versionMetrics && message.versionMetrics.length) { - object.versionMetrics = []; - for (var j = 0; j < message.versionMetrics.length; ++j) - object.versionMetrics[j] = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.toObject(message.versionMetrics[j], options); + if (options.defaults) { + object.injectedParameters = null; + object.isWebhookEnabled = false; + object.input = null; } - if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) - object.lastUpdateTime = $root.google.protobuf.Timestamp.toObject(message.lastUpdateTime, options); + if (message.injectedParameters != null && message.hasOwnProperty("injectedParameters")) + object.injectedParameters = $root.google.protobuf.Struct.toObject(message.injectedParameters, options); + if (message.isWebhookEnabled != null && message.hasOwnProperty("isWebhookEnabled")) + object.isWebhookEnabled = message.isWebhookEnabled; + if (message.input != null && message.hasOwnProperty("input")) + object.input = $root.google.cloud.dialogflow.cx.v3.QueryInput.toObject(message.input, options); return object; }; /** - * Converts this Result to JSON. + * Converts this UserInput to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput * @instance * @returns {Object.} JSON object */ - Result.prototype.toJSON = function toJSON() { + UserInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - Result.ConfidenceInterval = (function() { + return UserInput; + })(); - /** - * Properties of a ConfidenceInterval. - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result - * @interface IConfidenceInterval - * @property {number|null} [confidenceLevel] ConfidenceInterval confidenceLevel - * @property {number|null} [ratio] ConfidenceInterval ratio - * @property {number|null} [lowerBound] ConfidenceInterval lowerBound - * @property {number|null} [upperBound] ConfidenceInterval upperBound - */ + ConversationTurn.VirtualAgentOutput = (function() { - /** - * Constructs a new ConfidenceInterval. - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result - * @classdesc Represents a ConfidenceInterval. - * @implements IConfidenceInterval - * @constructor - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval=} [properties] Properties to set - */ - function ConfidenceInterval(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a VirtualAgentOutput. + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * @interface IVirtualAgentOutput + * @property {google.protobuf.IStruct|null} [sessionParameters] VirtualAgentOutput sessionParameters + * @property {Array.|null} [differences] VirtualAgentOutput differences + * @property {google.protobuf.IStruct|null} [diagnosticInfo] VirtualAgentOutput diagnosticInfo + * @property {google.cloud.dialogflow.cx.v3.IIntent|null} [triggeredIntent] VirtualAgentOutput triggeredIntent + * @property {google.cloud.dialogflow.cx.v3.IPage|null} [currentPage] VirtualAgentOutput currentPage + * @property {Array.|null} [textResponses] VirtualAgentOutput textResponses + * @property {google.rpc.IStatus|null} [status] VirtualAgentOutput status + */ - /** - * ConfidenceInterval confidenceLevel. - * @member {number} confidenceLevel - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval - * @instance - */ - ConfidenceInterval.prototype.confidenceLevel = 0; + /** + * Constructs a new VirtualAgentOutput. + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * @classdesc Represents a VirtualAgentOutput. + * @implements IVirtualAgentOutput + * @constructor + * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput=} [properties] Properties to set + */ + function VirtualAgentOutput(properties) { + this.differences = []; + this.textResponses = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * ConfidenceInterval ratio. - * @member {number} ratio - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval - * @instance - */ - ConfidenceInterval.prototype.ratio = 0; + /** + * VirtualAgentOutput sessionParameters. + * @member {google.protobuf.IStruct|null|undefined} sessionParameters + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput + * @instance + */ + VirtualAgentOutput.prototype.sessionParameters = null; - /** - * ConfidenceInterval lowerBound. - * @member {number} lowerBound - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval - * @instance - */ - ConfidenceInterval.prototype.lowerBound = 0; + /** + * VirtualAgentOutput differences. + * @member {Array.} differences + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput + * @instance + */ + VirtualAgentOutput.prototype.differences = $util.emptyArray; - /** - * ConfidenceInterval upperBound. - * @member {number} upperBound - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval - * @instance - */ - ConfidenceInterval.prototype.upperBound = 0; + /** + * VirtualAgentOutput diagnosticInfo. + * @member {google.protobuf.IStruct|null|undefined} diagnosticInfo + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput + * @instance + */ + VirtualAgentOutput.prototype.diagnosticInfo = null; - /** - * Creates a new ConfidenceInterval instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval} ConfidenceInterval instance - */ - ConfidenceInterval.create = function create(properties) { - return new ConfidenceInterval(properties); - }; + /** + * VirtualAgentOutput triggeredIntent. + * @member {google.cloud.dialogflow.cx.v3.IIntent|null|undefined} triggeredIntent + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput + * @instance + */ + VirtualAgentOutput.prototype.triggeredIntent = null; - /** - * Encodes the specified ConfidenceInterval message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval} message ConfidenceInterval message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConfidenceInterval.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.confidenceLevel != null && Object.hasOwnProperty.call(message, "confidenceLevel")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.confidenceLevel); - if (message.ratio != null && Object.hasOwnProperty.call(message, "ratio")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.ratio); - if (message.lowerBound != null && Object.hasOwnProperty.call(message, "lowerBound")) - writer.uint32(/* id 3, wireType 1 =*/25).double(message.lowerBound); - if (message.upperBound != null && Object.hasOwnProperty.call(message, "upperBound")) - writer.uint32(/* id 4, wireType 1 =*/33).double(message.upperBound); - return writer; - }; + /** + * VirtualAgentOutput currentPage. + * @member {google.cloud.dialogflow.cx.v3.IPage|null|undefined} currentPage + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput + * @instance + */ + VirtualAgentOutput.prototype.currentPage = null; - /** - * Encodes the specified ConfidenceInterval message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval} message ConfidenceInterval message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConfidenceInterval.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * VirtualAgentOutput textResponses. + * @member {Array.} textResponses + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput + * @instance + */ + VirtualAgentOutput.prototype.textResponses = $util.emptyArray; - /** - * Decodes a ConfidenceInterval message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval} ConfidenceInterval - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConfidenceInterval.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.confidenceLevel = reader.double(); - break; - case 2: - message.ratio = reader.double(); - break; - case 3: - message.lowerBound = reader.double(); - break; - case 4: - message.upperBound = reader.double(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * VirtualAgentOutput status. + * @member {google.rpc.IStatus|null|undefined} status + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput + * @instance + */ + VirtualAgentOutput.prototype.status = null; - /** - * Decodes a ConfidenceInterval message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval} ConfidenceInterval - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConfidenceInterval.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a new VirtualAgentOutput instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput + * @static + * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput} VirtualAgentOutput instance + */ + VirtualAgentOutput.create = function create(properties) { + return new VirtualAgentOutput(properties); + }; - /** - * Verifies a ConfidenceInterval message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ConfidenceInterval.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.confidenceLevel != null && message.hasOwnProperty("confidenceLevel")) - if (typeof message.confidenceLevel !== "number") - return "confidenceLevel: number expected"; - if (message.ratio != null && message.hasOwnProperty("ratio")) - if (typeof message.ratio !== "number") - return "ratio: number expected"; - if (message.lowerBound != null && message.hasOwnProperty("lowerBound")) - if (typeof message.lowerBound !== "number") - return "lowerBound: number expected"; - if (message.upperBound != null && message.hasOwnProperty("upperBound")) - if (typeof message.upperBound !== "number") - return "upperBound: number expected"; - return null; - }; + /** + * Encodes the specified VirtualAgentOutput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput + * @static + * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput} message VirtualAgentOutput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VirtualAgentOutput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sessionParameters != null && Object.hasOwnProperty.call(message, "sessionParameters")) + $root.google.protobuf.Struct.encode(message.sessionParameters, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.differences != null && message.differences.length) + for (var i = 0; i < message.differences.length; ++i) + $root.google.cloud.dialogflow.cx.v3.TestRunDifference.encode(message.differences[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.diagnosticInfo != null && Object.hasOwnProperty.call(message, "diagnosticInfo")) + $root.google.protobuf.Struct.encode(message.diagnosticInfo, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.triggeredIntent != null && Object.hasOwnProperty.call(message, "triggeredIntent")) + $root.google.cloud.dialogflow.cx.v3.Intent.encode(message.triggeredIntent, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) + $root.google.cloud.dialogflow.cx.v3.Page.encode(message.currentPage, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.textResponses != null && message.textResponses.length) + for (var i = 0; i < message.textResponses.length; ++i) + $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.encode(message.textResponses[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + return writer; + }; - /** - * Creates a ConfidenceInterval message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval} ConfidenceInterval - */ - ConfidenceInterval.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval(); - if (object.confidenceLevel != null) - message.confidenceLevel = Number(object.confidenceLevel); - if (object.ratio != null) - message.ratio = Number(object.ratio); - if (object.lowerBound != null) - message.lowerBound = Number(object.lowerBound); - if (object.upperBound != null) - message.upperBound = Number(object.upperBound); - return message; - }; + /** + * Encodes the specified VirtualAgentOutput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput + * @static + * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput} message VirtualAgentOutput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VirtualAgentOutput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a plain object from a ConfidenceInterval message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval} message ConfidenceInterval - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ConfidenceInterval.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.confidenceLevel = 0; - object.ratio = 0; - object.lowerBound = 0; - object.upperBound = 0; + /** + * Decodes a VirtualAgentOutput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput} VirtualAgentOutput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VirtualAgentOutput.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 4: + message.sessionParameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 5: + if (!(message.differences && message.differences.length)) + message.differences = []; + message.differences.push($root.google.cloud.dialogflow.cx.v3.TestRunDifference.decode(reader, reader.uint32())); + break; + case 6: + message.diagnosticInfo = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 7: + message.triggeredIntent = $root.google.cloud.dialogflow.cx.v3.Intent.decode(reader, reader.uint32()); + break; + case 8: + message.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.decode(reader, reader.uint32()); + break; + case 9: + if (!(message.textResponses && message.textResponses.length)) + message.textResponses = []; + message.textResponses.push($root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.decode(reader, reader.uint32())); + break; + case 10: + message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; } - if (message.confidenceLevel != null && message.hasOwnProperty("confidenceLevel")) - object.confidenceLevel = options.json && !isFinite(message.confidenceLevel) ? String(message.confidenceLevel) : message.confidenceLevel; - if (message.ratio != null && message.hasOwnProperty("ratio")) - object.ratio = options.json && !isFinite(message.ratio) ? String(message.ratio) : message.ratio; - if (message.lowerBound != null && message.hasOwnProperty("lowerBound")) - object.lowerBound = options.json && !isFinite(message.lowerBound) ? String(message.lowerBound) : message.lowerBound; - if (message.upperBound != null && message.hasOwnProperty("upperBound")) - object.upperBound = options.json && !isFinite(message.upperBound) ? String(message.upperBound) : message.upperBound; - return object; - }; - - /** - * Converts this ConfidenceInterval to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval - * @instance - * @returns {Object.} JSON object - */ - ConfidenceInterval.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + } + return message; + }; - return ConfidenceInterval; - })(); + /** + * Decodes a VirtualAgentOutput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput} VirtualAgentOutput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VirtualAgentOutput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - Result.Metric = (function() { + /** + * Verifies a VirtualAgentOutput message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VirtualAgentOutput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.sessionParameters != null && message.hasOwnProperty("sessionParameters")) { + var error = $root.google.protobuf.Struct.verify(message.sessionParameters); + if (error) + return "sessionParameters." + error; + } + if (message.differences != null && message.hasOwnProperty("differences")) { + if (!Array.isArray(message.differences)) + return "differences: array expected"; + for (var i = 0; i < message.differences.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.TestRunDifference.verify(message.differences[i]); + if (error) + return "differences." + error; + } + } + if (message.diagnosticInfo != null && message.hasOwnProperty("diagnosticInfo")) { + var error = $root.google.protobuf.Struct.verify(message.diagnosticInfo); + if (error) + return "diagnosticInfo." + error; + } + if (message.triggeredIntent != null && message.hasOwnProperty("triggeredIntent")) { + var error = $root.google.cloud.dialogflow.cx.v3.Intent.verify(message.triggeredIntent); + if (error) + return "triggeredIntent." + error; + } + if (message.currentPage != null && message.hasOwnProperty("currentPage")) { + var error = $root.google.cloud.dialogflow.cx.v3.Page.verify(message.currentPage); + if (error) + return "currentPage." + error; + } + if (message.textResponses != null && message.hasOwnProperty("textResponses")) { + if (!Array.isArray(message.textResponses)) + return "textResponses: array expected"; + for (var i = 0; i < message.textResponses.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.verify(message.textResponses[i]); + if (error) + return "textResponses." + error; + } + } + if (message.status != null && message.hasOwnProperty("status")) { + var error = $root.google.rpc.Status.verify(message.status); + if (error) + return "status." + error; + } + return null; + }; - /** - * Properties of a Metric. - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result - * @interface IMetric - * @property {google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType|null} [type] Metric type - * @property {google.cloud.dialogflow.cx.v3.Experiment.Result.CountType|null} [countType] Metric countType - * @property {number|null} [ratio] Metric ratio - * @property {number|null} [count] Metric count - * @property {google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval|null} [confidenceInterval] Metric confidenceInterval - */ + /** + * Creates a VirtualAgentOutput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput} VirtualAgentOutput + */ + VirtualAgentOutput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput(); + if (object.sessionParameters != null) { + if (typeof object.sessionParameters !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.sessionParameters: object expected"); + message.sessionParameters = $root.google.protobuf.Struct.fromObject(object.sessionParameters); + } + if (object.differences) { + if (!Array.isArray(object.differences)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.differences: array expected"); + message.differences = []; + for (var i = 0; i < object.differences.length; ++i) { + if (typeof object.differences[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.differences: object expected"); + message.differences[i] = $root.google.cloud.dialogflow.cx.v3.TestRunDifference.fromObject(object.differences[i]); + } + } + if (object.diagnosticInfo != null) { + if (typeof object.diagnosticInfo !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.diagnosticInfo: object expected"); + message.diagnosticInfo = $root.google.protobuf.Struct.fromObject(object.diagnosticInfo); + } + if (object.triggeredIntent != null) { + if (typeof object.triggeredIntent !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.triggeredIntent: object expected"); + message.triggeredIntent = $root.google.cloud.dialogflow.cx.v3.Intent.fromObject(object.triggeredIntent); + } + if (object.currentPage != null) { + if (typeof object.currentPage !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.currentPage: object expected"); + message.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.fromObject(object.currentPage); + } + if (object.textResponses) { + if (!Array.isArray(object.textResponses)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.textResponses: array expected"); + message.textResponses = []; + for (var i = 0; i < object.textResponses.length; ++i) { + if (typeof object.textResponses[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.textResponses: object expected"); + message.textResponses[i] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.fromObject(object.textResponses[i]); + } + } + if (object.status != null) { + if (typeof object.status !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.status: object expected"); + message.status = $root.google.rpc.Status.fromObject(object.status); + } + return message; + }; - /** - * Constructs a new Metric. - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result - * @classdesc Represents a Metric. - * @implements IMetric - * @constructor - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric=} [properties] Properties to set - */ - function Metric(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Creates a plain object from a VirtualAgentOutput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput + * @static + * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput} message VirtualAgentOutput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VirtualAgentOutput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.differences = []; + object.textResponses = []; + } + if (options.defaults) { + object.sessionParameters = null; + object.diagnosticInfo = null; + object.triggeredIntent = null; + object.currentPage = null; + object.status = null; + } + if (message.sessionParameters != null && message.hasOwnProperty("sessionParameters")) + object.sessionParameters = $root.google.protobuf.Struct.toObject(message.sessionParameters, options); + if (message.differences && message.differences.length) { + object.differences = []; + for (var j = 0; j < message.differences.length; ++j) + object.differences[j] = $root.google.cloud.dialogflow.cx.v3.TestRunDifference.toObject(message.differences[j], options); + } + if (message.diagnosticInfo != null && message.hasOwnProperty("diagnosticInfo")) + object.diagnosticInfo = $root.google.protobuf.Struct.toObject(message.diagnosticInfo, options); + if (message.triggeredIntent != null && message.hasOwnProperty("triggeredIntent")) + object.triggeredIntent = $root.google.cloud.dialogflow.cx.v3.Intent.toObject(message.triggeredIntent, options); + if (message.currentPage != null && message.hasOwnProperty("currentPage")) + object.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.toObject(message.currentPage, options); + if (message.textResponses && message.textResponses.length) { + object.textResponses = []; + for (var j = 0; j < message.textResponses.length; ++j) + object.textResponses[j] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.toObject(message.textResponses[j], options); } + if (message.status != null && message.hasOwnProperty("status")) + object.status = $root.google.rpc.Status.toObject(message.status, options); + return object; + }; - /** - * Metric type. - * @member {google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType} type - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @instance - */ - Metric.prototype.type = 0; + /** + * Converts this VirtualAgentOutput to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput + * @instance + * @returns {Object.} JSON object + */ + VirtualAgentOutput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Metric countType. - * @member {google.cloud.dialogflow.cx.v3.Experiment.Result.CountType} countType - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @instance - */ - Metric.prototype.countType = 0; + return VirtualAgentOutput; + })(); - /** - * Metric ratio. - * @member {number} ratio - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @instance - */ - Metric.prototype.ratio = 0; + return ConversationTurn; + })(); - /** - * Metric count. - * @member {number} count - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @instance - */ - Metric.prototype.count = 0; + v3.TestRunDifference = (function() { - /** - * Metric confidenceInterval. - * @member {google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval|null|undefined} confidenceInterval - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @instance - */ - Metric.prototype.confidenceInterval = null; + /** + * Properties of a TestRunDifference. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface ITestRunDifference + * @property {google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType|null} [type] TestRunDifference type + * @property {string|null} [description] TestRunDifference description + */ - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Constructs a new TestRunDifference. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a TestRunDifference. + * @implements ITestRunDifference + * @constructor + * @param {google.cloud.dialogflow.cx.v3.ITestRunDifference=} [properties] Properties to set + */ + function TestRunDifference(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Metric value. - * @member {"ratio"|"count"|undefined} value - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @instance - */ - Object.defineProperty(Metric.prototype, "value", { - get: $util.oneOfGetter($oneOfFields = ["ratio", "count"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * TestRunDifference type. + * @member {google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType} type + * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference + * @instance + */ + TestRunDifference.prototype.type = 0; - /** - * Creates a new Metric instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.Metric} Metric instance - */ - Metric.create = function create(properties) { - return new Metric(properties); - }; + /** + * TestRunDifference description. + * @member {string} description + * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference + * @instance + */ + TestRunDifference.prototype.description = ""; - /** - * Encodes the specified Metric message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric} message Metric message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Metric.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.ratio != null && Object.hasOwnProperty.call(message, "ratio")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.ratio); - if (message.confidenceInterval != null && Object.hasOwnProperty.call(message, "confidenceInterval")) - $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.encode(message.confidenceInterval, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.count != null && Object.hasOwnProperty.call(message, "count")) - writer.uint32(/* id 4, wireType 1 =*/33).double(message.count); - if (message.countType != null && Object.hasOwnProperty.call(message, "countType")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.countType); - return writer; - }; + /** + * Creates a new TestRunDifference instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference + * @static + * @param {google.cloud.dialogflow.cx.v3.ITestRunDifference=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TestRunDifference} TestRunDifference instance + */ + TestRunDifference.create = function create(properties) { + return new TestRunDifference(properties); + }; - /** - * Encodes the specified Metric message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric} message Metric message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Metric.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified TestRunDifference message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestRunDifference.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference + * @static + * @param {google.cloud.dialogflow.cx.v3.ITestRunDifference} message TestRunDifference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestRunDifference.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + return writer; + }; - /** - * Decodes a Metric message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.Metric} Metric - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Metric.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = reader.int32(); - break; - case 5: - message.countType = reader.int32(); - break; - case 2: - message.ratio = reader.double(); - break; - case 4: - message.count = reader.double(); - break; - case 3: - message.confidenceInterval = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified TestRunDifference message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestRunDifference.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference + * @static + * @param {google.cloud.dialogflow.cx.v3.ITestRunDifference} message TestRunDifference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestRunDifference.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a Metric message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.Metric} Metric - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Metric.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Metric message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Metric.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.countType != null && message.hasOwnProperty("countType")) - switch (message.countType) { - default: - return "countType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.ratio != null && message.hasOwnProperty("ratio")) { - properties.value = 1; - if (typeof message.ratio !== "number") - return "ratio: number expected"; - } - if (message.count != null && message.hasOwnProperty("count")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - if (typeof message.count !== "number") - return "count: number expected"; - } - if (message.confidenceInterval != null && message.hasOwnProperty("confidenceInterval")) { - var error = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.verify(message.confidenceInterval); - if (error) - return "confidenceInterval." + error; - } - return null; - }; - - /** - * Creates a Metric message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.Metric} Metric - */ - Metric.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric(); - switch (object.type) { - case "METRIC_UNSPECIFIED": - case 0: - message.type = 0; - break; - case "CONTAINED_SESSION_NO_CALLBACK_RATE": - case 1: - message.type = 1; - break; - case "LIVE_AGENT_HANDOFF_RATE": - case 2: - message.type = 2; - break; - case "CALLBACK_SESSION_RATE": - case 3: - message.type = 3; - break; - case "ABANDONED_SESSION_RATE": - case 4: - message.type = 4; - break; - case "SESSION_END_RATE": - case 5: - message.type = 5; - break; - } - switch (object.countType) { - case "COUNT_TYPE_UNSPECIFIED": - case 0: - message.countType = 0; - break; - case "TOTAL_NO_MATCH_COUNT": - case 1: - message.countType = 1; - break; - case "TOTAL_TURN_COUNT": - case 2: - message.countType = 2; - break; - case "AVERAGE_TURN_COUNT": - case 3: - message.countType = 3; - break; - } - if (object.ratio != null) - message.ratio = Number(object.ratio); - if (object.count != null) - message.count = Number(object.count); - if (object.confidenceInterval != null) { - if (typeof object.confidenceInterval !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.confidenceInterval: object expected"); - message.confidenceInterval = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.fromObject(object.confidenceInterval); - } - return message; - }; - - /** - * Creates a plain object from a Metric message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.Metric} message Metric - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Metric.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.type = options.enums === String ? "METRIC_UNSPECIFIED" : 0; - object.confidenceInterval = null; - object.countType = options.enums === String ? "COUNT_TYPE_UNSPECIFIED" : 0; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType[message.type] : message.type; - if (message.ratio != null && message.hasOwnProperty("ratio")) { - object.ratio = options.json && !isFinite(message.ratio) ? String(message.ratio) : message.ratio; - if (options.oneofs) - object.value = "ratio"; - } - if (message.confidenceInterval != null && message.hasOwnProperty("confidenceInterval")) - object.confidenceInterval = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.toObject(message.confidenceInterval, options); - if (message.count != null && message.hasOwnProperty("count")) { - object.count = options.json && !isFinite(message.count) ? String(message.count) : message.count; - if (options.oneofs) - object.value = "count"; - } - if (message.countType != null && message.hasOwnProperty("countType")) - object.countType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.Experiment.Result.CountType[message.countType] : message.countType; - return object; - }; - - /** - * Converts this Metric to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @instance - * @returns {Object.} JSON object - */ - Metric.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Metric; - })(); - - Result.VersionMetrics = (function() { - - /** - * Properties of a VersionMetrics. - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result - * @interface IVersionMetrics - * @property {string|null} [version] VersionMetrics version - * @property {Array.|null} [metrics] VersionMetrics metrics - * @property {number|null} [sessionCount] VersionMetrics sessionCount - */ - - /** - * Constructs a new VersionMetrics. - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result - * @classdesc Represents a VersionMetrics. - * @implements IVersionMetrics - * @constructor - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics=} [properties] Properties to set - */ - function VersionMetrics(properties) { - this.metrics = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * VersionMetrics version. - * @member {string} version - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @instance - */ - VersionMetrics.prototype.version = ""; - - /** - * VersionMetrics metrics. - * @member {Array.} metrics - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @instance - */ - VersionMetrics.prototype.metrics = $util.emptyArray; - - /** - * VersionMetrics sessionCount. - * @member {number} sessionCount - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @instance - */ - VersionMetrics.prototype.sessionCount = 0; - - /** - * Creates a new VersionMetrics instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics} VersionMetrics instance - */ - VersionMetrics.create = function create(properties) { - return new VersionMetrics(properties); - }; - - /** - * Encodes the specified VersionMetrics message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics} message VersionMetrics message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VersionMetrics.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); - if (message.metrics != null && message.metrics.length) - for (var i = 0; i < message.metrics.length; ++i) - $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.encode(message.metrics[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.sessionCount != null && Object.hasOwnProperty.call(message, "sessionCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.sessionCount); - return writer; - }; - - /** - * Encodes the specified VersionMetrics message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics} message VersionMetrics message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VersionMetrics.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a VersionMetrics message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics} VersionMetrics - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VersionMetrics.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.version = reader.string(); - break; - case 2: - if (!(message.metrics && message.metrics.length)) - message.metrics = []; - message.metrics.push($root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.decode(reader, reader.uint32())); - break; - case 3: - message.sessionCount = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a VersionMetrics message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics} VersionMetrics - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VersionMetrics.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a VersionMetrics message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - VersionMetrics.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - if (message.metrics != null && message.hasOwnProperty("metrics")) { - if (!Array.isArray(message.metrics)) - return "metrics: array expected"; - for (var i = 0; i < message.metrics.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.verify(message.metrics[i]); - if (error) - return "metrics." + error; - } - } - if (message.sessionCount != null && message.hasOwnProperty("sessionCount")) - if (!$util.isInteger(message.sessionCount)) - return "sessionCount: integer expected"; - return null; - }; - - /** - * Creates a VersionMetrics message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics} VersionMetrics - */ - VersionMetrics.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics(); - if (object.version != null) - message.version = String(object.version); - if (object.metrics) { - if (!Array.isArray(object.metrics)) - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.metrics: array expected"); - message.metrics = []; - for (var i = 0; i < object.metrics.length; ++i) { - if (typeof object.metrics[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.metrics: object expected"); - message.metrics[i] = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.fromObject(object.metrics[i]); - } - } - if (object.sessionCount != null) - message.sessionCount = object.sessionCount | 0; - return message; - }; - - /** - * Creates a plain object from a VersionMetrics message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics} message VersionMetrics - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - VersionMetrics.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.metrics = []; - if (options.defaults) { - object.version = ""; - object.sessionCount = 0; - } - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.metrics && message.metrics.length) { - object.metrics = []; - for (var j = 0; j < message.metrics.length; ++j) - object.metrics[j] = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.toObject(message.metrics[j], options); - } - if (message.sessionCount != null && message.hasOwnProperty("sessionCount")) - object.sessionCount = message.sessionCount; - return object; - }; - - /** - * Converts this VersionMetrics to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @instance - * @returns {Object.} JSON object - */ - VersionMetrics.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return VersionMetrics; - })(); - - /** - * MetricType enum. - * @name google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType - * @enum {number} - * @property {number} METRIC_UNSPECIFIED=0 METRIC_UNSPECIFIED value - * @property {number} CONTAINED_SESSION_NO_CALLBACK_RATE=1 CONTAINED_SESSION_NO_CALLBACK_RATE value - * @property {number} LIVE_AGENT_HANDOFF_RATE=2 LIVE_AGENT_HANDOFF_RATE value - * @property {number} CALLBACK_SESSION_RATE=3 CALLBACK_SESSION_RATE value - * @property {number} ABANDONED_SESSION_RATE=4 ABANDONED_SESSION_RATE value - * @property {number} SESSION_END_RATE=5 SESSION_END_RATE value - */ - Result.MetricType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "METRIC_UNSPECIFIED"] = 0; - values[valuesById[1] = "CONTAINED_SESSION_NO_CALLBACK_RATE"] = 1; - values[valuesById[2] = "LIVE_AGENT_HANDOFF_RATE"] = 2; - values[valuesById[3] = "CALLBACK_SESSION_RATE"] = 3; - values[valuesById[4] = "ABANDONED_SESSION_RATE"] = 4; - values[valuesById[5] = "SESSION_END_RATE"] = 5; - return values; - })(); - - /** - * CountType enum. - * @name google.cloud.dialogflow.cx.v3.Experiment.Result.CountType - * @enum {number} - * @property {number} COUNT_TYPE_UNSPECIFIED=0 COUNT_TYPE_UNSPECIFIED value - * @property {number} TOTAL_NO_MATCH_COUNT=1 TOTAL_NO_MATCH_COUNT value - * @property {number} TOTAL_TURN_COUNT=2 TOTAL_TURN_COUNT value - * @property {number} AVERAGE_TURN_COUNT=3 AVERAGE_TURN_COUNT value - */ - Result.CountType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "COUNT_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "TOTAL_NO_MATCH_COUNT"] = 1; - values[valuesById[2] = "TOTAL_TURN_COUNT"] = 2; - values[valuesById[3] = "AVERAGE_TURN_COUNT"] = 3; - return values; - })(); - - return Result; - })(); - - /** - * State enum. - * @name google.cloud.dialogflow.cx.v3.Experiment.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} DRAFT=1 DRAFT value - * @property {number} RUNNING=2 RUNNING value - * @property {number} DONE=3 DONE value - */ - Experiment.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "DRAFT"] = 1; - values[valuesById[2] = "RUNNING"] = 2; - values[valuesById[3] = "DONE"] = 3; - return values; - })(); - - return Experiment; - })(); - - v3.VersionVariants = (function() { - - /** - * Properties of a VersionVariants. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IVersionVariants - * @property {Array.|null} [variants] VersionVariants variants - */ - - /** - * Constructs a new VersionVariants. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a VersionVariants. - * @implements IVersionVariants - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IVersionVariants=} [properties] Properties to set - */ - function VersionVariants(properties) { - this.variants = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * VersionVariants variants. - * @member {Array.} variants - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants - * @instance - */ - VersionVariants.prototype.variants = $util.emptyArray; - - /** - * Creates a new VersionVariants instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants - * @static - * @param {google.cloud.dialogflow.cx.v3.IVersionVariants=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.VersionVariants} VersionVariants instance - */ - VersionVariants.create = function create(properties) { - return new VersionVariants(properties); - }; - - /** - * Encodes the specified VersionVariants message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants - * @static - * @param {google.cloud.dialogflow.cx.v3.IVersionVariants} message VersionVariants message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VersionVariants.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.variants != null && message.variants.length) - for (var i = 0; i < message.variants.length; ++i) - $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant.encode(message.variants[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified VersionVariants message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants - * @static - * @param {google.cloud.dialogflow.cx.v3.IVersionVariants} message VersionVariants message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VersionVariants.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a VersionVariants message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.VersionVariants} VersionVariants - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VersionVariants.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.VersionVariants(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.variants && message.variants.length)) - message.variants = []; - message.variants.push($root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a VersionVariants message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.VersionVariants} VersionVariants - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VersionVariants.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a VersionVariants message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - VersionVariants.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.variants != null && message.hasOwnProperty("variants")) { - if (!Array.isArray(message.variants)) - return "variants: array expected"; - for (var i = 0; i < message.variants.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant.verify(message.variants[i]); - if (error) - return "variants." + error; - } - } - return null; - }; - - /** - * Creates a VersionVariants message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.VersionVariants} VersionVariants - */ - VersionVariants.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.VersionVariants) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.VersionVariants(); - if (object.variants) { - if (!Array.isArray(object.variants)) - throw TypeError(".google.cloud.dialogflow.cx.v3.VersionVariants.variants: array expected"); - message.variants = []; - for (var i = 0; i < object.variants.length; ++i) { - if (typeof object.variants[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.VersionVariants.variants: object expected"); - message.variants[i] = $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant.fromObject(object.variants[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a VersionVariants message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants - * @static - * @param {google.cloud.dialogflow.cx.v3.VersionVariants} message VersionVariants - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - VersionVariants.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.variants = []; - if (message.variants && message.variants.length) { - object.variants = []; - for (var j = 0; j < message.variants.length; ++j) - object.variants[j] = $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant.toObject(message.variants[j], options); - } - return object; - }; - - /** - * Converts this VersionVariants to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants - * @instance - * @returns {Object.} JSON object - */ - VersionVariants.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - VersionVariants.Variant = (function() { - - /** - * Properties of a Variant. - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants - * @interface IVariant - * @property {string|null} [version] Variant version - * @property {number|null} [trafficAllocation] Variant trafficAllocation - * @property {boolean|null} [isControlGroup] Variant isControlGroup - */ - - /** - * Constructs a new Variant. - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants - * @classdesc Represents a Variant. - * @implements IVariant - * @constructor - * @param {google.cloud.dialogflow.cx.v3.VersionVariants.IVariant=} [properties] Properties to set - */ - function Variant(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Variant version. - * @member {string} version - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant - * @instance - */ - Variant.prototype.version = ""; - - /** - * Variant trafficAllocation. - * @member {number} trafficAllocation - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant - * @instance - */ - Variant.prototype.trafficAllocation = 0; - - /** - * Variant isControlGroup. - * @member {boolean} isControlGroup - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant - * @instance - */ - Variant.prototype.isControlGroup = false; - - /** - * Creates a new Variant instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant - * @static - * @param {google.cloud.dialogflow.cx.v3.VersionVariants.IVariant=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.VersionVariants.Variant} Variant instance - */ - Variant.create = function create(properties) { - return new Variant(properties); - }; - - /** - * Encodes the specified Variant message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.Variant.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant - * @static - * @param {google.cloud.dialogflow.cx.v3.VersionVariants.IVariant} message Variant message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Variant.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); - if (message.trafficAllocation != null && Object.hasOwnProperty.call(message, "trafficAllocation")) - writer.uint32(/* id 2, wireType 5 =*/21).float(message.trafficAllocation); - if (message.isControlGroup != null && Object.hasOwnProperty.call(message, "isControlGroup")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isControlGroup); - return writer; - }; - - /** - * Encodes the specified Variant message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.Variant.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant - * @static - * @param {google.cloud.dialogflow.cx.v3.VersionVariants.IVariant} message Variant message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Variant.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Variant message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.VersionVariants.Variant} Variant - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Variant.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.version = reader.string(); - break; - case 2: - message.trafficAllocation = reader.float(); - break; - case 3: - message.isControlGroup = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Variant message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.VersionVariants.Variant} Variant - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Variant.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Variant message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Variant.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - if (message.trafficAllocation != null && message.hasOwnProperty("trafficAllocation")) - if (typeof message.trafficAllocation !== "number") - return "trafficAllocation: number expected"; - if (message.isControlGroup != null && message.hasOwnProperty("isControlGroup")) - if (typeof message.isControlGroup !== "boolean") - return "isControlGroup: boolean expected"; - return null; - }; - - /** - * Creates a Variant message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.VersionVariants.Variant} Variant - */ - Variant.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant(); - if (object.version != null) - message.version = String(object.version); - if (object.trafficAllocation != null) - message.trafficAllocation = Number(object.trafficAllocation); - if (object.isControlGroup != null) - message.isControlGroup = Boolean(object.isControlGroup); - return message; - }; - - /** - * Creates a plain object from a Variant message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant - * @static - * @param {google.cloud.dialogflow.cx.v3.VersionVariants.Variant} message Variant - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Variant.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.version = ""; - object.trafficAllocation = 0; - object.isControlGroup = false; - } - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.trafficAllocation != null && message.hasOwnProperty("trafficAllocation")) - object.trafficAllocation = options.json && !isFinite(message.trafficAllocation) ? String(message.trafficAllocation) : message.trafficAllocation; - if (message.isControlGroup != null && message.hasOwnProperty("isControlGroup")) - object.isControlGroup = message.isControlGroup; - return object; - }; - - /** - * Converts this Variant to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant - * @instance - * @returns {Object.} JSON object - */ - Variant.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Variant; - })(); - - return VersionVariants; - })(); - - v3.VariantsHistory = (function() { - - /** - * Properties of a VariantsHistory. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IVariantsHistory - * @property {google.cloud.dialogflow.cx.v3.IVersionVariants|null} [versionVariants] VariantsHistory versionVariants - * @property {google.protobuf.ITimestamp|null} [updateTime] VariantsHistory updateTime - */ - - /** - * Constructs a new VariantsHistory. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a VariantsHistory. - * @implements IVariantsHistory - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IVariantsHistory=} [properties] Properties to set - */ - function VariantsHistory(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * VariantsHistory versionVariants. - * @member {google.cloud.dialogflow.cx.v3.IVersionVariants|null|undefined} versionVariants - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory - * @instance - */ - VariantsHistory.prototype.versionVariants = null; - - /** - * VariantsHistory updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory - * @instance - */ - VariantsHistory.prototype.updateTime = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * VariantsHistory variants. - * @member {"versionVariants"|undefined} variants - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory - * @instance - */ - Object.defineProperty(VariantsHistory.prototype, "variants", { - get: $util.oneOfGetter($oneOfFields = ["versionVariants"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new VariantsHistory instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory - * @static - * @param {google.cloud.dialogflow.cx.v3.IVariantsHistory=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.VariantsHistory} VariantsHistory instance - */ - VariantsHistory.create = function create(properties) { - return new VariantsHistory(properties); - }; - - /** - * Encodes the specified VariantsHistory message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VariantsHistory.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory - * @static - * @param {google.cloud.dialogflow.cx.v3.IVariantsHistory} message VariantsHistory message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VariantsHistory.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.versionVariants != null && Object.hasOwnProperty.call(message, "versionVariants")) - $root.google.cloud.dialogflow.cx.v3.VersionVariants.encode(message.versionVariants, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified VariantsHistory message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VariantsHistory.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory - * @static - * @param {google.cloud.dialogflow.cx.v3.IVariantsHistory} message VariantsHistory message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VariantsHistory.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a VariantsHistory message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.VariantsHistory} VariantsHistory - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VariantsHistory.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.VariantsHistory(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.versionVariants = $root.google.cloud.dialogflow.cx.v3.VersionVariants.decode(reader, reader.uint32()); - break; - case 2: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a VariantsHistory message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.VariantsHistory} VariantsHistory - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VariantsHistory.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a VariantsHistory message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - VariantsHistory.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.versionVariants != null && message.hasOwnProperty("versionVariants")) { - properties.variants = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.VersionVariants.verify(message.versionVariants); - if (error) - return "versionVariants." + error; - } - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - return null; - }; - - /** - * Creates a VariantsHistory message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.VariantsHistory} VariantsHistory - */ - VariantsHistory.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.VariantsHistory) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.VariantsHistory(); - if (object.versionVariants != null) { - if (typeof object.versionVariants !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.VariantsHistory.versionVariants: object expected"); - message.versionVariants = $root.google.cloud.dialogflow.cx.v3.VersionVariants.fromObject(object.versionVariants); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.VariantsHistory.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - return message; - }; - - /** - * Creates a plain object from a VariantsHistory message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory - * @static - * @param {google.cloud.dialogflow.cx.v3.VariantsHistory} message VariantsHistory - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - VariantsHistory.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.updateTime = null; - if (message.versionVariants != null && message.hasOwnProperty("versionVariants")) { - object.versionVariants = $root.google.cloud.dialogflow.cx.v3.VersionVariants.toObject(message.versionVariants, options); - if (options.oneofs) - object.variants = "versionVariants"; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - return object; - }; - - /** - * Converts this VariantsHistory to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory - * @instance - * @returns {Object.} JSON object - */ - VariantsHistory.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return VariantsHistory; - })(); - - v3.ListExperimentsRequest = (function() { - - /** - * Properties of a ListExperimentsRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListExperimentsRequest - * @property {string|null} [parent] ListExperimentsRequest parent - * @property {number|null} [pageSize] ListExperimentsRequest pageSize - * @property {string|null} [pageToken] ListExperimentsRequest pageToken - */ - - /** - * Constructs a new ListExperimentsRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListExperimentsRequest. - * @implements IListExperimentsRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListExperimentsRequest=} [properties] Properties to set - */ - function ListExperimentsRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ListExperimentsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest - * @instance - */ - ListExperimentsRequest.prototype.parent = ""; - - /** - * ListExperimentsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest - * @instance - */ - ListExperimentsRequest.prototype.pageSize = 0; - - /** - * ListExperimentsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest - * @instance - */ - ListExperimentsRequest.prototype.pageToken = ""; - - /** - * Creates a new ListExperimentsRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IListExperimentsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsRequest} ListExperimentsRequest instance - */ - ListExperimentsRequest.create = function create(properties) { - return new ListExperimentsRequest(properties); - }; - - /** - * Encodes the specified ListExperimentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IListExperimentsRequest} message ListExperimentsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListExperimentsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - return writer; - }; - - /** - * Encodes the specified ListExperimentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IListExperimentsRequest} message ListExperimentsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListExperimentsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ListExperimentsRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsRequest} ListExperimentsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListExperimentsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListExperimentsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ListExperimentsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsRequest} ListExperimentsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListExperimentsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ListExperimentsRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListExperimentsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - return null; - }; - - /** - * Creates a ListExperimentsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsRequest} ListExperimentsRequest - */ - ListExperimentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListExperimentsRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListExperimentsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - return message; - }; - - /** - * Creates a plain object from a ListExperimentsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.ListExperimentsRequest} message ListExperimentsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListExperimentsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - return object; - }; - - /** - * Converts this ListExperimentsRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest - * @instance - * @returns {Object.} JSON object - */ - ListExperimentsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ListExperimentsRequest; - })(); - - v3.ListExperimentsResponse = (function() { - - /** - * Properties of a ListExperimentsResponse. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListExperimentsResponse - * @property {Array.|null} [experiments] ListExperimentsResponse experiments - * @property {string|null} [nextPageToken] ListExperimentsResponse nextPageToken - */ - - /** - * Constructs a new ListExperimentsResponse. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListExperimentsResponse. - * @implements IListExperimentsResponse - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListExperimentsResponse=} [properties] Properties to set - */ - function ListExperimentsResponse(properties) { - this.experiments = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ListExperimentsResponse experiments. - * @member {Array.} experiments - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse - * @instance - */ - ListExperimentsResponse.prototype.experiments = $util.emptyArray; - - /** - * ListExperimentsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse - * @instance - */ - ListExperimentsResponse.prototype.nextPageToken = ""; - - /** - * Creates a new ListExperimentsResponse instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.IListExperimentsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsResponse} ListExperimentsResponse instance - */ - ListExperimentsResponse.create = function create(properties) { - return new ListExperimentsResponse(properties); - }; - - /** - * Encodes the specified ListExperimentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.IListExperimentsResponse} message ListExperimentsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListExperimentsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.experiments != null && message.experiments.length) - for (var i = 0; i < message.experiments.length; ++i) - $root.google.cloud.dialogflow.cx.v3.Experiment.encode(message.experiments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - return writer; - }; - - /** - * Encodes the specified ListExperimentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.IListExperimentsResponse} message ListExperimentsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListExperimentsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ListExperimentsResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsResponse} ListExperimentsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListExperimentsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListExperimentsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.experiments && message.experiments.length)) - message.experiments = []; - message.experiments.push($root.google.cloud.dialogflow.cx.v3.Experiment.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Decodes a TestRunDifference message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.TestRunDifference} TestRunDifference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestRunDifference.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TestRunDifference(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = reader.int32(); + break; + case 2: + message.description = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Decodes a ListExperimentsResponse message from the specified reader or buffer, length delimited. + * Decodes a TestRunDifference message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse + * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsResponse} ListExperimentsResponse + * @returns {google.cloud.dialogflow.cx.v3.TestRunDifference} TestRunDifference * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListExperimentsResponse.decodeDelimited = function decodeDelimited(reader) { + TestRunDifference.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListExperimentsResponse message. + * Verifies a TestRunDifference message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse + * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListExperimentsResponse.verify = function verify(message) { + TestRunDifference.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.experiments != null && message.hasOwnProperty("experiments")) { - if (!Array.isArray(message.experiments)) - return "experiments: array expected"; - for (var i = 0; i < message.experiments.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.Experiment.verify(message.experiments[i]); - if (error) - return "experiments." + error; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; return null; }; /** - * Creates a ListExperimentsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a TestRunDifference message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse + * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsResponse} ListExperimentsResponse + * @returns {google.cloud.dialogflow.cx.v3.TestRunDifference} TestRunDifference */ - ListExperimentsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListExperimentsResponse) + TestRunDifference.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.TestRunDifference) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListExperimentsResponse(); - if (object.experiments) { - if (!Array.isArray(object.experiments)) - throw TypeError(".google.cloud.dialogflow.cx.v3.ListExperimentsResponse.experiments: array expected"); - message.experiments = []; - for (var i = 0; i < object.experiments.length; ++i) { - if (typeof object.experiments[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ListExperimentsResponse.experiments: object expected"); - message.experiments[i] = $root.google.cloud.dialogflow.cx.v3.Experiment.fromObject(object.experiments[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3.TestRunDifference(); + switch (object.type) { + case "DIFF_TYPE_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "INTENT": + case 1: + message.type = 1; + break; + case "PAGE": + case 2: + message.type = 2; + break; + case "PARAMETERS": + case 3: + message.type = 3; + break; + case "UTTERANCE": + case 4: + message.type = 4; + break; } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + if (object.description != null) + message.description = String(object.description); return message; }; /** - * Creates a plain object from a ListExperimentsResponse message. Also converts values to other types if specified. + * Creates a plain object from a TestRunDifference message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse + * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference * @static - * @param {google.cloud.dialogflow.cx.v3.ListExperimentsResponse} message ListExperimentsResponse + * @param {google.cloud.dialogflow.cx.v3.TestRunDifference} message TestRunDifference * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListExperimentsResponse.toObject = function toObject(message, options) { + TestRunDifference.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.experiments = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.experiments && message.experiments.length) { - object.experiments = []; - for (var j = 0; j < message.experiments.length; ++j) - object.experiments[j] = $root.google.cloud.dialogflow.cx.v3.Experiment.toObject(message.experiments[j], options); + if (options.defaults) { + object.type = options.enums === String ? "DIFF_TYPE_UNSPECIFIED" : 0; + object.description = ""; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType[message.type] : message.type; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; return object; }; /** - * Converts this ListExperimentsResponse to JSON. + * Converts this TestRunDifference to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse + * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference * @instance * @returns {Object.} JSON object */ - ListExperimentsResponse.prototype.toJSON = function toJSON() { + TestRunDifference.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListExperimentsResponse; - })(); - - v3.GetExperimentRequest = (function() { - - /** - * Properties of a GetExperimentRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IGetExperimentRequest - * @property {string|null} [name] GetExperimentRequest name - */ - - /** - * Constructs a new GetExperimentRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a GetExperimentRequest. - * @implements IGetExperimentRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IGetExperimentRequest=} [properties] Properties to set - */ - function GetExperimentRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetExperimentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest - * @instance - */ - GetExperimentRequest.prototype.name = ""; - - /** - * Creates a new GetExperimentRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IGetExperimentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.GetExperimentRequest} GetExperimentRequest instance - */ - GetExperimentRequest.create = function create(properties) { - return new GetExperimentRequest(properties); - }; - - /** - * Encodes the specified GetExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetExperimentRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IGetExperimentRequest} message GetExperimentRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetExperimentRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; - - /** - * Encodes the specified GetExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetExperimentRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IGetExperimentRequest} message GetExperimentRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetExperimentRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.GetExperimentRequest} GetExperimentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetExperimentRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetExperimentRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetExperimentRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.GetExperimentRequest} GetExperimentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetExperimentRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetExperimentRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetExperimentRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; - - /** - * Creates a GetExperimentRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.GetExperimentRequest} GetExperimentRequest - */ - GetExperimentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetExperimentRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.GetExperimentRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; - - /** - * Creates a plain object from a GetExperimentRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.GetExperimentRequest} message GetExperimentRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetExperimentRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; - /** - * Converts this GetExperimentRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest - * @instance - * @returns {Object.} JSON object + * DiffType enum. + * @name google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType + * @enum {number} + * @property {number} DIFF_TYPE_UNSPECIFIED=0 DIFF_TYPE_UNSPECIFIED value + * @property {number} INTENT=1 INTENT value + * @property {number} PAGE=2 PAGE value + * @property {number} PARAMETERS=3 PARAMETERS value + * @property {number} UTTERANCE=4 UTTERANCE value */ - GetExperimentRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + TestRunDifference.DiffType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DIFF_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "INTENT"] = 1; + values[valuesById[2] = "PAGE"] = 2; + values[valuesById[3] = "PARAMETERS"] = 3; + values[valuesById[4] = "UTTERANCE"] = 4; + return values; + })(); - return GetExperimentRequest; + return TestRunDifference; })(); - v3.CreateExperimentRequest = (function() { + v3.TransitionCoverage = (function() { /** - * Properties of a CreateExperimentRequest. + * Properties of a TransitionCoverage. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ICreateExperimentRequest - * @property {string|null} [parent] CreateExperimentRequest parent - * @property {google.cloud.dialogflow.cx.v3.IExperiment|null} [experiment] CreateExperimentRequest experiment + * @interface ITransitionCoverage + * @property {Array.|null} [transitions] TransitionCoverage transitions + * @property {number|null} [coverageScore] TransitionCoverage coverageScore */ /** - * Constructs a new CreateExperimentRequest. + * Constructs a new TransitionCoverage. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CreateExperimentRequest. - * @implements ICreateExperimentRequest + * @classdesc Represents a TransitionCoverage. + * @implements ITransitionCoverage * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICreateExperimentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ITransitionCoverage=} [properties] Properties to set */ - function CreateExperimentRequest(properties) { + function TransitionCoverage(properties) { + this.transitions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24272,88 +23277,91 @@ } /** - * CreateExperimentRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest + * TransitionCoverage transitions. + * @member {Array.} transitions + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage * @instance */ - CreateExperimentRequest.prototype.parent = ""; + TransitionCoverage.prototype.transitions = $util.emptyArray; /** - * CreateExperimentRequest experiment. - * @member {google.cloud.dialogflow.cx.v3.IExperiment|null|undefined} experiment - * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest + * TransitionCoverage coverageScore. + * @member {number} coverageScore + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage * @instance */ - CreateExperimentRequest.prototype.experiment = null; + TransitionCoverage.prototype.coverageScore = 0; /** - * Creates a new CreateExperimentRequest instance using the specified properties. + * Creates a new TransitionCoverage instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateExperimentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.CreateExperimentRequest} CreateExperimentRequest instance + * @param {google.cloud.dialogflow.cx.v3.ITransitionCoverage=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage} TransitionCoverage instance */ - CreateExperimentRequest.create = function create(properties) { - return new CreateExperimentRequest(properties); + TransitionCoverage.create = function create(properties) { + return new TransitionCoverage(properties); }; /** - * Encodes the specified CreateExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateExperimentRequest.verify|verify} messages. + * Encodes the specified TransitionCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateExperimentRequest} message CreateExperimentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITransitionCoverage} message TransitionCoverage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateExperimentRequest.encode = function encode(message, writer) { + TransitionCoverage.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.experiment != null && Object.hasOwnProperty.call(message, "experiment")) - $root.google.cloud.dialogflow.cx.v3.Experiment.encode(message.experiment, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.transitions != null && message.transitions.length) + for (var i = 0; i < message.transitions.length; ++i) + $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.encode(message.transitions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.coverageScore != null && Object.hasOwnProperty.call(message, "coverageScore")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.coverageScore); return writer; }; /** - * Encodes the specified CreateExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateExperimentRequest.verify|verify} messages. + * Encodes the specified TransitionCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateExperimentRequest} message CreateExperimentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITransitionCoverage} message TransitionCoverage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { + TransitionCoverage.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateExperimentRequest message from the specified reader or buffer. + * Decodes a TransitionCoverage message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.CreateExperimentRequest} CreateExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage} TransitionCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateExperimentRequest.decode = function decode(reader, length) { + TransitionCoverage.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateExperimentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TransitionCoverage(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + if (!(message.transitions && message.transitions.length)) + message.transitions = []; + message.transitions.push($root.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.decode(reader, reader.uint32())); break; case 2: - message.experiment = $root.google.cloud.dialogflow.cx.v3.Experiment.decode(reader, reader.uint32()); + message.coverageScore = reader.float(); break; default: reader.skipType(tag & 7); @@ -24364,341 +23372,725 @@ }; /** - * Decodes a CreateExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a TransitionCoverage message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.CreateExperimentRequest} CreateExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage} TransitionCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateExperimentRequest.decodeDelimited = function decodeDelimited(reader) { + TransitionCoverage.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateExperimentRequest message. + * Verifies a TransitionCoverage message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateExperimentRequest.verify = function verify(message) { + TransitionCoverage.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.experiment != null && message.hasOwnProperty("experiment")) { - var error = $root.google.cloud.dialogflow.cx.v3.Experiment.verify(message.experiment); - if (error) - return "experiment." + error; + if (message.transitions != null && message.hasOwnProperty("transitions")) { + if (!Array.isArray(message.transitions)) + return "transitions: array expected"; + for (var i = 0; i < message.transitions.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.verify(message.transitions[i]); + if (error) + return "transitions." + error; + } } + if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) + if (typeof message.coverageScore !== "number") + return "coverageScore: number expected"; return null; }; /** - * Creates a CreateExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TransitionCoverage message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CreateExperimentRequest} CreateExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage} TransitionCoverage */ - CreateExperimentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateExperimentRequest) + TransitionCoverage.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.TransitionCoverage) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.CreateExperimentRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.experiment != null) { - if (typeof object.experiment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CreateExperimentRequest.experiment: object expected"); - message.experiment = $root.google.cloud.dialogflow.cx.v3.Experiment.fromObject(object.experiment); + var message = new $root.google.cloud.dialogflow.cx.v3.TransitionCoverage(); + if (object.transitions) { + if (!Array.isArray(object.transitions)) + throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionCoverage.transitions: array expected"); + message.transitions = []; + for (var i = 0; i < object.transitions.length; ++i) { + if (typeof object.transitions[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionCoverage.transitions: object expected"); + message.transitions[i] = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.fromObject(object.transitions[i]); + } } + if (object.coverageScore != null) + message.coverageScore = Number(object.coverageScore); return message; }; /** - * Creates a plain object from a CreateExperimentRequest message. Also converts values to other types if specified. + * Creates a plain object from a TransitionCoverage message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage * @static - * @param {google.cloud.dialogflow.cx.v3.CreateExperimentRequest} message CreateExperimentRequest + * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage} message TransitionCoverage * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateExperimentRequest.toObject = function toObject(message, options) { + TransitionCoverage.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.experiment = null; + if (options.arrays || options.defaults) + object.transitions = []; + if (options.defaults) + object.coverageScore = 0; + if (message.transitions && message.transitions.length) { + object.transitions = []; + for (var j = 0; j < message.transitions.length; ++j) + object.transitions[j] = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.toObject(message.transitions[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.experiment != null && message.hasOwnProperty("experiment")) - object.experiment = $root.google.cloud.dialogflow.cx.v3.Experiment.toObject(message.experiment, options); + if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) + object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; return object; }; /** - * Converts this CreateExperimentRequest to JSON. + * Converts this TransitionCoverage to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage * @instance * @returns {Object.} JSON object */ - CreateExperimentRequest.prototype.toJSON = function toJSON() { + TransitionCoverage.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateExperimentRequest; - })(); + TransitionCoverage.TransitionNode = (function() { - v3.UpdateExperimentRequest = (function() { + /** + * Properties of a TransitionNode. + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * @interface ITransitionNode + * @property {google.cloud.dialogflow.cx.v3.IPage|null} [page] TransitionNode page + * @property {google.cloud.dialogflow.cx.v3.IFlow|null} [flow] TransitionNode flow + */ - /** - * Properties of an UpdateExperimentRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IUpdateExperimentRequest - * @property {google.cloud.dialogflow.cx.v3.IExperiment|null} [experiment] UpdateExperimentRequest experiment - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateExperimentRequest updateMask - */ + /** + * Constructs a new TransitionNode. + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * @classdesc Represents a TransitionNode. + * @implements ITransitionNode + * @constructor + * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode=} [properties] Properties to set + */ + function TransitionNode(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new UpdateExperimentRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an UpdateExperimentRequest. - * @implements IUpdateExperimentRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest=} [properties] Properties to set - */ - function UpdateExperimentRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * TransitionNode page. + * @member {google.cloud.dialogflow.cx.v3.IPage|null|undefined} page + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode + * @instance + */ + TransitionNode.prototype.page = null; + + /** + * TransitionNode flow. + * @member {google.cloud.dialogflow.cx.v3.IFlow|null|undefined} flow + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode + * @instance + */ + TransitionNode.prototype.flow = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * TransitionNode kind. + * @member {"page"|"flow"|undefined} kind + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode + * @instance + */ + Object.defineProperty(TransitionNode.prototype, "kind", { + get: $util.oneOfGetter($oneOfFields = ["page", "flow"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new TransitionNode instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode + * @static + * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode} TransitionNode instance + */ + TransitionNode.create = function create(properties) { + return new TransitionNode(properties); + }; + + /** + * Encodes the specified TransitionNode message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode + * @static + * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode} message TransitionNode message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TransitionNode.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.page != null && Object.hasOwnProperty.call(message, "page")) + $root.google.cloud.dialogflow.cx.v3.Page.encode(message.page, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.flow != null && Object.hasOwnProperty.call(message, "flow")) + $root.google.cloud.dialogflow.cx.v3.Flow.encode(message.flow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified TransitionNode message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode + * @static + * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode} message TransitionNode message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TransitionNode.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TransitionNode message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode} TransitionNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TransitionNode.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.page = $root.google.cloud.dialogflow.cx.v3.Page.decode(reader, reader.uint32()); + break; + case 2: + message.flow = $root.google.cloud.dialogflow.cx.v3.Flow.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TransitionNode message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode} TransitionNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TransitionNode.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TransitionNode message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TransitionNode.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.page != null && message.hasOwnProperty("page")) { + properties.kind = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.Page.verify(message.page); + if (error) + return "page." + error; + } + } + if (message.flow != null && message.hasOwnProperty("flow")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.Flow.verify(message.flow); + if (error) + return "flow." + error; + } + } + return null; + }; + + /** + * Creates a TransitionNode message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode} TransitionNode + */ + TransitionNode.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode(); + if (object.page != null) { + if (typeof object.page !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.page: object expected"); + message.page = $root.google.cloud.dialogflow.cx.v3.Page.fromObject(object.page); + } + if (object.flow != null) { + if (typeof object.flow !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.flow: object expected"); + message.flow = $root.google.cloud.dialogflow.cx.v3.Flow.fromObject(object.flow); + } + return message; + }; + + /** + * Creates a plain object from a TransitionNode message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode + * @static + * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode} message TransitionNode + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TransitionNode.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.page != null && message.hasOwnProperty("page")) { + object.page = $root.google.cloud.dialogflow.cx.v3.Page.toObject(message.page, options); + if (options.oneofs) + object.kind = "page"; + } + if (message.flow != null && message.hasOwnProperty("flow")) { + object.flow = $root.google.cloud.dialogflow.cx.v3.Flow.toObject(message.flow, options); + if (options.oneofs) + object.kind = "flow"; + } + return object; + }; + + /** + * Converts this TransitionNode to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode + * @instance + * @returns {Object.} JSON object + */ + TransitionNode.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return TransitionNode; + })(); + + TransitionCoverage.Transition = (function() { + + /** + * Properties of a Transition. + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * @interface ITransition + * @property {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode|null} [source] Transition source + * @property {number|null} [index] Transition index + * @property {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode|null} [target] Transition target + * @property {boolean|null} [covered] Transition covered + * @property {google.cloud.dialogflow.cx.v3.ITransitionRoute|null} [transitionRoute] Transition transitionRoute + * @property {google.cloud.dialogflow.cx.v3.IEventHandler|null} [eventHandler] Transition eventHandler + */ + + /** + * Constructs a new Transition. + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * @classdesc Represents a Transition. + * @implements ITransition + * @constructor + * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition=} [properties] Properties to set + */ + function Transition(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Transition source. + * @member {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode|null|undefined} source + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition + * @instance + */ + Transition.prototype.source = null; + + /** + * Transition index. + * @member {number} index + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition + * @instance + */ + Transition.prototype.index = 0; + + /** + * Transition target. + * @member {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode|null|undefined} target + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition + * @instance + */ + Transition.prototype.target = null; + + /** + * Transition covered. + * @member {boolean} covered + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition + * @instance + */ + Transition.prototype.covered = false; + + /** + * Transition transitionRoute. + * @member {google.cloud.dialogflow.cx.v3.ITransitionRoute|null|undefined} transitionRoute + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition + * @instance + */ + Transition.prototype.transitionRoute = null; - /** - * UpdateExperimentRequest experiment. - * @member {google.cloud.dialogflow.cx.v3.IExperiment|null|undefined} experiment - * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest - * @instance - */ - UpdateExperimentRequest.prototype.experiment = null; + /** + * Transition eventHandler. + * @member {google.cloud.dialogflow.cx.v3.IEventHandler|null|undefined} eventHandler + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition + * @instance + */ + Transition.prototype.eventHandler = null; - /** - * UpdateExperimentRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest - * @instance - */ - UpdateExperimentRequest.prototype.updateMask = null; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Creates a new UpdateExperimentRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.UpdateExperimentRequest} UpdateExperimentRequest instance - */ - UpdateExperimentRequest.create = function create(properties) { - return new UpdateExperimentRequest(properties); - }; + /** + * Transition detail. + * @member {"transitionRoute"|"eventHandler"|undefined} detail + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition + * @instance + */ + Object.defineProperty(Transition.prototype, "detail", { + get: $util.oneOfGetter($oneOfFields = ["transitionRoute", "eventHandler"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Encodes the specified UpdateExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateExperimentRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest} message UpdateExperimentRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateExperimentRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.experiment != null && Object.hasOwnProperty.call(message, "experiment")) - $root.google.cloud.dialogflow.cx.v3.Experiment.encode(message.experiment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Creates a new Transition instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition + * @static + * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition} Transition instance + */ + Transition.create = function create(properties) { + return new Transition(properties); + }; - /** - * Encodes the specified UpdateExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateExperimentRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest} message UpdateExperimentRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Transition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition + * @static + * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition} message Transition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Transition.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.source != null && Object.hasOwnProperty.call(message, "source")) + $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.encode(message.source, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.encode(message.target, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.covered != null && Object.hasOwnProperty.call(message, "covered")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.covered); + if (message.index != null && Object.hasOwnProperty.call(message, "index")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.index); + if (message.transitionRoute != null && Object.hasOwnProperty.call(message, "transitionRoute")) + $root.google.cloud.dialogflow.cx.v3.TransitionRoute.encode(message.transitionRoute, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.eventHandler != null && Object.hasOwnProperty.call(message, "eventHandler")) + $root.google.cloud.dialogflow.cx.v3.EventHandler.encode(message.eventHandler, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; - /** - * Decodes an UpdateExperimentRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.UpdateExperimentRequest} UpdateExperimentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateExperimentRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateExperimentRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.experiment = $root.google.cloud.dialogflow.cx.v3.Experiment.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Encodes the specified Transition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition + * @static + * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition} message Transition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Transition.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Transition message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition} Transition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Transition.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.source = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.decode(reader, reader.uint32()); + break; + case 4: + message.index = reader.int32(); + break; + case 2: + message.target = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.decode(reader, reader.uint32()); + break; + case 3: + message.covered = reader.bool(); + break; + case 5: + message.transitionRoute = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.decode(reader, reader.uint32()); + break; + case 6: + message.eventHandler = $root.google.cloud.dialogflow.cx.v3.EventHandler.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes an UpdateExperimentRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.UpdateExperimentRequest} UpdateExperimentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateExperimentRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a Transition message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition} Transition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Transition.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies an UpdateExperimentRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UpdateExperimentRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.experiment != null && message.hasOwnProperty("experiment")) { - var error = $root.google.cloud.dialogflow.cx.v3.Experiment.verify(message.experiment); - if (error) - return "experiment." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } - return null; - }; + /** + * Verifies a Transition message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Transition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.source != null && message.hasOwnProperty("source")) { + var error = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.verify(message.source); + if (error) + return "source." + error; + } + if (message.index != null && message.hasOwnProperty("index")) + if (!$util.isInteger(message.index)) + return "index: integer expected"; + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.verify(message.target); + if (error) + return "target." + error; + } + if (message.covered != null && message.hasOwnProperty("covered")) + if (typeof message.covered !== "boolean") + return "covered: boolean expected"; + if (message.transitionRoute != null && message.hasOwnProperty("transitionRoute")) { + properties.detail = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.verify(message.transitionRoute); + if (error) + return "transitionRoute." + error; + } + } + if (message.eventHandler != null && message.hasOwnProperty("eventHandler")) { + if (properties.detail === 1) + return "detail: multiple values"; + properties.detail = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.EventHandler.verify(message.eventHandler); + if (error) + return "eventHandler." + error; + } + } + return null; + }; - /** - * Creates an UpdateExperimentRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.UpdateExperimentRequest} UpdateExperimentRequest - */ - UpdateExperimentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateExperimentRequest) + /** + * Creates a Transition message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition} Transition + */ + Transition.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition(); + if (object.source != null) { + if (typeof object.source !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.source: object expected"); + message.source = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.fromObject(object.source); + } + if (object.index != null) + message.index = object.index | 0; + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.target: object expected"); + message.target = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.fromObject(object.target); + } + if (object.covered != null) + message.covered = Boolean(object.covered); + if (object.transitionRoute != null) { + if (typeof object.transitionRoute !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.transitionRoute: object expected"); + message.transitionRoute = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.fromObject(object.transitionRoute); + } + if (object.eventHandler != null) { + if (typeof object.eventHandler !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.eventHandler: object expected"); + message.eventHandler = $root.google.cloud.dialogflow.cx.v3.EventHandler.fromObject(object.eventHandler); + } + return message; + }; + + /** + * Creates a plain object from a Transition message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition + * @static + * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition} message Transition + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Transition.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.source = null; + object.target = null; + object.covered = false; + object.index = 0; + } + if (message.source != null && message.hasOwnProperty("source")) + object.source = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.toObject(message.source, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.toObject(message.target, options); + if (message.covered != null && message.hasOwnProperty("covered")) + object.covered = message.covered; + if (message.index != null && message.hasOwnProperty("index")) + object.index = message.index; + if (message.transitionRoute != null && message.hasOwnProperty("transitionRoute")) { + object.transitionRoute = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.toObject(message.transitionRoute, options); + if (options.oneofs) + object.detail = "transitionRoute"; + } + if (message.eventHandler != null && message.hasOwnProperty("eventHandler")) { + object.eventHandler = $root.google.cloud.dialogflow.cx.v3.EventHandler.toObject(message.eventHandler, options); + if (options.oneofs) + object.detail = "eventHandler"; + } return object; - var message = new $root.google.cloud.dialogflow.cx.v3.UpdateExperimentRequest(); - if (object.experiment != null) { - if (typeof object.experiment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateExperimentRequest.experiment: object expected"); - message.experiment = $root.google.cloud.dialogflow.cx.v3.Experiment.fromObject(object.experiment); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateExperimentRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } - return message; - }; + }; - /** - * Creates a plain object from an UpdateExperimentRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.UpdateExperimentRequest} message UpdateExperimentRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UpdateExperimentRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.experiment = null; - object.updateMask = null; - } - if (message.experiment != null && message.hasOwnProperty("experiment")) - object.experiment = $root.google.cloud.dialogflow.cx.v3.Experiment.toObject(message.experiment, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - return object; - }; + /** + * Converts this Transition to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition + * @instance + * @returns {Object.} JSON object + */ + Transition.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this UpdateExperimentRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest - * @instance - * @returns {Object.} JSON object - */ - UpdateExperimentRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return Transition; + })(); - return UpdateExperimentRequest; + return TransitionCoverage; })(); - v3.DeleteExperimentRequest = (function() { + v3.TransitionRouteGroupCoverage = (function() { /** - * Properties of a DeleteExperimentRequest. + * Properties of a TransitionRouteGroupCoverage. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDeleteExperimentRequest - * @property {string|null} [name] DeleteExperimentRequest name + * @interface ITransitionRouteGroupCoverage + * @property {Array.|null} [coverages] TransitionRouteGroupCoverage coverages + * @property {number|null} [coverageScore] TransitionRouteGroupCoverage coverageScore */ /** - * Constructs a new DeleteExperimentRequest. + * Constructs a new TransitionRouteGroupCoverage. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DeleteExperimentRequest. - * @implements IDeleteExperimentRequest + * @classdesc Represents a TransitionRouteGroupCoverage. + * @implements ITransitionRouteGroupCoverage * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage=} [properties] Properties to set */ - function DeleteExperimentRequest(properties) { + function TransitionRouteGroupCoverage(properties) { + this.coverages = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24706,75 +24098,91 @@ } /** - * DeleteExperimentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest + * TransitionRouteGroupCoverage coverages. + * @member {Array.} coverages + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage * @instance */ - DeleteExperimentRequest.prototype.name = ""; + TransitionRouteGroupCoverage.prototype.coverages = $util.emptyArray; /** - * Creates a new DeleteExperimentRequest instance using the specified properties. + * TransitionRouteGroupCoverage coverageScore. + * @member {number} coverageScore + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage + * @instance + */ + TransitionRouteGroupCoverage.prototype.coverageScore = 0; + + /** + * Creates a new TransitionRouteGroupCoverage instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.DeleteExperimentRequest} DeleteExperimentRequest instance + * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage instance */ - DeleteExperimentRequest.create = function create(properties) { - return new DeleteExperimentRequest(properties); + TransitionRouteGroupCoverage.create = function create(properties) { + return new TransitionRouteGroupCoverage(properties); }; /** - * Encodes the specified DeleteExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteExperimentRequest.verify|verify} messages. + * Encodes the specified TransitionRouteGroupCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest} message DeleteExperimentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage} message TransitionRouteGroupCoverage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteExperimentRequest.encode = function encode(message, writer) { + TransitionRouteGroupCoverage.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.coverages != null && message.coverages.length) + for (var i = 0; i < message.coverages.length; ++i) + $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.encode(message.coverages[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.coverageScore != null && Object.hasOwnProperty.call(message, "coverageScore")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.coverageScore); return writer; }; /** - * Encodes the specified DeleteExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteExperimentRequest.verify|verify} messages. + * Encodes the specified TransitionRouteGroupCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest} message DeleteExperimentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage} message TransitionRouteGroupCoverage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { + TransitionRouteGroupCoverage.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteExperimentRequest message from the specified reader or buffer. + * Decodes a TransitionRouteGroupCoverage message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.DeleteExperimentRequest} DeleteExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteExperimentRequest.decode = function decode(reader, length) { + TransitionRouteGroupCoverage.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteExperimentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.coverages && message.coverages.length)) + message.coverages = []; + message.coverages.push($root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.decode(reader, reader.uint32())); + break; + case 2: + message.coverageScore = reader.float(); break; default: reader.skipType(tag & 7); @@ -24785,294 +24193,609 @@ }; /** - * Decodes a DeleteExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a TransitionRouteGroupCoverage message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.DeleteExperimentRequest} DeleteExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteExperimentRequest.decodeDelimited = function decodeDelimited(reader) { + TransitionRouteGroupCoverage.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteExperimentRequest message. + * Verifies a TransitionRouteGroupCoverage message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteExperimentRequest.verify = function verify(message) { + TransitionRouteGroupCoverage.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.coverages != null && message.hasOwnProperty("coverages")) { + if (!Array.isArray(message.coverages)) + return "coverages: array expected"; + for (var i = 0; i < message.coverages.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.verify(message.coverages[i]); + if (error) + return "coverages." + error; + } + } + if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) + if (typeof message.coverageScore !== "number") + return "coverageScore: number expected"; return null; }; /** - * Creates a DeleteExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TransitionRouteGroupCoverage message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DeleteExperimentRequest} DeleteExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage */ - DeleteExperimentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteExperimentRequest) + TransitionRouteGroupCoverage.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.DeleteExperimentRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage(); + if (object.coverages) { + if (!Array.isArray(object.coverages)) + throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.coverages: array expected"); + message.coverages = []; + for (var i = 0; i < object.coverages.length; ++i) { + if (typeof object.coverages[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.coverages: object expected"); + message.coverages[i] = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.fromObject(object.coverages[i]); + } + } + if (object.coverageScore != null) + message.coverageScore = Number(object.coverageScore); return message; }; /** - * Creates a plain object from a DeleteExperimentRequest message. Also converts values to other types if specified. + * Creates a plain object from a TransitionRouteGroupCoverage message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage * @static - * @param {google.cloud.dialogflow.cx.v3.DeleteExperimentRequest} message DeleteExperimentRequest + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage} message TransitionRouteGroupCoverage * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteExperimentRequest.toObject = function toObject(message, options) { + TransitionRouteGroupCoverage.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.coverages = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.coverageScore = 0; + if (message.coverages && message.coverages.length) { + object.coverages = []; + for (var j = 0; j < message.coverages.length; ++j) + object.coverages[j] = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.toObject(message.coverages[j], options); + } + if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) + object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; return object; }; /** - * Converts this DeleteExperimentRequest to JSON. + * Converts this TransitionRouteGroupCoverage to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage * @instance * @returns {Object.} JSON object */ - DeleteExperimentRequest.prototype.toJSON = function toJSON() { + TransitionRouteGroupCoverage.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteExperimentRequest; - })(); + TransitionRouteGroupCoverage.Coverage = (function() { - v3.StartExperimentRequest = (function() { + /** + * Properties of a Coverage. + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage + * @interface ICoverage + * @property {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null} [routeGroup] Coverage routeGroup + * @property {Array.|null} [transitions] Coverage transitions + * @property {number|null} [coverageScore] Coverage coverageScore + */ - /** - * Properties of a StartExperimentRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IStartExperimentRequest - * @property {string|null} [name] StartExperimentRequest name - */ + /** + * Constructs a new Coverage. + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage + * @classdesc Represents a Coverage. + * @implements ICoverage + * @constructor + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage=} [properties] Properties to set + */ + function Coverage(properties) { + this.transitions = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new StartExperimentRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a StartExperimentRequest. - * @implements IStartExperimentRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IStartExperimentRequest=} [properties] Properties to set - */ - function StartExperimentRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Coverage routeGroup. + * @member {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null|undefined} routeGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage + * @instance + */ + Coverage.prototype.routeGroup = null; - /** - * StartExperimentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest - * @instance - */ - StartExperimentRequest.prototype.name = ""; + /** + * Coverage transitions. + * @member {Array.} transitions + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage + * @instance + */ + Coverage.prototype.transitions = $util.emptyArray; - /** - * Creates a new StartExperimentRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IStartExperimentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.StartExperimentRequest} StartExperimentRequest instance - */ - StartExperimentRequest.create = function create(properties) { - return new StartExperimentRequest(properties); - }; + /** + * Coverage coverageScore. + * @member {number} coverageScore + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage + * @instance + */ + Coverage.prototype.coverageScore = 0; - /** - * Encodes the specified StartExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StartExperimentRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IStartExperimentRequest} message StartExperimentRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StartExperimentRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; + /** + * Creates a new Coverage instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage + * @static + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage} Coverage instance + */ + Coverage.create = function create(properties) { + return new Coverage(properties); + }; + + /** + * Encodes the specified Coverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage + * @static + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage} message Coverage message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Coverage.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.routeGroup != null && Object.hasOwnProperty.call(message, "routeGroup")) + $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.encode(message.routeGroup, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.transitions != null && message.transitions.length) + for (var i = 0; i < message.transitions.length; ++i) + $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.encode(message.transitions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.coverageScore != null && Object.hasOwnProperty.call(message, "coverageScore")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.coverageScore); + return writer; + }; + + /** + * Encodes the specified Coverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage + * @static + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage} message Coverage message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Coverage.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Coverage message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage} Coverage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Coverage.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.routeGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.decode(reader, reader.uint32()); + break; + case 2: + if (!(message.transitions && message.transitions.length)) + message.transitions = []; + message.transitions.push($root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.decode(reader, reader.uint32())); + break; + case 3: + message.coverageScore = reader.float(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Coverage message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage} Coverage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Coverage.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Coverage message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Coverage.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.routeGroup != null && message.hasOwnProperty("routeGroup")) { + var error = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify(message.routeGroup); + if (error) + return "routeGroup." + error; + } + if (message.transitions != null && message.hasOwnProperty("transitions")) { + if (!Array.isArray(message.transitions)) + return "transitions: array expected"; + for (var i = 0; i < message.transitions.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.verify(message.transitions[i]); + if (error) + return "transitions." + error; + } + } + if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) + if (typeof message.coverageScore !== "number") + return "coverageScore: number expected"; + return null; + }; + + /** + * Creates a Coverage message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage} Coverage + */ + Coverage.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage(); + if (object.routeGroup != null) { + if (typeof object.routeGroup !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.routeGroup: object expected"); + message.routeGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.fromObject(object.routeGroup); + } + if (object.transitions) { + if (!Array.isArray(object.transitions)) + throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.transitions: array expected"); + message.transitions = []; + for (var i = 0; i < object.transitions.length; ++i) { + if (typeof object.transitions[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.transitions: object expected"); + message.transitions[i] = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.fromObject(object.transitions[i]); + } + } + if (object.coverageScore != null) + message.coverageScore = Number(object.coverageScore); + return message; + }; + + /** + * Creates a plain object from a Coverage message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage + * @static + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage} message Coverage + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Coverage.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.transitions = []; + if (options.defaults) { + object.routeGroup = null; + object.coverageScore = 0; + } + if (message.routeGroup != null && message.hasOwnProperty("routeGroup")) + object.routeGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.toObject(message.routeGroup, options); + if (message.transitions && message.transitions.length) { + object.transitions = []; + for (var j = 0; j < message.transitions.length; ++j) + object.transitions[j] = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.toObject(message.transitions[j], options); + } + if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) + object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; + return object; + }; + + /** + * Converts this Coverage to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage + * @instance + * @returns {Object.} JSON object + */ + Coverage.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + Coverage.Transition = (function() { + + /** + * Properties of a Transition. + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage + * @interface ITransition + * @property {google.cloud.dialogflow.cx.v3.ITransitionRoute|null} [transitionRoute] Transition transitionRoute + * @property {boolean|null} [covered] Transition covered + */ + + /** + * Constructs a new Transition. + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage + * @classdesc Represents a Transition. + * @implements ITransition + * @constructor + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition=} [properties] Properties to set + */ + function Transition(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Transition transitionRoute. + * @member {google.cloud.dialogflow.cx.v3.ITransitionRoute|null|undefined} transitionRoute + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition + * @instance + */ + Transition.prototype.transitionRoute = null; + + /** + * Transition covered. + * @member {boolean} covered + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition + * @instance + */ + Transition.prototype.covered = false; + + /** + * Creates a new Transition instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition + * @static + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition} Transition instance + */ + Transition.create = function create(properties) { + return new Transition(properties); + }; + + /** + * Encodes the specified Transition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition + * @static + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition} message Transition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Transition.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.transitionRoute != null && Object.hasOwnProperty.call(message, "transitionRoute")) + $root.google.cloud.dialogflow.cx.v3.TransitionRoute.encode(message.transitionRoute, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.covered != null && Object.hasOwnProperty.call(message, "covered")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.covered); + return writer; + }; + + /** + * Encodes the specified Transition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition + * @static + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition} message Transition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Transition.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Transition message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition} Transition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Transition.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.transitionRoute = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.decode(reader, reader.uint32()); + break; + case 2: + message.covered = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified StartExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StartExperimentRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IStartExperimentRequest} message StartExperimentRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StartExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a Transition message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition} Transition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Transition.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a StartExperimentRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.StartExperimentRequest} StartExperimentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StartExperimentRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.StartExperimentRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Verifies a Transition message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Transition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.transitionRoute != null && message.hasOwnProperty("transitionRoute")) { + var error = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.verify(message.transitionRoute); + if (error) + return "transitionRoute." + error; + } + if (message.covered != null && message.hasOwnProperty("covered")) + if (typeof message.covered !== "boolean") + return "covered: boolean expected"; + return null; + }; - /** - * Decodes a StartExperimentRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.StartExperimentRequest} StartExperimentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StartExperimentRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a Transition message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition} Transition + */ + Transition.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition(); + if (object.transitionRoute != null) { + if (typeof object.transitionRoute !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.transitionRoute: object expected"); + message.transitionRoute = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.fromObject(object.transitionRoute); + } + if (object.covered != null) + message.covered = Boolean(object.covered); + return message; + }; - /** - * Verifies a StartExperimentRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StartExperimentRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; + /** + * Creates a plain object from a Transition message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition + * @static + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition} message Transition + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Transition.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.transitionRoute = null; + object.covered = false; + } + if (message.transitionRoute != null && message.hasOwnProperty("transitionRoute")) + object.transitionRoute = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.toObject(message.transitionRoute, options); + if (message.covered != null && message.hasOwnProperty("covered")) + object.covered = message.covered; + return object; + }; - /** - * Creates a StartExperimentRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.StartExperimentRequest} StartExperimentRequest - */ - StartExperimentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.StartExperimentRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.StartExperimentRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + /** + * Converts this Transition to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition + * @instance + * @returns {Object.} JSON object + */ + Transition.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a plain object from a StartExperimentRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.StartExperimentRequest} message StartExperimentRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - StartExperimentRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + return Transition; + })(); - /** - * Converts this StartExperimentRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest - * @instance - * @returns {Object.} JSON object - */ - StartExperimentRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return Coverage; + })(); - return StartExperimentRequest; + return TransitionRouteGroupCoverage; })(); - v3.StopExperimentRequest = (function() { + v3.IntentCoverage = (function() { /** - * Properties of a StopExperimentRequest. + * Properties of an IntentCoverage. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IStopExperimentRequest - * @property {string|null} [name] StopExperimentRequest name + * @interface IIntentCoverage + * @property {Array.|null} [intents] IntentCoverage intents + * @property {number|null} [coverageScore] IntentCoverage coverageScore */ /** - * Constructs a new StopExperimentRequest. + * Constructs a new IntentCoverage. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a StopExperimentRequest. - * @implements IStopExperimentRequest + * @classdesc Represents an IntentCoverage. + * @implements IIntentCoverage * @constructor - * @param {google.cloud.dialogflow.cx.v3.IStopExperimentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IIntentCoverage=} [properties] Properties to set */ - function StopExperimentRequest(properties) { + function IntentCoverage(properties) { + this.intents = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25080,75 +24803,91 @@ } /** - * StopExperimentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest + * IntentCoverage intents. + * @member {Array.} intents + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage * @instance */ - StopExperimentRequest.prototype.name = ""; + IntentCoverage.prototype.intents = $util.emptyArray; /** - * Creates a new StopExperimentRequest instance using the specified properties. + * IntentCoverage coverageScore. + * @member {number} coverageScore + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage + * @instance + */ + IntentCoverage.prototype.coverageScore = 0; + + /** + * Creates a new IntentCoverage instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage * @static - * @param {google.cloud.dialogflow.cx.v3.IStopExperimentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.StopExperimentRequest} StopExperimentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IIntentCoverage=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.IntentCoverage} IntentCoverage instance */ - StopExperimentRequest.create = function create(properties) { - return new StopExperimentRequest(properties); + IntentCoverage.create = function create(properties) { + return new IntentCoverage(properties); }; /** - * Encodes the specified StopExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StopExperimentRequest.verify|verify} messages. + * Encodes the specified IntentCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentCoverage.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage * @static - * @param {google.cloud.dialogflow.cx.v3.IStopExperimentRequest} message StopExperimentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IIntentCoverage} message IntentCoverage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StopExperimentRequest.encode = function encode(message, writer) { + IntentCoverage.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.intents != null && message.intents.length) + for (var i = 0; i < message.intents.length; ++i) + $root.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent.encode(message.intents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.coverageScore != null && Object.hasOwnProperty.call(message, "coverageScore")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.coverageScore); return writer; }; /** - * Encodes the specified StopExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StopExperimentRequest.verify|verify} messages. + * Encodes the specified IntentCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentCoverage.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage * @static - * @param {google.cloud.dialogflow.cx.v3.IStopExperimentRequest} message StopExperimentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IIntentCoverage} message IntentCoverage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StopExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { + IntentCoverage.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StopExperimentRequest message from the specified reader or buffer. + * Decodes an IntentCoverage message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.StopExperimentRequest} StopExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3.IntentCoverage} IntentCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopExperimentRequest.decode = function decode(reader, length) { + IntentCoverage.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.StopExperimentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.IntentCoverage(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.intents && message.intents.length)) + message.intents = []; + message.intents.push($root.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent.decode(reader, reader.uint32())); + break; + case 2: + message.coverageScore = reader.float(); break; default: reader.skipType(tag & 7); @@ -25159,317 +24898,344 @@ }; /** - * Decodes a StopExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes an IntentCoverage message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.StopExperimentRequest} StopExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3.IntentCoverage} IntentCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopExperimentRequest.decodeDelimited = function decodeDelimited(reader) { + IntentCoverage.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StopExperimentRequest message. + * Verifies an IntentCoverage message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StopExperimentRequest.verify = function verify(message) { + IntentCoverage.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.intents != null && message.hasOwnProperty("intents")) { + if (!Array.isArray(message.intents)) + return "intents: array expected"; + for (var i = 0; i < message.intents.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent.verify(message.intents[i]); + if (error) + return "intents." + error; + } + } + if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) + if (typeof message.coverageScore !== "number") + return "coverageScore: number expected"; return null; }; /** - * Creates a StopExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates an IntentCoverage message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.StopExperimentRequest} StopExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3.IntentCoverage} IntentCoverage */ - StopExperimentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.StopExperimentRequest) + IntentCoverage.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.IntentCoverage) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.StopExperimentRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3.IntentCoverage(); + if (object.intents) { + if (!Array.isArray(object.intents)) + throw TypeError(".google.cloud.dialogflow.cx.v3.IntentCoverage.intents: array expected"); + message.intents = []; + for (var i = 0; i < object.intents.length; ++i) { + if (typeof object.intents[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.IntentCoverage.intents: object expected"); + message.intents[i] = $root.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent.fromObject(object.intents[i]); + } + } + if (object.coverageScore != null) + message.coverageScore = Number(object.coverageScore); return message; }; /** - * Creates a plain object from a StopExperimentRequest message. Also converts values to other types if specified. + * Creates a plain object from an IntentCoverage message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage * @static - * @param {google.cloud.dialogflow.cx.v3.StopExperimentRequest} message StopExperimentRequest + * @param {google.cloud.dialogflow.cx.v3.IntentCoverage} message IntentCoverage * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StopExperimentRequest.toObject = function toObject(message, options) { + IntentCoverage.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.intents = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.coverageScore = 0; + if (message.intents && message.intents.length) { + object.intents = []; + for (var j = 0; j < message.intents.length; ++j) + object.intents[j] = $root.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent.toObject(message.intents[j], options); + } + if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) + object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; return object; }; /** - * Converts this StopExperimentRequest to JSON. + * Converts this IntentCoverage to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage * @instance * @returns {Object.} JSON object */ - StopExperimentRequest.prototype.toJSON = function toJSON() { + IntentCoverage.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StopExperimentRequest; - })(); - - v3.Intents = (function() { - - /** - * Constructs a new Intents service. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an Intents - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Intents(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Intents.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Intents; - - /** - * Creates new Intents service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Intents - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {Intents} RPC service. Useful where requests and/or responses are streamed. - */ - Intents.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#listIntents}. - * @memberof google.cloud.dialogflow.cx.v3.Intents - * @typedef ListIntentsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.ListIntentsResponse} [response] ListIntentsResponse - */ - - /** - * Calls ListIntents. - * @function listIntents - * @memberof google.cloud.dialogflow.cx.v3.Intents - * @instance - * @param {google.cloud.dialogflow.cx.v3.IListIntentsRequest} request ListIntentsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Intents.ListIntentsCallback} callback Node-style callback called with the error, if any, and ListIntentsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Intents.prototype.listIntents = function listIntents(request, callback) { - return this.rpcCall(listIntents, $root.google.cloud.dialogflow.cx.v3.ListIntentsRequest, $root.google.cloud.dialogflow.cx.v3.ListIntentsResponse, request, callback); - }, "name", { value: "ListIntents" }); + IntentCoverage.Intent = (function() { - /** - * Calls ListIntents. - * @function listIntents - * @memberof google.cloud.dialogflow.cx.v3.Intents - * @instance - * @param {google.cloud.dialogflow.cx.v3.IListIntentsRequest} request ListIntentsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Properties of an Intent. + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage + * @interface IIntent + * @property {string|null} [intent] Intent intent + * @property {boolean|null} [covered] Intent covered + */ - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#getIntent}. - * @memberof google.cloud.dialogflow.cx.v3.Intents - * @typedef GetIntentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.Intent} [response] Intent - */ + /** + * Constructs a new Intent. + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage + * @classdesc Represents an Intent. + * @implements IIntent + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent=} [properties] Properties to set + */ + function Intent(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Calls GetIntent. - * @function getIntent - * @memberof google.cloud.dialogflow.cx.v3.Intents - * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetIntentRequest} request GetIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Intents.GetIntentCallback} callback Node-style callback called with the error, if any, and Intent - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Intents.prototype.getIntent = function getIntent(request, callback) { - return this.rpcCall(getIntent, $root.google.cloud.dialogflow.cx.v3.GetIntentRequest, $root.google.cloud.dialogflow.cx.v3.Intent, request, callback); - }, "name", { value: "GetIntent" }); + /** + * Intent intent. + * @member {string} intent + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent + * @instance + */ + Intent.prototype.intent = ""; - /** - * Calls GetIntent. - * @function getIntent - * @memberof google.cloud.dialogflow.cx.v3.Intents - * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetIntentRequest} request GetIntentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Intent covered. + * @member {boolean} covered + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent + * @instance + */ + Intent.prototype.covered = false; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#createIntent}. - * @memberof google.cloud.dialogflow.cx.v3.Intents - * @typedef CreateIntentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.Intent} [response] Intent - */ + /** + * Creates a new Intent instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent + * @static + * @param {google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.IntentCoverage.Intent} Intent instance + */ + Intent.create = function create(properties) { + return new Intent(properties); + }; - /** - * Calls CreateIntent. - * @function createIntent - * @memberof google.cloud.dialogflow.cx.v3.Intents - * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateIntentRequest} request CreateIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Intents.CreateIntentCallback} callback Node-style callback called with the error, if any, and Intent - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Intents.prototype.createIntent = function createIntent(request, callback) { - return this.rpcCall(createIntent, $root.google.cloud.dialogflow.cx.v3.CreateIntentRequest, $root.google.cloud.dialogflow.cx.v3.Intent, request, callback); - }, "name", { value: "CreateIntent" }); + /** + * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentCoverage.Intent.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent + * @static + * @param {google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent} message Intent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Intent.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.intent); + if (message.covered != null && Object.hasOwnProperty.call(message, "covered")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.covered); + return writer; + }; - /** - * Calls CreateIntent. - * @function createIntent - * @memberof google.cloud.dialogflow.cx.v3.Intents - * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateIntentRequest} request CreateIntentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Encodes the specified Intent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentCoverage.Intent.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent + * @static + * @param {google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent} message Intent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Intent.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#updateIntent}. - * @memberof google.cloud.dialogflow.cx.v3.Intents - * @typedef UpdateIntentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.Intent} [response] Intent - */ + /** + * Decodes an Intent message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.IntentCoverage.Intent} Intent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Intent.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.intent = reader.string(); + break; + case 2: + message.covered = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Calls UpdateIntent. - * @function updateIntent - * @memberof google.cloud.dialogflow.cx.v3.Intents - * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateIntentRequest} request UpdateIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Intents.UpdateIntentCallback} callback Node-style callback called with the error, if any, and Intent - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Intents.prototype.updateIntent = function updateIntent(request, callback) { - return this.rpcCall(updateIntent, $root.google.cloud.dialogflow.cx.v3.UpdateIntentRequest, $root.google.cloud.dialogflow.cx.v3.Intent, request, callback); - }, "name", { value: "UpdateIntent" }); + /** + * Decodes an Intent message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.IntentCoverage.Intent} Intent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Intent.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Calls UpdateIntent. - * @function updateIntent - * @memberof google.cloud.dialogflow.cx.v3.Intents - * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateIntentRequest} request UpdateIntentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Verifies an Intent message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Intent.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.intent != null && message.hasOwnProperty("intent")) + if (!$util.isString(message.intent)) + return "intent: string expected"; + if (message.covered != null && message.hasOwnProperty("covered")) + if (typeof message.covered !== "boolean") + return "covered: boolean expected"; + return null; + }; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#deleteIntent}. - * @memberof google.cloud.dialogflow.cx.v3.Intents - * @typedef DeleteIntentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty - */ + /** + * Creates an Intent message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.IntentCoverage.Intent} Intent + */ + Intent.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent(); + if (object.intent != null) + message.intent = String(object.intent); + if (object.covered != null) + message.covered = Boolean(object.covered); + return message; + }; - /** - * Calls DeleteIntent. - * @function deleteIntent - * @memberof google.cloud.dialogflow.cx.v3.Intents - * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteIntentRequest} request DeleteIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Intents.DeleteIntentCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Intents.prototype.deleteIntent = function deleteIntent(request, callback) { - return this.rpcCall(deleteIntent, $root.google.cloud.dialogflow.cx.v3.DeleteIntentRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteIntent" }); + /** + * Creates a plain object from an Intent message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent + * @static + * @param {google.cloud.dialogflow.cx.v3.IntentCoverage.Intent} message Intent + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Intent.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.intent = ""; + object.covered = false; + } + if (message.intent != null && message.hasOwnProperty("intent")) + object.intent = message.intent; + if (message.covered != null && message.hasOwnProperty("covered")) + object.covered = message.covered; + return object; + }; - /** - * Calls DeleteIntent. - * @function deleteIntent - * @memberof google.cloud.dialogflow.cx.v3.Intents - * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteIntentRequest} request DeleteIntentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Converts this Intent to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent + * @instance + * @returns {Object.} JSON object + */ + Intent.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Intents; + return Intent; + })(); + + return IntentCoverage; })(); - v3.Intent = (function() { + v3.CalculateCoverageRequest = (function() { /** - * Properties of an Intent. + * Properties of a CalculateCoverageRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IIntent - * @property {string|null} [name] Intent name - * @property {string|null} [displayName] Intent displayName - * @property {Array.|null} [trainingPhrases] Intent trainingPhrases - * @property {Array.|null} [parameters] Intent parameters - * @property {number|null} [priority] Intent priority - * @property {boolean|null} [isFallback] Intent isFallback - * @property {Object.|null} [labels] Intent labels - * @property {string|null} [description] Intent description + * @interface ICalculateCoverageRequest + * @property {string|null} [agent] CalculateCoverageRequest agent + * @property {google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType|null} [type] CalculateCoverageRequest type */ /** - * Constructs a new Intent. + * Constructs a new CalculateCoverageRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an Intent. - * @implements IIntent + * @classdesc Represents a CalculateCoverageRequest. + * @implements ICalculateCoverageRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IIntent=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest=} [properties] Properties to set */ - function Intent(properties) { - this.trainingPhrases = []; - this.parameters = []; - this.labels = {}; + function CalculateCoverageRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25477,192 +25243,88 @@ } /** - * Intent name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.Intent - * @instance - */ - Intent.prototype.name = ""; - - /** - * Intent displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3.Intent - * @instance - */ - Intent.prototype.displayName = ""; - - /** - * Intent trainingPhrases. - * @member {Array.} trainingPhrases - * @memberof google.cloud.dialogflow.cx.v3.Intent - * @instance - */ - Intent.prototype.trainingPhrases = $util.emptyArray; - - /** - * Intent parameters. - * @member {Array.} parameters - * @memberof google.cloud.dialogflow.cx.v3.Intent - * @instance - */ - Intent.prototype.parameters = $util.emptyArray; - - /** - * Intent priority. - * @member {number} priority - * @memberof google.cloud.dialogflow.cx.v3.Intent - * @instance - */ - Intent.prototype.priority = 0; - - /** - * Intent isFallback. - * @member {boolean} isFallback - * @memberof google.cloud.dialogflow.cx.v3.Intent - * @instance - */ - Intent.prototype.isFallback = false; - - /** - * Intent labels. - * @member {Object.} labels - * @memberof google.cloud.dialogflow.cx.v3.Intent + * CalculateCoverageRequest agent. + * @member {string} agent + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest * @instance */ - Intent.prototype.labels = $util.emptyObject; + CalculateCoverageRequest.prototype.agent = ""; /** - * Intent description. - * @member {string} description - * @memberof google.cloud.dialogflow.cx.v3.Intent + * CalculateCoverageRequest type. + * @member {google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType} type + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest * @instance */ - Intent.prototype.description = ""; + CalculateCoverageRequest.prototype.type = 0; /** - * Creates a new Intent instance using the specified properties. + * Creates a new CalculateCoverageRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.Intent + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IIntent=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Intent} Intent instance + * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CalculateCoverageRequest} CalculateCoverageRequest instance */ - Intent.create = function create(properties) { - return new Intent(properties); + CalculateCoverageRequest.create = function create(properties) { + return new CalculateCoverageRequest(properties); }; /** - * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.verify|verify} messages. + * Encodes the specified CalculateCoverageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Intent + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IIntent} message Intent message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest} message CalculateCoverageRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Intent.encode = function encode(message, writer) { + CalculateCoverageRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.trainingPhrases != null && message.trainingPhrases.length) - for (var i = 0; i < message.trainingPhrases.length; ++i) - $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.encode(message.trainingPhrases[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.parameters != null && message.parameters.length) - for (var i = 0; i < message.parameters.length; ++i) - $root.google.cloud.dialogflow.cx.v3.Intent.Parameter.encode(message.parameters[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.priority != null && Object.hasOwnProperty.call(message, "priority")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.priority); - if (message.isFallback != null && Object.hasOwnProperty.call(message, "isFallback")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isFallback); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.description); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); + if (message.agent != null && Object.hasOwnProperty.call(message, "agent")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.agent); return writer; }; /** - * Encodes the specified Intent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.verify|verify} messages. + * Encodes the specified CalculateCoverageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Intent + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IIntent} message Intent message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest} message CalculateCoverageRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Intent.encodeDelimited = function encodeDelimited(message, writer) { + CalculateCoverageRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Intent message from the specified reader or buffer. + * Decodes a CalculateCoverageRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Intent + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.Intent} Intent + * @returns {google.cloud.dialogflow.cx.v3.CalculateCoverageRequest} CalculateCoverageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Intent.decode = function decode(reader, length) { + CalculateCoverageRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Intent(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.displayName = reader.string(); - break; case 3: - if (!(message.trainingPhrases && message.trainingPhrases.length)) - message.trainingPhrases = []; - message.trainingPhrases.push($root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.decode(reader, reader.uint32())); - break; - case 4: - if (!(message.parameters && message.parameters.length)) - message.parameters = []; - message.parameters.push($root.google.cloud.dialogflow.cx.v3.Intent.Parameter.decode(reader, reader.uint32())); - break; - case 5: - message.priority = reader.int32(); - break; - case 6: - message.isFallback = reader.bool(); - break; - case 7: - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; + message.agent = reader.string(); break; - case 8: - message.description = reader.string(); + case 2: + message.type = reader.int32(); break; default: reader.skipType(tag & 7); @@ -25673,937 +25335,980 @@ }; /** - * Decodes an Intent message from the specified reader or buffer, length delimited. + * Decodes a CalculateCoverageRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Intent + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Intent} Intent + * @returns {google.cloud.dialogflow.cx.v3.CalculateCoverageRequest} CalculateCoverageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Intent.decodeDelimited = function decodeDelimited(reader) { + CalculateCoverageRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an Intent message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Intent - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Intent.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.trainingPhrases != null && message.hasOwnProperty("trainingPhrases")) { - if (!Array.isArray(message.trainingPhrases)) - return "trainingPhrases: array expected"; - for (var i = 0; i < message.trainingPhrases.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.verify(message.trainingPhrases[i]); - if (error) - return "trainingPhrases." + error; - } - } - if (message.parameters != null && message.hasOwnProperty("parameters")) { - if (!Array.isArray(message.parameters)) - return "parameters: array expected"; - for (var i = 0; i < message.parameters.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.Intent.Parameter.verify(message.parameters[i]); - if (error) - return "parameters." + error; + }; + + /** + * Verifies a CalculateCoverageRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CalculateCoverageRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.agent != null && message.hasOwnProperty("agent")) + if (!$util.isString(message.agent)) + return "agent: string expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; } - } - if (message.priority != null && message.hasOwnProperty("priority")) - if (!$util.isInteger(message.priority)) - return "priority: integer expected"; - if (message.isFallback != null && message.hasOwnProperty("isFallback")) - if (typeof message.isFallback !== "boolean") - return "isFallback: boolean expected"; - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; return null; }; /** - * Creates an Intent message from a plain object. Also converts values to their respective internal types. + * Creates a CalculateCoverageRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Intent + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Intent} Intent + * @returns {google.cloud.dialogflow.cx.v3.CalculateCoverageRequest} CalculateCoverageRequest */ - Intent.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Intent) + CalculateCoverageRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Intent(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.trainingPhrases) { - if (!Array.isArray(object.trainingPhrases)) - throw TypeError(".google.cloud.dialogflow.cx.v3.Intent.trainingPhrases: array expected"); - message.trainingPhrases = []; - for (var i = 0; i < object.trainingPhrases.length; ++i) { - if (typeof object.trainingPhrases[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Intent.trainingPhrases: object expected"); - message.trainingPhrases[i] = $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.fromObject(object.trainingPhrases[i]); - } - } - if (object.parameters) { - if (!Array.isArray(object.parameters)) - throw TypeError(".google.cloud.dialogflow.cx.v3.Intent.parameters: array expected"); - message.parameters = []; - for (var i = 0; i < object.parameters.length; ++i) { - if (typeof object.parameters[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Intent.parameters: object expected"); - message.parameters[i] = $root.google.cloud.dialogflow.cx.v3.Intent.Parameter.fromObject(object.parameters[i]); - } - } - if (object.priority != null) - message.priority = object.priority | 0; - if (object.isFallback != null) - message.isFallback = Boolean(object.isFallback); - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Intent.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); + var message = new $root.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest(); + if (object.agent != null) + message.agent = String(object.agent); + switch (object.type) { + case "COVERAGE_TYPE_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "INTENT": + case 1: + message.type = 1; + break; + case "PAGE_TRANSITION": + case 2: + message.type = 2; + break; + case "TRANSITION_ROUTE_GROUP": + case 3: + message.type = 3; + break; } - if (object.description != null) - message.description = String(object.description); return message; }; /** - * Creates a plain object from an Intent message. Also converts values to other types if specified. + * Creates a plain object from a CalculateCoverageRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Intent + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest * @static - * @param {google.cloud.dialogflow.cx.v3.Intent} message Intent + * @param {google.cloud.dialogflow.cx.v3.CalculateCoverageRequest} message CalculateCoverageRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Intent.toObject = function toObject(message, options) { + CalculateCoverageRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.trainingPhrases = []; - object.parameters = []; - } - if (options.objects || options.defaults) - object.labels = {}; if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.priority = 0; - object.isFallback = false; - object.description = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.trainingPhrases && message.trainingPhrases.length) { - object.trainingPhrases = []; - for (var j = 0; j < message.trainingPhrases.length; ++j) - object.trainingPhrases[j] = $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.toObject(message.trainingPhrases[j], options); - } - if (message.parameters && message.parameters.length) { - object.parameters = []; - for (var j = 0; j < message.parameters.length; ++j) - object.parameters[j] = $root.google.cloud.dialogflow.cx.v3.Intent.Parameter.toObject(message.parameters[j], options); - } - if (message.priority != null && message.hasOwnProperty("priority")) - object.priority = message.priority; - if (message.isFallback != null && message.hasOwnProperty("isFallback")) - object.isFallback = message.isFallback; - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; + object.type = options.enums === String ? "COVERAGE_TYPE_UNSPECIFIED" : 0; + object.agent = ""; } - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType[message.type] : message.type; + if (message.agent != null && message.hasOwnProperty("agent")) + object.agent = message.agent; return object; }; /** - * Converts this Intent to JSON. + * Converts this CalculateCoverageRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Intent + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest * @instance * @returns {Object.} JSON object */ - Intent.prototype.toJSON = function toJSON() { + CalculateCoverageRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - Intent.TrainingPhrase = (function() { + /** + * CoverageType enum. + * @name google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType + * @enum {number} + * @property {number} COVERAGE_TYPE_UNSPECIFIED=0 COVERAGE_TYPE_UNSPECIFIED value + * @property {number} INTENT=1 INTENT value + * @property {number} PAGE_TRANSITION=2 PAGE_TRANSITION value + * @property {number} TRANSITION_ROUTE_GROUP=3 TRANSITION_ROUTE_GROUP value + */ + CalculateCoverageRequest.CoverageType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "COVERAGE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "INTENT"] = 1; + values[valuesById[2] = "PAGE_TRANSITION"] = 2; + values[valuesById[3] = "TRANSITION_ROUTE_GROUP"] = 3; + return values; + })(); - /** - * Properties of a TrainingPhrase. - * @memberof google.cloud.dialogflow.cx.v3.Intent - * @interface ITrainingPhrase - * @property {string|null} [id] TrainingPhrase id - * @property {Array.|null} [parts] TrainingPhrase parts - * @property {number|null} [repeatCount] TrainingPhrase repeatCount - */ + return CalculateCoverageRequest; + })(); - /** - * Constructs a new TrainingPhrase. - * @memberof google.cloud.dialogflow.cx.v3.Intent - * @classdesc Represents a TrainingPhrase. - * @implements ITrainingPhrase - * @constructor - * @param {google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase=} [properties] Properties to set - */ - function TrainingPhrase(properties) { - this.parts = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v3.CalculateCoverageResponse = (function() { - /** - * TrainingPhrase id. - * @member {string} id - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase - * @instance - */ - TrainingPhrase.prototype.id = ""; + /** + * Properties of a CalculateCoverageResponse. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface ICalculateCoverageResponse + * @property {string|null} [agent] CalculateCoverageResponse agent + * @property {google.cloud.dialogflow.cx.v3.IIntentCoverage|null} [intentCoverage] CalculateCoverageResponse intentCoverage + * @property {google.cloud.dialogflow.cx.v3.ITransitionCoverage|null} [transitionCoverage] CalculateCoverageResponse transitionCoverage + * @property {google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage|null} [routeGroupCoverage] CalculateCoverageResponse routeGroupCoverage + */ - /** - * TrainingPhrase parts. - * @member {Array.} parts - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase - * @instance - */ - TrainingPhrase.prototype.parts = $util.emptyArray; + /** + * Constructs a new CalculateCoverageResponse. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a CalculateCoverageResponse. + * @implements ICalculateCoverageResponse + * @constructor + * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageResponse=} [properties] Properties to set + */ + function CalculateCoverageResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * TrainingPhrase repeatCount. - * @member {number} repeatCount - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase - * @instance - */ - TrainingPhrase.prototype.repeatCount = 0; + /** + * CalculateCoverageResponse agent. + * @member {string} agent + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * @instance + */ + CalculateCoverageResponse.prototype.agent = ""; - /** - * Creates a new TrainingPhrase instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase - * @static - * @param {google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase} TrainingPhrase instance - */ - TrainingPhrase.create = function create(properties) { - return new TrainingPhrase(properties); - }; + /** + * CalculateCoverageResponse intentCoverage. + * @member {google.cloud.dialogflow.cx.v3.IIntentCoverage|null|undefined} intentCoverage + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * @instance + */ + CalculateCoverageResponse.prototype.intentCoverage = null; - /** - * Encodes the specified TrainingPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase - * @static - * @param {google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase} message TrainingPhrase message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TrainingPhrase.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.parts != null && message.parts.length) - for (var i = 0; i < message.parts.length; ++i) - $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.encode(message.parts[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.repeatCount != null && Object.hasOwnProperty.call(message, "repeatCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.repeatCount); - return writer; - }; + /** + * CalculateCoverageResponse transitionCoverage. + * @member {google.cloud.dialogflow.cx.v3.ITransitionCoverage|null|undefined} transitionCoverage + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * @instance + */ + CalculateCoverageResponse.prototype.transitionCoverage = null; - /** - * Encodes the specified TrainingPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase - * @static - * @param {google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase} message TrainingPhrase message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TrainingPhrase.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * CalculateCoverageResponse routeGroupCoverage. + * @member {google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage|null|undefined} routeGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * @instance + */ + CalculateCoverageResponse.prototype.routeGroupCoverage = null; - /** - * Decodes a TrainingPhrase message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase} TrainingPhrase - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TrainingPhrase.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - if (!(message.parts && message.parts.length)) - message.parts = []; - message.parts.push($root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.decode(reader, reader.uint32())); - break; - case 3: - message.repeatCount = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Decodes a TrainingPhrase message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase} TrainingPhrase - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TrainingPhrase.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * CalculateCoverageResponse coverageType. + * @member {"intentCoverage"|"transitionCoverage"|"routeGroupCoverage"|undefined} coverageType + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * @instance + */ + Object.defineProperty(CalculateCoverageResponse.prototype, "coverageType", { + get: $util.oneOfGetter($oneOfFields = ["intentCoverage", "transitionCoverage", "routeGroupCoverage"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Verifies a TrainingPhrase message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TrainingPhrase.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.parts != null && message.hasOwnProperty("parts")) { - if (!Array.isArray(message.parts)) - return "parts: array expected"; - for (var i = 0; i < message.parts.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.verify(message.parts[i]); - if (error) - return "parts." + error; - } - } - if (message.repeatCount != null && message.hasOwnProperty("repeatCount")) - if (!$util.isInteger(message.repeatCount)) - return "repeatCount: integer expected"; - return null; - }; + /** + * Creates a new CalculateCoverageResponse instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CalculateCoverageResponse} CalculateCoverageResponse instance + */ + CalculateCoverageResponse.create = function create(properties) { + return new CalculateCoverageResponse(properties); + }; - /** - * Creates a TrainingPhrase message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase} TrainingPhrase - */ - TrainingPhrase.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase(); - if (object.id != null) - message.id = String(object.id); - if (object.parts) { - if (!Array.isArray(object.parts)) - throw TypeError(".google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.parts: array expected"); - message.parts = []; - for (var i = 0; i < object.parts.length; ++i) { - if (typeof object.parts[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.parts: object expected"); - message.parts[i] = $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.fromObject(object.parts[i]); - } + /** + * Encodes the specified CalculateCoverageResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CalculateCoverageResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageResponse} message CalculateCoverageResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CalculateCoverageResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.intentCoverage != null && Object.hasOwnProperty.call(message, "intentCoverage")) + $root.google.cloud.dialogflow.cx.v3.IntentCoverage.encode(message.intentCoverage, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.transitionCoverage != null && Object.hasOwnProperty.call(message, "transitionCoverage")) + $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.encode(message.transitionCoverage, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.agent != null && Object.hasOwnProperty.call(message, "agent")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.agent); + if (message.routeGroupCoverage != null && Object.hasOwnProperty.call(message, "routeGroupCoverage")) + $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.encode(message.routeGroupCoverage, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CalculateCoverageResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CalculateCoverageResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageResponse} message CalculateCoverageResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CalculateCoverageResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CalculateCoverageResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.CalculateCoverageResponse} CalculateCoverageResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CalculateCoverageResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 5: + message.agent = reader.string(); + break; + case 2: + message.intentCoverage = $root.google.cloud.dialogflow.cx.v3.IntentCoverage.decode(reader, reader.uint32()); + break; + case 4: + message.transitionCoverage = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.decode(reader, reader.uint32()); + break; + case 6: + message.routeGroupCoverage = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; } - if (object.repeatCount != null) - message.repeatCount = object.repeatCount | 0; - return message; - }; + } + return message; + }; - /** - * Creates a plain object from a TrainingPhrase message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase - * @static - * @param {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase} message TrainingPhrase - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TrainingPhrase.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.parts = []; - if (options.defaults) { - object.id = ""; - object.repeatCount = 0; + /** + * Decodes a CalculateCoverageResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.CalculateCoverageResponse} CalculateCoverageResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CalculateCoverageResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CalculateCoverageResponse message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CalculateCoverageResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.agent != null && message.hasOwnProperty("agent")) + if (!$util.isString(message.agent)) + return "agent: string expected"; + if (message.intentCoverage != null && message.hasOwnProperty("intentCoverage")) { + properties.coverageType = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.IntentCoverage.verify(message.intentCoverage); + if (error) + return "intentCoverage." + error; } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.parts && message.parts.length) { - object.parts = []; - for (var j = 0; j < message.parts.length; ++j) - object.parts[j] = $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.toObject(message.parts[j], options); + } + if (message.transitionCoverage != null && message.hasOwnProperty("transitionCoverage")) { + if (properties.coverageType === 1) + return "coverageType: multiple values"; + properties.coverageType = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.verify(message.transitionCoverage); + if (error) + return "transitionCoverage." + error; } - if (message.repeatCount != null && message.hasOwnProperty("repeatCount")) - object.repeatCount = message.repeatCount; - return object; - }; - - /** - * Converts this TrainingPhrase to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase - * @instance - * @returns {Object.} JSON object - */ - TrainingPhrase.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + } + if (message.routeGroupCoverage != null && message.hasOwnProperty("routeGroupCoverage")) { + if (properties.coverageType === 1) + return "coverageType: multiple values"; + properties.coverageType = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.verify(message.routeGroupCoverage); + if (error) + return "routeGroupCoverage." + error; + } + } + return null; + }; - TrainingPhrase.Part = (function() { + /** + * Creates a CalculateCoverageResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.CalculateCoverageResponse} CalculateCoverageResponse + */ + CalculateCoverageResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse(); + if (object.agent != null) + message.agent = String(object.agent); + if (object.intentCoverage != null) { + if (typeof object.intentCoverage !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CalculateCoverageResponse.intentCoverage: object expected"); + message.intentCoverage = $root.google.cloud.dialogflow.cx.v3.IntentCoverage.fromObject(object.intentCoverage); + } + if (object.transitionCoverage != null) { + if (typeof object.transitionCoverage !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CalculateCoverageResponse.transitionCoverage: object expected"); + message.transitionCoverage = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.fromObject(object.transitionCoverage); + } + if (object.routeGroupCoverage != null) { + if (typeof object.routeGroupCoverage !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CalculateCoverageResponse.routeGroupCoverage: object expected"); + message.routeGroupCoverage = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.fromObject(object.routeGroupCoverage); + } + return message; + }; - /** - * Properties of a Part. - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase - * @interface IPart - * @property {string|null} [text] Part text - * @property {string|null} [parameterId] Part parameterId - */ + /** + * Creates a plain object from a CalculateCoverageResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.CalculateCoverageResponse} message CalculateCoverageResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CalculateCoverageResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.agent = ""; + if (message.intentCoverage != null && message.hasOwnProperty("intentCoverage")) { + object.intentCoverage = $root.google.cloud.dialogflow.cx.v3.IntentCoverage.toObject(message.intentCoverage, options); + if (options.oneofs) + object.coverageType = "intentCoverage"; + } + if (message.transitionCoverage != null && message.hasOwnProperty("transitionCoverage")) { + object.transitionCoverage = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.toObject(message.transitionCoverage, options); + if (options.oneofs) + object.coverageType = "transitionCoverage"; + } + if (message.agent != null && message.hasOwnProperty("agent")) + object.agent = message.agent; + if (message.routeGroupCoverage != null && message.hasOwnProperty("routeGroupCoverage")) { + object.routeGroupCoverage = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.toObject(message.routeGroupCoverage, options); + if (options.oneofs) + object.coverageType = "routeGroupCoverage"; + } + return object; + }; - /** - * Constructs a new Part. - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase - * @classdesc Represents a Part. - * @implements IPart - * @constructor - * @param {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart=} [properties] Properties to set - */ - function Part(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Converts this CalculateCoverageResponse to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * @instance + * @returns {Object.} JSON object + */ + CalculateCoverageResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Part text. - * @member {string} text - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part - * @instance - */ - Part.prototype.text = ""; + return CalculateCoverageResponse; + })(); - /** - * Part parameterId. - * @member {string} parameterId - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part - * @instance - */ - Part.prototype.parameterId = ""; + v3.ListTestCasesRequest = (function() { - /** - * Creates a new Part instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part - * @static - * @param {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part} Part instance - */ - Part.create = function create(properties) { - return new Part(properties); - }; + /** + * Properties of a ListTestCasesRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IListTestCasesRequest + * @property {string|null} [parent] ListTestCasesRequest parent + * @property {number|null} [pageSize] ListTestCasesRequest pageSize + * @property {string|null} [pageToken] ListTestCasesRequest pageToken + * @property {google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView|null} [view] ListTestCasesRequest view + */ - /** - * Encodes the specified Part message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part - * @static - * @param {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart} message Part message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Part.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.text != null && Object.hasOwnProperty.call(message, "text")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); - if (message.parameterId != null && Object.hasOwnProperty.call(message, "parameterId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.parameterId); - return writer; - }; + /** + * Constructs a new ListTestCasesRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a ListTestCasesRequest. + * @implements IListTestCasesRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IListTestCasesRequest=} [properties] Properties to set + */ + function ListTestCasesRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified Part message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part - * @static - * @param {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart} message Part message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Part.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * ListTestCasesRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @instance + */ + ListTestCasesRequest.prototype.parent = ""; - /** - * Decodes a Part message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part} Part - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Part.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.text = reader.string(); - break; - case 2: - message.parameterId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * ListTestCasesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @instance + */ + ListTestCasesRequest.prototype.pageSize = 0; - /** - * Decodes a Part message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part} Part - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Part.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * ListTestCasesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @instance + */ + ListTestCasesRequest.prototype.pageToken = ""; - /** - * Verifies a Part message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Part.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.text != null && message.hasOwnProperty("text")) - if (!$util.isString(message.text)) - return "text: string expected"; - if (message.parameterId != null && message.hasOwnProperty("parameterId")) - if (!$util.isString(message.parameterId)) - return "parameterId: string expected"; - return null; - }; + /** + * ListTestCasesRequest view. + * @member {google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView} view + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @instance + */ + ListTestCasesRequest.prototype.view = 0; - /** - * Creates a Part message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part} Part - */ - Part.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part(); - if (object.text != null) - message.text = String(object.text); - if (object.parameterId != null) - message.parameterId = String(object.parameterId); - return message; - }; + /** + * Creates a new ListTestCasesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IListTestCasesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListTestCasesRequest} ListTestCasesRequest instance + */ + ListTestCasesRequest.create = function create(properties) { + return new ListTestCasesRequest(properties); + }; - /** - * Creates a plain object from a Part message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part - * @static - * @param {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part} message Part - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Part.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.text = ""; - object.parameterId = ""; - } - if (message.text != null && message.hasOwnProperty("text")) - object.text = message.text; - if (message.parameterId != null && message.hasOwnProperty("parameterId")) - object.parameterId = message.parameterId; - return object; - }; + /** + * Encodes the specified ListTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCasesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IListTestCasesRequest} message ListTestCasesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListTestCasesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.view != null && Object.hasOwnProperty.call(message, "view")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.view); + return writer; + }; - /** - * Converts this Part to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part - * @instance - * @returns {Object.} JSON object - */ - Part.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Encodes the specified ListTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCasesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IListTestCasesRequest} message ListTestCasesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - return Part; - })(); + /** + * Decodes a ListTestCasesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.ListTestCasesRequest} ListTestCasesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListTestCasesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListTestCasesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); + break; + case 4: + message.view = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - return TrainingPhrase; - })(); + /** + * Decodes a ListTestCasesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.ListTestCasesRequest} ListTestCasesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - Intent.Parameter = (function() { + /** + * Verifies a ListTestCasesRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListTestCasesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.view != null && message.hasOwnProperty("view")) + switch (message.view) { + default: + return "view: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; - /** - * Properties of a Parameter. - * @memberof google.cloud.dialogflow.cx.v3.Intent - * @interface IParameter - * @property {string|null} [id] Parameter id - * @property {string|null} [entityType] Parameter entityType - * @property {boolean|null} [isList] Parameter isList - * @property {boolean|null} [redact] Parameter redact - */ + /** + * Creates a ListTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.ListTestCasesRequest} ListTestCasesRequest + */ + ListTestCasesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListTestCasesRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.ListTestCasesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + switch (object.view) { + case "TEST_CASE_VIEW_UNSPECIFIED": + case 0: + message.view = 0; + break; + case "BASIC": + case 1: + message.view = 1; + break; + case "FULL": + case 2: + message.view = 2; + break; + } + return message; + }; - /** - * Constructs a new Parameter. - * @memberof google.cloud.dialogflow.cx.v3.Intent - * @classdesc Represents a Parameter. - * @implements IParameter - * @constructor - * @param {google.cloud.dialogflow.cx.v3.Intent.IParameter=} [properties] Properties to set - */ - function Parameter(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Creates a plain object from a ListTestCasesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.ListTestCasesRequest} message ListTestCasesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListTestCasesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.view = options.enums === String ? "TEST_CASE_VIEW_UNSPECIFIED" : 0; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.view != null && message.hasOwnProperty("view")) + object.view = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView[message.view] : message.view; + return object; + }; - /** - * Parameter id. - * @member {string} id - * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter - * @instance - */ - Parameter.prototype.id = ""; + /** + * Converts this ListTestCasesRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @instance + * @returns {Object.} JSON object + */ + ListTestCasesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Parameter entityType. - * @member {string} entityType - * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter - * @instance - */ - Parameter.prototype.entityType = ""; + /** + * TestCaseView enum. + * @name google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView + * @enum {number} + * @property {number} TEST_CASE_VIEW_UNSPECIFIED=0 TEST_CASE_VIEW_UNSPECIFIED value + * @property {number} BASIC=1 BASIC value + * @property {number} FULL=2 FULL value + */ + ListTestCasesRequest.TestCaseView = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TEST_CASE_VIEW_UNSPECIFIED"] = 0; + values[valuesById[1] = "BASIC"] = 1; + values[valuesById[2] = "FULL"] = 2; + return values; + })(); - /** - * Parameter isList. - * @member {boolean} isList - * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter - * @instance - */ - Parameter.prototype.isList = false; + return ListTestCasesRequest; + })(); - /** - * Parameter redact. - * @member {boolean} redact - * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter - * @instance - */ - Parameter.prototype.redact = false; + v3.ListTestCasesResponse = (function() { - /** - * Creates a new Parameter instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter - * @static - * @param {google.cloud.dialogflow.cx.v3.Intent.IParameter=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Intent.Parameter} Parameter instance - */ - Parameter.create = function create(properties) { - return new Parameter(properties); - }; + /** + * Properties of a ListTestCasesResponse. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IListTestCasesResponse + * @property {Array.|null} [testCases] ListTestCasesResponse testCases + * @property {string|null} [nextPageToken] ListTestCasesResponse nextPageToken + */ - /** - * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.Parameter.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter - * @static - * @param {google.cloud.dialogflow.cx.v3.Intent.IParameter} message Parameter message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Parameter.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityType); - if (message.isList != null && Object.hasOwnProperty.call(message, "isList")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isList); - if (message.redact != null && Object.hasOwnProperty.call(message, "redact")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.redact); - return writer; - }; + /** + * Constructs a new ListTestCasesResponse. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a ListTestCasesResponse. + * @implements IListTestCasesResponse + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IListTestCasesResponse=} [properties] Properties to set + */ + function ListTestCasesResponse(properties) { + this.testCases = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.Parameter.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter - * @static - * @param {google.cloud.dialogflow.cx.v3.Intent.IParameter} message Parameter message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Parameter.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * ListTestCasesResponse testCases. + * @member {Array.} testCases + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse + * @instance + */ + ListTestCasesResponse.prototype.testCases = $util.emptyArray; - /** - * Decodes a Parameter message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.Intent.Parameter} Parameter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Parameter.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Intent.Parameter(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.entityType = reader.string(); - break; - case 3: - message.isList = reader.bool(); - break; - case 4: - message.redact = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * ListTestCasesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse + * @instance + */ + ListTestCasesResponse.prototype.nextPageToken = ""; - /** - * Decodes a Parameter message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Intent.Parameter} Parameter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Parameter.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a new ListTestCasesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.IListTestCasesResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListTestCasesResponse} ListTestCasesResponse instance + */ + ListTestCasesResponse.create = function create(properties) { + return new ListTestCasesResponse(properties); + }; - /** - * Verifies a Parameter message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Parameter.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.entityType != null && message.hasOwnProperty("entityType")) - if (!$util.isString(message.entityType)) - return "entityType: string expected"; - if (message.isList != null && message.hasOwnProperty("isList")) - if (typeof message.isList !== "boolean") - return "isList: boolean expected"; - if (message.redact != null && message.hasOwnProperty("redact")) - if (typeof message.redact !== "boolean") - return "redact: boolean expected"; - return null; - }; + /** + * Encodes the specified ListTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCasesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.IListTestCasesResponse} message ListTestCasesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListTestCasesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.testCases != null && message.testCases.length) + for (var i = 0; i < message.testCases.length; ++i) + $root.google.cloud.dialogflow.cx.v3.TestCase.encode(message.testCases[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; - /** - * Creates a Parameter message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Intent.Parameter} Parameter - */ - Parameter.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Intent.Parameter) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Intent.Parameter(); - if (object.id != null) - message.id = String(object.id); - if (object.entityType != null) - message.entityType = String(object.entityType); - if (object.isList != null) - message.isList = Boolean(object.isList); - if (object.redact != null) - message.redact = Boolean(object.redact); - return message; - }; + /** + * Encodes the specified ListTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCasesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.IListTestCasesResponse} message ListTestCasesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a plain object from a Parameter message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter - * @static - * @param {google.cloud.dialogflow.cx.v3.Intent.Parameter} message Parameter - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Parameter.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.id = ""; - object.entityType = ""; - object.isList = false; - object.redact = false; + /** + * Decodes a ListTestCasesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.ListTestCasesResponse} ListTestCasesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListTestCasesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListTestCasesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.testCases && message.testCases.length)) + message.testCases = []; + message.testCases.push($root.google.cloud.dialogflow.cx.v3.TestCase.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.entityType != null && message.hasOwnProperty("entityType")) - object.entityType = message.entityType; - if (message.isList != null && message.hasOwnProperty("isList")) - object.isList = message.isList; - if (message.redact != null && message.hasOwnProperty("redact")) - object.redact = message.redact; + } + return message; + }; + + /** + * Decodes a ListTestCasesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.ListTestCasesResponse} ListTestCasesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListTestCasesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListTestCasesResponse message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListTestCasesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.testCases != null && message.hasOwnProperty("testCases")) { + if (!Array.isArray(message.testCases)) + return "testCases: array expected"; + for (var i = 0; i < message.testCases.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.TestCase.verify(message.testCases[i]); + if (error) + return "testCases." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListTestCasesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.ListTestCasesResponse} ListTestCasesResponse + */ + ListTestCasesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListTestCasesResponse) return object; - }; + var message = new $root.google.cloud.dialogflow.cx.v3.ListTestCasesResponse(); + if (object.testCases) { + if (!Array.isArray(object.testCases)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ListTestCasesResponse.testCases: array expected"); + message.testCases = []; + for (var i = 0; i < object.testCases.length; ++i) { + if (typeof object.testCases[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ListTestCasesResponse.testCases: object expected"); + message.testCases[i] = $root.google.cloud.dialogflow.cx.v3.TestCase.fromObject(object.testCases[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; - /** - * Converts this Parameter to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter - * @instance - * @returns {Object.} JSON object - */ - Parameter.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a ListTestCasesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.ListTestCasesResponse} message ListTestCasesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListTestCasesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.testCases = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.testCases && message.testCases.length) { + object.testCases = []; + for (var j = 0; j < message.testCases.length; ++j) + object.testCases[j] = $root.google.cloud.dialogflow.cx.v3.TestCase.toObject(message.testCases[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; - return Parameter; - })(); + /** + * Converts this ListTestCasesResponse to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse + * @instance + * @returns {Object.} JSON object + */ + ListTestCasesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Intent; + return ListTestCasesResponse; })(); - v3.ListIntentsRequest = (function() { + v3.BatchDeleteTestCasesRequest = (function() { /** - * Properties of a ListIntentsRequest. + * Properties of a BatchDeleteTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListIntentsRequest - * @property {string|null} [parent] ListIntentsRequest parent - * @property {string|null} [languageCode] ListIntentsRequest languageCode - * @property {google.cloud.dialogflow.cx.v3.IntentView|null} [intentView] ListIntentsRequest intentView - * @property {number|null} [pageSize] ListIntentsRequest pageSize - * @property {string|null} [pageToken] ListIntentsRequest pageToken + * @interface IBatchDeleteTestCasesRequest + * @property {string|null} [parent] BatchDeleteTestCasesRequest parent + * @property {Array.|null} [names] BatchDeleteTestCasesRequest names */ /** - * Constructs a new ListIntentsRequest. + * Constructs a new BatchDeleteTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListIntentsRequest. - * @implements IListIntentsRequest + * @classdesc Represents a BatchDeleteTestCasesRequest. + * @implements IBatchDeleteTestCasesRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListIntentsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest=} [properties] Properties to set */ - function ListIntentsRequest(properties) { + function BatchDeleteTestCasesRequest(properties) { + this.names = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26611,110 +26316,305 @@ } /** - * ListIntentsRequest parent. + * BatchDeleteTestCasesRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest * @instance */ - ListIntentsRequest.prototype.parent = ""; + BatchDeleteTestCasesRequest.prototype.parent = ""; /** - * ListIntentsRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest + * BatchDeleteTestCasesRequest names. + * @member {Array.} names + * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest * @instance */ - ListIntentsRequest.prototype.languageCode = ""; + BatchDeleteTestCasesRequest.prototype.names = $util.emptyArray; /** - * ListIntentsRequest intentView. - * @member {google.cloud.dialogflow.cx.v3.IntentView} intentView - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest + * Creates a new BatchDeleteTestCasesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest instance + */ + BatchDeleteTestCasesRequest.create = function create(properties) { + return new BatchDeleteTestCasesRequest(properties); + }; + + /** + * Encodes the specified BatchDeleteTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest} message BatchDeleteTestCasesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchDeleteTestCasesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.names != null && message.names.length) + for (var i = 0; i < message.names.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.names[i]); + return writer; + }; + + /** + * Encodes the specified BatchDeleteTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest} message BatchDeleteTestCasesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchDeleteTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BatchDeleteTestCasesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchDeleteTestCasesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 3: + if (!(message.names && message.names.length)) + message.names = []; + message.names.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BatchDeleteTestCasesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchDeleteTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BatchDeleteTestCasesRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BatchDeleteTestCasesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.names != null && message.hasOwnProperty("names")) { + if (!Array.isArray(message.names)) + return "names: array expected"; + for (var i = 0; i < message.names.length; ++i) + if (!$util.isString(message.names[i])) + return "names: string[] expected"; + } + return null; + }; + + /** + * Creates a BatchDeleteTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest + */ + BatchDeleteTestCasesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.names) { + if (!Array.isArray(object.names)) + throw TypeError(".google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest.names: array expected"); + message.names = []; + for (var i = 0; i < object.names.length; ++i) + message.names[i] = String(object.names[i]); + } + return message; + }; + + /** + * Creates a plain object from a BatchDeleteTestCasesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest} message BatchDeleteTestCasesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BatchDeleteTestCasesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.names = []; + if (options.defaults) + object.parent = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.names && message.names.length) { + object.names = []; + for (var j = 0; j < message.names.length; ++j) + object.names[j] = message.names[j]; + } + return object; + }; + + /** + * Converts this BatchDeleteTestCasesRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest * @instance + * @returns {Object.} JSON object */ - ListIntentsRequest.prototype.intentView = 0; + BatchDeleteTestCasesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return BatchDeleteTestCasesRequest; + })(); + + v3.CreateTestCaseRequest = (function() { /** - * ListIntentsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest + * Properties of a CreateTestCaseRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface ICreateTestCaseRequest + * @property {string|null} [parent] CreateTestCaseRequest parent + * @property {google.cloud.dialogflow.cx.v3.ITestCase|null} [testCase] CreateTestCaseRequest testCase + */ + + /** + * Constructs a new CreateTestCaseRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a CreateTestCaseRequest. + * @implements ICreateTestCaseRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest=} [properties] Properties to set + */ + function CreateTestCaseRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateTestCaseRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest * @instance */ - ListIntentsRequest.prototype.pageSize = 0; + CreateTestCaseRequest.prototype.parent = ""; /** - * ListIntentsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest + * CreateTestCaseRequest testCase. + * @member {google.cloud.dialogflow.cx.v3.ITestCase|null|undefined} testCase + * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest * @instance */ - ListIntentsRequest.prototype.pageToken = ""; + CreateTestCaseRequest.prototype.testCase = null; /** - * Creates a new ListIntentsRequest instance using the specified properties. + * Creates a new CreateTestCaseRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListIntentsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListIntentsRequest} ListIntentsRequest instance + * @param {google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateTestCaseRequest} CreateTestCaseRequest instance */ - ListIntentsRequest.create = function create(properties) { - return new ListIntentsRequest(properties); + CreateTestCaseRequest.create = function create(properties) { + return new CreateTestCaseRequest(properties); }; /** - * Encodes the specified ListIntentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsRequest.verify|verify} messages. + * Encodes the specified CreateTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTestCaseRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListIntentsRequest} message ListIntentsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest} message CreateTestCaseRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIntentsRequest.encode = function encode(message, writer) { + CreateTestCaseRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.intentView != null && Object.hasOwnProperty.call(message, "intentView")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.intentView); + if (message.testCase != null && Object.hasOwnProperty.call(message, "testCase")) + $root.google.cloud.dialogflow.cx.v3.TestCase.encode(message.testCase, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListIntentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsRequest.verify|verify} messages. + * Encodes the specified CreateTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTestCaseRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListIntentsRequest} message ListIntentsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest} message CreateTestCaseRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIntentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListIntentsRequest message from the specified reader or buffer. + * Decodes a CreateTestCaseRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListIntentsRequest} ListIntentsRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateTestCaseRequest} CreateTestCaseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIntentsRequest.decode = function decode(reader, length) { + CreateTestCaseRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListIntentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateTestCaseRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -26722,16 +26622,7 @@ message.parent = reader.string(); break; case 2: - message.languageCode = reader.string(); - break; - case 5: - message.intentView = reader.int32(); - break; - case 3: - message.pageSize = reader.int32(); - break; - case 4: - message.pageToken = reader.string(); + message.testCase = $root.google.cloud.dialogflow.cx.v3.TestCase.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -26742,160 +26633,122 @@ }; /** - * Decodes a ListIntentsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateTestCaseRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListIntentsRequest} ListIntentsRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateTestCaseRequest} CreateTestCaseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIntentsRequest.decodeDelimited = function decodeDelimited(reader) { + CreateTestCaseRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListIntentsRequest message. + * Verifies a CreateTestCaseRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListIntentsRequest.verify = function verify(message) { + CreateTestCaseRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; - if (message.intentView != null && message.hasOwnProperty("intentView")) - switch (message.intentView) { - default: - return "intentView: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.testCase != null && message.hasOwnProperty("testCase")) { + var error = $root.google.cloud.dialogflow.cx.v3.TestCase.verify(message.testCase); + if (error) + return "testCase." + error; + } return null; }; /** - * Creates a ListIntentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateTestCaseRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListIntentsRequest} ListIntentsRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateTestCaseRequest} CreateTestCaseRequest */ - ListIntentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListIntentsRequest) + CreateTestCaseRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateTestCaseRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListIntentsRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.CreateTestCaseRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); - switch (object.intentView) { - case "INTENT_VIEW_UNSPECIFIED": - case 0: - message.intentView = 0; - break; - case "INTENT_VIEW_PARTIAL": - case 1: - message.intentView = 1; - break; - case "INTENT_VIEW_FULL": - case 2: - message.intentView = 2; - break; + if (object.testCase != null) { + if (typeof object.testCase !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CreateTestCaseRequest.testCase: object expected"); + message.testCase = $root.google.cloud.dialogflow.cx.v3.TestCase.fromObject(object.testCase); } - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a ListIntentsRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateTestCaseRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ListIntentsRequest} message ListIntentsRequest + * @param {google.cloud.dialogflow.cx.v3.CreateTestCaseRequest} message CreateTestCaseRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListIntentsRequest.toObject = function toObject(message, options) { + CreateTestCaseRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.languageCode = ""; - object.pageSize = 0; - object.pageToken = ""; - object.intentView = options.enums === String ? "INTENT_VIEW_UNSPECIFIED" : 0; + object.testCase = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.intentView != null && message.hasOwnProperty("intentView")) - object.intentView = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.IntentView[message.intentView] : message.intentView; + if (message.testCase != null && message.hasOwnProperty("testCase")) + object.testCase = $root.google.cloud.dialogflow.cx.v3.TestCase.toObject(message.testCase, options); return object; }; /** - * Converts this ListIntentsRequest to JSON. + * Converts this CreateTestCaseRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest * @instance * @returns {Object.} JSON object */ - ListIntentsRequest.prototype.toJSON = function toJSON() { + CreateTestCaseRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListIntentsRequest; + return CreateTestCaseRequest; })(); - v3.ListIntentsResponse = (function() { + v3.UpdateTestCaseRequest = (function() { /** - * Properties of a ListIntentsResponse. + * Properties of an UpdateTestCaseRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListIntentsResponse - * @property {Array.|null} [intents] ListIntentsResponse intents - * @property {string|null} [nextPageToken] ListIntentsResponse nextPageToken + * @interface IUpdateTestCaseRequest + * @property {google.cloud.dialogflow.cx.v3.ITestCase|null} [testCase] UpdateTestCaseRequest testCase + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateTestCaseRequest updateMask */ /** - * Constructs a new ListIntentsResponse. + * Constructs a new UpdateTestCaseRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListIntentsResponse. - * @implements IListIntentsResponse + * @classdesc Represents an UpdateTestCaseRequest. + * @implements IUpdateTestCaseRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListIntentsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest=} [properties] Properties to set */ - function ListIntentsResponse(properties) { - this.intents = []; + function UpdateTestCaseRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26903,91 +26756,88 @@ } /** - * ListIntentsResponse intents. - * @member {Array.} intents - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse + * UpdateTestCaseRequest testCase. + * @member {google.cloud.dialogflow.cx.v3.ITestCase|null|undefined} testCase + * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest * @instance */ - ListIntentsResponse.prototype.intents = $util.emptyArray; + UpdateTestCaseRequest.prototype.testCase = null; /** - * ListIntentsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse + * UpdateTestCaseRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest * @instance */ - ListIntentsResponse.prototype.nextPageToken = ""; + UpdateTestCaseRequest.prototype.updateMask = null; /** - * Creates a new ListIntentsResponse instance using the specified properties. + * Creates a new UpdateTestCaseRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListIntentsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListIntentsResponse} ListIntentsResponse instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest} UpdateTestCaseRequest instance */ - ListIntentsResponse.create = function create(properties) { - return new ListIntentsResponse(properties); + UpdateTestCaseRequest.create = function create(properties) { + return new UpdateTestCaseRequest(properties); }; /** - * Encodes the specified ListIntentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsResponse.verify|verify} messages. + * Encodes the specified UpdateTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListIntentsResponse} message ListIntentsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest} message UpdateTestCaseRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIntentsResponse.encode = function encode(message, writer) { + UpdateTestCaseRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.intents != null && message.intents.length) - for (var i = 0; i < message.intents.length; ++i) - $root.google.cloud.dialogflow.cx.v3.Intent.encode(message.intents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.testCase != null && Object.hasOwnProperty.call(message, "testCase")) + $root.google.cloud.dialogflow.cx.v3.TestCase.encode(message.testCase, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListIntentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsResponse.verify|verify} messages. + * Encodes the specified UpdateTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListIntentsResponse} message ListIntentsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest} message UpdateTestCaseRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIntentsResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpdateTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListIntentsResponse message from the specified reader or buffer. + * Decodes an UpdateTestCaseRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListIntentsResponse} ListIntentsResponse + * @returns {google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest} UpdateTestCaseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIntentsResponse.decode = function decode(reader, length) { + UpdateTestCaseRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListIntentsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.intents && message.intents.length)) - message.intents = []; - message.intents.push($root.google.cloud.dialogflow.cx.v3.Intent.decode(reader, reader.uint32())); + message.testCase = $root.google.cloud.dialogflow.cx.v3.TestCase.decode(reader, reader.uint32()); break; case 2: - message.nextPageToken = reader.string(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -26998,134 +26848,126 @@ }; /** - * Decodes a ListIntentsResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateTestCaseRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListIntentsResponse} ListIntentsResponse + * @returns {google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest} UpdateTestCaseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIntentsResponse.decodeDelimited = function decodeDelimited(reader) { + UpdateTestCaseRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListIntentsResponse message. + * Verifies an UpdateTestCaseRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListIntentsResponse.verify = function verify(message) { + UpdateTestCaseRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.intents != null && message.hasOwnProperty("intents")) { - if (!Array.isArray(message.intents)) - return "intents: array expected"; - for (var i = 0; i < message.intents.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.Intent.verify(message.intents[i]); - if (error) - return "intents." + error; - } + if (message.testCase != null && message.hasOwnProperty("testCase")) { + var error = $root.google.cloud.dialogflow.cx.v3.TestCase.verify(message.testCase); + if (error) + return "testCase." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListIntentsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateTestCaseRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListIntentsResponse} ListIntentsResponse + * @returns {google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest} UpdateTestCaseRequest */ - ListIntentsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListIntentsResponse) + UpdateTestCaseRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListIntentsResponse(); - if (object.intents) { - if (!Array.isArray(object.intents)) - throw TypeError(".google.cloud.dialogflow.cx.v3.ListIntentsResponse.intents: array expected"); - message.intents = []; - for (var i = 0; i < object.intents.length; ++i) { - if (typeof object.intents[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ListIntentsResponse.intents: object expected"); - message.intents[i] = $root.google.cloud.dialogflow.cx.v3.Intent.fromObject(object.intents[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest(); + if (object.testCase != null) { + if (typeof object.testCase !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest.testCase: object expected"); + message.testCase = $root.google.cloud.dialogflow.cx.v3.TestCase.fromObject(object.testCase); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListIntentsResponse message. Also converts values to other types if specified. + * Creates a plain object from an UpdateTestCaseRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ListIntentsResponse} message ListIntentsResponse + * @param {google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest} message UpdateTestCaseRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListIntentsResponse.toObject = function toObject(message, options) { + UpdateTestCaseRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.intents = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.intents && message.intents.length) { - object.intents = []; - for (var j = 0; j < message.intents.length; ++j) - object.intents[j] = $root.google.cloud.dialogflow.cx.v3.Intent.toObject(message.intents[j], options); + if (options.defaults) { + object.testCase = null; + object.updateMask = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.testCase != null && message.hasOwnProperty("testCase")) + object.testCase = $root.google.cloud.dialogflow.cx.v3.TestCase.toObject(message.testCase, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this ListIntentsResponse to JSON. + * Converts this UpdateTestCaseRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest * @instance * @returns {Object.} JSON object */ - ListIntentsResponse.prototype.toJSON = function toJSON() { + UpdateTestCaseRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListIntentsResponse; + return UpdateTestCaseRequest; })(); - v3.GetIntentRequest = (function() { + v3.GetTestCaseRequest = (function() { /** - * Properties of a GetIntentRequest. + * Properties of a GetTestCaseRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IGetIntentRequest - * @property {string|null} [name] GetIntentRequest name - * @property {string|null} [languageCode] GetIntentRequest languageCode + * @interface IGetTestCaseRequest + * @property {string|null} [name] GetTestCaseRequest name */ /** - * Constructs a new GetIntentRequest. + * Constructs a new GetTestCaseRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a GetIntentRequest. - * @implements IGetIntentRequest + * @classdesc Represents a GetTestCaseRequest. + * @implements IGetTestCaseRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IGetIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IGetTestCaseRequest=} [properties] Properties to set */ - function GetIntentRequest(properties) { + function GetTestCaseRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27133,89 +26975,76 @@ } /** - * GetIntentRequest name. + * GetTestCaseRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest - * @instance - */ - GetIntentRequest.prototype.name = ""; - - /** - * GetIntentRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest * @instance */ - GetIntentRequest.prototype.languageCode = ""; + GetTestCaseRequest.prototype.name = ""; /** - * Creates a new GetIntentRequest instance using the specified properties. + * Creates a new GetTestCaseRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.GetIntentRequest} GetIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IGetTestCaseRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetTestCaseRequest} GetTestCaseRequest instance */ - GetIntentRequest.create = function create(properties) { - return new GetIntentRequest(properties); + GetTestCaseRequest.create = function create(properties) { + return new GetTestCaseRequest(properties); }; /** - * Encodes the specified GetIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetIntentRequest.verify|verify} messages. + * Encodes the specified GetTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTestCaseRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetIntentRequest} message GetIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetTestCaseRequest} message GetTestCaseRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIntentRequest.encode = function encode(message, writer) { + GetTestCaseRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); return writer; }; /** - * Encodes the specified GetIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetIntentRequest.verify|verify} messages. + * Encodes the specified GetTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTestCaseRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetIntentRequest} message GetIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetTestCaseRequest} message GetTestCaseRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetIntentRequest message from the specified reader or buffer. + * Decodes a GetTestCaseRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.GetIntentRequest} GetIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.GetTestCaseRequest} GetTestCaseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIntentRequest.decode = function decode(reader, length) { + GetTestCaseRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetTestCaseRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; - case 2: - message.languageCode = reader.string(); - break; default: reader.skipType(tag & 7); break; @@ -27225,118 +27054,108 @@ }; /** - * Decodes a GetIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a GetTestCaseRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.GetIntentRequest} GetIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.GetTestCaseRequest} GetTestCaseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIntentRequest.decodeDelimited = function decodeDelimited(reader) { + GetTestCaseRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetIntentRequest message. + * Verifies a GetTestCaseRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetIntentRequest.verify = function verify(message) { + GetTestCaseRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; return null; }; /** - * Creates a GetIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetTestCaseRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.GetIntentRequest} GetIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.GetTestCaseRequest} GetTestCaseRequest */ - GetIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetIntentRequest) + GetTestCaseRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetTestCaseRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.GetIntentRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.GetTestCaseRequest(); if (object.name != null) message.name = String(object.name); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a GetIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetTestCaseRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3.GetIntentRequest} message GetIntentRequest + * @param {google.cloud.dialogflow.cx.v3.GetTestCaseRequest} message GetTestCaseRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetIntentRequest.toObject = function toObject(message, options) { + GetTestCaseRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { + if (options.defaults) object.name = ""; - object.languageCode = ""; - } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; return object; }; /** - * Converts this GetIntentRequest to JSON. + * Converts this GetTestCaseRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest * @instance * @returns {Object.} JSON object */ - GetIntentRequest.prototype.toJSON = function toJSON() { + GetTestCaseRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetIntentRequest; + return GetTestCaseRequest; })(); - v3.CreateIntentRequest = (function() { + v3.RunTestCaseRequest = (function() { /** - * Properties of a CreateIntentRequest. + * Properties of a RunTestCaseRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ICreateIntentRequest - * @property {string|null} [parent] CreateIntentRequest parent - * @property {google.cloud.dialogflow.cx.v3.IIntent|null} [intent] CreateIntentRequest intent - * @property {string|null} [languageCode] CreateIntentRequest languageCode + * @interface IRunTestCaseRequest + * @property {string|null} [name] RunTestCaseRequest name + * @property {string|null} [environment] RunTestCaseRequest environment */ /** - * Constructs a new CreateIntentRequest. + * Constructs a new RunTestCaseRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CreateIntentRequest. - * @implements ICreateIntentRequest + * @classdesc Represents a RunTestCaseRequest. + * @implements IRunTestCaseRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICreateIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseRequest=} [properties] Properties to set */ - function CreateIntentRequest(properties) { + function RunTestCaseRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27344,101 +27163,88 @@ } /** - * CreateIntentRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest - * @instance - */ - CreateIntentRequest.prototype.parent = ""; - - /** - * CreateIntentRequest intent. - * @member {google.cloud.dialogflow.cx.v3.IIntent|null|undefined} intent - * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest + * RunTestCaseRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest * @instance */ - CreateIntentRequest.prototype.intent = null; + RunTestCaseRequest.prototype.name = ""; /** - * CreateIntentRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest + * RunTestCaseRequest environment. + * @member {string} environment + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest * @instance */ - CreateIntentRequest.prototype.languageCode = ""; + RunTestCaseRequest.prototype.environment = ""; /** - * Creates a new CreateIntentRequest instance using the specified properties. + * Creates a new RunTestCaseRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.CreateIntentRequest} CreateIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseRequest} RunTestCaseRequest instance */ - CreateIntentRequest.create = function create(properties) { - return new CreateIntentRequest(properties); + RunTestCaseRequest.create = function create(properties) { + return new RunTestCaseRequest(properties); }; /** - * Encodes the specified CreateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateIntentRequest.verify|verify} messages. + * Encodes the specified RunTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateIntentRequest} message CreateIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseRequest} message RunTestCaseRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateIntentRequest.encode = function encode(message, writer) { + RunTestCaseRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) - $root.google.cloud.dialogflow.cx.v3.Intent.encode(message.intent, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.environment); return writer; }; /** - * Encodes the specified CreateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateIntentRequest.verify|verify} messages. + * Encodes the specified RunTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateIntentRequest} message CreateIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseRequest} message RunTestCaseRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + RunTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateIntentRequest message from the specified reader or buffer. + * Decodes a RunTestCaseRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.CreateIntentRequest} CreateIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseRequest} RunTestCaseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateIntentRequest.decode = function decode(reader, length) { + RunTestCaseRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.RunTestCaseRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.name = reader.string(); break; case 2: - message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.decode(reader, reader.uint32()); - break; - case 3: - message.languageCode = reader.string(); + message.environment = reader.string(); break; default: reader.skipType(tag & 7); @@ -27449,131 +27255,116 @@ }; /** - * Decodes a CreateIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a RunTestCaseRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.CreateIntentRequest} CreateIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseRequest} RunTestCaseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateIntentRequest.decodeDelimited = function decodeDelimited(reader) { + RunTestCaseRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateIntentRequest message. + * Verifies a RunTestCaseRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateIntentRequest.verify = function verify(message) { + RunTestCaseRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.intent != null && message.hasOwnProperty("intent")) { - var error = $root.google.cloud.dialogflow.cx.v3.Intent.verify(message.intent); - if (error) - return "intent." + error; - } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.environment != null && message.hasOwnProperty("environment")) + if (!$util.isString(message.environment)) + return "environment: string expected"; return null; }; /** - * Creates a CreateIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RunTestCaseRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CreateIntentRequest} CreateIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseRequest} RunTestCaseRequest */ - CreateIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateIntentRequest) + RunTestCaseRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.RunTestCaseRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.CreateIntentRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.intent != null) { - if (typeof object.intent !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CreateIntentRequest.intent: object expected"); - message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.fromObject(object.intent); - } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); + var message = new $root.google.cloud.dialogflow.cx.v3.RunTestCaseRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.environment != null) + message.environment = String(object.environment); return message; }; /** - * Creates a plain object from a CreateIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from a RunTestCaseRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3.CreateIntentRequest} message CreateIntentRequest + * @param {google.cloud.dialogflow.cx.v3.RunTestCaseRequest} message RunTestCaseRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateIntentRequest.toObject = function toObject(message, options) { + RunTestCaseRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.intent = null; - object.languageCode = ""; + object.name = ""; + object.environment = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.intent != null && message.hasOwnProperty("intent")) - object.intent = $root.google.cloud.dialogflow.cx.v3.Intent.toObject(message.intent, options); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = message.environment; return object; }; /** - * Converts this CreateIntentRequest to JSON. + * Converts this RunTestCaseRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest * @instance * @returns {Object.} JSON object */ - CreateIntentRequest.prototype.toJSON = function toJSON() { + RunTestCaseRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateIntentRequest; + return RunTestCaseRequest; })(); - v3.UpdateIntentRequest = (function() { + v3.RunTestCaseResponse = (function() { /** - * Properties of an UpdateIntentRequest. + * Properties of a RunTestCaseResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IUpdateIntentRequest - * @property {google.cloud.dialogflow.cx.v3.IIntent|null} [intent] UpdateIntentRequest intent - * @property {string|null} [languageCode] UpdateIntentRequest languageCode - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateIntentRequest updateMask + * @interface IRunTestCaseResponse + * @property {google.cloud.dialogflow.cx.v3.ITestCaseResult|null} [result] RunTestCaseResponse result */ /** - * Constructs a new UpdateIntentRequest. + * Constructs a new RunTestCaseResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an UpdateIntentRequest. - * @implements IUpdateIntentRequest + * @classdesc Represents a RunTestCaseResponse. + * @implements IRunTestCaseResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IUpdateIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseResponse=} [properties] Properties to set */ - function UpdateIntentRequest(properties) { + function RunTestCaseResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27581,101 +27372,75 @@ } /** - * UpdateIntentRequest intent. - * @member {google.cloud.dialogflow.cx.v3.IIntent|null|undefined} intent - * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest - * @instance - */ - UpdateIntentRequest.prototype.intent = null; - - /** - * UpdateIntentRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest - * @instance - */ - UpdateIntentRequest.prototype.languageCode = ""; - - /** - * UpdateIntentRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * RunTestCaseResponse result. + * @member {google.cloud.dialogflow.cx.v3.ITestCaseResult|null|undefined} result + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse * @instance */ - UpdateIntentRequest.prototype.updateMask = null; + RunTestCaseResponse.prototype.result = null; /** - * Creates a new UpdateIntentRequest instance using the specified properties. + * Creates a new RunTestCaseResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.UpdateIntentRequest} UpdateIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseResponse} RunTestCaseResponse instance */ - UpdateIntentRequest.create = function create(properties) { - return new UpdateIntentRequest(properties); + RunTestCaseResponse.create = function create(properties) { + return new RunTestCaseResponse(properties); }; /** - * Encodes the specified UpdateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateIntentRequest.verify|verify} messages. + * Encodes the specified RunTestCaseResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateIntentRequest} message UpdateIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseResponse} message RunTestCaseResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIntentRequest.encode = function encode(message, writer) { + RunTestCaseResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) - $root.google.cloud.dialogflow.cx.v3.Intent.encode(message.intent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + $root.google.cloud.dialogflow.cx.v3.TestCaseResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateIntentRequest.verify|verify} messages. + * Encodes the specified RunTestCaseResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateIntentRequest} message UpdateIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseResponse} message RunTestCaseResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + RunTestCaseResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateIntentRequest message from the specified reader or buffer. + * Decodes a RunTestCaseResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.UpdateIntentRequest} UpdateIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseResponse} RunTestCaseResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateIntentRequest.decode = function decode(reader, length) { + RunTestCaseResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.RunTestCaseResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.decode(reader, reader.uint32()); - break; case 2: - message.languageCode = reader.string(); - break; - case 3: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.result = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -27686,134 +27451,111 @@ }; /** - * Decodes an UpdateIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a RunTestCaseResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.UpdateIntentRequest} UpdateIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseResponse} RunTestCaseResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateIntentRequest.decodeDelimited = function decodeDelimited(reader) { + RunTestCaseResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateIntentRequest message. + * Verifies a RunTestCaseResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateIntentRequest.verify = function verify(message) { + RunTestCaseResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.intent != null && message.hasOwnProperty("intent")) { - var error = $root.google.cloud.dialogflow.cx.v3.Intent.verify(message.intent); - if (error) - return "intent." + error; - } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (message.result != null && message.hasOwnProperty("result")) { + var error = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.verify(message.result); if (error) - return "updateMask." + error; + return "result." + error; } return null; }; /** - * Creates an UpdateIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RunTestCaseResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.UpdateIntentRequest} UpdateIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseResponse} RunTestCaseResponse */ - UpdateIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateIntentRequest) + RunTestCaseResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.RunTestCaseResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.UpdateIntentRequest(); - if (object.intent != null) { - if (typeof object.intent !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateIntentRequest.intent: object expected"); - message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.fromObject(object.intent); - } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateIntentRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.cloud.dialogflow.cx.v3.RunTestCaseResponse(); + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.RunTestCaseResponse.result: object expected"); + message.result = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.fromObject(object.result); } return message; }; /** - * Creates a plain object from an UpdateIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from a RunTestCaseResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse * @static - * @param {google.cloud.dialogflow.cx.v3.UpdateIntentRequest} message UpdateIntentRequest + * @param {google.cloud.dialogflow.cx.v3.RunTestCaseResponse} message RunTestCaseResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateIntentRequest.toObject = function toObject(message, options) { + RunTestCaseResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.intent = null; - object.languageCode = ""; - object.updateMask = null; - } - if (message.intent != null && message.hasOwnProperty("intent")) - object.intent = $root.google.cloud.dialogflow.cx.v3.Intent.toObject(message.intent, options); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (options.defaults) + object.result = null; + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.toObject(message.result, options); return object; }; /** - * Converts this UpdateIntentRequest to JSON. + * Converts this RunTestCaseResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse * @instance * @returns {Object.} JSON object */ - UpdateIntentRequest.prototype.toJSON = function toJSON() { + RunTestCaseResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateIntentRequest; + return RunTestCaseResponse; })(); - v3.DeleteIntentRequest = (function() { + v3.RunTestCaseMetadata = (function() { /** - * Properties of a DeleteIntentRequest. + * Properties of a RunTestCaseMetadata. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDeleteIntentRequest - * @property {string|null} [name] DeleteIntentRequest name + * @interface IRunTestCaseMetadata */ /** - * Constructs a new DeleteIntentRequest. + * Constructs a new RunTestCaseMetadata. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DeleteIntentRequest. - * @implements IDeleteIntentRequest + * @classdesc Represents a RunTestCaseMetadata. + * @implements IRunTestCaseMetadata * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDeleteIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseMetadata=} [properties] Properties to set */ - function DeleteIntentRequest(properties) { + function RunTestCaseMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27821,76 +27563,63 @@ } /** - * DeleteIntentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest - * @instance - */ - DeleteIntentRequest.prototype.name = ""; - - /** - * Creates a new DeleteIntentRequest instance using the specified properties. + * Creates a new RunTestCaseMetadata instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.DeleteIntentRequest} DeleteIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseMetadata=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseMetadata} RunTestCaseMetadata instance */ - DeleteIntentRequest.create = function create(properties) { - return new DeleteIntentRequest(properties); + RunTestCaseMetadata.create = function create(properties) { + return new RunTestCaseMetadata(properties); }; /** - * Encodes the specified DeleteIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteIntentRequest.verify|verify} messages. + * Encodes the specified RunTestCaseMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteIntentRequest} message DeleteIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseMetadata} message RunTestCaseMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteIntentRequest.encode = function encode(message, writer) { + RunTestCaseMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified DeleteIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteIntentRequest.verify|verify} messages. + * Encodes the specified RunTestCaseMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteIntentRequest} message DeleteIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseMetadata} message RunTestCaseMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + RunTestCaseMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteIntentRequest message from the specified reader or buffer. + * Decodes a RunTestCaseMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.DeleteIntentRequest} DeleteIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseMetadata} RunTestCaseMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteIntentRequest.decode = function decode(reader, length) { + RunTestCaseMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.RunTestCaseMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; default: reader.skipType(tag & 7); break; @@ -27900,323 +27629,97 @@ }; /** - * Decodes a DeleteIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a RunTestCaseMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.DeleteIntentRequest} DeleteIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseMetadata} RunTestCaseMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteIntentRequest.decodeDelimited = function decodeDelimited(reader) { + RunTestCaseMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteIntentRequest message. + * Verifies a RunTestCaseMetadata message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteIntentRequest.verify = function verify(message) { + RunTestCaseMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; return null; }; /** - * Creates a DeleteIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RunTestCaseMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DeleteIntentRequest} DeleteIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseMetadata} RunTestCaseMetadata */ - DeleteIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteIntentRequest) + RunTestCaseMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.RunTestCaseMetadata) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.DeleteIntentRequest(); - if (object.name != null) - message.name = String(object.name); - return message; + return new $root.google.cloud.dialogflow.cx.v3.RunTestCaseMetadata(); }; /** - * Creates a plain object from a DeleteIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from a RunTestCaseMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.DeleteIntentRequest} message DeleteIntentRequest + * @param {google.cloud.dialogflow.cx.v3.RunTestCaseMetadata} message RunTestCaseMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteIntentRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; - - /** - * Converts this DeleteIntentRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest - * @instance - * @returns {Object.} JSON object - */ - DeleteIntentRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return DeleteIntentRequest; - })(); - - /** - * IntentView enum. - * @name google.cloud.dialogflow.cx.v3.IntentView - * @enum {number} - * @property {number} INTENT_VIEW_UNSPECIFIED=0 INTENT_VIEW_UNSPECIFIED value - * @property {number} INTENT_VIEW_PARTIAL=1 INTENT_VIEW_PARTIAL value - * @property {number} INTENT_VIEW_FULL=2 INTENT_VIEW_FULL value - */ - v3.IntentView = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "INTENT_VIEW_UNSPECIFIED"] = 0; - values[valuesById[1] = "INTENT_VIEW_PARTIAL"] = 1; - values[valuesById[2] = "INTENT_VIEW_FULL"] = 2; - return values; - })(); - - v3.SecuritySettingsService = (function() { - - /** - * Constructs a new SecuritySettingsService service. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a SecuritySettingsService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function SecuritySettingsService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (SecuritySettingsService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = SecuritySettingsService; - - /** - * Creates new SecuritySettingsService service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {SecuritySettingsService} RPC service. Useful where requests and/or responses are streamed. - */ - SecuritySettingsService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); + RunTestCaseMetadata.toObject = function toObject() { + return {}; }; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#createSecuritySettings}. - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService - * @typedef CreateSecuritySettingsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.SecuritySettings} [response] SecuritySettings - */ - - /** - * Calls CreateSecuritySettings. - * @function createSecuritySettings - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService - * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest} request CreateSecuritySettingsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettingsCallback} callback Node-style callback called with the error, if any, and SecuritySettings - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(SecuritySettingsService.prototype.createSecuritySettings = function createSecuritySettings(request, callback) { - return this.rpcCall(createSecuritySettings, $root.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest, $root.google.cloud.dialogflow.cx.v3.SecuritySettings, request, callback); - }, "name", { value: "CreateSecuritySettings" }); - - /** - * Calls CreateSecuritySettings. - * @function createSecuritySettings - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService - * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest} request CreateSecuritySettingsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#getSecuritySettings}. - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService - * @typedef GetSecuritySettingsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.SecuritySettings} [response] SecuritySettings - */ - - /** - * Calls GetSecuritySettings. - * @function getSecuritySettings - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService - * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest} request GetSecuritySettingsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.SecuritySettingsService.GetSecuritySettingsCallback} callback Node-style callback called with the error, if any, and SecuritySettings - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(SecuritySettingsService.prototype.getSecuritySettings = function getSecuritySettings(request, callback) { - return this.rpcCall(getSecuritySettings, $root.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest, $root.google.cloud.dialogflow.cx.v3.SecuritySettings, request, callback); - }, "name", { value: "GetSecuritySettings" }); - - /** - * Calls GetSecuritySettings. - * @function getSecuritySettings - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService - * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest} request GetSecuritySettingsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#updateSecuritySettings}. - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService - * @typedef UpdateSecuritySettingsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.SecuritySettings} [response] SecuritySettings - */ - - /** - * Calls UpdateSecuritySettings. - * @function updateSecuritySettings - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService - * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest} request UpdateSecuritySettingsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettingsCallback} callback Node-style callback called with the error, if any, and SecuritySettings - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(SecuritySettingsService.prototype.updateSecuritySettings = function updateSecuritySettings(request, callback) { - return this.rpcCall(updateSecuritySettings, $root.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest, $root.google.cloud.dialogflow.cx.v3.SecuritySettings, request, callback); - }, "name", { value: "UpdateSecuritySettings" }); - - /** - * Calls UpdateSecuritySettings. - * @function updateSecuritySettings - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService - * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest} request UpdateSecuritySettingsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#listSecuritySettings}. - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService - * @typedef ListSecuritySettingsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse} [response] ListSecuritySettingsResponse - */ - - /** - * Calls ListSecuritySettings. - * @function listSecuritySettings - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService - * @instance - * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest} request ListSecuritySettingsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.SecuritySettingsService.ListSecuritySettingsCallback} callback Node-style callback called with the error, if any, and ListSecuritySettingsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(SecuritySettingsService.prototype.listSecuritySettings = function listSecuritySettings(request, callback) { - return this.rpcCall(listSecuritySettings, $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest, $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse, request, callback); - }, "name", { value: "ListSecuritySettings" }); - - /** - * Calls ListSecuritySettings. - * @function listSecuritySettings - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService - * @instance - * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest} request ListSecuritySettingsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#deleteSecuritySettings}. - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService - * @typedef DeleteSecuritySettingsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty - */ - - /** - * Calls DeleteSecuritySettings. - * @function deleteSecuritySettings - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService - * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest} request DeleteSecuritySettingsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.SecuritySettingsService.DeleteSecuritySettingsCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(SecuritySettingsService.prototype.deleteSecuritySettings = function deleteSecuritySettings(request, callback) { - return this.rpcCall(deleteSecuritySettings, $root.google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteSecuritySettings" }); - - /** - * Calls DeleteSecuritySettings. - * @function deleteSecuritySettings - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + /** + * Converts this RunTestCaseMetadata to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseMetadata * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest} request DeleteSecuritySettingsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + RunTestCaseMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return SecuritySettingsService; + return RunTestCaseMetadata; })(); - v3.GetSecuritySettingsRequest = (function() { + v3.BatchRunTestCasesRequest = (function() { /** - * Properties of a GetSecuritySettingsRequest. + * Properties of a BatchRunTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IGetSecuritySettingsRequest - * @property {string|null} [name] GetSecuritySettingsRequest name + * @interface IBatchRunTestCasesRequest + * @property {string|null} [parent] BatchRunTestCasesRequest parent + * @property {string|null} [environment] BatchRunTestCasesRequest environment + * @property {Array.|null} [testCases] BatchRunTestCasesRequest testCases */ /** - * Constructs a new GetSecuritySettingsRequest. + * Constructs a new BatchRunTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a GetSecuritySettingsRequest. - * @implements IGetSecuritySettingsRequest + * @classdesc Represents a BatchRunTestCasesRequest. + * @implements IBatchRunTestCasesRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest=} [properties] Properties to set */ - function GetSecuritySettingsRequest(properties) { + function BatchRunTestCasesRequest(properties) { + this.testCases = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28224,75 +27727,104 @@ } /** - * GetSecuritySettingsRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest + * BatchRunTestCasesRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest * @instance */ - GetSecuritySettingsRequest.prototype.name = ""; + BatchRunTestCasesRequest.prototype.parent = ""; /** - * Creates a new GetSecuritySettingsRequest instance using the specified properties. + * BatchRunTestCasesRequest environment. + * @member {string} environment + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest + * @instance + */ + BatchRunTestCasesRequest.prototype.environment = ""; + + /** + * BatchRunTestCasesRequest testCases. + * @member {Array.} testCases + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest + * @instance + */ + BatchRunTestCasesRequest.prototype.testCases = $util.emptyArray; + + /** + * Creates a new BatchRunTestCasesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest} GetSecuritySettingsRequest instance + * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest} BatchRunTestCasesRequest instance */ - GetSecuritySettingsRequest.create = function create(properties) { - return new GetSecuritySettingsRequest(properties); + BatchRunTestCasesRequest.create = function create(properties) { + return new BatchRunTestCasesRequest(properties); }; /** - * Encodes the specified GetSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest.verify|verify} messages. + * Encodes the specified BatchRunTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest} message GetSecuritySettingsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest} message BatchRunTestCasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSecuritySettingsRequest.encode = function encode(message, writer) { + BatchRunTestCasesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.environment); + if (message.testCases != null && message.testCases.length) + for (var i = 0; i < message.testCases.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.testCases[i]); return writer; }; /** - * Encodes the specified GetSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest.verify|verify} messages. + * Encodes the specified BatchRunTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest} message GetSecuritySettingsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest} message BatchRunTestCasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchRunTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSecuritySettingsRequest message from the specified reader or buffer. + * Decodes a BatchRunTestCasesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest} GetSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest} BatchRunTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSecuritySettingsRequest.decode = function decode(reader, length) { + BatchRunTestCasesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); + break; + case 2: + message.environment = reader.string(); + break; + case 3: + if (!(message.testCases && message.testCases.length)) + message.testCases = []; + message.testCases.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -28303,108 +27835,138 @@ }; /** - * Decodes a GetSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchRunTestCasesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest} GetSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest} BatchRunTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { + BatchRunTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetSecuritySettingsRequest message. + * Verifies a BatchRunTestCasesRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetSecuritySettingsRequest.verify = function verify(message) { + BatchRunTestCasesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.environment != null && message.hasOwnProperty("environment")) + if (!$util.isString(message.environment)) + return "environment: string expected"; + if (message.testCases != null && message.hasOwnProperty("testCases")) { + if (!Array.isArray(message.testCases)) + return "testCases: array expected"; + for (var i = 0; i < message.testCases.length; ++i) + if (!$util.isString(message.testCases[i])) + return "testCases: string[] expected"; + } return null; }; /** - * Creates a GetSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchRunTestCasesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest} GetSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest} BatchRunTestCasesRequest */ - GetSecuritySettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest) + BatchRunTestCasesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.environment != null) + message.environment = String(object.environment); + if (object.testCases) { + if (!Array.isArray(object.testCases)) + throw TypeError(".google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest.testCases: array expected"); + message.testCases = []; + for (var i = 0; i < object.testCases.length; ++i) + message.testCases[i] = String(object.testCases[i]); + } return message; }; /** - * Creates a plain object from a GetSecuritySettingsRequest message. Also converts values to other types if specified. + * Creates a plain object from a BatchRunTestCasesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest} message GetSecuritySettingsRequest + * @param {google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest} message BatchRunTestCasesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSecuritySettingsRequest.toObject = function toObject(message, options) { + BatchRunTestCasesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.arrays || options.defaults) + object.testCases = []; + if (options.defaults) { + object.parent = ""; + object.environment = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = message.environment; + if (message.testCases && message.testCases.length) { + object.testCases = []; + for (var j = 0; j < message.testCases.length; ++j) + object.testCases[j] = message.testCases[j]; + } return object; }; /** - * Converts this GetSecuritySettingsRequest to JSON. + * Converts this BatchRunTestCasesRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest * @instance * @returns {Object.} JSON object */ - GetSecuritySettingsRequest.prototype.toJSON = function toJSON() { + BatchRunTestCasesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetSecuritySettingsRequest; + return BatchRunTestCasesRequest; })(); - v3.UpdateSecuritySettingsRequest = (function() { + v3.BatchRunTestCasesResponse = (function() { /** - * Properties of an UpdateSecuritySettingsRequest. + * Properties of a BatchRunTestCasesResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IUpdateSecuritySettingsRequest - * @property {google.cloud.dialogflow.cx.v3.ISecuritySettings|null} [securitySettings] UpdateSecuritySettingsRequest securitySettings - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSecuritySettingsRequest updateMask + * @interface IBatchRunTestCasesResponse + * @property {Array.|null} [results] BatchRunTestCasesResponse results */ /** - * Constructs a new UpdateSecuritySettingsRequest. + * Constructs a new BatchRunTestCasesResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an UpdateSecuritySettingsRequest. - * @implements IUpdateSecuritySettingsRequest + * @classdesc Represents a BatchRunTestCasesResponse. + * @implements IBatchRunTestCasesResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesResponse=} [properties] Properties to set */ - function UpdateSecuritySettingsRequest(properties) { + function BatchRunTestCasesResponse(properties) { + this.results = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28412,88 +27974,78 @@ } /** - * UpdateSecuritySettingsRequest securitySettings. - * @member {google.cloud.dialogflow.cx.v3.ISecuritySettings|null|undefined} securitySettings - * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest - * @instance - */ - UpdateSecuritySettingsRequest.prototype.securitySettings = null; - - /** - * UpdateSecuritySettingsRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest + * BatchRunTestCasesResponse results. + * @member {Array.} results + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse * @instance */ - UpdateSecuritySettingsRequest.prototype.updateMask = null; + BatchRunTestCasesResponse.prototype.results = $util.emptyArray; /** - * Creates a new UpdateSecuritySettingsRequest instance using the specified properties. + * Creates a new BatchRunTestCasesResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest} UpdateSecuritySettingsRequest instance + * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse} BatchRunTestCasesResponse instance */ - UpdateSecuritySettingsRequest.create = function create(properties) { - return new UpdateSecuritySettingsRequest(properties); + BatchRunTestCasesResponse.create = function create(properties) { + return new BatchRunTestCasesResponse(properties); }; /** - * Encodes the specified UpdateSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest.verify|verify} messages. + * Encodes the specified BatchRunTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest} message UpdateSecuritySettingsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesResponse} message BatchRunTestCasesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateSecuritySettingsRequest.encode = function encode(message, writer) { + BatchRunTestCasesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.securitySettings != null && Object.hasOwnProperty.call(message, "securitySettings")) - $root.google.cloud.dialogflow.cx.v3.SecuritySettings.encode(message.securitySettings, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.results != null && message.results.length) + for (var i = 0; i < message.results.length; ++i) + $root.google.cloud.dialogflow.cx.v3.TestCaseResult.encode(message.results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest.verify|verify} messages. + * Encodes the specified BatchRunTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest} message UpdateSecuritySettingsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesResponse} message BatchRunTestCasesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchRunTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateSecuritySettingsRequest message from the specified reader or buffer. + * Decodes a BatchRunTestCasesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest} UpdateSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse} BatchRunTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateSecuritySettingsRequest.decode = function decode(reader, length) { + BatchRunTestCasesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.securitySettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + if (!(message.results && message.results.length)) + message.results = []; + message.results.push($root.google.cloud.dialogflow.cx.v3.TestCaseResult.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -28504,128 +28056,125 @@ }; /** - * Decodes an UpdateSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchRunTestCasesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest} UpdateSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse} BatchRunTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { + BatchRunTestCasesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateSecuritySettingsRequest message. + * Verifies a BatchRunTestCasesResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateSecuritySettingsRequest.verify = function verify(message) { + BatchRunTestCasesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) { - var error = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.verify(message.securitySettings); - if (error) - return "securitySettings." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; + if (message.results != null && message.hasOwnProperty("results")) { + if (!Array.isArray(message.results)) + return "results: array expected"; + for (var i = 0; i < message.results.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.verify(message.results[i]); + if (error) + return "results." + error; + } } return null; }; /** - * Creates an UpdateSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchRunTestCasesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest} UpdateSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse} BatchRunTestCasesResponse */ - UpdateSecuritySettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest) + BatchRunTestCasesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest(); - if (object.securitySettings != null) { - if (typeof object.securitySettings !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest.securitySettings: object expected"); - message.securitySettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.fromObject(object.securitySettings); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse(); + if (object.results) { + if (!Array.isArray(object.results)) + throw TypeError(".google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse.results: array expected"); + message.results = []; + for (var i = 0; i < object.results.length; ++i) { + if (typeof object.results[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse.results: object expected"); + message.results[i] = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.fromObject(object.results[i]); + } } return message; }; /** - * Creates a plain object from an UpdateSecuritySettingsRequest message. Also converts values to other types if specified. + * Creates a plain object from a BatchRunTestCasesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest} message UpdateSecuritySettingsRequest + * @param {google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse} message BatchRunTestCasesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateSecuritySettingsRequest.toObject = function toObject(message, options) { + BatchRunTestCasesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.securitySettings = null; - object.updateMask = null; + if (options.arrays || options.defaults) + object.results = []; + if (message.results && message.results.length) { + object.results = []; + for (var j = 0; j < message.results.length; ++j) + object.results[j] = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.toObject(message.results[j], options); } - if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) - object.securitySettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.toObject(message.securitySettings, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this UpdateSecuritySettingsRequest to JSON. + * Converts this BatchRunTestCasesResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse * @instance * @returns {Object.} JSON object */ - UpdateSecuritySettingsRequest.prototype.toJSON = function toJSON() { + BatchRunTestCasesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateSecuritySettingsRequest; + return BatchRunTestCasesResponse; })(); - v3.ListSecuritySettingsRequest = (function() { + v3.BatchRunTestCasesMetadata = (function() { /** - * Properties of a ListSecuritySettingsRequest. + * Properties of a BatchRunTestCasesMetadata. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListSecuritySettingsRequest - * @property {string|null} [parent] ListSecuritySettingsRequest parent - * @property {number|null} [pageSize] ListSecuritySettingsRequest pageSize - * @property {string|null} [pageToken] ListSecuritySettingsRequest pageToken + * @interface IBatchRunTestCasesMetadata + * @property {Array.|null} [errors] BatchRunTestCasesMetadata errors */ /** - * Constructs a new ListSecuritySettingsRequest. + * Constructs a new BatchRunTestCasesMetadata. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListSecuritySettingsRequest. - * @implements IListSecuritySettingsRequest + * @classdesc Represents a BatchRunTestCasesMetadata. + * @implements IBatchRunTestCasesMetadata * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesMetadata=} [properties] Properties to set */ - function ListSecuritySettingsRequest(properties) { + function BatchRunTestCasesMetadata(properties) { + this.errors = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28633,101 +28182,78 @@ } /** - * ListSecuritySettingsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest - * @instance - */ - ListSecuritySettingsRequest.prototype.parent = ""; - - /** - * ListSecuritySettingsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest - * @instance - */ - ListSecuritySettingsRequest.prototype.pageSize = 0; - - /** - * ListSecuritySettingsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest + * BatchRunTestCasesMetadata errors. + * @member {Array.} errors + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata * @instance */ - ListSecuritySettingsRequest.prototype.pageToken = ""; + BatchRunTestCasesMetadata.prototype.errors = $util.emptyArray; /** - * Creates a new ListSecuritySettingsRequest instance using the specified properties. + * Creates a new BatchRunTestCasesMetadata instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest} ListSecuritySettingsRequest instance + * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesMetadata=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata instance */ - ListSecuritySettingsRequest.create = function create(properties) { - return new ListSecuritySettingsRequest(properties); + BatchRunTestCasesMetadata.create = function create(properties) { + return new BatchRunTestCasesMetadata(properties); }; /** - * Encodes the specified ListSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest.verify|verify} messages. + * Encodes the specified BatchRunTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest} message ListSecuritySettingsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesMetadata} message BatchRunTestCasesMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSecuritySettingsRequest.encode = function encode(message, writer) { + BatchRunTestCasesMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.errors != null && message.errors.length) + for (var i = 0; i < message.errors.length; ++i) + $root.google.cloud.dialogflow.cx.v3.TestError.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest.verify|verify} messages. + * Encodes the specified BatchRunTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest} message ListSecuritySettingsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesMetadata} message BatchRunTestCasesMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchRunTestCasesMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListSecuritySettingsRequest message from the specified reader or buffer. + * Decodes a BatchRunTestCasesMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest} ListSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSecuritySettingsRequest.decode = function decode(reader, length) { + BatchRunTestCasesMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); + if (!(message.errors && message.errors.length)) + message.errors = []; + message.errors.push($root.google.cloud.dialogflow.cx.v3.TestError.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -28738,126 +28264,126 @@ }; /** - * Decodes a ListSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchRunTestCasesMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest} ListSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { + BatchRunTestCasesMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListSecuritySettingsRequest message. + * Verifies a BatchRunTestCasesMetadata message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListSecuritySettingsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BatchRunTestCasesMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.errors != null && message.hasOwnProperty("errors")) { + if (!Array.isArray(message.errors)) + return "errors: array expected"; + for (var i = 0; i < message.errors.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.TestError.verify(message.errors[i]); + if (error) + return "errors." + error; + } + } return null; }; /** - * Creates a ListSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchRunTestCasesMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest} ListSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata */ - ListSecuritySettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest) + BatchRunTestCasesMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata(); + if (object.errors) { + if (!Array.isArray(object.errors)) + throw TypeError(".google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata.errors: array expected"); + message.errors = []; + for (var i = 0; i < object.errors.length; ++i) { + if (typeof object.errors[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata.errors: object expected"); + message.errors[i] = $root.google.cloud.dialogflow.cx.v3.TestError.fromObject(object.errors[i]); + } + } return message; }; /** - * Creates a plain object from a ListSecuritySettingsRequest message. Also converts values to other types if specified. + * Creates a plain object from a BatchRunTestCasesMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest} message ListSecuritySettingsRequest + * @param {google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata} message BatchRunTestCasesMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListSecuritySettingsRequest.toObject = function toObject(message, options) { + BatchRunTestCasesMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + if (options.arrays || options.defaults) + object.errors = []; + if (message.errors && message.errors.length) { + object.errors = []; + for (var j = 0; j < message.errors.length; ++j) + object.errors[j] = $root.google.cloud.dialogflow.cx.v3.TestError.toObject(message.errors[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; return object; }; /** - * Converts this ListSecuritySettingsRequest to JSON. + * Converts this BatchRunTestCasesMetadata to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata * @instance * @returns {Object.} JSON object */ - ListSecuritySettingsRequest.prototype.toJSON = function toJSON() { + BatchRunTestCasesMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListSecuritySettingsRequest; + return BatchRunTestCasesMetadata; })(); - v3.ListSecuritySettingsResponse = (function() { + v3.TestError = (function() { /** - * Properties of a ListSecuritySettingsResponse. + * Properties of a TestError. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListSecuritySettingsResponse - * @property {Array.|null} [securitySettings] ListSecuritySettingsResponse securitySettings - * @property {string|null} [nextPageToken] ListSecuritySettingsResponse nextPageToken + * @interface ITestError + * @property {string|null} [testCase] TestError testCase + * @property {google.rpc.IStatus|null} [status] TestError status + * @property {google.protobuf.ITimestamp|null} [testTime] TestError testTime */ /** - * Constructs a new ListSecuritySettingsResponse. + * Constructs a new TestError. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListSecuritySettingsResponse. - * @implements IListSecuritySettingsResponse + * @classdesc Represents a TestError. + * @implements ITestError * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ITestError=} [properties] Properties to set */ - function ListSecuritySettingsResponse(properties) { - this.securitySettings = []; + function TestError(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28865,91 +28391,101 @@ } /** - * ListSecuritySettingsResponse securitySettings. - * @member {Array.} securitySettings - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * TestError testCase. + * @member {string} testCase + * @memberof google.cloud.dialogflow.cx.v3.TestError * @instance */ - ListSecuritySettingsResponse.prototype.securitySettings = $util.emptyArray; + TestError.prototype.testCase = ""; /** - * ListSecuritySettingsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * TestError status. + * @member {google.rpc.IStatus|null|undefined} status + * @memberof google.cloud.dialogflow.cx.v3.TestError * @instance */ - ListSecuritySettingsResponse.prototype.nextPageToken = ""; + TestError.prototype.status = null; /** - * Creates a new ListSecuritySettingsResponse instance using the specified properties. + * TestError testTime. + * @member {google.protobuf.ITimestamp|null|undefined} testTime + * @memberof google.cloud.dialogflow.cx.v3.TestError + * @instance + */ + TestError.prototype.testTime = null; + + /** + * Creates a new TestError instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * @memberof google.cloud.dialogflow.cx.v3.TestError * @static - * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse} ListSecuritySettingsResponse instance + * @param {google.cloud.dialogflow.cx.v3.ITestError=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TestError} TestError instance */ - ListSecuritySettingsResponse.create = function create(properties) { - return new ListSecuritySettingsResponse(properties); + TestError.create = function create(properties) { + return new TestError(properties); }; /** - * Encodes the specified ListSecuritySettingsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse.verify|verify} messages. + * Encodes the specified TestError message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestError.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * @memberof google.cloud.dialogflow.cx.v3.TestError * @static - * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse} message ListSecuritySettingsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITestError} message TestError message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSecuritySettingsResponse.encode = function encode(message, writer) { + TestError.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.securitySettings != null && message.securitySettings.length) - for (var i = 0; i < message.securitySettings.length; ++i) - $root.google.cloud.dialogflow.cx.v3.SecuritySettings.encode(message.securitySettings[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.testCase != null && Object.hasOwnProperty.call(message, "testCase")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.testCase); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.testTime != null && Object.hasOwnProperty.call(message, "testTime")) + $root.google.protobuf.Timestamp.encode(message.testTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListSecuritySettingsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse.verify|verify} messages. + * Encodes the specified TestError message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestError.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * @memberof google.cloud.dialogflow.cx.v3.TestError * @static - * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse} message ListSecuritySettingsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITestError} message TestError message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSecuritySettingsResponse.encodeDelimited = function encodeDelimited(message, writer) { + TestError.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListSecuritySettingsResponse message from the specified reader or buffer. + * Decodes a TestError message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * @memberof google.cloud.dialogflow.cx.v3.TestError * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse} ListSecuritySettingsResponse + * @returns {google.cloud.dialogflow.cx.v3.TestError} TestError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSecuritySettingsResponse.decode = function decode(reader, length) { + TestError.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TestError(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.securitySettings && message.securitySettings.length)) - message.securitySettings = []; - message.securitySettings.push($root.google.cloud.dialogflow.cx.v3.SecuritySettings.decode(reader, reader.uint32())); + message.testCase = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + case 3: + message.testTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -28960,134 +28496,136 @@ }; /** - * Decodes a ListSecuritySettingsResponse message from the specified reader or buffer, length delimited. + * Decodes a TestError message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * @memberof google.cloud.dialogflow.cx.v3.TestError * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse} ListSecuritySettingsResponse + * @returns {google.cloud.dialogflow.cx.v3.TestError} TestError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSecuritySettingsResponse.decodeDelimited = function decodeDelimited(reader) { + TestError.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListSecuritySettingsResponse message. + * Verifies a TestError message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * @memberof google.cloud.dialogflow.cx.v3.TestError * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListSecuritySettingsResponse.verify = function verify(message) { + TestError.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) { - if (!Array.isArray(message.securitySettings)) - return "securitySettings: array expected"; - for (var i = 0; i < message.securitySettings.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.verify(message.securitySettings[i]); - if (error) - return "securitySettings." + error; - } + if (message.testCase != null && message.hasOwnProperty("testCase")) + if (!$util.isString(message.testCase)) + return "testCase: string expected"; + if (message.status != null && message.hasOwnProperty("status")) { + var error = $root.google.rpc.Status.verify(message.status); + if (error) + return "status." + error; + } + if (message.testTime != null && message.hasOwnProperty("testTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.testTime); + if (error) + return "testTime." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListSecuritySettingsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a TestError message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * @memberof google.cloud.dialogflow.cx.v3.TestError * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse} ListSecuritySettingsResponse + * @returns {google.cloud.dialogflow.cx.v3.TestError} TestError */ - ListSecuritySettingsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse) + TestError.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.TestError) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse(); - if (object.securitySettings) { - if (!Array.isArray(object.securitySettings)) - throw TypeError(".google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse.securitySettings: array expected"); - message.securitySettings = []; - for (var i = 0; i < object.securitySettings.length; ++i) { - if (typeof object.securitySettings[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse.securitySettings: object expected"); - message.securitySettings[i] = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.fromObject(object.securitySettings[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3.TestError(); + if (object.testCase != null) + message.testCase = String(object.testCase); + if (object.status != null) { + if (typeof object.status !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TestError.status: object expected"); + message.status = $root.google.rpc.Status.fromObject(object.status); + } + if (object.testTime != null) { + if (typeof object.testTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TestError.testTime: object expected"); + message.testTime = $root.google.protobuf.Timestamp.fromObject(object.testTime); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListSecuritySettingsResponse message. Also converts values to other types if specified. + * Creates a plain object from a TestError message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * @memberof google.cloud.dialogflow.cx.v3.TestError * @static - * @param {google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse} message ListSecuritySettingsResponse + * @param {google.cloud.dialogflow.cx.v3.TestError} message TestError * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListSecuritySettingsResponse.toObject = function toObject(message, options) { + TestError.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.securitySettings = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.securitySettings && message.securitySettings.length) { - object.securitySettings = []; - for (var j = 0; j < message.securitySettings.length; ++j) - object.securitySettings[j] = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.toObject(message.securitySettings[j], options); + if (options.defaults) { + object.testCase = ""; + object.status = null; + object.testTime = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.testCase != null && message.hasOwnProperty("testCase")) + object.testCase = message.testCase; + if (message.status != null && message.hasOwnProperty("status")) + object.status = $root.google.rpc.Status.toObject(message.status, options); + if (message.testTime != null && message.hasOwnProperty("testTime")) + object.testTime = $root.google.protobuf.Timestamp.toObject(message.testTime, options); return object; }; /** - * Converts this ListSecuritySettingsResponse to JSON. + * Converts this TestError to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * @memberof google.cloud.dialogflow.cx.v3.TestError * @instance * @returns {Object.} JSON object */ - ListSecuritySettingsResponse.prototype.toJSON = function toJSON() { + TestError.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListSecuritySettingsResponse; + return TestError; })(); - v3.CreateSecuritySettingsRequest = (function() { + v3.ImportTestCasesRequest = (function() { /** - * Properties of a CreateSecuritySettingsRequest. + * Properties of an ImportTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ICreateSecuritySettingsRequest - * @property {string|null} [parent] CreateSecuritySettingsRequest parent - * @property {google.cloud.dialogflow.cx.v3.ISecuritySettings|null} [securitySettings] CreateSecuritySettingsRequest securitySettings + * @interface IImportTestCasesRequest + * @property {string|null} [parent] ImportTestCasesRequest parent + * @property {string|null} [gcsUri] ImportTestCasesRequest gcsUri + * @property {Uint8Array|null} [content] ImportTestCasesRequest content */ /** - * Constructs a new CreateSecuritySettingsRequest. + * Constructs a new ImportTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CreateSecuritySettingsRequest. - * @implements ICreateSecuritySettingsRequest + * @classdesc Represents an ImportTestCasesRequest. + * @implements IImportTestCasesRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesRequest=} [properties] Properties to set */ - function CreateSecuritySettingsRequest(properties) { + function ImportTestCasesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -29095,80 +28633,104 @@ } /** - * CreateSecuritySettingsRequest parent. + * ImportTestCasesRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest * @instance */ - CreateSecuritySettingsRequest.prototype.parent = ""; + ImportTestCasesRequest.prototype.parent = ""; /** - * CreateSecuritySettingsRequest securitySettings. - * @member {google.cloud.dialogflow.cx.v3.ISecuritySettings|null|undefined} securitySettings - * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * ImportTestCasesRequest gcsUri. + * @member {string} gcsUri + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest * @instance */ - CreateSecuritySettingsRequest.prototype.securitySettings = null; + ImportTestCasesRequest.prototype.gcsUri = ""; /** - * Creates a new CreateSecuritySettingsRequest instance using the specified properties. + * ImportTestCasesRequest content. + * @member {Uint8Array} content + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest + * @instance + */ + ImportTestCasesRequest.prototype.content = $util.newBuffer([]); + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ImportTestCasesRequest source. + * @member {"gcsUri"|"content"|undefined} source + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest + * @instance + */ + Object.defineProperty(ImportTestCasesRequest.prototype, "source", { + get: $util.oneOfGetter($oneOfFields = ["gcsUri", "content"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ImportTestCasesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest} CreateSecuritySettingsRequest instance + * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesRequest} ImportTestCasesRequest instance */ - CreateSecuritySettingsRequest.create = function create(properties) { - return new CreateSecuritySettingsRequest(properties); + ImportTestCasesRequest.create = function create(properties) { + return new ImportTestCasesRequest(properties); }; /** - * Encodes the specified CreateSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest.verify|verify} messages. + * Encodes the specified ImportTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest} message CreateSecuritySettingsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesRequest} message ImportTestCasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateSecuritySettingsRequest.encode = function encode(message, writer) { + ImportTestCasesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.securitySettings != null && Object.hasOwnProperty.call(message, "securitySettings")) - $root.google.cloud.dialogflow.cx.v3.SecuritySettings.encode(message.securitySettings, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.gcsUri != null && Object.hasOwnProperty.call(message, "gcsUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.gcsUri); + if (message.content != null && Object.hasOwnProperty.call(message, "content")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.content); return writer; }; /** - * Encodes the specified CreateSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest.verify|verify} messages. + * Encodes the specified ImportTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest} message CreateSecuritySettingsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesRequest} message ImportTestCasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ImportTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateSecuritySettingsRequest message from the specified reader or buffer. + * Decodes an ImportTestCasesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest} CreateSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesRequest} ImportTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateSecuritySettingsRequest.decode = function decode(reader, length) { + ImportTestCasesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ImportTestCasesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -29176,7 +28738,10 @@ message.parent = reader.string(); break; case 2: - message.securitySettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.decode(reader, reader.uint32()); + message.gcsUri = reader.string(); + break; + case 3: + message.content = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -29187,121 +28752,138 @@ }; /** - * Decodes a CreateSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * Decodes an ImportTestCasesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest} CreateSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesRequest} ImportTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { + ImportTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateSecuritySettingsRequest message. + * Verifies an ImportTestCasesRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateSecuritySettingsRequest.verify = function verify(message) { + ImportTestCasesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) { - var error = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.verify(message.securitySettings); - if (error) - return "securitySettings." + error; + if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { + properties.source = 1; + if (!$util.isString(message.gcsUri)) + return "gcsUri: string expected"; + } + if (message.content != null && message.hasOwnProperty("content")) { + if (properties.source === 1) + return "source: multiple values"; + properties.source = 1; + if (!(message.content && typeof message.content.length === "number" || $util.isString(message.content))) + return "content: buffer expected"; } return null; }; /** - * Creates a CreateSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ImportTestCasesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest} CreateSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesRequest} ImportTestCasesRequest */ - CreateSecuritySettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest) + ImportTestCasesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ImportTestCasesRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.ImportTestCasesRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.securitySettings != null) { - if (typeof object.securitySettings !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest.securitySettings: object expected"); - message.securitySettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.fromObject(object.securitySettings); - } + if (object.gcsUri != null) + message.gcsUri = String(object.gcsUri); + if (object.content != null) + if (typeof object.content === "string") + $util.base64.decode(object.content, message.content = $util.newBuffer($util.base64.length(object.content)), 0); + else if (object.content.length) + message.content = object.content; return message; }; /** - * Creates a plain object from a CreateSecuritySettingsRequest message. Also converts values to other types if specified. + * Creates a plain object from an ImportTestCasesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest} message CreateSecuritySettingsRequest + * @param {google.cloud.dialogflow.cx.v3.ImportTestCasesRequest} message ImportTestCasesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateSecuritySettingsRequest.toObject = function toObject(message, options) { + ImportTestCasesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { + if (options.defaults) object.parent = ""; - object.securitySettings = null; - } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) - object.securitySettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.toObject(message.securitySettings, options); + if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { + object.gcsUri = message.gcsUri; + if (options.oneofs) + object.source = "gcsUri"; + } + if (message.content != null && message.hasOwnProperty("content")) { + object.content = options.bytes === String ? $util.base64.encode(message.content, 0, message.content.length) : options.bytes === Array ? Array.prototype.slice.call(message.content) : message.content; + if (options.oneofs) + object.source = "content"; + } return object; }; /** - * Converts this CreateSecuritySettingsRequest to JSON. + * Converts this ImportTestCasesRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest * @instance * @returns {Object.} JSON object */ - CreateSecuritySettingsRequest.prototype.toJSON = function toJSON() { + ImportTestCasesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateSecuritySettingsRequest; + return ImportTestCasesRequest; })(); - v3.DeleteSecuritySettingsRequest = (function() { + v3.ImportTestCasesResponse = (function() { /** - * Properties of a DeleteSecuritySettingsRequest. + * Properties of an ImportTestCasesResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDeleteSecuritySettingsRequest - * @property {string|null} [name] DeleteSecuritySettingsRequest name + * @interface IImportTestCasesResponse + * @property {Array.|null} [names] ImportTestCasesResponse names */ /** - * Constructs a new DeleteSecuritySettingsRequest. + * Constructs a new ImportTestCasesResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DeleteSecuritySettingsRequest. - * @implements IDeleteSecuritySettingsRequest + * @classdesc Represents an ImportTestCasesResponse. + * @implements IImportTestCasesResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesResponse=} [properties] Properties to set */ - function DeleteSecuritySettingsRequest(properties) { + function ImportTestCasesResponse(properties) { + this.names = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -29309,75 +28891,78 @@ } /** - * DeleteSecuritySettingsRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest + * ImportTestCasesResponse names. + * @member {Array.} names + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse * @instance */ - DeleteSecuritySettingsRequest.prototype.name = ""; + ImportTestCasesResponse.prototype.names = $util.emptyArray; /** - * Creates a new DeleteSecuritySettingsRequest instance using the specified properties. + * Creates a new ImportTestCasesResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest} DeleteSecuritySettingsRequest instance + * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesResponse} ImportTestCasesResponse instance */ - DeleteSecuritySettingsRequest.create = function create(properties) { - return new DeleteSecuritySettingsRequest(properties); + ImportTestCasesResponse.create = function create(properties) { + return new ImportTestCasesResponse(properties); }; /** - * Encodes the specified DeleteSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest.verify|verify} messages. + * Encodes the specified ImportTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest} message DeleteSecuritySettingsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesResponse} message ImportTestCasesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteSecuritySettingsRequest.encode = function encode(message, writer) { + ImportTestCasesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.names != null && message.names.length) + for (var i = 0; i < message.names.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.names[i]); return writer; }; /** - * Encodes the specified DeleteSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest.verify|verify} messages. + * Encodes the specified ImportTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest} message DeleteSecuritySettingsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesResponse} message ImportTestCasesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ImportTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteSecuritySettingsRequest message from the specified reader or buffer. + * Decodes an ImportTestCasesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest} DeleteSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesResponse} ImportTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteSecuritySettingsRequest.decode = function decode(reader, length) { + ImportTestCasesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ImportTestCasesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.names && message.names.length)) + message.names = []; + message.names.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -29388,114 +28973,120 @@ }; /** - * Decodes a DeleteSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * Decodes an ImportTestCasesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest} DeleteSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesResponse} ImportTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { + ImportTestCasesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteSecuritySettingsRequest message. + * Verifies an ImportTestCasesResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteSecuritySettingsRequest.verify = function verify(message) { + ImportTestCasesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.names != null && message.hasOwnProperty("names")) { + if (!Array.isArray(message.names)) + return "names: array expected"; + for (var i = 0; i < message.names.length; ++i) + if (!$util.isString(message.names[i])) + return "names: string[] expected"; + } return null; }; /** - * Creates a DeleteSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ImportTestCasesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest} DeleteSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesResponse} ImportTestCasesResponse */ - DeleteSecuritySettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest) + ImportTestCasesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ImportTestCasesResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3.ImportTestCasesResponse(); + if (object.names) { + if (!Array.isArray(object.names)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ImportTestCasesResponse.names: array expected"); + message.names = []; + for (var i = 0; i < object.names.length; ++i) + message.names[i] = String(object.names[i]); + } return message; }; /** - * Creates a plain object from a DeleteSecuritySettingsRequest message. Also converts values to other types if specified. + * Creates a plain object from an ImportTestCasesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest} message DeleteSecuritySettingsRequest + * @param {google.cloud.dialogflow.cx.v3.ImportTestCasesResponse} message ImportTestCasesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteSecuritySettingsRequest.toObject = function toObject(message, options) { + ImportTestCasesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.arrays || options.defaults) + object.names = []; + if (message.names && message.names.length) { + object.names = []; + for (var j = 0; j < message.names.length; ++j) + object.names[j] = message.names[j]; + } return object; }; /** - * Converts this DeleteSecuritySettingsRequest to JSON. + * Converts this ImportTestCasesResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse * @instance * @returns {Object.} JSON object */ - DeleteSecuritySettingsRequest.prototype.toJSON = function toJSON() { + ImportTestCasesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteSecuritySettingsRequest; + return ImportTestCasesResponse; })(); - v3.SecuritySettings = (function() { + v3.ImportTestCasesMetadata = (function() { /** - * Properties of a SecuritySettings. + * Properties of an ImportTestCasesMetadata. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ISecuritySettings - * @property {string|null} [name] SecuritySettings name - * @property {string|null} [displayName] SecuritySettings displayName - * @property {google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy|null} [redactionStrategy] SecuritySettings redactionStrategy - * @property {google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope|null} [redactionScope] SecuritySettings redactionScope - * @property {string|null} [inspectTemplate] SecuritySettings inspectTemplate - * @property {number|null} [retentionWindowDays] SecuritySettings retentionWindowDays - * @property {Array.|null} [purgeDataTypes] SecuritySettings purgeDataTypes + * @interface IImportTestCasesMetadata + * @property {Array.|null} [errors] ImportTestCasesMetadata errors */ /** - * Constructs a new SecuritySettings. + * Constructs a new ImportTestCasesMetadata. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a SecuritySettings. - * @implements ISecuritySettings + * @classdesc Represents an ImportTestCasesMetadata. + * @implements IImportTestCasesMetadata * @constructor - * @param {google.cloud.dialogflow.cx.v3.ISecuritySettings=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesMetadata=} [properties] Properties to set */ - function SecuritySettings(properties) { - this.purgeDataTypes = []; + function ImportTestCasesMetadata(properties) { + this.errors = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -29503,178 +29094,78 @@ } /** - * SecuritySettings name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings - * @instance - */ - SecuritySettings.prototype.name = ""; - - /** - * SecuritySettings displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings - * @instance - */ - SecuritySettings.prototype.displayName = ""; - - /** - * SecuritySettings redactionStrategy. - * @member {google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy} redactionStrategy - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings - * @instance - */ - SecuritySettings.prototype.redactionStrategy = 0; - - /** - * SecuritySettings redactionScope. - * @member {google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope} redactionScope - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings - * @instance - */ - SecuritySettings.prototype.redactionScope = 0; - - /** - * SecuritySettings inspectTemplate. - * @member {string} inspectTemplate - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings - * @instance - */ - SecuritySettings.prototype.inspectTemplate = ""; - - /** - * SecuritySettings retentionWindowDays. - * @member {number} retentionWindowDays - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings - * @instance - */ - SecuritySettings.prototype.retentionWindowDays = 0; - - /** - * SecuritySettings purgeDataTypes. - * @member {Array.} purgeDataTypes - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings - * @instance - */ - SecuritySettings.prototype.purgeDataTypes = $util.emptyArray; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * SecuritySettings dataRetention. - * @member {"retentionWindowDays"|undefined} dataRetention - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * ImportTestCasesMetadata errors. + * @member {Array.} errors + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata * @instance */ - Object.defineProperty(SecuritySettings.prototype, "dataRetention", { - get: $util.oneOfGetter($oneOfFields = ["retentionWindowDays"]), - set: $util.oneOfSetter($oneOfFields) - }); + ImportTestCasesMetadata.prototype.errors = $util.emptyArray; /** - * Creates a new SecuritySettings instance using the specified properties. + * Creates a new ImportTestCasesMetadata instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.ISecuritySettings=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings} SecuritySettings instance + * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesMetadata=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata} ImportTestCasesMetadata instance */ - SecuritySettings.create = function create(properties) { - return new SecuritySettings(properties); + ImportTestCasesMetadata.create = function create(properties) { + return new ImportTestCasesMetadata(properties); }; /** - * Encodes the specified SecuritySettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.verify|verify} messages. + * Encodes the specified ImportTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.ISecuritySettings} message SecuritySettings message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesMetadata} message ImportTestCasesMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SecuritySettings.encode = function encode(message, writer) { + ImportTestCasesMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.redactionStrategy != null && Object.hasOwnProperty.call(message, "redactionStrategy")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.redactionStrategy); - if (message.redactionScope != null && Object.hasOwnProperty.call(message, "redactionScope")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.redactionScope); - if (message.retentionWindowDays != null && Object.hasOwnProperty.call(message, "retentionWindowDays")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.retentionWindowDays); - if (message.purgeDataTypes != null && message.purgeDataTypes.length) { - writer.uint32(/* id 8, wireType 2 =*/66).fork(); - for (var i = 0; i < message.purgeDataTypes.length; ++i) - writer.int32(message.purgeDataTypes[i]); - writer.ldelim(); - } - if (message.inspectTemplate != null && Object.hasOwnProperty.call(message, "inspectTemplate")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.inspectTemplate); + if (message.errors != null && message.errors.length) + for (var i = 0; i < message.errors.length; ++i) + $root.google.cloud.dialogflow.cx.v3.TestCaseError.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified SecuritySettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.verify|verify} messages. + * Encodes the specified ImportTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.ISecuritySettings} message SecuritySettings message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesMetadata} message ImportTestCasesMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SecuritySettings.encodeDelimited = function encodeDelimited(message, writer) { + ImportTestCasesMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SecuritySettings message from the specified reader or buffer. + * Decodes an ImportTestCasesMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings} SecuritySettings + * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata} ImportTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SecuritySettings.decode = function decode(reader, length) { + ImportTestCasesMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.SecuritySettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); - break; - case 2: - message.displayName = reader.string(); - break; - case 3: - message.redactionStrategy = reader.int32(); - break; - case 4: - message.redactionScope = reader.int32(); - break; - case 9: - message.inspectTemplate = reader.string(); - break; - case 6: - message.retentionWindowDays = reader.int32(); - break; - case 8: - if (!(message.purgeDataTypes && message.purgeDataTypes.length)) - message.purgeDataTypes = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.purgeDataTypes.push(reader.int32()); - } else - message.purgeDataTypes.push(reader.int32()); + if (!(message.errors && message.errors.length)) + message.errors = []; + message.errors.push($root.google.cloud.dialogflow.cx.v3.TestCaseError.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -29685,427 +29176,347 @@ }; /** - * Decodes a SecuritySettings message from the specified reader or buffer, length delimited. + * Decodes an ImportTestCasesMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings} SecuritySettings + * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata} ImportTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SecuritySettings.decodeDelimited = function decodeDelimited(reader) { + ImportTestCasesMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SecuritySettings message. + * Verifies an ImportTestCasesMetadata message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SecuritySettings.verify = function verify(message) { + ImportTestCasesMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.redactionStrategy != null && message.hasOwnProperty("redactionStrategy")) - switch (message.redactionStrategy) { - default: - return "redactionStrategy: enum value expected"; - case 0: - case 1: - break; - } - if (message.redactionScope != null && message.hasOwnProperty("redactionScope")) - switch (message.redactionScope) { - default: - return "redactionScope: enum value expected"; - case 0: - case 2: - break; + if (message.errors != null && message.hasOwnProperty("errors")) { + if (!Array.isArray(message.errors)) + return "errors: array expected"; + for (var i = 0; i < message.errors.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.TestCaseError.verify(message.errors[i]); + if (error) + return "errors." + error; } - if (message.inspectTemplate != null && message.hasOwnProperty("inspectTemplate")) - if (!$util.isString(message.inspectTemplate)) - return "inspectTemplate: string expected"; - if (message.retentionWindowDays != null && message.hasOwnProperty("retentionWindowDays")) { - properties.dataRetention = 1; - if (!$util.isInteger(message.retentionWindowDays)) - return "retentionWindowDays: integer expected"; - } - if (message.purgeDataTypes != null && message.hasOwnProperty("purgeDataTypes")) { - if (!Array.isArray(message.purgeDataTypes)) - return "purgeDataTypes: array expected"; - for (var i = 0; i < message.purgeDataTypes.length; ++i) - switch (message.purgeDataTypes[i]) { - default: - return "purgeDataTypes: enum value[] expected"; - case 0: - case 1: - break; - } } return null; }; /** - * Creates a SecuritySettings message from a plain object. Also converts values to their respective internal types. + * Creates an ImportTestCasesMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings} SecuritySettings + * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata} ImportTestCasesMetadata */ - SecuritySettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.SecuritySettings) + ImportTestCasesMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.SecuritySettings(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - switch (object.redactionStrategy) { - case "REDACTION_STRATEGY_UNSPECIFIED": - case 0: - message.redactionStrategy = 0; - break; - case "REDACT_WITH_SERVICE": - case 1: - message.redactionStrategy = 1; - break; - } - switch (object.redactionScope) { - case "REDACTION_SCOPE_UNSPECIFIED": - case 0: - message.redactionScope = 0; - break; - case "REDACT_DISK_STORAGE": - case 2: - message.redactionScope = 2; - break; - } - if (object.inspectTemplate != null) - message.inspectTemplate = String(object.inspectTemplate); - if (object.retentionWindowDays != null) - message.retentionWindowDays = object.retentionWindowDays | 0; - if (object.purgeDataTypes) { - if (!Array.isArray(object.purgeDataTypes)) - throw TypeError(".google.cloud.dialogflow.cx.v3.SecuritySettings.purgeDataTypes: array expected"); - message.purgeDataTypes = []; - for (var i = 0; i < object.purgeDataTypes.length; ++i) - switch (object.purgeDataTypes[i]) { - default: - case "PURGE_DATA_TYPE_UNSPECIFIED": - case 0: - message.purgeDataTypes[i] = 0; - break; - case "DIALOGFLOW_HISTORY": - case 1: - message.purgeDataTypes[i] = 1; - break; - } + var message = new $root.google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata(); + if (object.errors) { + if (!Array.isArray(object.errors)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata.errors: array expected"); + message.errors = []; + for (var i = 0; i < object.errors.length; ++i) { + if (typeof object.errors[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata.errors: object expected"); + message.errors[i] = $root.google.cloud.dialogflow.cx.v3.TestCaseError.fromObject(object.errors[i]); + } } return message; }; /** - * Creates a plain object from a SecuritySettings message. Also converts values to other types if specified. + * Creates a plain object from an ImportTestCasesMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.SecuritySettings} message SecuritySettings + * @param {google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata} message ImportTestCasesMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SecuritySettings.toObject = function toObject(message, options) { + ImportTestCasesMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.purgeDataTypes = []; - if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.redactionStrategy = options.enums === String ? "REDACTION_STRATEGY_UNSPECIFIED" : 0; - object.redactionScope = options.enums === String ? "REDACTION_SCOPE_UNSPECIFIED" : 0; - object.inspectTemplate = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.redactionStrategy != null && message.hasOwnProperty("redactionStrategy")) - object.redactionStrategy = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy[message.redactionStrategy] : message.redactionStrategy; - if (message.redactionScope != null && message.hasOwnProperty("redactionScope")) - object.redactionScope = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope[message.redactionScope] : message.redactionScope; - if (message.retentionWindowDays != null && message.hasOwnProperty("retentionWindowDays")) { - object.retentionWindowDays = message.retentionWindowDays; - if (options.oneofs) - object.dataRetention = "retentionWindowDays"; - } - if (message.purgeDataTypes && message.purgeDataTypes.length) { - object.purgeDataTypes = []; - for (var j = 0; j < message.purgeDataTypes.length; ++j) - object.purgeDataTypes[j] = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType[message.purgeDataTypes[j]] : message.purgeDataTypes[j]; + object.errors = []; + if (message.errors && message.errors.length) { + object.errors = []; + for (var j = 0; j < message.errors.length; ++j) + object.errors[j] = $root.google.cloud.dialogflow.cx.v3.TestCaseError.toObject(message.errors[j], options); } - if (message.inspectTemplate != null && message.hasOwnProperty("inspectTemplate")) - object.inspectTemplate = message.inspectTemplate; return object; }; /** - * Converts this SecuritySettings to JSON. + * Converts this ImportTestCasesMetadata to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata * @instance * @returns {Object.} JSON object */ - SecuritySettings.prototype.toJSON = function toJSON() { + ImportTestCasesMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * RedactionStrategy enum. - * @name google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy - * @enum {number} - * @property {number} REDACTION_STRATEGY_UNSPECIFIED=0 REDACTION_STRATEGY_UNSPECIFIED value - * @property {number} REDACT_WITH_SERVICE=1 REDACT_WITH_SERVICE value - */ - SecuritySettings.RedactionStrategy = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "REDACTION_STRATEGY_UNSPECIFIED"] = 0; - values[valuesById[1] = "REDACT_WITH_SERVICE"] = 1; - return values; - })(); - - /** - * RedactionScope enum. - * @name google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope - * @enum {number} - * @property {number} REDACTION_SCOPE_UNSPECIFIED=0 REDACTION_SCOPE_UNSPECIFIED value - * @property {number} REDACT_DISK_STORAGE=2 REDACT_DISK_STORAGE value - */ - SecuritySettings.RedactionScope = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "REDACTION_SCOPE_UNSPECIFIED"] = 0; - values[valuesById[2] = "REDACT_DISK_STORAGE"] = 2; - return values; - })(); - - /** - * PurgeDataType enum. - * @name google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType - * @enum {number} - * @property {number} PURGE_DATA_TYPE_UNSPECIFIED=0 PURGE_DATA_TYPE_UNSPECIFIED value - * @property {number} DIALOGFLOW_HISTORY=1 DIALOGFLOW_HISTORY value - */ - SecuritySettings.PurgeDataType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "PURGE_DATA_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "DIALOGFLOW_HISTORY"] = 1; - return values; - })(); + }; - return SecuritySettings; + return ImportTestCasesMetadata; })(); - v3.Sessions = (function() { + v3.TestCaseError = (function() { /** - * Constructs a new Sessions service. + * Properties of a TestCaseError. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a Sessions - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Sessions(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Sessions.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Sessions; - - /** - * Creates new Sessions service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Sessions - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {Sessions} RPC service. Useful where requests and/or responses are streamed. + * @interface ITestCaseError + * @property {google.cloud.dialogflow.cx.v3.ITestCase|null} [testCase] TestCaseError testCase + * @property {google.rpc.IStatus|null} [status] TestCaseError status */ - Sessions.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#detectIntent}. - * @memberof google.cloud.dialogflow.cx.v3.Sessions - * @typedef DetectIntentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.DetectIntentResponse} [response] DetectIntentResponse + * Constructs a new TestCaseError. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a TestCaseError. + * @implements ITestCaseError + * @constructor + * @param {google.cloud.dialogflow.cx.v3.ITestCaseError=} [properties] Properties to set */ + function TestCaseError(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls DetectIntent. - * @function detectIntent - * @memberof google.cloud.dialogflow.cx.v3.Sessions + * TestCaseError testCase. + * @member {google.cloud.dialogflow.cx.v3.ITestCase|null|undefined} testCase + * @memberof google.cloud.dialogflow.cx.v3.TestCaseError * @instance - * @param {google.cloud.dialogflow.cx.v3.IDetectIntentRequest} request DetectIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Sessions.DetectIntentCallback} callback Node-style callback called with the error, if any, and DetectIntentResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(Sessions.prototype.detectIntent = function detectIntent(request, callback) { - return this.rpcCall(detectIntent, $root.google.cloud.dialogflow.cx.v3.DetectIntentRequest, $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse, request, callback); - }, "name", { value: "DetectIntent" }); + TestCaseError.prototype.testCase = null; /** - * Calls DetectIntent. - * @function detectIntent - * @memberof google.cloud.dialogflow.cx.v3.Sessions + * TestCaseError status. + * @member {google.rpc.IStatus|null|undefined} status + * @memberof google.cloud.dialogflow.cx.v3.TestCaseError * @instance - * @param {google.cloud.dialogflow.cx.v3.IDetectIntentRequest} request DetectIntentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + TestCaseError.prototype.status = null; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#streamingDetectIntent}. - * @memberof google.cloud.dialogflow.cx.v3.Sessions - * @typedef StreamingDetectIntentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} [response] StreamingDetectIntentResponse + * Creates a new TestCaseError instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.TestCaseError + * @static + * @param {google.cloud.dialogflow.cx.v3.ITestCaseError=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TestCaseError} TestCaseError instance */ + TestCaseError.create = function create(properties) { + return new TestCaseError(properties); + }; /** - * Calls StreamingDetectIntent. - * @function streamingDetectIntent - * @memberof google.cloud.dialogflow.cx.v3.Sessions - * @instance - * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest} request StreamingDetectIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntentCallback} callback Node-style callback called with the error, if any, and StreamingDetectIntentResponse - * @returns {undefined} - * @variation 1 + * Encodes the specified TestCaseError message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCaseError.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.TestCaseError + * @static + * @param {google.cloud.dialogflow.cx.v3.ITestCaseError} message TestCaseError message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(Sessions.prototype.streamingDetectIntent = function streamingDetectIntent(request, callback) { - return this.rpcCall(streamingDetectIntent, $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest, $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse, request, callback); - }, "name", { value: "StreamingDetectIntent" }); + TestCaseError.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.testCase != null && Object.hasOwnProperty.call(message, "testCase")) + $root.google.cloud.dialogflow.cx.v3.TestCase.encode(message.testCase, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; /** - * Calls StreamingDetectIntent. - * @function streamingDetectIntent - * @memberof google.cloud.dialogflow.cx.v3.Sessions - * @instance - * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest} request StreamingDetectIntentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified TestCaseError message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCaseError.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.TestCaseError + * @static + * @param {google.cloud.dialogflow.cx.v3.ITestCaseError} message TestCaseError message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + TestCaseError.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#matchIntent}. - * @memberof google.cloud.dialogflow.cx.v3.Sessions - * @typedef MatchIntentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.MatchIntentResponse} [response] MatchIntentResponse + * Decodes a TestCaseError message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.TestCaseError + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.TestCaseError} TestCaseError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + TestCaseError.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TestCaseError(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.testCase = $root.google.cloud.dialogflow.cx.v3.TestCase.decode(reader, reader.uint32()); + break; + case 2: + message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls MatchIntent. - * @function matchIntent - * @memberof google.cloud.dialogflow.cx.v3.Sessions - * @instance - * @param {google.cloud.dialogflow.cx.v3.IMatchIntentRequest} request MatchIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Sessions.MatchIntentCallback} callback Node-style callback called with the error, if any, and MatchIntentResponse - * @returns {undefined} - * @variation 1 + * Decodes a TestCaseError message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.TestCaseError + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.TestCaseError} TestCaseError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(Sessions.prototype.matchIntent = function matchIntent(request, callback) { - return this.rpcCall(matchIntent, $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest, $root.google.cloud.dialogflow.cx.v3.MatchIntentResponse, request, callback); - }, "name", { value: "MatchIntent" }); + TestCaseError.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls MatchIntent. - * @function matchIntent - * @memberof google.cloud.dialogflow.cx.v3.Sessions - * @instance - * @param {google.cloud.dialogflow.cx.v3.IMatchIntentRequest} request MatchIntentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a TestCaseError message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.TestCaseError + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + TestCaseError.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.testCase != null && message.hasOwnProperty("testCase")) { + var error = $root.google.cloud.dialogflow.cx.v3.TestCase.verify(message.testCase); + if (error) + return "testCase." + error; + } + if (message.status != null && message.hasOwnProperty("status")) { + var error = $root.google.rpc.Status.verify(message.status); + if (error) + return "status." + error; + } + return null; + }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#fulfillIntent}. - * @memberof google.cloud.dialogflow.cx.v3.Sessions - * @typedef FulfillIntentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.FulfillIntentResponse} [response] FulfillIntentResponse + * Creates a TestCaseError message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.TestCaseError + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.TestCaseError} TestCaseError */ + TestCaseError.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.TestCaseError) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.TestCaseError(); + if (object.testCase != null) { + if (typeof object.testCase !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TestCaseError.testCase: object expected"); + message.testCase = $root.google.cloud.dialogflow.cx.v3.TestCase.fromObject(object.testCase); + } + if (object.status != null) { + if (typeof object.status !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TestCaseError.status: object expected"); + message.status = $root.google.rpc.Status.fromObject(object.status); + } + return message; + }; /** - * Calls FulfillIntent. - * @function fulfillIntent - * @memberof google.cloud.dialogflow.cx.v3.Sessions - * @instance - * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentRequest} request FulfillIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Sessions.FulfillIntentCallback} callback Node-style callback called with the error, if any, and FulfillIntentResponse - * @returns {undefined} - * @variation 1 + * Creates a plain object from a TestCaseError message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.TestCaseError + * @static + * @param {google.cloud.dialogflow.cx.v3.TestCaseError} message TestCaseError + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(Sessions.prototype.fulfillIntent = function fulfillIntent(request, callback) { - return this.rpcCall(fulfillIntent, $root.google.cloud.dialogflow.cx.v3.FulfillIntentRequest, $root.google.cloud.dialogflow.cx.v3.FulfillIntentResponse, request, callback); - }, "name", { value: "FulfillIntent" }); + TestCaseError.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.testCase = null; + object.status = null; + } + if (message.testCase != null && message.hasOwnProperty("testCase")) + object.testCase = $root.google.cloud.dialogflow.cx.v3.TestCase.toObject(message.testCase, options); + if (message.status != null && message.hasOwnProperty("status")) + object.status = $root.google.rpc.Status.toObject(message.status, options); + return object; + }; /** - * Calls FulfillIntent. - * @function fulfillIntent - * @memberof google.cloud.dialogflow.cx.v3.Sessions + * Converts this TestCaseError to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.TestCaseError * @instance - * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentRequest} request FulfillIntentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + TestCaseError.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Sessions; + return TestCaseError; })(); - v3.DetectIntentRequest = (function() { + v3.ExportTestCasesRequest = (function() { /** - * Properties of a DetectIntentRequest. + * Properties of an ExportTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDetectIntentRequest - * @property {string|null} [session] DetectIntentRequest session - * @property {google.cloud.dialogflow.cx.v3.IQueryParameters|null} [queryParams] DetectIntentRequest queryParams - * @property {google.cloud.dialogflow.cx.v3.IQueryInput|null} [queryInput] DetectIntentRequest queryInput - * @property {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null} [outputAudioConfig] DetectIntentRequest outputAudioConfig + * @interface IExportTestCasesRequest + * @property {string|null} [parent] ExportTestCasesRequest parent + * @property {string|null} [gcsUri] ExportTestCasesRequest gcsUri + * @property {google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat|null} [dataFormat] ExportTestCasesRequest dataFormat + * @property {string|null} [filter] ExportTestCasesRequest filter */ /** - * Constructs a new DetectIntentRequest. + * Constructs a new ExportTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DetectIntentRequest. - * @implements IDetectIntentRequest + * @classdesc Represents an ExportTestCasesRequest. + * @implements IExportTestCasesRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDetectIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesRequest=} [properties] Properties to set */ - function DetectIntentRequest(properties) { + function ExportTestCasesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30113,114 +29524,128 @@ } /** - * DetectIntentRequest session. - * @member {string} session - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * ExportTestCasesRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest * @instance */ - DetectIntentRequest.prototype.session = ""; + ExportTestCasesRequest.prototype.parent = ""; /** - * DetectIntentRequest queryParams. - * @member {google.cloud.dialogflow.cx.v3.IQueryParameters|null|undefined} queryParams - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * ExportTestCasesRequest gcsUri. + * @member {string} gcsUri + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest * @instance */ - DetectIntentRequest.prototype.queryParams = null; + ExportTestCasesRequest.prototype.gcsUri = ""; /** - * DetectIntentRequest queryInput. - * @member {google.cloud.dialogflow.cx.v3.IQueryInput|null|undefined} queryInput - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * ExportTestCasesRequest dataFormat. + * @member {google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat} dataFormat + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest * @instance */ - DetectIntentRequest.prototype.queryInput = null; + ExportTestCasesRequest.prototype.dataFormat = 0; /** - * DetectIntentRequest outputAudioConfig. - * @member {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null|undefined} outputAudioConfig - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * ExportTestCasesRequest filter. + * @member {string} filter + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest * @instance */ - DetectIntentRequest.prototype.outputAudioConfig = null; + ExportTestCasesRequest.prototype.filter = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Creates a new DetectIntentRequest instance using the specified properties. + * ExportTestCasesRequest destination. + * @member {"gcsUri"|undefined} destination + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest + * @instance + */ + Object.defineProperty(ExportTestCasesRequest.prototype, "destination", { + get: $util.oneOfGetter($oneOfFields = ["gcsUri"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ExportTestCasesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IDetectIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.DetectIntentRequest} DetectIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesRequest} ExportTestCasesRequest instance */ - DetectIntentRequest.create = function create(properties) { - return new DetectIntentRequest(properties); + ExportTestCasesRequest.create = function create(properties) { + return new ExportTestCasesRequest(properties); }; /** - * Encodes the specified DetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentRequest.verify|verify} messages. + * Encodes the specified ExportTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IDetectIntentRequest} message DetectIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesRequest} message ExportTestCasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DetectIntentRequest.encode = function encode(message, writer) { + ExportTestCasesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.session != null && Object.hasOwnProperty.call(message, "session")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.session); - if (message.queryParams != null && Object.hasOwnProperty.call(message, "queryParams")) - $root.google.cloud.dialogflow.cx.v3.QueryParameters.encode(message.queryParams, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.queryInput != null && Object.hasOwnProperty.call(message, "queryInput")) - $root.google.cloud.dialogflow.cx.v3.QueryInput.encode(message.queryInput, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) - $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.gcsUri != null && Object.hasOwnProperty.call(message, "gcsUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.gcsUri); + if (message.dataFormat != null && Object.hasOwnProperty.call(message, "dataFormat")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.dataFormat); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); return writer; }; /** - * Encodes the specified DetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentRequest.verify|verify} messages. + * Encodes the specified ExportTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IDetectIntentRequest} message DetectIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesRequest} message ExportTestCasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DetectIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + ExportTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DetectIntentRequest message from the specified reader or buffer. + * Decodes an ExportTestCasesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.DetectIntentRequest} DetectIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesRequest} ExportTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DetectIntentRequest.decode = function decode(reader, length) { + ExportTestCasesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DetectIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.session = reader.string(); + message.parent = reader.string(); break; case 2: - message.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.decode(reader, reader.uint32()); + message.gcsUri = reader.string(); break; case 3: - message.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.decode(reader, reader.uint32()); + message.dataFormat = reader.int32(); break; case 4: - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.decode(reader, reader.uint32()); + message.filter = reader.string(); break; default: reader.skipType(tag & 7); @@ -30231,150 +29656,172 @@ }; /** - * Decodes a DetectIntentRequest message from the specified reader or buffer, length delimited. + * Decodes an ExportTestCasesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.DetectIntentRequest} DetectIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesRequest} ExportTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DetectIntentRequest.decodeDelimited = function decodeDelimited(reader) { + ExportTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DetectIntentRequest message. + * Verifies an ExportTestCasesRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DetectIntentRequest.verify = function verify(message) { + ExportTestCasesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.session != null && message.hasOwnProperty("session")) - if (!$util.isString(message.session)) - return "session: string expected"; - if (message.queryParams != null && message.hasOwnProperty("queryParams")) { - var error = $root.google.cloud.dialogflow.cx.v3.QueryParameters.verify(message.queryParams); - if (error) - return "queryParams." + error; - } - if (message.queryInput != null && message.hasOwnProperty("queryInput")) { - var error = $root.google.cloud.dialogflow.cx.v3.QueryInput.verify(message.queryInput); - if (error) - return "queryInput." + error; - } - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify(message.outputAudioConfig); - if (error) - return "outputAudioConfig." + error; + var properties = {}; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { + properties.destination = 1; + if (!$util.isString(message.gcsUri)) + return "gcsUri: string expected"; } + if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) + switch (message.dataFormat) { + default: + return "dataFormat: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; return null; }; /** - * Creates a DetectIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExportTestCasesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DetectIntentRequest} DetectIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesRequest} ExportTestCasesRequest */ - DetectIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.DetectIntentRequest) + ExportTestCasesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.DetectIntentRequest(); - if (object.session != null) - message.session = String(object.session); - if (object.queryParams != null) { - if (typeof object.queryParams !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.DetectIntentRequest.queryParams: object expected"); - message.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.fromObject(object.queryParams); - } - if (object.queryInput != null) { - if (typeof object.queryInput !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.DetectIntentRequest.queryInput: object expected"); - message.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.fromObject(object.queryInput); - } - if (object.outputAudioConfig != null) { - if (typeof object.outputAudioConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.DetectIntentRequest.outputAudioConfig: object expected"); - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.fromObject(object.outputAudioConfig); + var message = new $root.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.gcsUri != null) + message.gcsUri = String(object.gcsUri); + switch (object.dataFormat) { + case "DATA_FORMAT_UNSPECIFIED": + case 0: + message.dataFormat = 0; + break; + case "BLOB": + case 1: + message.dataFormat = 1; + break; + case "JSON": + case 2: + message.dataFormat = 2; + break; } + if (object.filter != null) + message.filter = String(object.filter); return message; }; /** - * Creates a plain object from a DetectIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from an ExportTestCasesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.DetectIntentRequest} message DetectIntentRequest + * @param {google.cloud.dialogflow.cx.v3.ExportTestCasesRequest} message ExportTestCasesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DetectIntentRequest.toObject = function toObject(message, options) { + ExportTestCasesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.session = ""; - object.queryParams = null; - object.queryInput = null; - object.outputAudioConfig = null; + object.parent = ""; + object.dataFormat = options.enums === String ? "DATA_FORMAT_UNSPECIFIED" : 0; + object.filter = ""; } - if (message.session != null && message.hasOwnProperty("session")) - object.session = message.session; - if (message.queryParams != null && message.hasOwnProperty("queryParams")) - object.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.toObject(message.queryParams, options); - if (message.queryInput != null && message.hasOwnProperty("queryInput")) - object.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.toObject(message.queryInput, options); - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) - object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.toObject(message.outputAudioConfig, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { + object.gcsUri = message.gcsUri; + if (options.oneofs) + object.destination = "gcsUri"; + } + if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) + object.dataFormat = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat[message.dataFormat] : message.dataFormat; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; return object; }; /** - * Converts this DetectIntentRequest to JSON. + * Converts this ExportTestCasesRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest * @instance * @returns {Object.} JSON object */ - DetectIntentRequest.prototype.toJSON = function toJSON() { + ExportTestCasesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DetectIntentRequest; + /** + * DataFormat enum. + * @name google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat + * @enum {number} + * @property {number} DATA_FORMAT_UNSPECIFIED=0 DATA_FORMAT_UNSPECIFIED value + * @property {number} BLOB=1 BLOB value + * @property {number} JSON=2 JSON value + */ + ExportTestCasesRequest.DataFormat = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DATA_FORMAT_UNSPECIFIED"] = 0; + values[valuesById[1] = "BLOB"] = 1; + values[valuesById[2] = "JSON"] = 2; + return values; + })(); + + return ExportTestCasesRequest; })(); - v3.DetectIntentResponse = (function() { + v3.ExportTestCasesResponse = (function() { /** - * Properties of a DetectIntentResponse. + * Properties of an ExportTestCasesResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDetectIntentResponse - * @property {string|null} [responseId] DetectIntentResponse responseId - * @property {google.cloud.dialogflow.cx.v3.IQueryResult|null} [queryResult] DetectIntentResponse queryResult - * @property {Uint8Array|null} [outputAudio] DetectIntentResponse outputAudio - * @property {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null} [outputAudioConfig] DetectIntentResponse outputAudioConfig + * @interface IExportTestCasesResponse + * @property {string|null} [gcsUri] ExportTestCasesResponse gcsUri + * @property {Uint8Array|null} [content] ExportTestCasesResponse content */ /** - * Constructs a new DetectIntentResponse. + * Constructs a new ExportTestCasesResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DetectIntentResponse. - * @implements IDetectIntentResponse + * @classdesc Represents an ExportTestCasesResponse. + * @implements IExportTestCasesResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDetectIntentResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesResponse=} [properties] Properties to set */ - function DetectIntentResponse(properties) { + function ExportTestCasesResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30382,114 +29829,102 @@ } /** - * DetectIntentResponse responseId. - * @member {string} responseId - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * ExportTestCasesResponse gcsUri. + * @member {string} gcsUri + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse * @instance */ - DetectIntentResponse.prototype.responseId = ""; + ExportTestCasesResponse.prototype.gcsUri = ""; /** - * DetectIntentResponse queryResult. - * @member {google.cloud.dialogflow.cx.v3.IQueryResult|null|undefined} queryResult - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * ExportTestCasesResponse content. + * @member {Uint8Array} content + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse * @instance */ - DetectIntentResponse.prototype.queryResult = null; + ExportTestCasesResponse.prototype.content = $util.newBuffer([]); - /** - * DetectIntentResponse outputAudio. - * @member {Uint8Array} outputAudio - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse - * @instance - */ - DetectIntentResponse.prototype.outputAudio = $util.newBuffer([]); + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * DetectIntentResponse outputAudioConfig. - * @member {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null|undefined} outputAudioConfig - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * ExportTestCasesResponse destination. + * @member {"gcsUri"|"content"|undefined} destination + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse * @instance */ - DetectIntentResponse.prototype.outputAudioConfig = null; + Object.defineProperty(ExportTestCasesResponse.prototype, "destination", { + get: $util.oneOfGetter($oneOfFields = ["gcsUri", "content"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new DetectIntentResponse instance using the specified properties. + * Creates a new ExportTestCasesResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IDetectIntentResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.DetectIntentResponse} DetectIntentResponse instance + * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesResponse} ExportTestCasesResponse instance */ - DetectIntentResponse.create = function create(properties) { - return new DetectIntentResponse(properties); + ExportTestCasesResponse.create = function create(properties) { + return new ExportTestCasesResponse(properties); }; /** - * Encodes the specified DetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentResponse.verify|verify} messages. + * Encodes the specified ExportTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IDetectIntentResponse} message DetectIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesResponse} message ExportTestCasesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DetectIntentResponse.encode = function encode(message, writer) { + ExportTestCasesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.responseId != null && Object.hasOwnProperty.call(message, "responseId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.responseId); - if (message.queryResult != null && Object.hasOwnProperty.call(message, "queryResult")) - $root.google.cloud.dialogflow.cx.v3.QueryResult.encode(message.queryResult, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.outputAudio != null && Object.hasOwnProperty.call(message, "outputAudio")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.outputAudio); - if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) - $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.gcsUri != null && Object.hasOwnProperty.call(message, "gcsUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.gcsUri); + if (message.content != null && Object.hasOwnProperty.call(message, "content")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.content); return writer; }; /** - * Encodes the specified DetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentResponse.verify|verify} messages. + * Encodes the specified ExportTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IDetectIntentResponse} message DetectIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesResponse} message ExportTestCasesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DetectIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { + ExportTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DetectIntentResponse message from the specified reader or buffer. + * Decodes an ExportTestCasesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.DetectIntentResponse} DetectIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesResponse} ExportTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DetectIntentResponse.decode = function decode(reader, length) { + ExportTestCasesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ExportTestCasesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.responseId = reader.string(); + message.gcsUri = reader.string(); break; case 2: - message.queryResult = $root.google.cloud.dialogflow.cx.v3.QueryResult.decode(reader, reader.uint32()); - break; - case 4: - message.outputAudio = reader.bytes(); - break; - case 5: - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.decode(reader, reader.uint32()); + message.content = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -30500,154 +29935,127 @@ }; /** - * Decodes a DetectIntentResponse message from the specified reader or buffer, length delimited. + * Decodes an ExportTestCasesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.DetectIntentResponse} DetectIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesResponse} ExportTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DetectIntentResponse.decodeDelimited = function decodeDelimited(reader) { + ExportTestCasesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DetectIntentResponse message. + * Verifies an ExportTestCasesResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DetectIntentResponse.verify = function verify(message) { + ExportTestCasesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.responseId != null && message.hasOwnProperty("responseId")) - if (!$util.isString(message.responseId)) - return "responseId: string expected"; - if (message.queryResult != null && message.hasOwnProperty("queryResult")) { - var error = $root.google.cloud.dialogflow.cx.v3.QueryResult.verify(message.queryResult); - if (error) - return "queryResult." + error; + var properties = {}; + if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { + properties.destination = 1; + if (!$util.isString(message.gcsUri)) + return "gcsUri: string expected"; } - if (message.outputAudio != null && message.hasOwnProperty("outputAudio")) - if (!(message.outputAudio && typeof message.outputAudio.length === "number" || $util.isString(message.outputAudio))) - return "outputAudio: buffer expected"; - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify(message.outputAudioConfig); - if (error) - return "outputAudioConfig." + error; + if (message.content != null && message.hasOwnProperty("content")) { + if (properties.destination === 1) + return "destination: multiple values"; + properties.destination = 1; + if (!(message.content && typeof message.content.length === "number" || $util.isString(message.content))) + return "content: buffer expected"; } return null; }; /** - * Creates a DetectIntentResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExportTestCasesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DetectIntentResponse} DetectIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesResponse} ExportTestCasesResponse */ - DetectIntentResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse) + ExportTestCasesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ExportTestCasesResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse(); - if (object.responseId != null) - message.responseId = String(object.responseId); - if (object.queryResult != null) { - if (typeof object.queryResult !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.DetectIntentResponse.queryResult: object expected"); - message.queryResult = $root.google.cloud.dialogflow.cx.v3.QueryResult.fromObject(object.queryResult); - } - if (object.outputAudio != null) - if (typeof object.outputAudio === "string") - $util.base64.decode(object.outputAudio, message.outputAudio = $util.newBuffer($util.base64.length(object.outputAudio)), 0); - else if (object.outputAudio.length) - message.outputAudio = object.outputAudio; - if (object.outputAudioConfig != null) { - if (typeof object.outputAudioConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.DetectIntentResponse.outputAudioConfig: object expected"); - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.fromObject(object.outputAudioConfig); - } + var message = new $root.google.cloud.dialogflow.cx.v3.ExportTestCasesResponse(); + if (object.gcsUri != null) + message.gcsUri = String(object.gcsUri); + if (object.content != null) + if (typeof object.content === "string") + $util.base64.decode(object.content, message.content = $util.newBuffer($util.base64.length(object.content)), 0); + else if (object.content.length) + message.content = object.content; return message; }; /** - * Creates a plain object from a DetectIntentResponse message. Also converts values to other types if specified. + * Creates a plain object from an ExportTestCasesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.DetectIntentResponse} message DetectIntentResponse + * @param {google.cloud.dialogflow.cx.v3.ExportTestCasesResponse} message ExportTestCasesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DetectIntentResponse.toObject = function toObject(message, options) { + ExportTestCasesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.responseId = ""; - object.queryResult = null; - if (options.bytes === String) - object.outputAudio = ""; - else { - object.outputAudio = []; - if (options.bytes !== Array) - object.outputAudio = $util.newBuffer(object.outputAudio); - } - object.outputAudioConfig = null; + if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { + object.gcsUri = message.gcsUri; + if (options.oneofs) + object.destination = "gcsUri"; + } + if (message.content != null && message.hasOwnProperty("content")) { + object.content = options.bytes === String ? $util.base64.encode(message.content, 0, message.content.length) : options.bytes === Array ? Array.prototype.slice.call(message.content) : message.content; + if (options.oneofs) + object.destination = "content"; } - if (message.responseId != null && message.hasOwnProperty("responseId")) - object.responseId = message.responseId; - if (message.queryResult != null && message.hasOwnProperty("queryResult")) - object.queryResult = $root.google.cloud.dialogflow.cx.v3.QueryResult.toObject(message.queryResult, options); - if (message.outputAudio != null && message.hasOwnProperty("outputAudio")) - object.outputAudio = options.bytes === String ? $util.base64.encode(message.outputAudio, 0, message.outputAudio.length) : options.bytes === Array ? Array.prototype.slice.call(message.outputAudio) : message.outputAudio; - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) - object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.toObject(message.outputAudioConfig, options); return object; }; /** - * Converts this DetectIntentResponse to JSON. + * Converts this ExportTestCasesResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse * @instance * @returns {Object.} JSON object */ - DetectIntentResponse.prototype.toJSON = function toJSON() { + ExportTestCasesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DetectIntentResponse; + return ExportTestCasesResponse; })(); - v3.StreamingDetectIntentRequest = (function() { + v3.ExportTestCasesMetadata = (function() { /** - * Properties of a StreamingDetectIntentRequest. + * Properties of an ExportTestCasesMetadata. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IStreamingDetectIntentRequest - * @property {string|null} [session] StreamingDetectIntentRequest session - * @property {google.cloud.dialogflow.cx.v3.IQueryParameters|null} [queryParams] StreamingDetectIntentRequest queryParams - * @property {google.cloud.dialogflow.cx.v3.IQueryInput|null} [queryInput] StreamingDetectIntentRequest queryInput - * @property {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null} [outputAudioConfig] StreamingDetectIntentRequest outputAudioConfig + * @interface IExportTestCasesMetadata */ /** - * Constructs a new StreamingDetectIntentRequest. + * Constructs a new ExportTestCasesMetadata. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a StreamingDetectIntentRequest. - * @implements IStreamingDetectIntentRequest + * @classdesc Represents an ExportTestCasesMetadata. + * @implements IExportTestCasesMetadata * @constructor - * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesMetadata=} [properties] Properties to set */ - function StreamingDetectIntentRequest(properties) { + function ExportTestCasesMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30655,115 +30063,63 @@ } /** - * StreamingDetectIntentRequest session. - * @member {string} session - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest - * @instance - */ - StreamingDetectIntentRequest.prototype.session = ""; - - /** - * StreamingDetectIntentRequest queryParams. - * @member {google.cloud.dialogflow.cx.v3.IQueryParameters|null|undefined} queryParams - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest - * @instance - */ - StreamingDetectIntentRequest.prototype.queryParams = null; - - /** - * StreamingDetectIntentRequest queryInput. - * @member {google.cloud.dialogflow.cx.v3.IQueryInput|null|undefined} queryInput - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest - * @instance - */ - StreamingDetectIntentRequest.prototype.queryInput = null; - - /** - * StreamingDetectIntentRequest outputAudioConfig. - * @member {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null|undefined} outputAudioConfig - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest - * @instance - */ - StreamingDetectIntentRequest.prototype.outputAudioConfig = null; - - /** - * Creates a new StreamingDetectIntentRequest instance using the specified properties. + * Creates a new ExportTestCasesMetadata instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest} StreamingDetectIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesMetadata=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata} ExportTestCasesMetadata instance */ - StreamingDetectIntentRequest.create = function create(properties) { - return new StreamingDetectIntentRequest(properties); + ExportTestCasesMetadata.create = function create(properties) { + return new ExportTestCasesMetadata(properties); }; /** - * Encodes the specified StreamingDetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.verify|verify} messages. + * Encodes the specified ExportTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest} message StreamingDetectIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesMetadata} message ExportTestCasesMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingDetectIntentRequest.encode = function encode(message, writer) { + ExportTestCasesMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.session != null && Object.hasOwnProperty.call(message, "session")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.session); - if (message.queryParams != null && Object.hasOwnProperty.call(message, "queryParams")) - $root.google.cloud.dialogflow.cx.v3.QueryParameters.encode(message.queryParams, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.queryInput != null && Object.hasOwnProperty.call(message, "queryInput")) - $root.google.cloud.dialogflow.cx.v3.QueryInput.encode(message.queryInput, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) - $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified StreamingDetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.verify|verify} messages. + * Encodes the specified ExportTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest} message StreamingDetectIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesMetadata} message ExportTestCasesMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingDetectIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + ExportTestCasesMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer. + * Decodes an ExportTestCasesMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest} StreamingDetectIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata} ExportTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingDetectIntentRequest.decode = function decode(reader, length) { + ExportTestCasesMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.session = reader.string(); - break; - case 2: - message.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.decode(reader, reader.uint32()); - break; - case 3: - message.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.decode(reader, reader.uint32()); - break; - case 4: - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -30773,148 +30129,97 @@ }; /** - * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer, length delimited. + * Decodes an ExportTestCasesMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest} StreamingDetectIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata} ExportTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingDetectIntentRequest.decodeDelimited = function decodeDelimited(reader) { + ExportTestCasesMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamingDetectIntentRequest message. + * Verifies an ExportTestCasesMetadata message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StreamingDetectIntentRequest.verify = function verify(message) { + ExportTestCasesMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.session != null && message.hasOwnProperty("session")) - if (!$util.isString(message.session)) - return "session: string expected"; - if (message.queryParams != null && message.hasOwnProperty("queryParams")) { - var error = $root.google.cloud.dialogflow.cx.v3.QueryParameters.verify(message.queryParams); - if (error) - return "queryParams." + error; - } - if (message.queryInput != null && message.hasOwnProperty("queryInput")) { - var error = $root.google.cloud.dialogflow.cx.v3.QueryInput.verify(message.queryInput); - if (error) - return "queryInput." + error; - } - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify(message.outputAudioConfig); - if (error) - return "outputAudioConfig." + error; - } return null; }; /** - * Creates a StreamingDetectIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExportTestCasesMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest} StreamingDetectIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata} ExportTestCasesMetadata */ - StreamingDetectIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest) + ExportTestCasesMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest(); - if (object.session != null) - message.session = String(object.session); - if (object.queryParams != null) { - if (typeof object.queryParams !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.queryParams: object expected"); - message.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.fromObject(object.queryParams); - } - if (object.queryInput != null) { - if (typeof object.queryInput !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.queryInput: object expected"); - message.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.fromObject(object.queryInput); - } - if (object.outputAudioConfig != null) { - if (typeof object.outputAudioConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.outputAudioConfig: object expected"); - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.fromObject(object.outputAudioConfig); - } - return message; - }; - - /** - * Creates a plain object from a StreamingDetectIntentRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest} message StreamingDetectIntentRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - StreamingDetectIntentRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.session = ""; - object.queryParams = null; - object.queryInput = null; - object.outputAudioConfig = null; - } - if (message.session != null && message.hasOwnProperty("session")) - object.session = message.session; - if (message.queryParams != null && message.hasOwnProperty("queryParams")) - object.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.toObject(message.queryParams, options); - if (message.queryInput != null && message.hasOwnProperty("queryInput")) - object.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.toObject(message.queryInput, options); - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) - object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.toObject(message.outputAudioConfig, options); - return object; + return new $root.google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata(); }; /** - * Converts this StreamingDetectIntentRequest to JSON. + * Creates a plain object from an ExportTestCasesMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata + * @static + * @param {google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata} message ExportTestCasesMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExportTestCasesMetadata.toObject = function toObject() { + return {}; + }; + + /** + * Converts this ExportTestCasesMetadata to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata * @instance * @returns {Object.} JSON object */ - StreamingDetectIntentRequest.prototype.toJSON = function toJSON() { + ExportTestCasesMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StreamingDetectIntentRequest; + return ExportTestCasesMetadata; })(); - v3.StreamingDetectIntentResponse = (function() { + v3.ListTestCaseResultsRequest = (function() { /** - * Properties of a StreamingDetectIntentResponse. + * Properties of a ListTestCaseResultsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IStreamingDetectIntentResponse - * @property {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult|null} [recognitionResult] StreamingDetectIntentResponse recognitionResult - * @property {google.cloud.dialogflow.cx.v3.IDetectIntentResponse|null} [detectIntentResponse] StreamingDetectIntentResponse detectIntentResponse + * @interface IListTestCaseResultsRequest + * @property {string|null} [parent] ListTestCaseResultsRequest parent + * @property {number|null} [pageSize] ListTestCaseResultsRequest pageSize + * @property {string|null} [pageToken] ListTestCaseResultsRequest pageToken + * @property {string|null} [filter] ListTestCaseResultsRequest filter */ /** - * Constructs a new StreamingDetectIntentResponse. + * Constructs a new ListTestCaseResultsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a StreamingDetectIntentResponse. - * @implements IStreamingDetectIntentResponse + * @classdesc Represents a ListTestCaseResultsRequest. + * @implements IListTestCaseResultsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest=} [properties] Properties to set */ - function StreamingDetectIntentResponse(properties) { + function ListTestCaseResultsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30922,102 +30227,114 @@ } /** - * StreamingDetectIntentResponse recognitionResult. - * @member {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult|null|undefined} recognitionResult - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * ListTestCaseResultsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest * @instance */ - StreamingDetectIntentResponse.prototype.recognitionResult = null; + ListTestCaseResultsRequest.prototype.parent = ""; /** - * StreamingDetectIntentResponse detectIntentResponse. - * @member {google.cloud.dialogflow.cx.v3.IDetectIntentResponse|null|undefined} detectIntentResponse - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * ListTestCaseResultsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest * @instance */ - StreamingDetectIntentResponse.prototype.detectIntentResponse = null; + ListTestCaseResultsRequest.prototype.pageSize = 0; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * ListTestCaseResultsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest + * @instance + */ + ListTestCaseResultsRequest.prototype.pageToken = ""; /** - * StreamingDetectIntentResponse response. - * @member {"recognitionResult"|"detectIntentResponse"|undefined} response - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * ListTestCaseResultsRequest filter. + * @member {string} filter + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest * @instance */ - Object.defineProperty(StreamingDetectIntentResponse.prototype, "response", { - get: $util.oneOfGetter($oneOfFields = ["recognitionResult", "detectIntentResponse"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListTestCaseResultsRequest.prototype.filter = ""; /** - * Creates a new StreamingDetectIntentResponse instance using the specified properties. + * Creates a new ListTestCaseResultsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} StreamingDetectIntentResponse instance + * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest} ListTestCaseResultsRequest instance */ - StreamingDetectIntentResponse.create = function create(properties) { - return new StreamingDetectIntentResponse(properties); + ListTestCaseResultsRequest.create = function create(properties) { + return new ListTestCaseResultsRequest(properties); }; /** - * Encodes the specified StreamingDetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse.verify|verify} messages. + * Encodes the specified ListTestCaseResultsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse} message StreamingDetectIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest} message ListTestCaseResultsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingDetectIntentResponse.encode = function encode(message, writer) { + ListTestCaseResultsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recognitionResult != null && Object.hasOwnProperty.call(message, "recognitionResult")) - $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.encode(message.recognitionResult, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.detectIntentResponse != null && Object.hasOwnProperty.call(message, "detectIntentResponse")) - $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse.encode(message.detectIntentResponse, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); return writer; }; /** - * Encodes the specified StreamingDetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse.verify|verify} messages. + * Encodes the specified ListTestCaseResultsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse} message StreamingDetectIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest} message ListTestCaseResultsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingDetectIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListTestCaseResultsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer. + * Decodes a ListTestCaseResultsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} StreamingDetectIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest} ListTestCaseResultsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingDetectIntentResponse.decode = function decode(reader, length) { + ListTestCaseResultsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.recognitionResult = $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.decode(reader, reader.uint32()); + message.parent = reader.string(); break; case 2: - message.detectIntentResponse = $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); + break; + case 4: + message.filter = reader.string(); break; default: reader.skipType(tag & 7); @@ -31028,144 +30345,134 @@ }; /** - * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer, length delimited. + * Decodes a ListTestCaseResultsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} StreamingDetectIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest} ListTestCaseResultsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingDetectIntentResponse.decodeDelimited = function decodeDelimited(reader) { + ListTestCaseResultsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamingDetectIntentResponse message. + * Verifies a ListTestCaseResultsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StreamingDetectIntentResponse.verify = function verify(message) { + ListTestCaseResultsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.recognitionResult != null && message.hasOwnProperty("recognitionResult")) { - properties.response = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.verify(message.recognitionResult); - if (error) - return "recognitionResult." + error; - } - } - if (message.detectIntentResponse != null && message.hasOwnProperty("detectIntentResponse")) { - if (properties.response === 1) - return "response: multiple values"; - properties.response = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse.verify(message.detectIntentResponse); - if (error) - return "detectIntentResponse." + error; - } - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; return null; }; /** - * Creates a StreamingDetectIntentResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListTestCaseResultsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} StreamingDetectIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest} ListTestCaseResultsRequest */ - StreamingDetectIntentResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse) + ListTestCaseResultsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse(); - if (object.recognitionResult != null) { - if (typeof object.recognitionResult !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse.recognitionResult: object expected"); - message.recognitionResult = $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.fromObject(object.recognitionResult); - } - if (object.detectIntentResponse != null) { - if (typeof object.detectIntentResponse !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse.detectIntentResponse: object expected"); - message.detectIntentResponse = $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse.fromObject(object.detectIntentResponse); - } + var message = new $root.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); return message; }; /** - * Creates a plain object from a StreamingDetectIntentResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListTestCaseResultsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} message StreamingDetectIntentResponse + * @param {google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest} message ListTestCaseResultsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamingDetectIntentResponse.toObject = function toObject(message, options) { + ListTestCaseResultsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.recognitionResult != null && message.hasOwnProperty("recognitionResult")) { - object.recognitionResult = $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.toObject(message.recognitionResult, options); - if (options.oneofs) - object.response = "recognitionResult"; - } - if (message.detectIntentResponse != null && message.hasOwnProperty("detectIntentResponse")) { - object.detectIntentResponse = $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse.toObject(message.detectIntentResponse, options); - if (options.oneofs) - object.response = "detectIntentResponse"; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; return object; }; /** - * Converts this StreamingDetectIntentResponse to JSON. + * Converts this ListTestCaseResultsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest * @instance * @returns {Object.} JSON object */ - StreamingDetectIntentResponse.prototype.toJSON = function toJSON() { + ListTestCaseResultsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StreamingDetectIntentResponse; + return ListTestCaseResultsRequest; })(); - v3.StreamingRecognitionResult = (function() { + v3.ListTestCaseResultsResponse = (function() { /** - * Properties of a StreamingRecognitionResult. + * Properties of a ListTestCaseResultsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IStreamingRecognitionResult - * @property {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType|null} [messageType] StreamingRecognitionResult messageType - * @property {string|null} [transcript] StreamingRecognitionResult transcript - * @property {boolean|null} [isFinal] StreamingRecognitionResult isFinal - * @property {number|null} [confidence] StreamingRecognitionResult confidence - * @property {number|null} [stability] StreamingRecognitionResult stability - * @property {Array.|null} [speechWordInfo] StreamingRecognitionResult speechWordInfo - * @property {google.protobuf.IDuration|null} [speechEndOffset] StreamingRecognitionResult speechEndOffset + * @interface IListTestCaseResultsResponse + * @property {Array.|null} [testCaseResults] ListTestCaseResultsResponse testCaseResults + * @property {string|null} [nextPageToken] ListTestCaseResultsResponse nextPageToken */ /** - * Constructs a new StreamingRecognitionResult. + * Constructs a new ListTestCaseResultsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a StreamingRecognitionResult. - * @implements IStreamingRecognitionResult + * @classdesc Represents a ListTestCaseResultsResponse. + * @implements IListTestCaseResultsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsResponse=} [properties] Properties to set */ - function StreamingRecognitionResult(properties) { - this.speechWordInfo = []; + function ListTestCaseResultsResponse(properties) { + this.testCaseResults = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31173,156 +30480,91 @@ } /** - * StreamingRecognitionResult messageType. - * @member {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType} messageType - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult - * @instance - */ - StreamingRecognitionResult.prototype.messageType = 0; - - /** - * StreamingRecognitionResult transcript. - * @member {string} transcript - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult - * @instance - */ - StreamingRecognitionResult.prototype.transcript = ""; - - /** - * StreamingRecognitionResult isFinal. - * @member {boolean} isFinal - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult - * @instance - */ - StreamingRecognitionResult.prototype.isFinal = false; - - /** - * StreamingRecognitionResult confidence. - * @member {number} confidence - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult - * @instance - */ - StreamingRecognitionResult.prototype.confidence = 0; - - /** - * StreamingRecognitionResult stability. - * @member {number} stability - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult - * @instance - */ - StreamingRecognitionResult.prototype.stability = 0; - - /** - * StreamingRecognitionResult speechWordInfo. - * @member {Array.} speechWordInfo - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * ListTestCaseResultsResponse testCaseResults. + * @member {Array.} testCaseResults + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse * @instance */ - StreamingRecognitionResult.prototype.speechWordInfo = $util.emptyArray; + ListTestCaseResultsResponse.prototype.testCaseResults = $util.emptyArray; /** - * StreamingRecognitionResult speechEndOffset. - * @member {google.protobuf.IDuration|null|undefined} speechEndOffset - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * ListTestCaseResultsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse * @instance */ - StreamingRecognitionResult.prototype.speechEndOffset = null; + ListTestCaseResultsResponse.prototype.nextPageToken = ""; /** - * Creates a new StreamingRecognitionResult instance using the specified properties. + * Creates a new ListTestCaseResultsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult} StreamingRecognitionResult instance + * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse} ListTestCaseResultsResponse instance */ - StreamingRecognitionResult.create = function create(properties) { - return new StreamingRecognitionResult(properties); + ListTestCaseResultsResponse.create = function create(properties) { + return new ListTestCaseResultsResponse(properties); }; /** - * Encodes the specified StreamingRecognitionResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.verify|verify} messages. + * Encodes the specified ListTestCaseResultsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult} message StreamingRecognitionResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsResponse} message ListTestCaseResultsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingRecognitionResult.encode = function encode(message, writer) { + ListTestCaseResultsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.messageType != null && Object.hasOwnProperty.call(message, "messageType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.messageType); - if (message.transcript != null && Object.hasOwnProperty.call(message, "transcript")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.transcript); - if (message.isFinal != null && Object.hasOwnProperty.call(message, "isFinal")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isFinal); - if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) - writer.uint32(/* id 4, wireType 5 =*/37).float(message.confidence); - if (message.stability != null && Object.hasOwnProperty.call(message, "stability")) - writer.uint32(/* id 6, wireType 5 =*/53).float(message.stability); - if (message.speechWordInfo != null && message.speechWordInfo.length) - for (var i = 0; i < message.speechWordInfo.length; ++i) - $root.google.cloud.dialogflow.cx.v3.SpeechWordInfo.encode(message.speechWordInfo[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.speechEndOffset != null && Object.hasOwnProperty.call(message, "speechEndOffset")) - $root.google.protobuf.Duration.encode(message.speechEndOffset, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.testCaseResults != null && message.testCaseResults.length) + for (var i = 0; i < message.testCaseResults.length; ++i) + $root.google.cloud.dialogflow.cx.v3.TestCaseResult.encode(message.testCaseResults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified StreamingRecognitionResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.verify|verify} messages. + * Encodes the specified ListTestCaseResultsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult} message StreamingRecognitionResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsResponse} message ListTestCaseResultsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingRecognitionResult.encodeDelimited = function encodeDelimited(message, writer) { + ListTestCaseResultsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamingRecognitionResult message from the specified reader or buffer. + * Decodes a ListTestCaseResultsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult} StreamingRecognitionResult + * @returns {google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse} ListTestCaseResultsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingRecognitionResult.decode = function decode(reader, length) { + ListTestCaseResultsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.messageType = reader.int32(); + if (!(message.testCaseResults && message.testCaseResults.length)) + message.testCaseResults = []; + message.testCaseResults.push($root.google.cloud.dialogflow.cx.v3.TestCaseResult.decode(reader, reader.uint32())); break; case 2: - message.transcript = reader.string(); - break; - case 3: - message.isFinal = reader.bool(); - break; - case 4: - message.confidence = reader.float(); - break; - case 6: - message.stability = reader.float(); - break; - case 7: - if (!(message.speechWordInfo && message.speechWordInfo.length)) - message.speechWordInfo = []; - message.speechWordInfo.push($root.google.cloud.dialogflow.cx.v3.SpeechWordInfo.decode(reader, reader.uint32())); - break; - case 8: - message.speechEndOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -31333,221 +30575,359 @@ }; /** - * Decodes a StreamingRecognitionResult message from the specified reader or buffer, length delimited. + * Decodes a ListTestCaseResultsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult} StreamingRecognitionResult + * @returns {google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse} ListTestCaseResultsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingRecognitionResult.decodeDelimited = function decodeDelimited(reader) { + ListTestCaseResultsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamingRecognitionResult message. + * Verifies a ListTestCaseResultsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StreamingRecognitionResult.verify = function verify(message) { + ListTestCaseResultsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.messageType != null && message.hasOwnProperty("messageType")) - switch (message.messageType) { - default: - return "messageType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.transcript != null && message.hasOwnProperty("transcript")) - if (!$util.isString(message.transcript)) - return "transcript: string expected"; - if (message.isFinal != null && message.hasOwnProperty("isFinal")) - if (typeof message.isFinal !== "boolean") - return "isFinal: boolean expected"; - if (message.confidence != null && message.hasOwnProperty("confidence")) - if (typeof message.confidence !== "number") - return "confidence: number expected"; - if (message.stability != null && message.hasOwnProperty("stability")) - if (typeof message.stability !== "number") - return "stability: number expected"; - if (message.speechWordInfo != null && message.hasOwnProperty("speechWordInfo")) { - if (!Array.isArray(message.speechWordInfo)) - return "speechWordInfo: array expected"; - for (var i = 0; i < message.speechWordInfo.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.SpeechWordInfo.verify(message.speechWordInfo[i]); + if (message.testCaseResults != null && message.hasOwnProperty("testCaseResults")) { + if (!Array.isArray(message.testCaseResults)) + return "testCaseResults: array expected"; + for (var i = 0; i < message.testCaseResults.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.verify(message.testCaseResults[i]); if (error) - return "speechWordInfo." + error; + return "testCaseResults." + error; } } - if (message.speechEndOffset != null && message.hasOwnProperty("speechEndOffset")) { - var error = $root.google.protobuf.Duration.verify(message.speechEndOffset); - if (error) - return "speechEndOffset." + error; - } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a StreamingRecognitionResult message from a plain object. Also converts values to their respective internal types. + * Creates a ListTestCaseResultsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult} StreamingRecognitionResult - */ - StreamingRecognitionResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult(); - switch (object.messageType) { - case "MESSAGE_TYPE_UNSPECIFIED": - case 0: - message.messageType = 0; - break; - case "TRANSCRIPT": - case 1: - message.messageType = 1; - break; - case "END_OF_SINGLE_UTTERANCE": - case 2: - message.messageType = 2; - break; - } - if (object.transcript != null) - message.transcript = String(object.transcript); - if (object.isFinal != null) - message.isFinal = Boolean(object.isFinal); - if (object.confidence != null) - message.confidence = Number(object.confidence); - if (object.stability != null) - message.stability = Number(object.stability); - if (object.speechWordInfo) { - if (!Array.isArray(object.speechWordInfo)) - throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.speechWordInfo: array expected"); - message.speechWordInfo = []; - for (var i = 0; i < object.speechWordInfo.length; ++i) { - if (typeof object.speechWordInfo[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.speechWordInfo: object expected"); - message.speechWordInfo[i] = $root.google.cloud.dialogflow.cx.v3.SpeechWordInfo.fromObject(object.speechWordInfo[i]); + * @returns {google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse} ListTestCaseResultsResponse + */ + ListTestCaseResultsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse(); + if (object.testCaseResults) { + if (!Array.isArray(object.testCaseResults)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse.testCaseResults: array expected"); + message.testCaseResults = []; + for (var i = 0; i < object.testCaseResults.length; ++i) { + if (typeof object.testCaseResults[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse.testCaseResults: object expected"); + message.testCaseResults[i] = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.fromObject(object.testCaseResults[i]); } } - if (object.speechEndOffset != null) { - if (typeof object.speechEndOffset !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.speechEndOffset: object expected"); - message.speechEndOffset = $root.google.protobuf.Duration.fromObject(object.speechEndOffset); - } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a StreamingRecognitionResult message. Also converts values to other types if specified. + * Creates a plain object from a ListTestCaseResultsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult} message StreamingRecognitionResult + * @param {google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse} message ListTestCaseResultsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamingRecognitionResult.toObject = function toObject(message, options) { + ListTestCaseResultsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.speechWordInfo = []; - if (options.defaults) { - object.messageType = options.enums === String ? "MESSAGE_TYPE_UNSPECIFIED" : 0; - object.transcript = ""; - object.isFinal = false; - object.confidence = 0; - object.stability = 0; - object.speechEndOffset = null; - } - if (message.messageType != null && message.hasOwnProperty("messageType")) - object.messageType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType[message.messageType] : message.messageType; - if (message.transcript != null && message.hasOwnProperty("transcript")) - object.transcript = message.transcript; - if (message.isFinal != null && message.hasOwnProperty("isFinal")) - object.isFinal = message.isFinal; - if (message.confidence != null && message.hasOwnProperty("confidence")) - object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; - if (message.stability != null && message.hasOwnProperty("stability")) - object.stability = options.json && !isFinite(message.stability) ? String(message.stability) : message.stability; - if (message.speechWordInfo && message.speechWordInfo.length) { - object.speechWordInfo = []; - for (var j = 0; j < message.speechWordInfo.length; ++j) - object.speechWordInfo[j] = $root.google.cloud.dialogflow.cx.v3.SpeechWordInfo.toObject(message.speechWordInfo[j], options); + object.testCaseResults = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.testCaseResults && message.testCaseResults.length) { + object.testCaseResults = []; + for (var j = 0; j < message.testCaseResults.length; ++j) + object.testCaseResults[j] = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.toObject(message.testCaseResults[j], options); } - if (message.speechEndOffset != null && message.hasOwnProperty("speechEndOffset")) - object.speechEndOffset = $root.google.protobuf.Duration.toObject(message.speechEndOffset, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this StreamingRecognitionResult to JSON. + * Converts this ListTestCaseResultsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse * @instance * @returns {Object.} JSON object */ - StreamingRecognitionResult.prototype.toJSON = function toJSON() { + ListTestCaseResultsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + return ListTestCaseResultsResponse; + })(); + + /** + * TestResult enum. + * @name google.cloud.dialogflow.cx.v3.TestResult + * @enum {number} + * @property {number} TEST_RESULT_UNSPECIFIED=0 TEST_RESULT_UNSPECIFIED value + * @property {number} PASSED=1 PASSED value + * @property {number} FAILED=2 FAILED value + */ + v3.TestResult = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TEST_RESULT_UNSPECIFIED"] = 0; + values[valuesById[1] = "PASSED"] = 1; + values[valuesById[2] = "FAILED"] = 2; + return values; + })(); + + v3.Intents = (function() { + /** - * MessageType enum. - * @name google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType - * @enum {number} - * @property {number} MESSAGE_TYPE_UNSPECIFIED=0 MESSAGE_TYPE_UNSPECIFIED value - * @property {number} TRANSCRIPT=1 TRANSCRIPT value - * @property {number} END_OF_SINGLE_UTTERANCE=2 END_OF_SINGLE_UTTERANCE value + * Constructs a new Intents service. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents an Intents + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - StreamingRecognitionResult.MessageType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MESSAGE_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "TRANSCRIPT"] = 1; - values[valuesById[2] = "END_OF_SINGLE_UTTERANCE"] = 2; - return values; - })(); + function Intents(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } - return StreamingRecognitionResult; + (Intents.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Intents; + + /** + * Creates new Intents service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {Intents} RPC service. Useful where requests and/or responses are streamed. + */ + Intents.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#listIntents}. + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @typedef ListIntentsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.ListIntentsResponse} [response] ListIntentsResponse + */ + + /** + * Calls ListIntents. + * @function listIntents + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3.IListIntentsRequest} request ListIntentsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Intents.ListIntentsCallback} callback Node-style callback called with the error, if any, and ListIntentsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Intents.prototype.listIntents = function listIntents(request, callback) { + return this.rpcCall(listIntents, $root.google.cloud.dialogflow.cx.v3.ListIntentsRequest, $root.google.cloud.dialogflow.cx.v3.ListIntentsResponse, request, callback); + }, "name", { value: "ListIntents" }); + + /** + * Calls ListIntents. + * @function listIntents + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3.IListIntentsRequest} request ListIntentsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#getIntent}. + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @typedef GetIntentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.Intent} [response] Intent + */ + + /** + * Calls GetIntent. + * @function getIntent + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetIntentRequest} request GetIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Intents.GetIntentCallback} callback Node-style callback called with the error, if any, and Intent + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Intents.prototype.getIntent = function getIntent(request, callback) { + return this.rpcCall(getIntent, $root.google.cloud.dialogflow.cx.v3.GetIntentRequest, $root.google.cloud.dialogflow.cx.v3.Intent, request, callback); + }, "name", { value: "GetIntent" }); + + /** + * Calls GetIntent. + * @function getIntent + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetIntentRequest} request GetIntentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#createIntent}. + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @typedef CreateIntentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.Intent} [response] Intent + */ + + /** + * Calls CreateIntent. + * @function createIntent + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3.ICreateIntentRequest} request CreateIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Intents.CreateIntentCallback} callback Node-style callback called with the error, if any, and Intent + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Intents.prototype.createIntent = function createIntent(request, callback) { + return this.rpcCall(createIntent, $root.google.cloud.dialogflow.cx.v3.CreateIntentRequest, $root.google.cloud.dialogflow.cx.v3.Intent, request, callback); + }, "name", { value: "CreateIntent" }); + + /** + * Calls CreateIntent. + * @function createIntent + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3.ICreateIntentRequest} request CreateIntentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#updateIntent}. + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @typedef UpdateIntentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.Intent} [response] Intent + */ + + /** + * Calls UpdateIntent. + * @function updateIntent + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateIntentRequest} request UpdateIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Intents.UpdateIntentCallback} callback Node-style callback called with the error, if any, and Intent + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Intents.prototype.updateIntent = function updateIntent(request, callback) { + return this.rpcCall(updateIntent, $root.google.cloud.dialogflow.cx.v3.UpdateIntentRequest, $root.google.cloud.dialogflow.cx.v3.Intent, request, callback); + }, "name", { value: "UpdateIntent" }); + + /** + * Calls UpdateIntent. + * @function updateIntent + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateIntentRequest} request UpdateIntentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#deleteIntent}. + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @typedef DeleteIntentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteIntent. + * @function deleteIntent + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteIntentRequest} request DeleteIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Intents.DeleteIntentCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Intents.prototype.deleteIntent = function deleteIntent(request, callback) { + return this.rpcCall(deleteIntent, $root.google.cloud.dialogflow.cx.v3.DeleteIntentRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteIntent" }); + + /** + * Calls DeleteIntent. + * @function deleteIntent + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteIntentRequest} request DeleteIntentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Intents; })(); - v3.QueryParameters = (function() { + v3.Intent = (function() { /** - * Properties of a QueryParameters. + * Properties of an Intent. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IQueryParameters - * @property {string|null} [timeZone] QueryParameters timeZone - * @property {google.type.ILatLng|null} [geoLocation] QueryParameters geoLocation - * @property {Array.|null} [sessionEntityTypes] QueryParameters sessionEntityTypes - * @property {google.protobuf.IStruct|null} [payload] QueryParameters payload - * @property {google.protobuf.IStruct|null} [parameters] QueryParameters parameters - * @property {boolean|null} [analyzeQueryTextSentiment] QueryParameters analyzeQueryTextSentiment - * @property {Object.|null} [webhookHeaders] QueryParameters webhookHeaders + * @interface IIntent + * @property {string|null} [name] Intent name + * @property {string|null} [displayName] Intent displayName + * @property {Array.|null} [trainingPhrases] Intent trainingPhrases + * @property {Array.|null} [parameters] Intent parameters + * @property {number|null} [priority] Intent priority + * @property {boolean|null} [isFallback] Intent isFallback + * @property {Object.|null} [labels] Intent labels + * @property {string|null} [description] Intent description */ /** - * Constructs a new QueryParameters. + * Constructs a new Intent. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a QueryParameters. - * @implements IQueryParameters + * @classdesc Represents an Intent. + * @implements IIntent * @constructor - * @param {google.cloud.dialogflow.cx.v3.IQueryParameters=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IIntent=} [properties] Properties to set */ - function QueryParameters(properties) { - this.sessionEntityTypes = []; - this.webhookHeaders = {}; + function Intent(properties) { + this.trainingPhrases = []; + this.parameters = []; + this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31555,158 +30935,171 @@ } /** - * QueryParameters timeZone. - * @member {string} timeZone - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * Intent name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.Intent * @instance */ - QueryParameters.prototype.timeZone = ""; + Intent.prototype.name = ""; /** - * QueryParameters geoLocation. - * @member {google.type.ILatLng|null|undefined} geoLocation - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * Intent displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.Intent * @instance */ - QueryParameters.prototype.geoLocation = null; + Intent.prototype.displayName = ""; /** - * QueryParameters sessionEntityTypes. - * @member {Array.} sessionEntityTypes - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * Intent trainingPhrases. + * @member {Array.} trainingPhrases + * @memberof google.cloud.dialogflow.cx.v3.Intent * @instance */ - QueryParameters.prototype.sessionEntityTypes = $util.emptyArray; + Intent.prototype.trainingPhrases = $util.emptyArray; /** - * QueryParameters payload. - * @member {google.protobuf.IStruct|null|undefined} payload - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * Intent parameters. + * @member {Array.} parameters + * @memberof google.cloud.dialogflow.cx.v3.Intent * @instance */ - QueryParameters.prototype.payload = null; + Intent.prototype.parameters = $util.emptyArray; /** - * QueryParameters parameters. - * @member {google.protobuf.IStruct|null|undefined} parameters - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * Intent priority. + * @member {number} priority + * @memberof google.cloud.dialogflow.cx.v3.Intent * @instance */ - QueryParameters.prototype.parameters = null; + Intent.prototype.priority = 0; /** - * QueryParameters analyzeQueryTextSentiment. - * @member {boolean} analyzeQueryTextSentiment - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * Intent isFallback. + * @member {boolean} isFallback + * @memberof google.cloud.dialogflow.cx.v3.Intent * @instance */ - QueryParameters.prototype.analyzeQueryTextSentiment = false; + Intent.prototype.isFallback = false; /** - * QueryParameters webhookHeaders. - * @member {Object.} webhookHeaders - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * Intent labels. + * @member {Object.} labels + * @memberof google.cloud.dialogflow.cx.v3.Intent * @instance */ - QueryParameters.prototype.webhookHeaders = $util.emptyObject; + Intent.prototype.labels = $util.emptyObject; /** - * Creates a new QueryParameters instance using the specified properties. + * Intent description. + * @member {string} description + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @instance + */ + Intent.prototype.description = ""; + + /** + * Creates a new Intent instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.Intent * @static - * @param {google.cloud.dialogflow.cx.v3.IQueryParameters=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.QueryParameters} QueryParameters instance + * @param {google.cloud.dialogflow.cx.v3.IIntent=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Intent} Intent instance */ - QueryParameters.create = function create(properties) { - return new QueryParameters(properties); + Intent.create = function create(properties) { + return new Intent(properties); }; /** - * Encodes the specified QueryParameters message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryParameters.verify|verify} messages. + * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.Intent * @static - * @param {google.cloud.dialogflow.cx.v3.IQueryParameters} message QueryParameters message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IIntent} message Intent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryParameters.encode = function encode(message, writer) { + Intent.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.timeZone != null && Object.hasOwnProperty.call(message, "timeZone")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.timeZone); - if (message.geoLocation != null && Object.hasOwnProperty.call(message, "geoLocation")) - $root.google.type.LatLng.encode(message.geoLocation, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.sessionEntityTypes != null && message.sessionEntityTypes.length) - for (var i = 0; i < message.sessionEntityTypes.length; ++i) - $root.google.cloud.dialogflow.cx.v3.SessionEntityType.encode(message.sessionEntityTypes[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) - $root.google.protobuf.Struct.encode(message.payload, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - $root.google.protobuf.Struct.encode(message.parameters, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.analyzeQueryTextSentiment != null && Object.hasOwnProperty.call(message, "analyzeQueryTextSentiment")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.analyzeQueryTextSentiment); - if (message.webhookHeaders != null && Object.hasOwnProperty.call(message, "webhookHeaders")) - for (var keys = Object.keys(message.webhookHeaders), i = 0; i < keys.length; ++i) - writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.webhookHeaders[keys[i]]).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.trainingPhrases != null && message.trainingPhrases.length) + for (var i = 0; i < message.trainingPhrases.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.encode(message.trainingPhrases[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.parameters != null && message.parameters.length) + for (var i = 0; i < message.parameters.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Intent.Parameter.encode(message.parameters[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.priority != null && Object.hasOwnProperty.call(message, "priority")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.priority); + if (message.isFallback != null && Object.hasOwnProperty.call(message, "isFallback")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isFallback); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.description); return writer; }; /** - * Encodes the specified QueryParameters message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryParameters.verify|verify} messages. + * Encodes the specified Intent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.Intent * @static - * @param {google.cloud.dialogflow.cx.v3.IQueryParameters} message QueryParameters message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IIntent} message Intent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryParameters.encodeDelimited = function encodeDelimited(message, writer) { + Intent.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryParameters message from the specified reader or buffer. + * Decodes an Intent message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.Intent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.QueryParameters} QueryParameters + * @returns {google.cloud.dialogflow.cx.v3.Intent} Intent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryParameters.decode = function decode(reader, length) { + Intent.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.QueryParameters(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Intent(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.timeZone = reader.string(); + message.name = reader.string(); break; case 2: - message.geoLocation = $root.google.type.LatLng.decode(reader, reader.uint32()); + message.displayName = reader.string(); break; case 3: - if (!(message.sessionEntityTypes && message.sessionEntityTypes.length)) - message.sessionEntityTypes = []; - message.sessionEntityTypes.push($root.google.cloud.dialogflow.cx.v3.SessionEntityType.decode(reader, reader.uint32())); + if (!(message.trainingPhrases && message.trainingPhrases.length)) + message.trainingPhrases = []; + message.trainingPhrases.push($root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.decode(reader, reader.uint32())); break; case 4: - message.payload = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + if (!(message.parameters && message.parameters.length)) + message.parameters = []; + message.parameters.push($root.google.cloud.dialogflow.cx.v3.Intent.Parameter.decode(reader, reader.uint32())); break; case 5: - message.parameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + message.priority = reader.int32(); break; - case 8: - message.analyzeQueryTextSentiment = reader.bool(); + case 6: + message.isFallback = reader.bool(); break; - case 10: - if (message.webhookHeaders === $util.emptyObject) - message.webhookHeaders = {}; + case 7: + if (message.labels === $util.emptyObject) + message.labels = {}; var end2 = reader.uint32() + reader.pos; key = ""; value = ""; @@ -31724,7 +31117,10 @@ break; } } - message.webhookHeaders[key] = value; + message.labels[key] = value; + break; + case 8: + message.description = reader.string(); break; default: reader.skipType(tag & 7); @@ -31735,591 +31131,937 @@ }; /** - * Decodes a QueryParameters message from the specified reader or buffer, length delimited. + * Decodes an Intent message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.Intent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.QueryParameters} QueryParameters + * @returns {google.cloud.dialogflow.cx.v3.Intent} Intent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryParameters.decodeDelimited = function decodeDelimited(reader) { + Intent.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryParameters message. + * Verifies an Intent message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.Intent * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryParameters.verify = function verify(message) { + Intent.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.timeZone != null && message.hasOwnProperty("timeZone")) - if (!$util.isString(message.timeZone)) - return "timeZone: string expected"; - if (message.geoLocation != null && message.hasOwnProperty("geoLocation")) { - var error = $root.google.type.LatLng.verify(message.geoLocation); - if (error) - return "geoLocation." + error; - } - if (message.sessionEntityTypes != null && message.hasOwnProperty("sessionEntityTypes")) { - if (!Array.isArray(message.sessionEntityTypes)) - return "sessionEntityTypes: array expected"; - for (var i = 0; i < message.sessionEntityTypes.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.verify(message.sessionEntityTypes[i]); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.trainingPhrases != null && message.hasOwnProperty("trainingPhrases")) { + if (!Array.isArray(message.trainingPhrases)) + return "trainingPhrases: array expected"; + for (var i = 0; i < message.trainingPhrases.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.verify(message.trainingPhrases[i]); if (error) - return "sessionEntityTypes." + error; + return "trainingPhrases." + error; } } - if (message.payload != null && message.hasOwnProperty("payload")) { - var error = $root.google.protobuf.Struct.verify(message.payload); - if (error) - return "payload." + error; - } if (message.parameters != null && message.hasOwnProperty("parameters")) { - var error = $root.google.protobuf.Struct.verify(message.parameters); - if (error) - return "parameters." + error; + if (!Array.isArray(message.parameters)) + return "parameters: array expected"; + for (var i = 0; i < message.parameters.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Intent.Parameter.verify(message.parameters[i]); + if (error) + return "parameters." + error; + } } - if (message.analyzeQueryTextSentiment != null && message.hasOwnProperty("analyzeQueryTextSentiment")) - if (typeof message.analyzeQueryTextSentiment !== "boolean") - return "analyzeQueryTextSentiment: boolean expected"; - if (message.webhookHeaders != null && message.hasOwnProperty("webhookHeaders")) { - if (!$util.isObject(message.webhookHeaders)) - return "webhookHeaders: object expected"; - var key = Object.keys(message.webhookHeaders); + if (message.priority != null && message.hasOwnProperty("priority")) + if (!$util.isInteger(message.priority)) + return "priority: integer expected"; + if (message.isFallback != null && message.hasOwnProperty("isFallback")) + if (typeof message.isFallback !== "boolean") + return "isFallback: boolean expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.webhookHeaders[key[i]])) - return "webhookHeaders: string{k:string} expected"; + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; } + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; return null; }; /** - * Creates a QueryParameters message from a plain object. Also converts values to their respective internal types. + * Creates an Intent message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.Intent * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.QueryParameters} QueryParameters + * @returns {google.cloud.dialogflow.cx.v3.Intent} Intent */ - QueryParameters.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.QueryParameters) + Intent.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Intent) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.QueryParameters(); - if (object.timeZone != null) - message.timeZone = String(object.timeZone); - if (object.geoLocation != null) { - if (typeof object.geoLocation !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryParameters.geoLocation: object expected"); - message.geoLocation = $root.google.type.LatLng.fromObject(object.geoLocation); + var message = new $root.google.cloud.dialogflow.cx.v3.Intent(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.trainingPhrases) { + if (!Array.isArray(object.trainingPhrases)) + throw TypeError(".google.cloud.dialogflow.cx.v3.Intent.trainingPhrases: array expected"); + message.trainingPhrases = []; + for (var i = 0; i < object.trainingPhrases.length; ++i) { + if (typeof object.trainingPhrases[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Intent.trainingPhrases: object expected"); + message.trainingPhrases[i] = $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.fromObject(object.trainingPhrases[i]); + } } - if (object.sessionEntityTypes) { - if (!Array.isArray(object.sessionEntityTypes)) - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryParameters.sessionEntityTypes: array expected"); - message.sessionEntityTypes = []; - for (var i = 0; i < object.sessionEntityTypes.length; ++i) { - if (typeof object.sessionEntityTypes[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryParameters.sessionEntityTypes: object expected"); - message.sessionEntityTypes[i] = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.fromObject(object.sessionEntityTypes[i]); + if (object.parameters) { + if (!Array.isArray(object.parameters)) + throw TypeError(".google.cloud.dialogflow.cx.v3.Intent.parameters: array expected"); + message.parameters = []; + for (var i = 0; i < object.parameters.length; ++i) { + if (typeof object.parameters[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Intent.parameters: object expected"); + message.parameters[i] = $root.google.cloud.dialogflow.cx.v3.Intent.Parameter.fromObject(object.parameters[i]); } } - if (object.payload != null) { - if (typeof object.payload !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryParameters.payload: object expected"); - message.payload = $root.google.protobuf.Struct.fromObject(object.payload); + if (object.priority != null) + message.priority = object.priority | 0; + if (object.isFallback != null) + message.isFallback = Boolean(object.isFallback); + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Intent.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); } - if (object.parameters != null) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryParameters.parameters: object expected"); - message.parameters = $root.google.protobuf.Struct.fromObject(object.parameters); + if (object.description != null) + message.description = String(object.description); + return message; + }; + + /** + * Creates a plain object from an Intent message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent} message Intent + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Intent.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.trainingPhrases = []; + object.parameters = []; } - if (object.analyzeQueryTextSentiment != null) - message.analyzeQueryTextSentiment = Boolean(object.analyzeQueryTextSentiment); - if (object.webhookHeaders) { - if (typeof object.webhookHeaders !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryParameters.webhookHeaders: object expected"); - message.webhookHeaders = {}; - for (var keys = Object.keys(object.webhookHeaders), i = 0; i < keys.length; ++i) - message.webhookHeaders[keys[i]] = String(object.webhookHeaders[keys[i]]); + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.priority = 0; + object.isFallback = false; + object.description = ""; } - return message; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.trainingPhrases && message.trainingPhrases.length) { + object.trainingPhrases = []; + for (var j = 0; j < message.trainingPhrases.length; ++j) + object.trainingPhrases[j] = $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.toObject(message.trainingPhrases[j], options); + } + if (message.parameters && message.parameters.length) { + object.parameters = []; + for (var j = 0; j < message.parameters.length; ++j) + object.parameters[j] = $root.google.cloud.dialogflow.cx.v3.Intent.Parameter.toObject(message.parameters[j], options); + } + if (message.priority != null && message.hasOwnProperty("priority")) + object.priority = message.priority; + if (message.isFallback != null && message.hasOwnProperty("isFallback")) + object.isFallback = message.isFallback; + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + return object; + }; + + /** + * Converts this Intent to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @instance + * @returns {Object.} JSON object + */ + Intent.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * Creates a plain object from a QueryParameters message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters - * @static - * @param {google.cloud.dialogflow.cx.v3.QueryParameters} message QueryParameters - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QueryParameters.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.sessionEntityTypes = []; - if (options.objects || options.defaults) - object.webhookHeaders = {}; - if (options.defaults) { - object.timeZone = ""; - object.geoLocation = null; - object.payload = null; - object.parameters = null; - object.analyzeQueryTextSentiment = false; - } - if (message.timeZone != null && message.hasOwnProperty("timeZone")) - object.timeZone = message.timeZone; - if (message.geoLocation != null && message.hasOwnProperty("geoLocation")) - object.geoLocation = $root.google.type.LatLng.toObject(message.geoLocation, options); - if (message.sessionEntityTypes && message.sessionEntityTypes.length) { - object.sessionEntityTypes = []; - for (var j = 0; j < message.sessionEntityTypes.length; ++j) - object.sessionEntityTypes[j] = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.toObject(message.sessionEntityTypes[j], options); - } - if (message.payload != null && message.hasOwnProperty("payload")) - object.payload = $root.google.protobuf.Struct.toObject(message.payload, options); - if (message.parameters != null && message.hasOwnProperty("parameters")) - object.parameters = $root.google.protobuf.Struct.toObject(message.parameters, options); - if (message.analyzeQueryTextSentiment != null && message.hasOwnProperty("analyzeQueryTextSentiment")) - object.analyzeQueryTextSentiment = message.analyzeQueryTextSentiment; - var keys2; - if (message.webhookHeaders && (keys2 = Object.keys(message.webhookHeaders)).length) { - object.webhookHeaders = {}; - for (var j = 0; j < keys2.length; ++j) - object.webhookHeaders[keys2[j]] = message.webhookHeaders[keys2[j]]; - } - return object; - }; + Intent.TrainingPhrase = (function() { + + /** + * Properties of a TrainingPhrase. + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @interface ITrainingPhrase + * @property {string|null} [id] TrainingPhrase id + * @property {Array.|null} [parts] TrainingPhrase parts + * @property {number|null} [repeatCount] TrainingPhrase repeatCount + */ + + /** + * Constructs a new TrainingPhrase. + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @classdesc Represents a TrainingPhrase. + * @implements ITrainingPhrase + * @constructor + * @param {google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase=} [properties] Properties to set + */ + function TrainingPhrase(properties) { + this.parts = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TrainingPhrase id. + * @member {string} id + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @instance + */ + TrainingPhrase.prototype.id = ""; + + /** + * TrainingPhrase parts. + * @member {Array.} parts + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @instance + */ + TrainingPhrase.prototype.parts = $util.emptyArray; + + /** + * TrainingPhrase repeatCount. + * @member {number} repeatCount + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @instance + */ + TrainingPhrase.prototype.repeatCount = 0; + + /** + * Creates a new TrainingPhrase instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase} TrainingPhrase instance + */ + TrainingPhrase.create = function create(properties) { + return new TrainingPhrase(properties); + }; + + /** + * Encodes the specified TrainingPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase} message TrainingPhrase message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TrainingPhrase.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.parts != null && message.parts.length) + for (var i = 0; i < message.parts.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.encode(message.parts[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.repeatCount != null && Object.hasOwnProperty.call(message, "repeatCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.repeatCount); + return writer; + }; + + /** + * Encodes the specified TrainingPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase} message TrainingPhrase message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TrainingPhrase.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TrainingPhrase message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase} TrainingPhrase + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TrainingPhrase.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + if (!(message.parts && message.parts.length)) + message.parts = []; + message.parts.push($root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.decode(reader, reader.uint32())); + break; + case 3: + message.repeatCount = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TrainingPhrase message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase} TrainingPhrase + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TrainingPhrase.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TrainingPhrase message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TrainingPhrase.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.parts != null && message.hasOwnProperty("parts")) { + if (!Array.isArray(message.parts)) + return "parts: array expected"; + for (var i = 0; i < message.parts.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.verify(message.parts[i]); + if (error) + return "parts." + error; + } + } + if (message.repeatCount != null && message.hasOwnProperty("repeatCount")) + if (!$util.isInteger(message.repeatCount)) + return "repeatCount: integer expected"; + return null; + }; + + /** + * Creates a TrainingPhrase message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase} TrainingPhrase + */ + TrainingPhrase.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase(); + if (object.id != null) + message.id = String(object.id); + if (object.parts) { + if (!Array.isArray(object.parts)) + throw TypeError(".google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.parts: array expected"); + message.parts = []; + for (var i = 0; i < object.parts.length; ++i) { + if (typeof object.parts[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.parts: object expected"); + message.parts[i] = $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.fromObject(object.parts[i]); + } + } + if (object.repeatCount != null) + message.repeatCount = object.repeatCount | 0; + return message; + }; + + /** + * Creates a plain object from a TrainingPhrase message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase} message TrainingPhrase + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TrainingPhrase.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.parts = []; + if (options.defaults) { + object.id = ""; + object.repeatCount = 0; + } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.parts && message.parts.length) { + object.parts = []; + for (var j = 0; j < message.parts.length; ++j) + object.parts[j] = $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.toObject(message.parts[j], options); + } + if (message.repeatCount != null && message.hasOwnProperty("repeatCount")) + object.repeatCount = message.repeatCount; + return object; + }; + + /** + * Converts this TrainingPhrase to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @instance + * @returns {Object.} JSON object + */ + TrainingPhrase.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + TrainingPhrase.Part = (function() { + + /** + * Properties of a Part. + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @interface IPart + * @property {string|null} [text] Part text + * @property {string|null} [parameterId] Part parameterId + */ + + /** + * Constructs a new Part. + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @classdesc Represents a Part. + * @implements IPart + * @constructor + * @param {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart=} [properties] Properties to set + */ + function Part(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Part text. + * @member {string} text + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part + * @instance + */ + Part.prototype.text = ""; + + /** + * Part parameterId. + * @member {string} parameterId + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part + * @instance + */ + Part.prototype.parameterId = ""; + + /** + * Creates a new Part instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part} Part instance + */ + Part.create = function create(properties) { + return new Part(properties); + }; + + /** + * Encodes the specified Part message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart} message Part message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Part.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.text != null && Object.hasOwnProperty.call(message, "text")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); + if (message.parameterId != null && Object.hasOwnProperty.call(message, "parameterId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parameterId); + return writer; + }; - /** - * Converts this QueryParameters to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters - * @instance - * @returns {Object.} JSON object - */ - QueryParameters.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Encodes the specified Part message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart} message Part message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Part.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - return QueryParameters; - })(); + /** + * Decodes a Part message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part} Part + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Part.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.text = reader.string(); + break; + case 2: + message.parameterId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - v3.QueryInput = (function() { + /** + * Decodes a Part message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part} Part + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Part.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Properties of a QueryInput. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IQueryInput - * @property {google.cloud.dialogflow.cx.v3.ITextInput|null} [text] QueryInput text - * @property {google.cloud.dialogflow.cx.v3.IIntentInput|null} [intent] QueryInput intent - * @property {google.cloud.dialogflow.cx.v3.IAudioInput|null} [audio] QueryInput audio - * @property {google.cloud.dialogflow.cx.v3.IEventInput|null} [event] QueryInput event - * @property {google.cloud.dialogflow.cx.v3.IDtmfInput|null} [dtmf] QueryInput dtmf - * @property {string|null} [languageCode] QueryInput languageCode - */ + /** + * Verifies a Part message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Part.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.text != null && message.hasOwnProperty("text")) + if (!$util.isString(message.text)) + return "text: string expected"; + if (message.parameterId != null && message.hasOwnProperty("parameterId")) + if (!$util.isString(message.parameterId)) + return "parameterId: string expected"; + return null; + }; - /** - * Constructs a new QueryInput. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a QueryInput. - * @implements IQueryInput - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IQueryInput=} [properties] Properties to set - */ - function QueryInput(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Creates a Part message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part} Part + */ + Part.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part(); + if (object.text != null) + message.text = String(object.text); + if (object.parameterId != null) + message.parameterId = String(object.parameterId); + return message; + }; - /** - * QueryInput text. - * @member {google.cloud.dialogflow.cx.v3.ITextInput|null|undefined} text - * @memberof google.cloud.dialogflow.cx.v3.QueryInput - * @instance - */ - QueryInput.prototype.text = null; + /** + * Creates a plain object from a Part message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part} message Part + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Part.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.text = ""; + object.parameterId = ""; + } + if (message.text != null && message.hasOwnProperty("text")) + object.text = message.text; + if (message.parameterId != null && message.hasOwnProperty("parameterId")) + object.parameterId = message.parameterId; + return object; + }; - /** - * QueryInput intent. - * @member {google.cloud.dialogflow.cx.v3.IIntentInput|null|undefined} intent - * @memberof google.cloud.dialogflow.cx.v3.QueryInput - * @instance - */ - QueryInput.prototype.intent = null; + /** + * Converts this Part to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part + * @instance + * @returns {Object.} JSON object + */ + Part.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * QueryInput audio. - * @member {google.cloud.dialogflow.cx.v3.IAudioInput|null|undefined} audio - * @memberof google.cloud.dialogflow.cx.v3.QueryInput - * @instance - */ - QueryInput.prototype.audio = null; + return Part; + })(); - /** - * QueryInput event. - * @member {google.cloud.dialogflow.cx.v3.IEventInput|null|undefined} event - * @memberof google.cloud.dialogflow.cx.v3.QueryInput - * @instance - */ - QueryInput.prototype.event = null; + return TrainingPhrase; + })(); - /** - * QueryInput dtmf. - * @member {google.cloud.dialogflow.cx.v3.IDtmfInput|null|undefined} dtmf - * @memberof google.cloud.dialogflow.cx.v3.QueryInput - * @instance - */ - QueryInput.prototype.dtmf = null; + Intent.Parameter = (function() { - /** - * QueryInput languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.QueryInput - * @instance - */ - QueryInput.prototype.languageCode = ""; + /** + * Properties of a Parameter. + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @interface IParameter + * @property {string|null} [id] Parameter id + * @property {string|null} [entityType] Parameter entityType + * @property {boolean|null} [isList] Parameter isList + * @property {boolean|null} [redact] Parameter redact + */ - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Constructs a new Parameter. + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @classdesc Represents a Parameter. + * @implements IParameter + * @constructor + * @param {google.cloud.dialogflow.cx.v3.Intent.IParameter=} [properties] Properties to set + */ + function Parameter(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * QueryInput input. - * @member {"text"|"intent"|"audio"|"event"|"dtmf"|undefined} input - * @memberof google.cloud.dialogflow.cx.v3.QueryInput - * @instance - */ - Object.defineProperty(QueryInput.prototype, "input", { - get: $util.oneOfGetter($oneOfFields = ["text", "intent", "audio", "event", "dtmf"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Parameter id. + * @member {string} id + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @instance + */ + Parameter.prototype.id = ""; - /** - * Creates a new QueryInput instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.QueryInput - * @static - * @param {google.cloud.dialogflow.cx.v3.IQueryInput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.QueryInput} QueryInput instance - */ - QueryInput.create = function create(properties) { - return new QueryInput(properties); - }; + /** + * Parameter entityType. + * @member {string} entityType + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @instance + */ + Parameter.prototype.entityType = ""; - /** - * Encodes the specified QueryInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryInput.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.QueryInput - * @static - * @param {google.cloud.dialogflow.cx.v3.IQueryInput} message QueryInput message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryInput.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.text != null && Object.hasOwnProperty.call(message, "text")) - $root.google.cloud.dialogflow.cx.v3.TextInput.encode(message.text, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) - $root.google.cloud.dialogflow.cx.v3.IntentInput.encode(message.intent, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.languageCode); - if (message.audio != null && Object.hasOwnProperty.call(message, "audio")) - $root.google.cloud.dialogflow.cx.v3.AudioInput.encode(message.audio, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.event != null && Object.hasOwnProperty.call(message, "event")) - $root.google.cloud.dialogflow.cx.v3.EventInput.encode(message.event, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.dtmf != null && Object.hasOwnProperty.call(message, "dtmf")) - $root.google.cloud.dialogflow.cx.v3.DtmfInput.encode(message.dtmf, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - return writer; - }; + /** + * Parameter isList. + * @member {boolean} isList + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @instance + */ + Parameter.prototype.isList = false; - /** - * Encodes the specified QueryInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryInput.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.QueryInput - * @static - * @param {google.cloud.dialogflow.cx.v3.IQueryInput} message QueryInput message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryInput.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Parameter redact. + * @member {boolean} redact + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @instance + */ + Parameter.prototype.redact = false; - /** - * Decodes a QueryInput message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.QueryInput - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.QueryInput} QueryInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryInput.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.QueryInput(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.text = $root.google.cloud.dialogflow.cx.v3.TextInput.decode(reader, reader.uint32()); - break; - case 3: - message.intent = $root.google.cloud.dialogflow.cx.v3.IntentInput.decode(reader, reader.uint32()); - break; - case 5: - message.audio = $root.google.cloud.dialogflow.cx.v3.AudioInput.decode(reader, reader.uint32()); - break; - case 6: - message.event = $root.google.cloud.dialogflow.cx.v3.EventInput.decode(reader, reader.uint32()); - break; - case 7: - message.dtmf = $root.google.cloud.dialogflow.cx.v3.DtmfInput.decode(reader, reader.uint32()); - break; - case 4: - message.languageCode = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Creates a new Parameter instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent.IParameter=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Intent.Parameter} Parameter instance + */ + Parameter.create = function create(properties) { + return new Parameter(properties); + }; + + /** + * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.Parameter.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent.IParameter} message Parameter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Parameter.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityType); + if (message.isList != null && Object.hasOwnProperty.call(message, "isList")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isList); + if (message.redact != null && Object.hasOwnProperty.call(message, "redact")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.redact); + return writer; + }; + + /** + * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.Parameter.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent.IParameter} message Parameter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Parameter.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Parameter message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.Intent.Parameter} Parameter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Parameter.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Intent.Parameter(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + message.entityType = reader.string(); + break; + case 3: + message.isList = reader.bool(); + break; + case 4: + message.redact = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a QueryInput message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.QueryInput - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.QueryInput} QueryInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryInput.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a Parameter message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.Intent.Parameter} Parameter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Parameter.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a QueryInput message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.QueryInput - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QueryInput.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.text != null && message.hasOwnProperty("text")) { - properties.input = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.TextInput.verify(message.text); - if (error) - return "text." + error; - } - } - if (message.intent != null && message.hasOwnProperty("intent")) { - if (properties.input === 1) - return "input: multiple values"; - properties.input = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.IntentInput.verify(message.intent); - if (error) - return "intent." + error; - } - } - if (message.audio != null && message.hasOwnProperty("audio")) { - if (properties.input === 1) - return "input: multiple values"; - properties.input = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.AudioInput.verify(message.audio); - if (error) - return "audio." + error; - } - } - if (message.event != null && message.hasOwnProperty("event")) { - if (properties.input === 1) - return "input: multiple values"; - properties.input = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.EventInput.verify(message.event); - if (error) - return "event." + error; - } - } - if (message.dtmf != null && message.hasOwnProperty("dtmf")) { - if (properties.input === 1) - return "input: multiple values"; - properties.input = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.DtmfInput.verify(message.dtmf); - if (error) - return "dtmf." + error; - } - } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; - return null; - }; + /** + * Verifies a Parameter message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Parameter.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.entityType != null && message.hasOwnProperty("entityType")) + if (!$util.isString(message.entityType)) + return "entityType: string expected"; + if (message.isList != null && message.hasOwnProperty("isList")) + if (typeof message.isList !== "boolean") + return "isList: boolean expected"; + if (message.redact != null && message.hasOwnProperty("redact")) + if (typeof message.redact !== "boolean") + return "redact: boolean expected"; + return null; + }; - /** - * Creates a QueryInput message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.QueryInput - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.QueryInput} QueryInput - */ - QueryInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.QueryInput) + /** + * Creates a Parameter message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.Intent.Parameter} Parameter + */ + Parameter.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Intent.Parameter) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.Intent.Parameter(); + if (object.id != null) + message.id = String(object.id); + if (object.entityType != null) + message.entityType = String(object.entityType); + if (object.isList != null) + message.isList = Boolean(object.isList); + if (object.redact != null) + message.redact = Boolean(object.redact); + return message; + }; + + /** + * Creates a plain object from a Parameter message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent.Parameter} message Parameter + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Parameter.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.id = ""; + object.entityType = ""; + object.isList = false; + object.redact = false; + } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.entityType != null && message.hasOwnProperty("entityType")) + object.entityType = message.entityType; + if (message.isList != null && message.hasOwnProperty("isList")) + object.isList = message.isList; + if (message.redact != null && message.hasOwnProperty("redact")) + object.redact = message.redact; return object; - var message = new $root.google.cloud.dialogflow.cx.v3.QueryInput(); - if (object.text != null) { - if (typeof object.text !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryInput.text: object expected"); - message.text = $root.google.cloud.dialogflow.cx.v3.TextInput.fromObject(object.text); - } - if (object.intent != null) { - if (typeof object.intent !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryInput.intent: object expected"); - message.intent = $root.google.cloud.dialogflow.cx.v3.IntentInput.fromObject(object.intent); - } - if (object.audio != null) { - if (typeof object.audio !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryInput.audio: object expected"); - message.audio = $root.google.cloud.dialogflow.cx.v3.AudioInput.fromObject(object.audio); - } - if (object.event != null) { - if (typeof object.event !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryInput.event: object expected"); - message.event = $root.google.cloud.dialogflow.cx.v3.EventInput.fromObject(object.event); - } - if (object.dtmf != null) { - if (typeof object.dtmf !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryInput.dtmf: object expected"); - message.dtmf = $root.google.cloud.dialogflow.cx.v3.DtmfInput.fromObject(object.dtmf); - } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); - return message; - }; + }; - /** - * Creates a plain object from a QueryInput message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.QueryInput - * @static - * @param {google.cloud.dialogflow.cx.v3.QueryInput} message QueryInput - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QueryInput.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.languageCode = ""; - if (message.text != null && message.hasOwnProperty("text")) { - object.text = $root.google.cloud.dialogflow.cx.v3.TextInput.toObject(message.text, options); - if (options.oneofs) - object.input = "text"; - } - if (message.intent != null && message.hasOwnProperty("intent")) { - object.intent = $root.google.cloud.dialogflow.cx.v3.IntentInput.toObject(message.intent, options); - if (options.oneofs) - object.input = "intent"; - } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; - if (message.audio != null && message.hasOwnProperty("audio")) { - object.audio = $root.google.cloud.dialogflow.cx.v3.AudioInput.toObject(message.audio, options); - if (options.oneofs) - object.input = "audio"; - } - if (message.event != null && message.hasOwnProperty("event")) { - object.event = $root.google.cloud.dialogflow.cx.v3.EventInput.toObject(message.event, options); - if (options.oneofs) - object.input = "event"; - } - if (message.dtmf != null && message.hasOwnProperty("dtmf")) { - object.dtmf = $root.google.cloud.dialogflow.cx.v3.DtmfInput.toObject(message.dtmf, options); - if (options.oneofs) - object.input = "dtmf"; - } - return object; - }; + /** + * Converts this Parameter to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @instance + * @returns {Object.} JSON object + */ + Parameter.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this QueryInput to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.QueryInput - * @instance - * @returns {Object.} JSON object - */ - QueryInput.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return Parameter; + })(); - return QueryInput; + return Intent; })(); - v3.QueryResult = (function() { + v3.ListIntentsRequest = (function() { /** - * Properties of a QueryResult. + * Properties of a ListIntentsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IQueryResult - * @property {string|null} [text] QueryResult text - * @property {string|null} [triggerIntent] QueryResult triggerIntent - * @property {string|null} [transcript] QueryResult transcript - * @property {string|null} [triggerEvent] QueryResult triggerEvent - * @property {string|null} [languageCode] QueryResult languageCode - * @property {google.protobuf.IStruct|null} [parameters] QueryResult parameters - * @property {Array.|null} [responseMessages] QueryResult responseMessages - * @property {Array.|null} [webhookStatuses] QueryResult webhookStatuses - * @property {Array.|null} [webhookPayloads] QueryResult webhookPayloads - * @property {google.cloud.dialogflow.cx.v3.IPage|null} [currentPage] QueryResult currentPage - * @property {google.cloud.dialogflow.cx.v3.IIntent|null} [intent] QueryResult intent - * @property {number|null} [intentDetectionConfidence] QueryResult intentDetectionConfidence - * @property {google.cloud.dialogflow.cx.v3.IMatch|null} [match] QueryResult match - * @property {google.protobuf.IStruct|null} [diagnosticInfo] QueryResult diagnosticInfo - * @property {google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult|null} [sentimentAnalysisResult] QueryResult sentimentAnalysisResult + * @interface IListIntentsRequest + * @property {string|null} [parent] ListIntentsRequest parent + * @property {string|null} [languageCode] ListIntentsRequest languageCode + * @property {google.cloud.dialogflow.cx.v3.IntentView|null} [intentView] ListIntentsRequest intentView + * @property {number|null} [pageSize] ListIntentsRequest pageSize + * @property {string|null} [pageToken] ListIntentsRequest pageToken */ /** - * Constructs a new QueryResult. + * Constructs a new ListIntentsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a QueryResult. - * @implements IQueryResult + * @classdesc Represents a ListIntentsRequest. + * @implements IListIntentsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IQueryResult=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListIntentsRequest=} [properties] Properties to set */ - function QueryResult(properties) { - this.responseMessages = []; - this.webhookStatuses = []; - this.webhookPayloads = []; + function ListIntentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -32327,280 +32069,127 @@ } /** - * QueryResult text. - * @member {string} text - * @memberof google.cloud.dialogflow.cx.v3.QueryResult - * @instance - */ - QueryResult.prototype.text = ""; - - /** - * QueryResult triggerIntent. - * @member {string} triggerIntent - * @memberof google.cloud.dialogflow.cx.v3.QueryResult - * @instance - */ - QueryResult.prototype.triggerIntent = ""; - - /** - * QueryResult transcript. - * @member {string} transcript - * @memberof google.cloud.dialogflow.cx.v3.QueryResult - * @instance - */ - QueryResult.prototype.transcript = ""; - - /** - * QueryResult triggerEvent. - * @member {string} triggerEvent - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * ListIntentsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @instance */ - QueryResult.prototype.triggerEvent = ""; + ListIntentsRequest.prototype.parent = ""; /** - * QueryResult languageCode. + * ListIntentsRequest languageCode. * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.QueryResult - * @instance - */ - QueryResult.prototype.languageCode = ""; - - /** - * QueryResult parameters. - * @member {google.protobuf.IStruct|null|undefined} parameters - * @memberof google.cloud.dialogflow.cx.v3.QueryResult - * @instance - */ - QueryResult.prototype.parameters = null; - - /** - * QueryResult responseMessages. - * @member {Array.} responseMessages - * @memberof google.cloud.dialogflow.cx.v3.QueryResult - * @instance - */ - QueryResult.prototype.responseMessages = $util.emptyArray; - - /** - * QueryResult webhookStatuses. - * @member {Array.} webhookStatuses - * @memberof google.cloud.dialogflow.cx.v3.QueryResult - * @instance - */ - QueryResult.prototype.webhookStatuses = $util.emptyArray; - - /** - * QueryResult webhookPayloads. - * @member {Array.} webhookPayloads - * @memberof google.cloud.dialogflow.cx.v3.QueryResult - * @instance - */ - QueryResult.prototype.webhookPayloads = $util.emptyArray; - - /** - * QueryResult currentPage. - * @member {google.cloud.dialogflow.cx.v3.IPage|null|undefined} currentPage - * @memberof google.cloud.dialogflow.cx.v3.QueryResult - * @instance - */ - QueryResult.prototype.currentPage = null; - - /** - * QueryResult intent. - * @member {google.cloud.dialogflow.cx.v3.IIntent|null|undefined} intent - * @memberof google.cloud.dialogflow.cx.v3.QueryResult - * @instance - */ - QueryResult.prototype.intent = null; - - /** - * QueryResult intentDetectionConfidence. - * @member {number} intentDetectionConfidence - * @memberof google.cloud.dialogflow.cx.v3.QueryResult - * @instance - */ - QueryResult.prototype.intentDetectionConfidence = 0; - - /** - * QueryResult match. - * @member {google.cloud.dialogflow.cx.v3.IMatch|null|undefined} match - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @instance */ - QueryResult.prototype.match = null; + ListIntentsRequest.prototype.languageCode = ""; /** - * QueryResult diagnosticInfo. - * @member {google.protobuf.IStruct|null|undefined} diagnosticInfo - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * ListIntentsRequest intentView. + * @member {google.cloud.dialogflow.cx.v3.IntentView} intentView + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @instance */ - QueryResult.prototype.diagnosticInfo = null; + ListIntentsRequest.prototype.intentView = 0; /** - * QueryResult sentimentAnalysisResult. - * @member {google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult|null|undefined} sentimentAnalysisResult - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * ListIntentsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @instance */ - QueryResult.prototype.sentimentAnalysisResult = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + ListIntentsRequest.prototype.pageSize = 0; /** - * QueryResult query. - * @member {"text"|"triggerIntent"|"transcript"|"triggerEvent"|undefined} query - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * ListIntentsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @instance */ - Object.defineProperty(QueryResult.prototype, "query", { - get: $util.oneOfGetter($oneOfFields = ["text", "triggerIntent", "transcript", "triggerEvent"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new QueryResult instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.QueryResult - * @static - * @param {google.cloud.dialogflow.cx.v3.IQueryResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.QueryResult} QueryResult instance - */ - QueryResult.create = function create(properties) { - return new QueryResult(properties); - }; + ListIntentsRequest.prototype.pageToken = ""; - /** - * Encodes the specified QueryResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryResult.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.QueryResult - * @static - * @param {google.cloud.dialogflow.cx.v3.IQueryResult} message QueryResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryResult.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.text != null && Object.hasOwnProperty.call(message, "text")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - $root.google.protobuf.Struct.encode(message.parameters, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.responseMessages != null && message.responseMessages.length) - for (var i = 0; i < message.responseMessages.length; ++i) - $root.google.cloud.dialogflow.cx.v3.ResponseMessage.encode(message.responseMessages[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.webhookPayloads != null && message.webhookPayloads.length) - for (var i = 0; i < message.webhookPayloads.length; ++i) - $root.google.protobuf.Struct.encode(message.webhookPayloads[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) - $root.google.cloud.dialogflow.cx.v3.Page.encode(message.currentPage, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) - $root.google.cloud.dialogflow.cx.v3.Intent.encode(message.intent, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.intentDetectionConfidence != null && Object.hasOwnProperty.call(message, "intentDetectionConfidence")) - writer.uint32(/* id 9, wireType 5 =*/77).float(message.intentDetectionConfidence); - if (message.diagnosticInfo != null && Object.hasOwnProperty.call(message, "diagnosticInfo")) - $root.google.protobuf.Struct.encode(message.diagnosticInfo, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.triggerIntent != null && Object.hasOwnProperty.call(message, "triggerIntent")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.triggerIntent); - if (message.transcript != null && Object.hasOwnProperty.call(message, "transcript")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.transcript); - if (message.webhookStatuses != null && message.webhookStatuses.length) - for (var i = 0; i < message.webhookStatuses.length; ++i) - $root.google.rpc.Status.encode(message.webhookStatuses[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.triggerEvent != null && Object.hasOwnProperty.call(message, "triggerEvent")) - writer.uint32(/* id 14, wireType 2 =*/114).string(message.triggerEvent); - if (message.match != null && Object.hasOwnProperty.call(message, "match")) - $root.google.cloud.dialogflow.cx.v3.Match.encode(message.match, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - if (message.sentimentAnalysisResult != null && Object.hasOwnProperty.call(message, "sentimentAnalysisResult")) - $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.encode(message.sentimentAnalysisResult, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + /** + * Creates a new ListIntentsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IListIntentsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListIntentsRequest} ListIntentsRequest instance + */ + ListIntentsRequest.create = function create(properties) { + return new ListIntentsRequest(properties); + }; + + /** + * Encodes the specified ListIntentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IListIntentsRequest} message ListIntentsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListIntentsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.intentView != null && Object.hasOwnProperty.call(message, "intentView")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.intentView); return writer; }; /** - * Encodes the specified QueryResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryResult.verify|verify} messages. + * Encodes the specified ListIntentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IQueryResult} message QueryResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListIntentsRequest} message ListIntentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryResult.encodeDelimited = function encodeDelimited(message, writer) { + ListIntentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryResult message from the specified reader or buffer. + * Decodes a ListIntentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.QueryResult} QueryResult + * @returns {google.cloud.dialogflow.cx.v3.ListIntentsRequest} ListIntentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryResult.decode = function decode(reader, length) { + ListIntentsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.QueryResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListIntentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.text = reader.string(); - break; - case 11: - message.triggerIntent = reader.string(); - break; - case 12: - message.transcript = reader.string(); - break; - case 14: - message.triggerEvent = reader.string(); + message.parent = reader.string(); break; case 2: message.languageCode = reader.string(); break; + case 5: + message.intentView = reader.int32(); + break; case 3: - message.parameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); break; case 4: - if (!(message.responseMessages && message.responseMessages.length)) - message.responseMessages = []; - message.responseMessages.push($root.google.cloud.dialogflow.cx.v3.ResponseMessage.decode(reader, reader.uint32())); - break; - case 13: - if (!(message.webhookStatuses && message.webhookStatuses.length)) - message.webhookStatuses = []; - message.webhookStatuses.push($root.google.rpc.Status.decode(reader, reader.uint32())); - break; - case 6: - if (!(message.webhookPayloads && message.webhookPayloads.length)) - message.webhookPayloads = []; - message.webhookPayloads.push($root.google.protobuf.Struct.decode(reader, reader.uint32())); - break; - case 7: - message.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.decode(reader, reader.uint32()); - break; - case 8: - message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.decode(reader, reader.uint32()); - break; - case 9: - message.intentDetectionConfidence = reader.float(); - break; - case 15: - message.match = $root.google.cloud.dialogflow.cx.v3.Match.decode(reader, reader.uint32()); - break; - case 10: - message.diagnosticInfo = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 17: - message.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.decode(reader, reader.uint32()); + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -32611,326 +32200,160 @@ }; /** - * Decodes a QueryResult message from the specified reader or buffer, length delimited. + * Decodes a ListIntentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.QueryResult} QueryResult + * @returns {google.cloud.dialogflow.cx.v3.ListIntentsRequest} ListIntentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryResult.decodeDelimited = function decodeDelimited(reader) { + ListIntentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryResult message. + * Verifies a ListIntentsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryResult.verify = function verify(message) { + ListIntentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.text != null && message.hasOwnProperty("text")) { - properties.query = 1; - if (!$util.isString(message.text)) - return "text: string expected"; - } - if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { - if (properties.query === 1) - return "query: multiple values"; - properties.query = 1; - if (!$util.isString(message.triggerIntent)) - return "triggerIntent: string expected"; - } - if (message.transcript != null && message.hasOwnProperty("transcript")) { - if (properties.query === 1) - return "query: multiple values"; - properties.query = 1; - if (!$util.isString(message.transcript)) - return "transcript: string expected"; - } - if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { - if (properties.query === 1) - return "query: multiple values"; - properties.query = 1; - if (!$util.isString(message.triggerEvent)) - return "triggerEvent: string expected"; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; if (message.languageCode != null && message.hasOwnProperty("languageCode")) if (!$util.isString(message.languageCode)) return "languageCode: string expected"; - if (message.parameters != null && message.hasOwnProperty("parameters")) { - var error = $root.google.protobuf.Struct.verify(message.parameters); - if (error) - return "parameters." + error; - } - if (message.responseMessages != null && message.hasOwnProperty("responseMessages")) { - if (!Array.isArray(message.responseMessages)) - return "responseMessages: array expected"; - for (var i = 0; i < message.responseMessages.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.verify(message.responseMessages[i]); - if (error) - return "responseMessages." + error; - } - } - if (message.webhookStatuses != null && message.hasOwnProperty("webhookStatuses")) { - if (!Array.isArray(message.webhookStatuses)) - return "webhookStatuses: array expected"; - for (var i = 0; i < message.webhookStatuses.length; ++i) { - var error = $root.google.rpc.Status.verify(message.webhookStatuses[i]); - if (error) - return "webhookStatuses." + error; - } - } - if (message.webhookPayloads != null && message.hasOwnProperty("webhookPayloads")) { - if (!Array.isArray(message.webhookPayloads)) - return "webhookPayloads: array expected"; - for (var i = 0; i < message.webhookPayloads.length; ++i) { - var error = $root.google.protobuf.Struct.verify(message.webhookPayloads[i]); - if (error) - return "webhookPayloads." + error; + if (message.intentView != null && message.hasOwnProperty("intentView")) + switch (message.intentView) { + default: + return "intentView: enum value expected"; + case 0: + case 1: + case 2: + break; } - } - if (message.currentPage != null && message.hasOwnProperty("currentPage")) { - var error = $root.google.cloud.dialogflow.cx.v3.Page.verify(message.currentPage); - if (error) - return "currentPage." + error; - } - if (message.intent != null && message.hasOwnProperty("intent")) { - var error = $root.google.cloud.dialogflow.cx.v3.Intent.verify(message.intent); - if (error) - return "intent." + error; - } - if (message.intentDetectionConfidence != null && message.hasOwnProperty("intentDetectionConfidence")) - if (typeof message.intentDetectionConfidence !== "number") - return "intentDetectionConfidence: number expected"; - if (message.match != null && message.hasOwnProperty("match")) { - var error = $root.google.cloud.dialogflow.cx.v3.Match.verify(message.match); - if (error) - return "match." + error; - } - if (message.diagnosticInfo != null && message.hasOwnProperty("diagnosticInfo")) { - var error = $root.google.protobuf.Struct.verify(message.diagnosticInfo); - if (error) - return "diagnosticInfo." + error; - } - if (message.sentimentAnalysisResult != null && message.hasOwnProperty("sentimentAnalysisResult")) { - var error = $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.verify(message.sentimentAnalysisResult); - if (error) - return "sentimentAnalysisResult." + error; - } + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a QueryResult message from a plain object. Also converts values to their respective internal types. + * Creates a ListIntentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.QueryResult} QueryResult + * @returns {google.cloud.dialogflow.cx.v3.ListIntentsRequest} ListIntentsRequest */ - QueryResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.QueryResult) + ListIntentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListIntentsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.QueryResult(); - if (object.text != null) - message.text = String(object.text); - if (object.triggerIntent != null) - message.triggerIntent = String(object.triggerIntent); - if (object.transcript != null) - message.transcript = String(object.transcript); - if (object.triggerEvent != null) - message.triggerEvent = String(object.triggerEvent); + var message = new $root.google.cloud.dialogflow.cx.v3.ListIntentsRequest(); + if (object.parent != null) + message.parent = String(object.parent); if (object.languageCode != null) message.languageCode = String(object.languageCode); - if (object.parameters != null) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.parameters: object expected"); - message.parameters = $root.google.protobuf.Struct.fromObject(object.parameters); - } - if (object.responseMessages) { - if (!Array.isArray(object.responseMessages)) - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.responseMessages: array expected"); - message.responseMessages = []; - for (var i = 0; i < object.responseMessages.length; ++i) { - if (typeof object.responseMessages[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.responseMessages: object expected"); - message.responseMessages[i] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.fromObject(object.responseMessages[i]); - } - } - if (object.webhookStatuses) { - if (!Array.isArray(object.webhookStatuses)) - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.webhookStatuses: array expected"); - message.webhookStatuses = []; - for (var i = 0; i < object.webhookStatuses.length; ++i) { - if (typeof object.webhookStatuses[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.webhookStatuses: object expected"); - message.webhookStatuses[i] = $root.google.rpc.Status.fromObject(object.webhookStatuses[i]); - } - } - if (object.webhookPayloads) { - if (!Array.isArray(object.webhookPayloads)) - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.webhookPayloads: array expected"); - message.webhookPayloads = []; - for (var i = 0; i < object.webhookPayloads.length; ++i) { - if (typeof object.webhookPayloads[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.webhookPayloads: object expected"); - message.webhookPayloads[i] = $root.google.protobuf.Struct.fromObject(object.webhookPayloads[i]); - } - } - if (object.currentPage != null) { - if (typeof object.currentPage !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.currentPage: object expected"); - message.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.fromObject(object.currentPage); - } - if (object.intent != null) { - if (typeof object.intent !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.intent: object expected"); - message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.fromObject(object.intent); - } - if (object.intentDetectionConfidence != null) - message.intentDetectionConfidence = Number(object.intentDetectionConfidence); - if (object.match != null) { - if (typeof object.match !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.match: object expected"); - message.match = $root.google.cloud.dialogflow.cx.v3.Match.fromObject(object.match); - } - if (object.diagnosticInfo != null) { - if (typeof object.diagnosticInfo !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.diagnosticInfo: object expected"); - message.diagnosticInfo = $root.google.protobuf.Struct.fromObject(object.diagnosticInfo); - } - if (object.sentimentAnalysisResult != null) { - if (typeof object.sentimentAnalysisResult !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.sentimentAnalysisResult: object expected"); - message.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.fromObject(object.sentimentAnalysisResult); + switch (object.intentView) { + case "INTENT_VIEW_UNSPECIFIED": + case 0: + message.intentView = 0; + break; + case "INTENT_VIEW_PARTIAL": + case 1: + message.intentView = 1; + break; + case "INTENT_VIEW_FULL": + case 2: + message.intentView = 2; + break; } + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a QueryResult message. Also converts values to other types if specified. + * Creates a plain object from a ListIntentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.QueryResult} message QueryResult + * @param {google.cloud.dialogflow.cx.v3.ListIntentsRequest} message ListIntentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryResult.toObject = function toObject(message, options) { + ListIntentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.responseMessages = []; - object.webhookPayloads = []; - object.webhookStatuses = []; - } if (options.defaults) { + object.parent = ""; object.languageCode = ""; - object.parameters = null; - object.currentPage = null; - object.intent = null; - object.intentDetectionConfidence = 0; - object.diagnosticInfo = null; - object.match = null; - object.sentimentAnalysisResult = null; - } - if (message.text != null && message.hasOwnProperty("text")) { - object.text = message.text; - if (options.oneofs) - object.query = "text"; + object.pageSize = 0; + object.pageToken = ""; + object.intentView = options.enums === String ? "INTENT_VIEW_UNSPECIFIED" : 0; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; if (message.languageCode != null && message.hasOwnProperty("languageCode")) object.languageCode = message.languageCode; - if (message.parameters != null && message.hasOwnProperty("parameters")) - object.parameters = $root.google.protobuf.Struct.toObject(message.parameters, options); - if (message.responseMessages && message.responseMessages.length) { - object.responseMessages = []; - for (var j = 0; j < message.responseMessages.length; ++j) - object.responseMessages[j] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.toObject(message.responseMessages[j], options); - } - if (message.webhookPayloads && message.webhookPayloads.length) { - object.webhookPayloads = []; - for (var j = 0; j < message.webhookPayloads.length; ++j) - object.webhookPayloads[j] = $root.google.protobuf.Struct.toObject(message.webhookPayloads[j], options); - } - if (message.currentPage != null && message.hasOwnProperty("currentPage")) - object.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.toObject(message.currentPage, options); - if (message.intent != null && message.hasOwnProperty("intent")) - object.intent = $root.google.cloud.dialogflow.cx.v3.Intent.toObject(message.intent, options); - if (message.intentDetectionConfidence != null && message.hasOwnProperty("intentDetectionConfidence")) - object.intentDetectionConfidence = options.json && !isFinite(message.intentDetectionConfidence) ? String(message.intentDetectionConfidence) : message.intentDetectionConfidence; - if (message.diagnosticInfo != null && message.hasOwnProperty("diagnosticInfo")) - object.diagnosticInfo = $root.google.protobuf.Struct.toObject(message.diagnosticInfo, options); - if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { - object.triggerIntent = message.triggerIntent; - if (options.oneofs) - object.query = "triggerIntent"; - } - if (message.transcript != null && message.hasOwnProperty("transcript")) { - object.transcript = message.transcript; - if (options.oneofs) - object.query = "transcript"; - } - if (message.webhookStatuses && message.webhookStatuses.length) { - object.webhookStatuses = []; - for (var j = 0; j < message.webhookStatuses.length; ++j) - object.webhookStatuses[j] = $root.google.rpc.Status.toObject(message.webhookStatuses[j], options); - } - if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { - object.triggerEvent = message.triggerEvent; - if (options.oneofs) - object.query = "triggerEvent"; - } - if (message.match != null && message.hasOwnProperty("match")) - object.match = $root.google.cloud.dialogflow.cx.v3.Match.toObject(message.match, options); - if (message.sentimentAnalysisResult != null && message.hasOwnProperty("sentimentAnalysisResult")) - object.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.toObject(message.sentimentAnalysisResult, options); + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.intentView != null && message.hasOwnProperty("intentView")) + object.intentView = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.IntentView[message.intentView] : message.intentView; return object; }; /** - * Converts this QueryResult to JSON. + * Converts this ListIntentsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @instance * @returns {Object.} JSON object */ - QueryResult.prototype.toJSON = function toJSON() { + ListIntentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryResult; + return ListIntentsRequest; })(); - v3.TextInput = (function() { + v3.ListIntentsResponse = (function() { /** - * Properties of a TextInput. + * Properties of a ListIntentsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ITextInput - * @property {string|null} [text] TextInput text + * @interface IListIntentsResponse + * @property {Array.|null} [intents] ListIntentsResponse intents + * @property {string|null} [nextPageToken] ListIntentsResponse nextPageToken */ /** - * Constructs a new TextInput. + * Constructs a new ListIntentsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a TextInput. - * @implements ITextInput + * @classdesc Represents a ListIntentsResponse. + * @implements IListIntentsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.ITextInput=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListIntentsResponse=} [properties] Properties to set */ - function TextInput(properties) { + function ListIntentsResponse(properties) { + this.intents = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -32938,75 +32361,91 @@ } /** - * TextInput text. - * @member {string} text - * @memberof google.cloud.dialogflow.cx.v3.TextInput + * ListIntentsResponse intents. + * @member {Array.} intents + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse * @instance */ - TextInput.prototype.text = ""; + ListIntentsResponse.prototype.intents = $util.emptyArray; /** - * Creates a new TextInput instance using the specified properties. + * ListIntentsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse + * @instance + */ + ListIntentsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListIntentsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.TextInput + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ITextInput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.TextInput} TextInput instance + * @param {google.cloud.dialogflow.cx.v3.IListIntentsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListIntentsResponse} ListIntentsResponse instance */ - TextInput.create = function create(properties) { - return new TextInput(properties); + ListIntentsResponse.create = function create(properties) { + return new ListIntentsResponse(properties); }; /** - * Encodes the specified TextInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TextInput.verify|verify} messages. + * Encodes the specified ListIntentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.TextInput + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ITextInput} message TextInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListIntentsResponse} message ListIntentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TextInput.encode = function encode(message, writer) { + ListIntentsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.text != null && Object.hasOwnProperty.call(message, "text")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); + if (message.intents != null && message.intents.length) + for (var i = 0; i < message.intents.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Intent.encode(message.intents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified TextInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TextInput.verify|verify} messages. + * Encodes the specified ListIntentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TextInput + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ITextInput} message TextInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListIntentsResponse} message ListIntentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TextInput.encodeDelimited = function encodeDelimited(message, writer) { + ListIntentsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TextInput message from the specified reader or buffer. + * Decodes a ListIntentsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.TextInput + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.TextInput} TextInput + * @returns {google.cloud.dialogflow.cx.v3.ListIntentsResponse} ListIntentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TextInput.decode = function decode(reader, length) { + ListIntentsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TextInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListIntentsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.text = reader.string(); + if (!(message.intents && message.intents.length)) + message.intents = []; + message.intents.push($root.google.cloud.dialogflow.cx.v3.Intent.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -33017,107 +32456,134 @@ }; /** - * Decodes a TextInput message from the specified reader or buffer, length delimited. + * Decodes a ListIntentsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TextInput + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.TextInput} TextInput + * @returns {google.cloud.dialogflow.cx.v3.ListIntentsResponse} ListIntentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TextInput.decodeDelimited = function decodeDelimited(reader) { + ListIntentsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TextInput message. + * Verifies a ListIntentsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.TextInput + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TextInput.verify = function verify(message) { + ListIntentsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) - return "object expected"; - if (message.text != null && message.hasOwnProperty("text")) - if (!$util.isString(message.text)) - return "text: string expected"; + return "object expected"; + if (message.intents != null && message.hasOwnProperty("intents")) { + if (!Array.isArray(message.intents)) + return "intents: array expected"; + for (var i = 0; i < message.intents.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Intent.verify(message.intents[i]); + if (error) + return "intents." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a TextInput message from a plain object. Also converts values to their respective internal types. + * Creates a ListIntentsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.TextInput + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.TextInput} TextInput + * @returns {google.cloud.dialogflow.cx.v3.ListIntentsResponse} ListIntentsResponse */ - TextInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.TextInput) + ListIntentsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListIntentsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.TextInput(); - if (object.text != null) - message.text = String(object.text); + var message = new $root.google.cloud.dialogflow.cx.v3.ListIntentsResponse(); + if (object.intents) { + if (!Array.isArray(object.intents)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ListIntentsResponse.intents: array expected"); + message.intents = []; + for (var i = 0; i < object.intents.length; ++i) { + if (typeof object.intents[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ListIntentsResponse.intents: object expected"); + message.intents[i] = $root.google.cloud.dialogflow.cx.v3.Intent.fromObject(object.intents[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a TextInput message. Also converts values to other types if specified. + * Creates a plain object from a ListIntentsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.TextInput + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.TextInput} message TextInput + * @param {google.cloud.dialogflow.cx.v3.ListIntentsResponse} message ListIntentsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TextInput.toObject = function toObject(message, options) { + ListIntentsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.intents = []; if (options.defaults) - object.text = ""; - if (message.text != null && message.hasOwnProperty("text")) - object.text = message.text; + object.nextPageToken = ""; + if (message.intents && message.intents.length) { + object.intents = []; + for (var j = 0; j < message.intents.length; ++j) + object.intents[j] = $root.google.cloud.dialogflow.cx.v3.Intent.toObject(message.intents[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this TextInput to JSON. + * Converts this ListIntentsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.TextInput + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse * @instance * @returns {Object.} JSON object */ - TextInput.prototype.toJSON = function toJSON() { + ListIntentsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TextInput; + return ListIntentsResponse; })(); - v3.IntentInput = (function() { + v3.GetIntentRequest = (function() { /** - * Properties of an IntentInput. + * Properties of a GetIntentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IIntentInput - * @property {string|null} [intent] IntentInput intent + * @interface IGetIntentRequest + * @property {string|null} [name] GetIntentRequest name + * @property {string|null} [languageCode] GetIntentRequest languageCode */ /** - * Constructs a new IntentInput. + * Constructs a new GetIntentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an IntentInput. - * @implements IIntentInput + * @classdesc Represents a GetIntentRequest. + * @implements IGetIntentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IIntentInput=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IGetIntentRequest=} [properties] Properties to set */ - function IntentInput(properties) { + function GetIntentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33125,75 +32591,88 @@ } /** - * IntentInput intent. - * @member {string} intent - * @memberof google.cloud.dialogflow.cx.v3.IntentInput + * GetIntentRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest * @instance */ - IntentInput.prototype.intent = ""; + GetIntentRequest.prototype.name = ""; /** - * Creates a new IntentInput instance using the specified properties. + * GetIntentRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest + * @instance + */ + GetIntentRequest.prototype.languageCode = ""; + + /** + * Creates a new GetIntentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.IntentInput + * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IIntentInput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.IntentInput} IntentInput instance + * @param {google.cloud.dialogflow.cx.v3.IGetIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetIntentRequest} GetIntentRequest instance */ - IntentInput.create = function create(properties) { - return new IntentInput(properties); + GetIntentRequest.create = function create(properties) { + return new GetIntentRequest(properties); }; /** - * Encodes the specified IntentInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentInput.verify|verify} messages. + * Encodes the specified GetIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetIntentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.IntentInput + * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IIntentInput} message IntentInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetIntentRequest} message GetIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IntentInput.encode = function encode(message, writer) { + GetIntentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.intent); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); return writer; }; /** - * Encodes the specified IntentInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentInput.verify|verify} messages. + * Encodes the specified GetIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetIntentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.IntentInput + * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IIntentInput} message IntentInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetIntentRequest} message GetIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IntentInput.encodeDelimited = function encodeDelimited(message, writer) { + GetIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IntentInput message from the specified reader or buffer. + * Decodes a GetIntentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.IntentInput + * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.IntentInput} IntentInput + * @returns {google.cloud.dialogflow.cx.v3.GetIntentRequest} GetIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IntentInput.decode = function decode(reader, length) { + GetIntentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.IntentInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetIntentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.intent = reader.string(); + message.name = reader.string(); + break; + case 2: + message.languageCode = reader.string(); break; default: reader.skipType(tag & 7); @@ -33204,108 +32683,118 @@ }; /** - * Decodes an IntentInput message from the specified reader or buffer, length delimited. + * Decodes a GetIntentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.IntentInput + * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.IntentInput} IntentInput + * @returns {google.cloud.dialogflow.cx.v3.GetIntentRequest} GetIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IntentInput.decodeDelimited = function decodeDelimited(reader) { + GetIntentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IntentInput message. + * Verifies a GetIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.IntentInput + * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IntentInput.verify = function verify(message) { + GetIntentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.intent != null && message.hasOwnProperty("intent")) - if (!$util.isString(message.intent)) - return "intent: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates an IntentInput message from a plain object. Also converts values to their respective internal types. + * Creates a GetIntentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.IntentInput + * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.IntentInput} IntentInput + * @returns {google.cloud.dialogflow.cx.v3.GetIntentRequest} GetIntentRequest */ - IntentInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.IntentInput) + GetIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetIntentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.IntentInput(); - if (object.intent != null) - message.intent = String(object.intent); + var message = new $root.google.cloud.dialogflow.cx.v3.GetIntentRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from an IntentInput message. Also converts values to other types if specified. + * Creates a plain object from a GetIntentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.IntentInput + * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IntentInput} message IntentInput + * @param {google.cloud.dialogflow.cx.v3.GetIntentRequest} message GetIntentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IntentInput.toObject = function toObject(message, options) { + GetIntentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.intent = ""; - if (message.intent != null && message.hasOwnProperty("intent")) - object.intent = message.intent; + if (options.defaults) { + object.name = ""; + object.languageCode = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this IntentInput to JSON. + * Converts this GetIntentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.IntentInput + * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest * @instance * @returns {Object.} JSON object */ - IntentInput.prototype.toJSON = function toJSON() { + GetIntentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return IntentInput; + return GetIntentRequest; })(); - v3.AudioInput = (function() { + v3.CreateIntentRequest = (function() { /** - * Properties of an AudioInput. + * Properties of a CreateIntentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IAudioInput - * @property {google.cloud.dialogflow.cx.v3.IInputAudioConfig|null} [config] AudioInput config - * @property {Uint8Array|null} [audio] AudioInput audio + * @interface ICreateIntentRequest + * @property {string|null} [parent] CreateIntentRequest parent + * @property {google.cloud.dialogflow.cx.v3.IIntent|null} [intent] CreateIntentRequest intent + * @property {string|null} [languageCode] CreateIntentRequest languageCode */ /** - * Constructs a new AudioInput. + * Constructs a new CreateIntentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an AudioInput. - * @implements IAudioInput + * @classdesc Represents a CreateIntentRequest. + * @implements ICreateIntentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IAudioInput=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICreateIntentRequest=} [properties] Properties to set */ - function AudioInput(properties) { + function CreateIntentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33313,88 +32802,101 @@ } /** - * AudioInput config. - * @member {google.cloud.dialogflow.cx.v3.IInputAudioConfig|null|undefined} config - * @memberof google.cloud.dialogflow.cx.v3.AudioInput + * CreateIntentRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest * @instance */ - AudioInput.prototype.config = null; + CreateIntentRequest.prototype.parent = ""; /** - * AudioInput audio. - * @member {Uint8Array} audio - * @memberof google.cloud.dialogflow.cx.v3.AudioInput + * CreateIntentRequest intent. + * @member {google.cloud.dialogflow.cx.v3.IIntent|null|undefined} intent + * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest * @instance */ - AudioInput.prototype.audio = $util.newBuffer([]); + CreateIntentRequest.prototype.intent = null; /** - * Creates a new AudioInput instance using the specified properties. + * CreateIntentRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest + * @instance + */ + CreateIntentRequest.prototype.languageCode = ""; + + /** + * Creates a new CreateIntentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IAudioInput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.AudioInput} AudioInput instance + * @param {google.cloud.dialogflow.cx.v3.ICreateIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateIntentRequest} CreateIntentRequest instance */ - AudioInput.create = function create(properties) { - return new AudioInput(properties); + CreateIntentRequest.create = function create(properties) { + return new CreateIntentRequest(properties); }; /** - * Encodes the specified AudioInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.AudioInput.verify|verify} messages. + * Encodes the specified CreateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateIntentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IAudioInput} message AudioInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateIntentRequest} message CreateIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudioInput.encode = function encode(message, writer) { + CreateIntentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.config != null && Object.hasOwnProperty.call(message, "config")) - $root.google.cloud.dialogflow.cx.v3.InputAudioConfig.encode(message.config, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.audio != null && Object.hasOwnProperty.call(message, "audio")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.audio); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) + $root.google.cloud.dialogflow.cx.v3.Intent.encode(message.intent, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); return writer; }; /** - * Encodes the specified AudioInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.AudioInput.verify|verify} messages. + * Encodes the specified CreateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateIntentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IAudioInput} message AudioInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateIntentRequest} message CreateIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudioInput.encodeDelimited = function encodeDelimited(message, writer) { + CreateIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AudioInput message from the specified reader or buffer. + * Decodes a CreateIntentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.AudioInput} AudioInput + * @returns {google.cloud.dialogflow.cx.v3.CreateIntentRequest} CreateIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AudioInput.decode = function decode(reader, length) { + CreateIntentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.AudioInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateIntentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.config = $root.google.cloud.dialogflow.cx.v3.InputAudioConfig.decode(reader, reader.uint32()); + message.parent = reader.string(); break; case 2: - message.audio = reader.bytes(); + message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.decode(reader, reader.uint32()); + break; + case 3: + message.languageCode = reader.string(); break; default: reader.skipType(tag & 7); @@ -33405,130 +32907,131 @@ }; /** - * Decodes an AudioInput message from the specified reader or buffer, length delimited. + * Decodes a CreateIntentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.AudioInput} AudioInput + * @returns {google.cloud.dialogflow.cx.v3.CreateIntentRequest} CreateIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AudioInput.decodeDelimited = function decodeDelimited(reader) { + CreateIntentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AudioInput message. + * Verifies a CreateIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AudioInput.verify = function verify(message) { + CreateIntentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.config != null && message.hasOwnProperty("config")) { - var error = $root.google.cloud.dialogflow.cx.v3.InputAudioConfig.verify(message.config); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.intent != null && message.hasOwnProperty("intent")) { + var error = $root.google.cloud.dialogflow.cx.v3.Intent.verify(message.intent); if (error) - return "config." + error; + return "intent." + error; } - if (message.audio != null && message.hasOwnProperty("audio")) - if (!(message.audio && typeof message.audio.length === "number" || $util.isString(message.audio))) - return "audio: buffer expected"; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates an AudioInput message from a plain object. Also converts values to their respective internal types. + * Creates a CreateIntentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.AudioInput} AudioInput + * @returns {google.cloud.dialogflow.cx.v3.CreateIntentRequest} CreateIntentRequest */ - AudioInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.AudioInput) + CreateIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateIntentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.AudioInput(); - if (object.config != null) { - if (typeof object.config !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.AudioInput.config: object expected"); - message.config = $root.google.cloud.dialogflow.cx.v3.InputAudioConfig.fromObject(object.config); + var message = new $root.google.cloud.dialogflow.cx.v3.CreateIntentRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.intent != null) { + if (typeof object.intent !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CreateIntentRequest.intent: object expected"); + message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.fromObject(object.intent); } - if (object.audio != null) - if (typeof object.audio === "string") - $util.base64.decode(object.audio, message.audio = $util.newBuffer($util.base64.length(object.audio)), 0); - else if (object.audio.length) - message.audio = object.audio; + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from an AudioInput message. Also converts values to other types if specified. + * Creates a plain object from a CreateIntentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.AudioInput} message AudioInput + * @param {google.cloud.dialogflow.cx.v3.CreateIntentRequest} message CreateIntentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AudioInput.toObject = function toObject(message, options) { + CreateIntentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.config = null; - if (options.bytes === String) - object.audio = ""; - else { - object.audio = []; - if (options.bytes !== Array) - object.audio = $util.newBuffer(object.audio); - } + object.parent = ""; + object.intent = null; + object.languageCode = ""; } - if (message.config != null && message.hasOwnProperty("config")) - object.config = $root.google.cloud.dialogflow.cx.v3.InputAudioConfig.toObject(message.config, options); - if (message.audio != null && message.hasOwnProperty("audio")) - object.audio = options.bytes === String ? $util.base64.encode(message.audio, 0, message.audio.length) : options.bytes === Array ? Array.prototype.slice.call(message.audio) : message.audio; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.intent != null && message.hasOwnProperty("intent")) + object.intent = $root.google.cloud.dialogflow.cx.v3.Intent.toObject(message.intent, options); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this AudioInput to JSON. + * Converts this CreateIntentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest * @instance * @returns {Object.} JSON object */ - AudioInput.prototype.toJSON = function toJSON() { + CreateIntentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AudioInput; + return CreateIntentRequest; })(); - v3.EventInput = (function() { + v3.UpdateIntentRequest = (function() { /** - * Properties of an EventInput. + * Properties of an UpdateIntentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IEventInput - * @property {string|null} [event] EventInput event + * @interface IUpdateIntentRequest + * @property {google.cloud.dialogflow.cx.v3.IIntent|null} [intent] UpdateIntentRequest intent + * @property {string|null} [languageCode] UpdateIntentRequest languageCode + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateIntentRequest updateMask */ /** - * Constructs a new EventInput. + * Constructs a new UpdateIntentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an EventInput. - * @implements IEventInput + * @classdesc Represents an UpdateIntentRequest. + * @implements IUpdateIntentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IEventInput=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IUpdateIntentRequest=} [properties] Properties to set */ - function EventInput(properties) { + function UpdateIntentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33536,75 +33039,101 @@ } /** - * EventInput event. - * @member {string} event - * @memberof google.cloud.dialogflow.cx.v3.EventInput + * UpdateIntentRequest intent. + * @member {google.cloud.dialogflow.cx.v3.IIntent|null|undefined} intent + * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest * @instance */ - EventInput.prototype.event = ""; + UpdateIntentRequest.prototype.intent = null; /** - * Creates a new EventInput instance using the specified properties. + * UpdateIntentRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * @instance + */ + UpdateIntentRequest.prototype.languageCode = ""; + + /** + * UpdateIntentRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * @instance + */ + UpdateIntentRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateIntentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.EventInput + * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IEventInput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.EventInput} EventInput instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.UpdateIntentRequest} UpdateIntentRequest instance */ - EventInput.create = function create(properties) { - return new EventInput(properties); + UpdateIntentRequest.create = function create(properties) { + return new UpdateIntentRequest(properties); }; /** - * Encodes the specified EventInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EventInput.verify|verify} messages. + * Encodes the specified UpdateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateIntentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.EventInput + * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IEventInput} message EventInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateIntentRequest} message UpdateIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EventInput.encode = function encode(message, writer) { + UpdateIntentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.event != null && Object.hasOwnProperty.call(message, "event")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.event); + if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) + $root.google.cloud.dialogflow.cx.v3.Intent.encode(message.intent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified EventInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EventInput.verify|verify} messages. + * Encodes the specified UpdateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateIntentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.EventInput + * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IEventInput} message EventInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateIntentRequest} message UpdateIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EventInput.encodeDelimited = function encodeDelimited(message, writer) { + UpdateIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EventInput message from the specified reader or buffer. + * Decodes an UpdateIntentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.EventInput + * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.EventInput} EventInput + * @returns {google.cloud.dialogflow.cx.v3.UpdateIntentRequest} UpdateIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EventInput.decode = function decode(reader, length) { + UpdateIntentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.EventInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateIntentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.event = reader.string(); + message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.decode(reader, reader.uint32()); + break; + case 2: + message.languageCode = reader.string(); + break; + case 3: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -33615,108 +33144,134 @@ }; /** - * Decodes an EventInput message from the specified reader or buffer, length delimited. + * Decodes an UpdateIntentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.EventInput + * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.EventInput} EventInput + * @returns {google.cloud.dialogflow.cx.v3.UpdateIntentRequest} UpdateIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EventInput.decodeDelimited = function decodeDelimited(reader) { + UpdateIntentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EventInput message. + * Verifies an UpdateIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.EventInput + * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EventInput.verify = function verify(message) { + UpdateIntentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.event != null && message.hasOwnProperty("event")) - if (!$util.isString(message.event)) - return "event: string expected"; + if (message.intent != null && message.hasOwnProperty("intent")) { + var error = $root.google.cloud.dialogflow.cx.v3.Intent.verify(message.intent); + if (error) + return "intent." + error; + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } return null; }; /** - * Creates an EventInput message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateIntentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.EventInput + * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.EventInput} EventInput + * @returns {google.cloud.dialogflow.cx.v3.UpdateIntentRequest} UpdateIntentRequest */ - EventInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.EventInput) + UpdateIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateIntentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.EventInput(); - if (object.event != null) - message.event = String(object.event); + var message = new $root.google.cloud.dialogflow.cx.v3.UpdateIntentRequest(); + if (object.intent != null) { + if (typeof object.intent !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateIntentRequest.intent: object expected"); + message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.fromObject(object.intent); + } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateIntentRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; /** - * Creates a plain object from an EventInput message. Also converts values to other types if specified. + * Creates a plain object from an UpdateIntentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.EventInput + * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.EventInput} message EventInput + * @param {google.cloud.dialogflow.cx.v3.UpdateIntentRequest} message UpdateIntentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EventInput.toObject = function toObject(message, options) { + UpdateIntentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.event = ""; - if (message.event != null && message.hasOwnProperty("event")) - object.event = message.event; + if (options.defaults) { + object.intent = null; + object.languageCode = ""; + object.updateMask = null; + } + if (message.intent != null && message.hasOwnProperty("intent")) + object.intent = $root.google.cloud.dialogflow.cx.v3.Intent.toObject(message.intent, options); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this EventInput to JSON. + * Converts this UpdateIntentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.EventInput + * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest * @instance * @returns {Object.} JSON object */ - EventInput.prototype.toJSON = function toJSON() { + UpdateIntentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return EventInput; + return UpdateIntentRequest; })(); - v3.DtmfInput = (function() { + v3.DeleteIntentRequest = (function() { /** - * Properties of a DtmfInput. + * Properties of a DeleteIntentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDtmfInput - * @property {string|null} [digits] DtmfInput digits - * @property {string|null} [finishDigit] DtmfInput finishDigit + * @interface IDeleteIntentRequest + * @property {string|null} [name] DeleteIntentRequest name */ /** - * Constructs a new DtmfInput. + * Constructs a new DeleteIntentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DtmfInput. - * @implements IDtmfInput + * @classdesc Represents a DeleteIntentRequest. + * @implements IDeleteIntentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDtmfInput=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDeleteIntentRequest=} [properties] Properties to set */ - function DtmfInput(properties) { + function DeleteIntentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33724,88 +33279,75 @@ } /** - * DtmfInput digits. - * @member {string} digits - * @memberof google.cloud.dialogflow.cx.v3.DtmfInput - * @instance - */ - DtmfInput.prototype.digits = ""; - - /** - * DtmfInput finishDigit. - * @member {string} finishDigit - * @memberof google.cloud.dialogflow.cx.v3.DtmfInput + * DeleteIntentRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest * @instance */ - DtmfInput.prototype.finishDigit = ""; + DeleteIntentRequest.prototype.name = ""; /** - * Creates a new DtmfInput instance using the specified properties. + * Creates a new DeleteIntentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IDtmfInput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.DtmfInput} DtmfInput instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeleteIntentRequest} DeleteIntentRequest instance */ - DtmfInput.create = function create(properties) { - return new DtmfInput(properties); + DeleteIntentRequest.create = function create(properties) { + return new DeleteIntentRequest(properties); }; /** - * Encodes the specified DtmfInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DtmfInput.verify|verify} messages. + * Encodes the specified DeleteIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteIntentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IDtmfInput} message DtmfInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteIntentRequest} message DeleteIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DtmfInput.encode = function encode(message, writer) { + DeleteIntentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.digits != null && Object.hasOwnProperty.call(message, "digits")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.digits); - if (message.finishDigit != null && Object.hasOwnProperty.call(message, "finishDigit")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.finishDigit); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified DtmfInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DtmfInput.verify|verify} messages. + * Encodes the specified DeleteIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteIntentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IDtmfInput} message DtmfInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteIntentRequest} message DeleteIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DtmfInput.encodeDelimited = function encodeDelimited(message, writer) { + DeleteIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DtmfInput message from the specified reader or buffer. + * Decodes a DeleteIntentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.DtmfInput} DtmfInput + * @returns {google.cloud.dialogflow.cx.v3.DeleteIntentRequest} DeleteIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DtmfInput.decode = function decode(reader, length) { + DeleteIntentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DtmfInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteIntentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.digits = reader.string(); - break; - case 2: - message.finishDigit = reader.string(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -33816,262 +33358,408 @@ }; /** - * Decodes a DtmfInput message from the specified reader or buffer, length delimited. + * Decodes a DeleteIntentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.DtmfInput} DtmfInput + * @returns {google.cloud.dialogflow.cx.v3.DeleteIntentRequest} DeleteIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DtmfInput.decodeDelimited = function decodeDelimited(reader) { + DeleteIntentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DtmfInput message. + * Verifies a DeleteIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DtmfInput.verify = function verify(message) { + DeleteIntentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.digits != null && message.hasOwnProperty("digits")) - if (!$util.isString(message.digits)) - return "digits: string expected"; - if (message.finishDigit != null && message.hasOwnProperty("finishDigit")) - if (!$util.isString(message.finishDigit)) - return "finishDigit: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a DtmfInput message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteIntentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DtmfInput} DtmfInput + * @returns {google.cloud.dialogflow.cx.v3.DeleteIntentRequest} DeleteIntentRequest */ - DtmfInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.DtmfInput) + DeleteIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteIntentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.DtmfInput(); - if (object.digits != null) - message.digits = String(object.digits); - if (object.finishDigit != null) - message.finishDigit = String(object.finishDigit); + var message = new $root.google.cloud.dialogflow.cx.v3.DeleteIntentRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a DtmfInput message. Also converts values to other types if specified. + * Creates a plain object from a DeleteIntentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.DtmfInput} message DtmfInput + * @param {google.cloud.dialogflow.cx.v3.DeleteIntentRequest} message DeleteIntentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DtmfInput.toObject = function toObject(message, options) { + DeleteIntentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.digits = ""; - object.finishDigit = ""; - } - if (message.digits != null && message.hasOwnProperty("digits")) - object.digits = message.digits; - if (message.finishDigit != null && message.hasOwnProperty("finishDigit")) - object.finishDigit = message.finishDigit; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this DtmfInput to JSON. + * Converts this DeleteIntentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest * @instance * @returns {Object.} JSON object */ - DtmfInput.prototype.toJSON = function toJSON() { + DeleteIntentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DtmfInput; + return DeleteIntentRequest; })(); - v3.Match = (function() { + /** + * IntentView enum. + * @name google.cloud.dialogflow.cx.v3.IntentView + * @enum {number} + * @property {number} INTENT_VIEW_UNSPECIFIED=0 INTENT_VIEW_UNSPECIFIED value + * @property {number} INTENT_VIEW_PARTIAL=1 INTENT_VIEW_PARTIAL value + * @property {number} INTENT_VIEW_FULL=2 INTENT_VIEW_FULL value + */ + v3.IntentView = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "INTENT_VIEW_UNSPECIFIED"] = 0; + values[valuesById[1] = "INTENT_VIEW_PARTIAL"] = 1; + values[valuesById[2] = "INTENT_VIEW_FULL"] = 2; + return values; + })(); - /** - * Properties of a Match. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IMatch - * @property {google.cloud.dialogflow.cx.v3.IIntent|null} [intent] Match intent - * @property {string|null} [event] Match event - * @property {google.protobuf.IStruct|null} [parameters] Match parameters - * @property {string|null} [resolvedInput] Match resolvedInput - * @property {google.cloud.dialogflow.cx.v3.Match.MatchType|null} [matchType] Match matchType - * @property {number|null} [confidence] Match confidence - */ + v3.Sessions = (function() { /** - * Constructs a new Match. + * Constructs a new Sessions service. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a Match. - * @implements IMatch + * @classdesc Represents a Sessions + * @extends $protobuf.rpc.Service * @constructor - * @param {google.cloud.dialogflow.cx.v3.IMatch=} [properties] Properties to set + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - function Match(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + function Sessions(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } + (Sessions.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Sessions; + /** - * Match intent. - * @member {google.cloud.dialogflow.cx.v3.IIntent|null|undefined} intent - * @memberof google.cloud.dialogflow.cx.v3.Match + * Creates new Sessions service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Sessions + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {Sessions} RPC service. Useful where requests and/or responses are streamed. + */ + Sessions.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#detectIntent}. + * @memberof google.cloud.dialogflow.cx.v3.Sessions + * @typedef DetectIntentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.DetectIntentResponse} [response] DetectIntentResponse + */ + + /** + * Calls DetectIntent. + * @function detectIntent + * @memberof google.cloud.dialogflow.cx.v3.Sessions * @instance + * @param {google.cloud.dialogflow.cx.v3.IDetectIntentRequest} request DetectIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Sessions.DetectIntentCallback} callback Node-style callback called with the error, if any, and DetectIntentResponse + * @returns {undefined} + * @variation 1 */ - Match.prototype.intent = null; + Object.defineProperty(Sessions.prototype.detectIntent = function detectIntent(request, callback) { + return this.rpcCall(detectIntent, $root.google.cloud.dialogflow.cx.v3.DetectIntentRequest, $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse, request, callback); + }, "name", { value: "DetectIntent" }); /** - * Match event. - * @member {string} event - * @memberof google.cloud.dialogflow.cx.v3.Match + * Calls DetectIntent. + * @function detectIntent + * @memberof google.cloud.dialogflow.cx.v3.Sessions * @instance + * @param {google.cloud.dialogflow.cx.v3.IDetectIntentRequest} request DetectIntentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - Match.prototype.event = ""; /** - * Match parameters. - * @member {google.protobuf.IStruct|null|undefined} parameters - * @memberof google.cloud.dialogflow.cx.v3.Match + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#streamingDetectIntent}. + * @memberof google.cloud.dialogflow.cx.v3.Sessions + * @typedef StreamingDetectIntentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} [response] StreamingDetectIntentResponse + */ + + /** + * Calls StreamingDetectIntent. + * @function streamingDetectIntent + * @memberof google.cloud.dialogflow.cx.v3.Sessions * @instance + * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest} request StreamingDetectIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntentCallback} callback Node-style callback called with the error, if any, and StreamingDetectIntentResponse + * @returns {undefined} + * @variation 1 */ - Match.prototype.parameters = null; + Object.defineProperty(Sessions.prototype.streamingDetectIntent = function streamingDetectIntent(request, callback) { + return this.rpcCall(streamingDetectIntent, $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest, $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse, request, callback); + }, "name", { value: "StreamingDetectIntent" }); /** - * Match resolvedInput. - * @member {string} resolvedInput - * @memberof google.cloud.dialogflow.cx.v3.Match + * Calls StreamingDetectIntent. + * @function streamingDetectIntent + * @memberof google.cloud.dialogflow.cx.v3.Sessions * @instance + * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest} request StreamingDetectIntentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - Match.prototype.resolvedInput = ""; /** - * Match matchType. - * @member {google.cloud.dialogflow.cx.v3.Match.MatchType} matchType - * @memberof google.cloud.dialogflow.cx.v3.Match + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#matchIntent}. + * @memberof google.cloud.dialogflow.cx.v3.Sessions + * @typedef MatchIntentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.MatchIntentResponse} [response] MatchIntentResponse + */ + + /** + * Calls MatchIntent. + * @function matchIntent + * @memberof google.cloud.dialogflow.cx.v3.Sessions * @instance + * @param {google.cloud.dialogflow.cx.v3.IMatchIntentRequest} request MatchIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Sessions.MatchIntentCallback} callback Node-style callback called with the error, if any, and MatchIntentResponse + * @returns {undefined} + * @variation 1 */ - Match.prototype.matchType = 0; + Object.defineProperty(Sessions.prototype.matchIntent = function matchIntent(request, callback) { + return this.rpcCall(matchIntent, $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest, $root.google.cloud.dialogflow.cx.v3.MatchIntentResponse, request, callback); + }, "name", { value: "MatchIntent" }); /** - * Match confidence. - * @member {number} confidence - * @memberof google.cloud.dialogflow.cx.v3.Match + * Calls MatchIntent. + * @function matchIntent + * @memberof google.cloud.dialogflow.cx.v3.Sessions * @instance + * @param {google.cloud.dialogflow.cx.v3.IMatchIntentRequest} request MatchIntentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - Match.prototype.confidence = 0; /** - * Creates a new Match instance using the specified properties. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#fulfillIntent}. + * @memberof google.cloud.dialogflow.cx.v3.Sessions + * @typedef FulfillIntentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.FulfillIntentResponse} [response] FulfillIntentResponse + */ + + /** + * Calls FulfillIntent. + * @function fulfillIntent + * @memberof google.cloud.dialogflow.cx.v3.Sessions + * @instance + * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentRequest} request FulfillIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Sessions.FulfillIntentCallback} callback Node-style callback called with the error, if any, and FulfillIntentResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Sessions.prototype.fulfillIntent = function fulfillIntent(request, callback) { + return this.rpcCall(fulfillIntent, $root.google.cloud.dialogflow.cx.v3.FulfillIntentRequest, $root.google.cloud.dialogflow.cx.v3.FulfillIntentResponse, request, callback); + }, "name", { value: "FulfillIntent" }); + + /** + * Calls FulfillIntent. + * @function fulfillIntent + * @memberof google.cloud.dialogflow.cx.v3.Sessions + * @instance + * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentRequest} request FulfillIntentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Sessions; + })(); + + v3.DetectIntentRequest = (function() { + + /** + * Properties of a DetectIntentRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IDetectIntentRequest + * @property {string|null} [session] DetectIntentRequest session + * @property {google.cloud.dialogflow.cx.v3.IQueryParameters|null} [queryParams] DetectIntentRequest queryParams + * @property {google.cloud.dialogflow.cx.v3.IQueryInput|null} [queryInput] DetectIntentRequest queryInput + * @property {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null} [outputAudioConfig] DetectIntentRequest outputAudioConfig + */ + + /** + * Constructs a new DetectIntentRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a DetectIntentRequest. + * @implements IDetectIntentRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IDetectIntentRequest=} [properties] Properties to set + */ + function DetectIntentRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DetectIntentRequest session. + * @member {string} session + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * @instance + */ + DetectIntentRequest.prototype.session = ""; + + /** + * DetectIntentRequest queryParams. + * @member {google.cloud.dialogflow.cx.v3.IQueryParameters|null|undefined} queryParams + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * @instance + */ + DetectIntentRequest.prototype.queryParams = null; + + /** + * DetectIntentRequest queryInput. + * @member {google.cloud.dialogflow.cx.v3.IQueryInput|null|undefined} queryInput + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * @instance + */ + DetectIntentRequest.prototype.queryInput = null; + + /** + * DetectIntentRequest outputAudioConfig. + * @member {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null|undefined} outputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * @instance + */ + DetectIntentRequest.prototype.outputAudioConfig = null; + + /** + * Creates a new DetectIntentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.Match + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IMatch=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Match} Match instance + * @param {google.cloud.dialogflow.cx.v3.IDetectIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DetectIntentRequest} DetectIntentRequest instance */ - Match.create = function create(properties) { - return new Match(properties); + DetectIntentRequest.create = function create(properties) { + return new DetectIntentRequest(properties); }; /** - * Encodes the specified Match message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Match.verify|verify} messages. + * Encodes the specified DetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Match + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IMatch} message Match message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDetectIntentRequest} message DetectIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Match.encode = function encode(message, writer) { + DetectIntentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) - $root.google.cloud.dialogflow.cx.v3.Intent.encode(message.intent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - $root.google.protobuf.Struct.encode(message.parameters, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.resolvedInput != null && Object.hasOwnProperty.call(message, "resolvedInput")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.resolvedInput); - if (message.matchType != null && Object.hasOwnProperty.call(message, "matchType")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.matchType); - if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) - writer.uint32(/* id 5, wireType 5 =*/45).float(message.confidence); - if (message.event != null && Object.hasOwnProperty.call(message, "event")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.event); + if (message.session != null && Object.hasOwnProperty.call(message, "session")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.session); + if (message.queryParams != null && Object.hasOwnProperty.call(message, "queryParams")) + $root.google.cloud.dialogflow.cx.v3.QueryParameters.encode(message.queryParams, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.queryInput != null && Object.hasOwnProperty.call(message, "queryInput")) + $root.google.cloud.dialogflow.cx.v3.QueryInput.encode(message.queryInput, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) + $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified Match message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Match.verify|verify} messages. + * Encodes the specified DetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Match + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IMatch} message Match message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDetectIntentRequest} message DetectIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Match.encodeDelimited = function encodeDelimited(message, writer) { + DetectIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Match message from the specified reader or buffer. + * Decodes a DetectIntentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Match + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.Match} Match + * @returns {google.cloud.dialogflow.cx.v3.DetectIntentRequest} DetectIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Match.decode = function decode(reader, length) { + DetectIntentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Match(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DetectIntentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.decode(reader, reader.uint32()); - break; - case 6: - message.event = reader.string(); + message.session = reader.string(); break; case 2: - message.parameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + message.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.decode(reader, reader.uint32()); break; case 3: - message.resolvedInput = reader.string(); + message.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.decode(reader, reader.uint32()); break; case 4: - message.matchType = reader.int32(); - break; - case 5: - message.confidence = reader.float(); + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -34082,222 +33770,150 @@ }; /** - * Decodes a Match message from the specified reader or buffer, length delimited. + * Decodes a DetectIntentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Match + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Match} Match + * @returns {google.cloud.dialogflow.cx.v3.DetectIntentRequest} DetectIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Match.decodeDelimited = function decodeDelimited(reader) { + DetectIntentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Match message. + * Verifies a DetectIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Match + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Match.verify = function verify(message) { + DetectIntentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.intent != null && message.hasOwnProperty("intent")) { - var error = $root.google.cloud.dialogflow.cx.v3.Intent.verify(message.intent); + if (message.session != null && message.hasOwnProperty("session")) + if (!$util.isString(message.session)) + return "session: string expected"; + if (message.queryParams != null && message.hasOwnProperty("queryParams")) { + var error = $root.google.cloud.dialogflow.cx.v3.QueryParameters.verify(message.queryParams); if (error) - return "intent." + error; + return "queryParams." + error; } - if (message.event != null && message.hasOwnProperty("event")) - if (!$util.isString(message.event)) - return "event: string expected"; - if (message.parameters != null && message.hasOwnProperty("parameters")) { - var error = $root.google.protobuf.Struct.verify(message.parameters); + if (message.queryInput != null && message.hasOwnProperty("queryInput")) { + var error = $root.google.cloud.dialogflow.cx.v3.QueryInput.verify(message.queryInput); if (error) - return "parameters." + error; + return "queryInput." + error; + } + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify(message.outputAudioConfig); + if (error) + return "outputAudioConfig." + error; } - if (message.resolvedInput != null && message.hasOwnProperty("resolvedInput")) - if (!$util.isString(message.resolvedInput)) - return "resolvedInput: string expected"; - if (message.matchType != null && message.hasOwnProperty("matchType")) - switch (message.matchType) { - default: - return "matchType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - if (message.confidence != null && message.hasOwnProperty("confidence")) - if (typeof message.confidence !== "number") - return "confidence: number expected"; return null; }; /** - * Creates a Match message from a plain object. Also converts values to their respective internal types. + * Creates a DetectIntentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Match + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Match} Match + * @returns {google.cloud.dialogflow.cx.v3.DetectIntentRequest} DetectIntentRequest */ - Match.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Match) + DetectIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DetectIntentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Match(); - if (object.intent != null) { - if (typeof object.intent !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Match.intent: object expected"); - message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.fromObject(object.intent); + var message = new $root.google.cloud.dialogflow.cx.v3.DetectIntentRequest(); + if (object.session != null) + message.session = String(object.session); + if (object.queryParams != null) { + if (typeof object.queryParams !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.DetectIntentRequest.queryParams: object expected"); + message.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.fromObject(object.queryParams); } - if (object.event != null) - message.event = String(object.event); - if (object.parameters != null) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Match.parameters: object expected"); - message.parameters = $root.google.protobuf.Struct.fromObject(object.parameters); + if (object.queryInput != null) { + if (typeof object.queryInput !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.DetectIntentRequest.queryInput: object expected"); + message.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.fromObject(object.queryInput); } - if (object.resolvedInput != null) - message.resolvedInput = String(object.resolvedInput); - switch (object.matchType) { - case "MATCH_TYPE_UNSPECIFIED": - case 0: - message.matchType = 0; - break; - case "INTENT": - case 1: - message.matchType = 1; - break; - case "DIRECT_INTENT": - case 2: - message.matchType = 2; - break; - case "PARAMETER_FILLING": - case 3: - message.matchType = 3; - break; - case "NO_MATCH": - case 4: - message.matchType = 4; - break; - case "NO_INPUT": - case 5: - message.matchType = 5; - break; - case "EVENT": - case 6: - message.matchType = 6; - break; + if (object.outputAudioConfig != null) { + if (typeof object.outputAudioConfig !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.DetectIntentRequest.outputAudioConfig: object expected"); + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.fromObject(object.outputAudioConfig); } - if (object.confidence != null) - message.confidence = Number(object.confidence); return message; }; /** - * Creates a plain object from a Match message. Also converts values to other types if specified. + * Creates a plain object from a DetectIntentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Match + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.Match} message Match + * @param {google.cloud.dialogflow.cx.v3.DetectIntentRequest} message DetectIntentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Match.toObject = function toObject(message, options) { + DetectIntentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.intent = null; - object.parameters = null; - object.resolvedInput = ""; - object.matchType = options.enums === String ? "MATCH_TYPE_UNSPECIFIED" : 0; - object.confidence = 0; - object.event = ""; + object.session = ""; + object.queryParams = null; + object.queryInput = null; + object.outputAudioConfig = null; } - if (message.intent != null && message.hasOwnProperty("intent")) - object.intent = $root.google.cloud.dialogflow.cx.v3.Intent.toObject(message.intent, options); - if (message.parameters != null && message.hasOwnProperty("parameters")) - object.parameters = $root.google.protobuf.Struct.toObject(message.parameters, options); - if (message.resolvedInput != null && message.hasOwnProperty("resolvedInput")) - object.resolvedInput = message.resolvedInput; - if (message.matchType != null && message.hasOwnProperty("matchType")) - object.matchType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.Match.MatchType[message.matchType] : message.matchType; - if (message.confidence != null && message.hasOwnProperty("confidence")) - object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; - if (message.event != null && message.hasOwnProperty("event")) - object.event = message.event; + if (message.session != null && message.hasOwnProperty("session")) + object.session = message.session; + if (message.queryParams != null && message.hasOwnProperty("queryParams")) + object.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.toObject(message.queryParams, options); + if (message.queryInput != null && message.hasOwnProperty("queryInput")) + object.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.toObject(message.queryInput, options); + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) + object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.toObject(message.outputAudioConfig, options); return object; }; /** - * Converts this Match to JSON. + * Converts this DetectIntentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Match + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @instance * @returns {Object.} JSON object */ - Match.prototype.toJSON = function toJSON() { + DetectIntentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * MatchType enum. - * @name google.cloud.dialogflow.cx.v3.Match.MatchType - * @enum {number} - * @property {number} MATCH_TYPE_UNSPECIFIED=0 MATCH_TYPE_UNSPECIFIED value - * @property {number} INTENT=1 INTENT value - * @property {number} DIRECT_INTENT=2 DIRECT_INTENT value - * @property {number} PARAMETER_FILLING=3 PARAMETER_FILLING value - * @property {number} NO_MATCH=4 NO_MATCH value - * @property {number} NO_INPUT=5 NO_INPUT value - * @property {number} EVENT=6 EVENT value - */ - Match.MatchType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MATCH_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "INTENT"] = 1; - values[valuesById[2] = "DIRECT_INTENT"] = 2; - values[valuesById[3] = "PARAMETER_FILLING"] = 3; - values[valuesById[4] = "NO_MATCH"] = 4; - values[valuesById[5] = "NO_INPUT"] = 5; - values[valuesById[6] = "EVENT"] = 6; - return values; - })(); - - return Match; + return DetectIntentRequest; })(); - v3.MatchIntentRequest = (function() { + v3.DetectIntentResponse = (function() { /** - * Properties of a MatchIntentRequest. + * Properties of a DetectIntentResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IMatchIntentRequest - * @property {string|null} [session] MatchIntentRequest session - * @property {google.cloud.dialogflow.cx.v3.IQueryParameters|null} [queryParams] MatchIntentRequest queryParams - * @property {google.cloud.dialogflow.cx.v3.IQueryInput|null} [queryInput] MatchIntentRequest queryInput + * @interface IDetectIntentResponse + * @property {string|null} [responseId] DetectIntentResponse responseId + * @property {google.cloud.dialogflow.cx.v3.IQueryResult|null} [queryResult] DetectIntentResponse queryResult + * @property {Uint8Array|null} [outputAudio] DetectIntentResponse outputAudio + * @property {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null} [outputAudioConfig] DetectIntentResponse outputAudioConfig */ /** - * Constructs a new MatchIntentRequest. + * Constructs a new DetectIntentResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a MatchIntentRequest. - * @implements IMatchIntentRequest + * @classdesc Represents a DetectIntentResponse. + * @implements IDetectIntentResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IMatchIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDetectIntentResponse=} [properties] Properties to set */ - function MatchIntentRequest(properties) { + function DetectIntentResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34305,101 +33921,114 @@ } /** - * MatchIntentRequest session. - * @member {string} session - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * DetectIntentResponse responseId. + * @member {string} responseId + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse * @instance */ - MatchIntentRequest.prototype.session = ""; + DetectIntentResponse.prototype.responseId = ""; /** - * MatchIntentRequest queryParams. - * @member {google.cloud.dialogflow.cx.v3.IQueryParameters|null|undefined} queryParams - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * DetectIntentResponse queryResult. + * @member {google.cloud.dialogflow.cx.v3.IQueryResult|null|undefined} queryResult + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse * @instance */ - MatchIntentRequest.prototype.queryParams = null; + DetectIntentResponse.prototype.queryResult = null; /** - * MatchIntentRequest queryInput. - * @member {google.cloud.dialogflow.cx.v3.IQueryInput|null|undefined} queryInput - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * DetectIntentResponse outputAudio. + * @member {Uint8Array} outputAudio + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse * @instance */ - MatchIntentRequest.prototype.queryInput = null; + DetectIntentResponse.prototype.outputAudio = $util.newBuffer([]); /** - * Creates a new MatchIntentRequest instance using the specified properties. + * DetectIntentResponse outputAudioConfig. + * @member {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null|undefined} outputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @instance + */ + DetectIntentResponse.prototype.outputAudioConfig = null; + + /** + * Creates a new DetectIntentResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IMatchIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.MatchIntentRequest} MatchIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IDetectIntentResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DetectIntentResponse} DetectIntentResponse instance */ - MatchIntentRequest.create = function create(properties) { - return new MatchIntentRequest(properties); + DetectIntentResponse.create = function create(properties) { + return new DetectIntentResponse(properties); }; /** - * Encodes the specified MatchIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentRequest.verify|verify} messages. + * Encodes the specified DetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IMatchIntentRequest} message MatchIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDetectIntentResponse} message DetectIntentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MatchIntentRequest.encode = function encode(message, writer) { + DetectIntentResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.session != null && Object.hasOwnProperty.call(message, "session")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.session); - if (message.queryParams != null && Object.hasOwnProperty.call(message, "queryParams")) - $root.google.cloud.dialogflow.cx.v3.QueryParameters.encode(message.queryParams, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.queryInput != null && Object.hasOwnProperty.call(message, "queryInput")) - $root.google.cloud.dialogflow.cx.v3.QueryInput.encode(message.queryInput, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.responseId != null && Object.hasOwnProperty.call(message, "responseId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.responseId); + if (message.queryResult != null && Object.hasOwnProperty.call(message, "queryResult")) + $root.google.cloud.dialogflow.cx.v3.QueryResult.encode(message.queryResult, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.outputAudio != null && Object.hasOwnProperty.call(message, "outputAudio")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.outputAudio); + if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) + $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified MatchIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentRequest.verify|verify} messages. + * Encodes the specified DetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IMatchIntentRequest} message MatchIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDetectIntentResponse} message DetectIntentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MatchIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + DetectIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MatchIntentRequest message from the specified reader or buffer. + * Decodes a DetectIntentResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.MatchIntentRequest} MatchIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.DetectIntentResponse} DetectIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MatchIntentRequest.decode = function decode(reader, length) { + DetectIntentResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.session = reader.string(); + message.responseId = reader.string(); break; case 2: - message.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.decode(reader, reader.uint32()); + message.queryResult = $root.google.cloud.dialogflow.cx.v3.QueryResult.decode(reader, reader.uint32()); break; - case 3: - message.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.decode(reader, reader.uint32()); + case 4: + message.outputAudio = reader.bytes(); + break; + case 5: + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -34410,140 +34039,154 @@ }; /** - * Decodes a MatchIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a DetectIntentResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.MatchIntentRequest} MatchIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.DetectIntentResponse} DetectIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MatchIntentRequest.decodeDelimited = function decodeDelimited(reader) { + DetectIntentResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MatchIntentRequest message. + * Verifies a DetectIntentResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MatchIntentRequest.verify = function verify(message) { + DetectIntentResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.session != null && message.hasOwnProperty("session")) - if (!$util.isString(message.session)) - return "session: string expected"; - if (message.queryParams != null && message.hasOwnProperty("queryParams")) { - var error = $root.google.cloud.dialogflow.cx.v3.QueryParameters.verify(message.queryParams); + if (message.responseId != null && message.hasOwnProperty("responseId")) + if (!$util.isString(message.responseId)) + return "responseId: string expected"; + if (message.queryResult != null && message.hasOwnProperty("queryResult")) { + var error = $root.google.cloud.dialogflow.cx.v3.QueryResult.verify(message.queryResult); if (error) - return "queryParams." + error; + return "queryResult." + error; } - if (message.queryInput != null && message.hasOwnProperty("queryInput")) { - var error = $root.google.cloud.dialogflow.cx.v3.QueryInput.verify(message.queryInput); + if (message.outputAudio != null && message.hasOwnProperty("outputAudio")) + if (!(message.outputAudio && typeof message.outputAudio.length === "number" || $util.isString(message.outputAudio))) + return "outputAudio: buffer expected"; + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify(message.outputAudioConfig); if (error) - return "queryInput." + error; + return "outputAudioConfig." + error; } return null; }; /** - * Creates a MatchIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DetectIntentResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.MatchIntentRequest} MatchIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.DetectIntentResponse} DetectIntentResponse */ - MatchIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest) + DetectIntentResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest(); - if (object.session != null) - message.session = String(object.session); - if (object.queryParams != null) { - if (typeof object.queryParams !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.MatchIntentRequest.queryParams: object expected"); - message.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.fromObject(object.queryParams); + var message = new $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse(); + if (object.responseId != null) + message.responseId = String(object.responseId); + if (object.queryResult != null) { + if (typeof object.queryResult !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.DetectIntentResponse.queryResult: object expected"); + message.queryResult = $root.google.cloud.dialogflow.cx.v3.QueryResult.fromObject(object.queryResult); } - if (object.queryInput != null) { - if (typeof object.queryInput !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.MatchIntentRequest.queryInput: object expected"); - message.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.fromObject(object.queryInput); + if (object.outputAudio != null) + if (typeof object.outputAudio === "string") + $util.base64.decode(object.outputAudio, message.outputAudio = $util.newBuffer($util.base64.length(object.outputAudio)), 0); + else if (object.outputAudio.length) + message.outputAudio = object.outputAudio; + if (object.outputAudioConfig != null) { + if (typeof object.outputAudioConfig !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.DetectIntentResponse.outputAudioConfig: object expected"); + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.fromObject(object.outputAudioConfig); } return message; }; /** - * Creates a plain object from a MatchIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from a DetectIntentResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.MatchIntentRequest} message MatchIntentRequest + * @param {google.cloud.dialogflow.cx.v3.DetectIntentResponse} message DetectIntentResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MatchIntentRequest.toObject = function toObject(message, options) { + DetectIntentResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.session = ""; - object.queryParams = null; - object.queryInput = null; + object.responseId = ""; + object.queryResult = null; + if (options.bytes === String) + object.outputAudio = ""; + else { + object.outputAudio = []; + if (options.bytes !== Array) + object.outputAudio = $util.newBuffer(object.outputAudio); + } + object.outputAudioConfig = null; } - if (message.session != null && message.hasOwnProperty("session")) - object.session = message.session; - if (message.queryParams != null && message.hasOwnProperty("queryParams")) - object.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.toObject(message.queryParams, options); - if (message.queryInput != null && message.hasOwnProperty("queryInput")) - object.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.toObject(message.queryInput, options); + if (message.responseId != null && message.hasOwnProperty("responseId")) + object.responseId = message.responseId; + if (message.queryResult != null && message.hasOwnProperty("queryResult")) + object.queryResult = $root.google.cloud.dialogflow.cx.v3.QueryResult.toObject(message.queryResult, options); + if (message.outputAudio != null && message.hasOwnProperty("outputAudio")) + object.outputAudio = options.bytes === String ? $util.base64.encode(message.outputAudio, 0, message.outputAudio.length) : options.bytes === Array ? Array.prototype.slice.call(message.outputAudio) : message.outputAudio; + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) + object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.toObject(message.outputAudioConfig, options); return object; }; /** - * Converts this MatchIntentRequest to JSON. + * Converts this DetectIntentResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse * @instance * @returns {Object.} JSON object */ - MatchIntentRequest.prototype.toJSON = function toJSON() { + DetectIntentResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MatchIntentRequest; + return DetectIntentResponse; })(); - v3.MatchIntentResponse = (function() { + v3.StreamingDetectIntentRequest = (function() { /** - * Properties of a MatchIntentResponse. + * Properties of a StreamingDetectIntentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IMatchIntentResponse - * @property {string|null} [text] MatchIntentResponse text - * @property {string|null} [triggerIntent] MatchIntentResponse triggerIntent - * @property {string|null} [transcript] MatchIntentResponse transcript - * @property {string|null} [triggerEvent] MatchIntentResponse triggerEvent - * @property {Array.|null} [matches] MatchIntentResponse matches - * @property {google.cloud.dialogflow.cx.v3.IPage|null} [currentPage] MatchIntentResponse currentPage + * @interface IStreamingDetectIntentRequest + * @property {string|null} [session] StreamingDetectIntentRequest session + * @property {google.cloud.dialogflow.cx.v3.IQueryParameters|null} [queryParams] StreamingDetectIntentRequest queryParams + * @property {google.cloud.dialogflow.cx.v3.IQueryInput|null} [queryInput] StreamingDetectIntentRequest queryInput + * @property {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null} [outputAudioConfig] StreamingDetectIntentRequest outputAudioConfig */ /** - * Constructs a new MatchIntentResponse. + * Constructs a new StreamingDetectIntentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a MatchIntentResponse. - * @implements IMatchIntentResponse + * @classdesc Represents a StreamingDetectIntentRequest. + * @implements IStreamingDetectIntentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IMatchIntentResponse=} [properties] Properties to set - */ - function MatchIntentResponse(properties) { - this.matches = []; + * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest=} [properties] Properties to set + */ + function StreamingDetectIntentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34551,157 +34194,114 @@ } /** - * MatchIntentResponse text. - * @member {string} text - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse - * @instance - */ - MatchIntentResponse.prototype.text = ""; - - /** - * MatchIntentResponse triggerIntent. - * @member {string} triggerIntent - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse - * @instance - */ - MatchIntentResponse.prototype.triggerIntent = ""; - - /** - * MatchIntentResponse transcript. - * @member {string} transcript - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse - * @instance - */ - MatchIntentResponse.prototype.transcript = ""; - - /** - * MatchIntentResponse triggerEvent. - * @member {string} triggerEvent - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse + * StreamingDetectIntentRequest session. + * @member {string} session + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @instance */ - MatchIntentResponse.prototype.triggerEvent = ""; + StreamingDetectIntentRequest.prototype.session = ""; /** - * MatchIntentResponse matches. - * @member {Array.} matches - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse + * StreamingDetectIntentRequest queryParams. + * @member {google.cloud.dialogflow.cx.v3.IQueryParameters|null|undefined} queryParams + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @instance */ - MatchIntentResponse.prototype.matches = $util.emptyArray; + StreamingDetectIntentRequest.prototype.queryParams = null; /** - * MatchIntentResponse currentPage. - * @member {google.cloud.dialogflow.cx.v3.IPage|null|undefined} currentPage - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse + * StreamingDetectIntentRequest queryInput. + * @member {google.cloud.dialogflow.cx.v3.IQueryInput|null|undefined} queryInput + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @instance */ - MatchIntentResponse.prototype.currentPage = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + StreamingDetectIntentRequest.prototype.queryInput = null; /** - * MatchIntentResponse query. - * @member {"text"|"triggerIntent"|"transcript"|"triggerEvent"|undefined} query - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse + * StreamingDetectIntentRequest outputAudioConfig. + * @member {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null|undefined} outputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @instance */ - Object.defineProperty(MatchIntentResponse.prototype, "query", { - get: $util.oneOfGetter($oneOfFields = ["text", "triggerIntent", "transcript", "triggerEvent"]), - set: $util.oneOfSetter($oneOfFields) - }); + StreamingDetectIntentRequest.prototype.outputAudioConfig = null; /** - * Creates a new MatchIntentResponse instance using the specified properties. + * Creates a new StreamingDetectIntentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IMatchIntentResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.MatchIntentResponse} MatchIntentResponse instance + * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest} StreamingDetectIntentRequest instance */ - MatchIntentResponse.create = function create(properties) { - return new MatchIntentResponse(properties); + StreamingDetectIntentRequest.create = function create(properties) { + return new StreamingDetectIntentRequest(properties); }; /** - * Encodes the specified MatchIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentResponse.verify|verify} messages. + * Encodes the specified StreamingDetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IMatchIntentResponse} message MatchIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest} message StreamingDetectIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MatchIntentResponse.encode = function encode(message, writer) { + StreamingDetectIntentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.text != null && Object.hasOwnProperty.call(message, "text")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); - if (message.triggerIntent != null && Object.hasOwnProperty.call(message, "triggerIntent")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.triggerIntent); - if (message.transcript != null && Object.hasOwnProperty.call(message, "transcript")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.transcript); - if (message.matches != null && message.matches.length) - for (var i = 0; i < message.matches.length; ++i) - $root.google.cloud.dialogflow.cx.v3.Match.encode(message.matches[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) - $root.google.cloud.dialogflow.cx.v3.Page.encode(message.currentPage, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.triggerEvent != null && Object.hasOwnProperty.call(message, "triggerEvent")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.triggerEvent); + if (message.session != null && Object.hasOwnProperty.call(message, "session")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.session); + if (message.queryParams != null && Object.hasOwnProperty.call(message, "queryParams")) + $root.google.cloud.dialogflow.cx.v3.QueryParameters.encode(message.queryParams, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.queryInput != null && Object.hasOwnProperty.call(message, "queryInput")) + $root.google.cloud.dialogflow.cx.v3.QueryInput.encode(message.queryInput, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) + $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified MatchIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentResponse.verify|verify} messages. + * Encodes the specified StreamingDetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IMatchIntentResponse} message MatchIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest} message StreamingDetectIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MatchIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { + StreamingDetectIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MatchIntentResponse message from the specified reader or buffer. + * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.MatchIntentResponse} MatchIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest} StreamingDetectIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MatchIntentResponse.decode = function decode(reader, length) { + StreamingDetectIntentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.MatchIntentResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.text = reader.string(); + message.session = reader.string(); break; case 2: - message.triggerIntent = reader.string(); + message.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.decode(reader, reader.uint32()); break; case 3: - message.transcript = reader.string(); - break; - case 6: - message.triggerEvent = reader.string(); + message.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.decode(reader, reader.uint32()); break; case 4: - if (!(message.matches && message.matches.length)) - message.matches = []; - message.matches.push($root.google.cloud.dialogflow.cx.v3.Match.decode(reader, reader.uint32())); - break; - case 5: - message.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.decode(reader, reader.uint32()); + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -34712,195 +34312,148 @@ }; /** - * Decodes a MatchIntentResponse message from the specified reader or buffer, length delimited. + * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.MatchIntentResponse} MatchIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest} StreamingDetectIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MatchIntentResponse.decodeDelimited = function decodeDelimited(reader) { + StreamingDetectIntentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MatchIntentResponse message. + * Verifies a StreamingDetectIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MatchIntentResponse.verify = function verify(message) { + StreamingDetectIntentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.text != null && message.hasOwnProperty("text")) { - properties.query = 1; - if (!$util.isString(message.text)) - return "text: string expected"; - } - if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { - if (properties.query === 1) - return "query: multiple values"; - properties.query = 1; - if (!$util.isString(message.triggerIntent)) - return "triggerIntent: string expected"; - } - if (message.transcript != null && message.hasOwnProperty("transcript")) { - if (properties.query === 1) - return "query: multiple values"; - properties.query = 1; - if (!$util.isString(message.transcript)) - return "transcript: string expected"; - } - if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { - if (properties.query === 1) - return "query: multiple values"; - properties.query = 1; - if (!$util.isString(message.triggerEvent)) - return "triggerEvent: string expected"; + if (message.session != null && message.hasOwnProperty("session")) + if (!$util.isString(message.session)) + return "session: string expected"; + if (message.queryParams != null && message.hasOwnProperty("queryParams")) { + var error = $root.google.cloud.dialogflow.cx.v3.QueryParameters.verify(message.queryParams); + if (error) + return "queryParams." + error; } - if (message.matches != null && message.hasOwnProperty("matches")) { - if (!Array.isArray(message.matches)) - return "matches: array expected"; - for (var i = 0; i < message.matches.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.Match.verify(message.matches[i]); - if (error) - return "matches." + error; - } + if (message.queryInput != null && message.hasOwnProperty("queryInput")) { + var error = $root.google.cloud.dialogflow.cx.v3.QueryInput.verify(message.queryInput); + if (error) + return "queryInput." + error; } - if (message.currentPage != null && message.hasOwnProperty("currentPage")) { - var error = $root.google.cloud.dialogflow.cx.v3.Page.verify(message.currentPage); + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify(message.outputAudioConfig); if (error) - return "currentPage." + error; + return "outputAudioConfig." + error; } return null; }; /** - * Creates a MatchIntentResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingDetectIntentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.MatchIntentResponse} MatchIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest} StreamingDetectIntentRequest */ - MatchIntentResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.MatchIntentResponse) + StreamingDetectIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.MatchIntentResponse(); - if (object.text != null) - message.text = String(object.text); - if (object.triggerIntent != null) - message.triggerIntent = String(object.triggerIntent); - if (object.transcript != null) - message.transcript = String(object.transcript); - if (object.triggerEvent != null) - message.triggerEvent = String(object.triggerEvent); - if (object.matches) { - if (!Array.isArray(object.matches)) - throw TypeError(".google.cloud.dialogflow.cx.v3.MatchIntentResponse.matches: array expected"); - message.matches = []; - for (var i = 0; i < object.matches.length; ++i) { - if (typeof object.matches[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.MatchIntentResponse.matches: object expected"); - message.matches[i] = $root.google.cloud.dialogflow.cx.v3.Match.fromObject(object.matches[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest(); + if (object.session != null) + message.session = String(object.session); + if (object.queryParams != null) { + if (typeof object.queryParams !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.queryParams: object expected"); + message.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.fromObject(object.queryParams); } - if (object.currentPage != null) { - if (typeof object.currentPage !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.MatchIntentResponse.currentPage: object expected"); - message.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.fromObject(object.currentPage); + if (object.queryInput != null) { + if (typeof object.queryInput !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.queryInput: object expected"); + message.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.fromObject(object.queryInput); + } + if (object.outputAudioConfig != null) { + if (typeof object.outputAudioConfig !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.outputAudioConfig: object expected"); + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.fromObject(object.outputAudioConfig); } return message; }; /** - * Creates a plain object from a MatchIntentResponse message. Also converts values to other types if specified. + * Creates a plain object from a StreamingDetectIntentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.MatchIntentResponse} message MatchIntentResponse + * @param {google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest} message StreamingDetectIntentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MatchIntentResponse.toObject = function toObject(message, options) { + StreamingDetectIntentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.matches = []; - if (options.defaults) - object.currentPage = null; - if (message.text != null && message.hasOwnProperty("text")) { - object.text = message.text; - if (options.oneofs) - object.query = "text"; - } - if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { - object.triggerIntent = message.triggerIntent; - if (options.oneofs) - object.query = "triggerIntent"; - } - if (message.transcript != null && message.hasOwnProperty("transcript")) { - object.transcript = message.transcript; - if (options.oneofs) - object.query = "transcript"; - } - if (message.matches && message.matches.length) { - object.matches = []; - for (var j = 0; j < message.matches.length; ++j) - object.matches[j] = $root.google.cloud.dialogflow.cx.v3.Match.toObject(message.matches[j], options); - } - if (message.currentPage != null && message.hasOwnProperty("currentPage")) - object.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.toObject(message.currentPage, options); - if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { - object.triggerEvent = message.triggerEvent; - if (options.oneofs) - object.query = "triggerEvent"; + if (options.defaults) { + object.session = ""; + object.queryParams = null; + object.queryInput = null; + object.outputAudioConfig = null; } + if (message.session != null && message.hasOwnProperty("session")) + object.session = message.session; + if (message.queryParams != null && message.hasOwnProperty("queryParams")) + object.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.toObject(message.queryParams, options); + if (message.queryInput != null && message.hasOwnProperty("queryInput")) + object.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.toObject(message.queryInput, options); + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) + object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.toObject(message.outputAudioConfig, options); return object; }; /** - * Converts this MatchIntentResponse to JSON. + * Converts this StreamingDetectIntentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @instance * @returns {Object.} JSON object */ - MatchIntentResponse.prototype.toJSON = function toJSON() { + StreamingDetectIntentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MatchIntentResponse; + return StreamingDetectIntentRequest; })(); - v3.FulfillIntentRequest = (function() { + v3.StreamingDetectIntentResponse = (function() { /** - * Properties of a FulfillIntentRequest. + * Properties of a StreamingDetectIntentResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IFulfillIntentRequest - * @property {google.cloud.dialogflow.cx.v3.IMatchIntentRequest|null} [matchIntentRequest] FulfillIntentRequest matchIntentRequest - * @property {google.cloud.dialogflow.cx.v3.IMatch|null} [match] FulfillIntentRequest match - * @property {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null} [outputAudioConfig] FulfillIntentRequest outputAudioConfig + * @interface IStreamingDetectIntentResponse + * @property {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult|null} [recognitionResult] StreamingDetectIntentResponse recognitionResult + * @property {google.cloud.dialogflow.cx.v3.IDetectIntentResponse|null} [detectIntentResponse] StreamingDetectIntentResponse detectIntentResponse */ /** - * Constructs a new FulfillIntentRequest. + * Constructs a new StreamingDetectIntentResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a FulfillIntentRequest. - * @implements IFulfillIntentRequest + * @classdesc Represents a StreamingDetectIntentResponse. + * @implements IStreamingDetectIntentResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse=} [properties] Properties to set */ - function FulfillIntentRequest(properties) { + function StreamingDetectIntentResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34908,101 +34461,102 @@ } /** - * FulfillIntentRequest matchIntentRequest. - * @member {google.cloud.dialogflow.cx.v3.IMatchIntentRequest|null|undefined} matchIntentRequest - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest + * StreamingDetectIntentResponse recognitionResult. + * @member {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult|null|undefined} recognitionResult + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @instance */ - FulfillIntentRequest.prototype.matchIntentRequest = null; + StreamingDetectIntentResponse.prototype.recognitionResult = null; /** - * FulfillIntentRequest match. - * @member {google.cloud.dialogflow.cx.v3.IMatch|null|undefined} match - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest + * StreamingDetectIntentResponse detectIntentResponse. + * @member {google.cloud.dialogflow.cx.v3.IDetectIntentResponse|null|undefined} detectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @instance */ - FulfillIntentRequest.prototype.match = null; + StreamingDetectIntentResponse.prototype.detectIntentResponse = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * FulfillIntentRequest outputAudioConfig. - * @member {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null|undefined} outputAudioConfig - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest + * StreamingDetectIntentResponse response. + * @member {"recognitionResult"|"detectIntentResponse"|undefined} response + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @instance */ - FulfillIntentRequest.prototype.outputAudioConfig = null; + Object.defineProperty(StreamingDetectIntentResponse.prototype, "response", { + get: $util.oneOfGetter($oneOfFields = ["recognitionResult", "detectIntentResponse"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new FulfillIntentRequest instance using the specified properties. + * Creates a new StreamingDetectIntentResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentRequest} FulfillIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} StreamingDetectIntentResponse instance */ - FulfillIntentRequest.create = function create(properties) { - return new FulfillIntentRequest(properties); + StreamingDetectIntentResponse.create = function create(properties) { + return new StreamingDetectIntentResponse(properties); }; /** - * Encodes the specified FulfillIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentRequest.verify|verify} messages. + * Encodes the specified StreamingDetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentRequest} message FulfillIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse} message StreamingDetectIntentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FulfillIntentRequest.encode = function encode(message, writer) { + StreamingDetectIntentResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.matchIntentRequest != null && Object.hasOwnProperty.call(message, "matchIntentRequest")) - $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest.encode(message.matchIntentRequest, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.match != null && Object.hasOwnProperty.call(message, "match")) - $root.google.cloud.dialogflow.cx.v3.Match.encode(message.match, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) - $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.recognitionResult != null && Object.hasOwnProperty.call(message, "recognitionResult")) + $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.encode(message.recognitionResult, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.detectIntentResponse != null && Object.hasOwnProperty.call(message, "detectIntentResponse")) + $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse.encode(message.detectIntentResponse, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified FulfillIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentRequest.verify|verify} messages. + * Encodes the specified StreamingDetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentRequest} message FulfillIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse} message StreamingDetectIntentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FulfillIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + StreamingDetectIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FulfillIntentRequest message from the specified reader or buffer. + * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentRequest} FulfillIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} StreamingDetectIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FulfillIntentRequest.decode = function decode(reader, length) { + StreamingDetectIntentResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.FulfillIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.matchIntentRequest = $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest.decode(reader, reader.uint32()); + message.recognitionResult = $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.decode(reader, reader.uint32()); break; case 2: - message.match = $root.google.cloud.dialogflow.cx.v3.Match.decode(reader, reader.uint32()); - break; - case 3: - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.decode(reader, reader.uint32()); + message.detectIntentResponse = $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -35013,142 +34567,144 @@ }; /** - * Decodes a FulfillIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentRequest} FulfillIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} StreamingDetectIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FulfillIntentRequest.decodeDelimited = function decodeDelimited(reader) { + StreamingDetectIntentResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FulfillIntentRequest message. + * Verifies a StreamingDetectIntentResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FulfillIntentRequest.verify = function verify(message) { + StreamingDetectIntentResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.matchIntentRequest != null && message.hasOwnProperty("matchIntentRequest")) { - var error = $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest.verify(message.matchIntentRequest); - if (error) - return "matchIntentRequest." + error; - } - if (message.match != null && message.hasOwnProperty("match")) { - var error = $root.google.cloud.dialogflow.cx.v3.Match.verify(message.match); - if (error) - return "match." + error; + var properties = {}; + if (message.recognitionResult != null && message.hasOwnProperty("recognitionResult")) { + properties.response = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.verify(message.recognitionResult); + if (error) + return "recognitionResult." + error; + } } - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify(message.outputAudioConfig); - if (error) - return "outputAudioConfig." + error; + if (message.detectIntentResponse != null && message.hasOwnProperty("detectIntentResponse")) { + if (properties.response === 1) + return "response: multiple values"; + properties.response = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse.verify(message.detectIntentResponse); + if (error) + return "detectIntentResponse." + error; + } } return null; }; /** - * Creates a FulfillIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingDetectIntentResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentRequest} FulfillIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} StreamingDetectIntentResponse */ - FulfillIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.FulfillIntentRequest) + StreamingDetectIntentResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.FulfillIntentRequest(); - if (object.matchIntentRequest != null) { - if (typeof object.matchIntentRequest !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.FulfillIntentRequest.matchIntentRequest: object expected"); - message.matchIntentRequest = $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest.fromObject(object.matchIntentRequest); - } - if (object.match != null) { - if (typeof object.match !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.FulfillIntentRequest.match: object expected"); - message.match = $root.google.cloud.dialogflow.cx.v3.Match.fromObject(object.match); + var message = new $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse(); + if (object.recognitionResult != null) { + if (typeof object.recognitionResult !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse.recognitionResult: object expected"); + message.recognitionResult = $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.fromObject(object.recognitionResult); } - if (object.outputAudioConfig != null) { - if (typeof object.outputAudioConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.FulfillIntentRequest.outputAudioConfig: object expected"); - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.fromObject(object.outputAudioConfig); + if (object.detectIntentResponse != null) { + if (typeof object.detectIntentResponse !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse.detectIntentResponse: object expected"); + message.detectIntentResponse = $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse.fromObject(object.detectIntentResponse); } return message; }; /** - * Creates a plain object from a FulfillIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from a StreamingDetectIntentResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.FulfillIntentRequest} message FulfillIntentRequest + * @param {google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} message StreamingDetectIntentResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FulfillIntentRequest.toObject = function toObject(message, options) { + StreamingDetectIntentResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.matchIntentRequest = null; - object.match = null; - object.outputAudioConfig = null; + if (message.recognitionResult != null && message.hasOwnProperty("recognitionResult")) { + object.recognitionResult = $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.toObject(message.recognitionResult, options); + if (options.oneofs) + object.response = "recognitionResult"; + } + if (message.detectIntentResponse != null && message.hasOwnProperty("detectIntentResponse")) { + object.detectIntentResponse = $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse.toObject(message.detectIntentResponse, options); + if (options.oneofs) + object.response = "detectIntentResponse"; } - if (message.matchIntentRequest != null && message.hasOwnProperty("matchIntentRequest")) - object.matchIntentRequest = $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest.toObject(message.matchIntentRequest, options); - if (message.match != null && message.hasOwnProperty("match")) - object.match = $root.google.cloud.dialogflow.cx.v3.Match.toObject(message.match, options); - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) - object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.toObject(message.outputAudioConfig, options); return object; }; /** - * Converts this FulfillIntentRequest to JSON. + * Converts this StreamingDetectIntentResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @instance * @returns {Object.} JSON object */ - FulfillIntentRequest.prototype.toJSON = function toJSON() { + StreamingDetectIntentResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FulfillIntentRequest; + return StreamingDetectIntentResponse; })(); - v3.FulfillIntentResponse = (function() { + v3.StreamingRecognitionResult = (function() { /** - * Properties of a FulfillIntentResponse. + * Properties of a StreamingRecognitionResult. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IFulfillIntentResponse - * @property {string|null} [responseId] FulfillIntentResponse responseId - * @property {google.cloud.dialogflow.cx.v3.IQueryResult|null} [queryResult] FulfillIntentResponse queryResult - * @property {Uint8Array|null} [outputAudio] FulfillIntentResponse outputAudio - * @property {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null} [outputAudioConfig] FulfillIntentResponse outputAudioConfig + * @interface IStreamingRecognitionResult + * @property {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType|null} [messageType] StreamingRecognitionResult messageType + * @property {string|null} [transcript] StreamingRecognitionResult transcript + * @property {boolean|null} [isFinal] StreamingRecognitionResult isFinal + * @property {number|null} [confidence] StreamingRecognitionResult confidence + * @property {number|null} [stability] StreamingRecognitionResult stability + * @property {Array.|null} [speechWordInfo] StreamingRecognitionResult speechWordInfo + * @property {google.protobuf.IDuration|null} [speechEndOffset] StreamingRecognitionResult speechEndOffset */ /** - * Constructs a new FulfillIntentResponse. + * Constructs a new StreamingRecognitionResult. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a FulfillIntentResponse. - * @implements IFulfillIntentResponse + * @classdesc Represents a StreamingRecognitionResult. + * @implements IStreamingRecognitionResult * @constructor - * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult=} [properties] Properties to set */ - function FulfillIntentResponse(properties) { + function StreamingRecognitionResult(properties) { + this.speechWordInfo = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -35156,114 +34712,156 @@ } /** - * FulfillIntentResponse responseId. - * @member {string} responseId - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * StreamingRecognitionResult messageType. + * @member {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType} messageType + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @instance */ - FulfillIntentResponse.prototype.responseId = ""; + StreamingRecognitionResult.prototype.messageType = 0; /** - * FulfillIntentResponse queryResult. - * @member {google.cloud.dialogflow.cx.v3.IQueryResult|null|undefined} queryResult - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * StreamingRecognitionResult transcript. + * @member {string} transcript + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @instance */ - FulfillIntentResponse.prototype.queryResult = null; + StreamingRecognitionResult.prototype.transcript = ""; /** - * FulfillIntentResponse outputAudio. - * @member {Uint8Array} outputAudio - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * StreamingRecognitionResult isFinal. + * @member {boolean} isFinal + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @instance */ - FulfillIntentResponse.prototype.outputAudio = $util.newBuffer([]); + StreamingRecognitionResult.prototype.isFinal = false; /** - * FulfillIntentResponse outputAudioConfig. - * @member {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null|undefined} outputAudioConfig - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * StreamingRecognitionResult confidence. + * @member {number} confidence + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @instance */ - FulfillIntentResponse.prototype.outputAudioConfig = null; + StreamingRecognitionResult.prototype.confidence = 0; /** - * Creates a new FulfillIntentResponse instance using the specified properties. + * StreamingRecognitionResult stability. + * @member {number} stability + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @instance + */ + StreamingRecognitionResult.prototype.stability = 0; + + /** + * StreamingRecognitionResult speechWordInfo. + * @member {Array.} speechWordInfo + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @instance + */ + StreamingRecognitionResult.prototype.speechWordInfo = $util.emptyArray; + + /** + * StreamingRecognitionResult speechEndOffset. + * @member {google.protobuf.IDuration|null|undefined} speechEndOffset + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @instance + */ + StreamingRecognitionResult.prototype.speechEndOffset = null; + + /** + * Creates a new StreamingRecognitionResult instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @static - * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentResponse} FulfillIntentResponse instance + * @param {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult} StreamingRecognitionResult instance */ - FulfillIntentResponse.create = function create(properties) { - return new FulfillIntentResponse(properties); + StreamingRecognitionResult.create = function create(properties) { + return new StreamingRecognitionResult(properties); }; /** - * Encodes the specified FulfillIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentResponse.verify|verify} messages. + * Encodes the specified StreamingRecognitionResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @static - * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentResponse} message FulfillIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult} message StreamingRecognitionResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FulfillIntentResponse.encode = function encode(message, writer) { + StreamingRecognitionResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.responseId != null && Object.hasOwnProperty.call(message, "responseId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.responseId); - if (message.queryResult != null && Object.hasOwnProperty.call(message, "queryResult")) - $root.google.cloud.dialogflow.cx.v3.QueryResult.encode(message.queryResult, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.outputAudio != null && Object.hasOwnProperty.call(message, "outputAudio")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.outputAudio); - if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) - $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.messageType != null && Object.hasOwnProperty.call(message, "messageType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.messageType); + if (message.transcript != null && Object.hasOwnProperty.call(message, "transcript")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.transcript); + if (message.isFinal != null && Object.hasOwnProperty.call(message, "isFinal")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isFinal); + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) + writer.uint32(/* id 4, wireType 5 =*/37).float(message.confidence); + if (message.stability != null && Object.hasOwnProperty.call(message, "stability")) + writer.uint32(/* id 6, wireType 5 =*/53).float(message.stability); + if (message.speechWordInfo != null && message.speechWordInfo.length) + for (var i = 0; i < message.speechWordInfo.length; ++i) + $root.google.cloud.dialogflow.cx.v3.SpeechWordInfo.encode(message.speechWordInfo[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.speechEndOffset != null && Object.hasOwnProperty.call(message, "speechEndOffset")) + $root.google.protobuf.Duration.encode(message.speechEndOffset, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); return writer; }; /** - * Encodes the specified FulfillIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentResponse.verify|verify} messages. + * Encodes the specified StreamingRecognitionResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @static - * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentResponse} message FulfillIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult} message StreamingRecognitionResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FulfillIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { + StreamingRecognitionResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FulfillIntentResponse message from the specified reader or buffer. + * Decodes a StreamingRecognitionResult message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentResponse} FulfillIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult} StreamingRecognitionResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FulfillIntentResponse.decode = function decode(reader, length) { + StreamingRecognitionResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.FulfillIntentResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.responseId = reader.string(); + message.messageType = reader.int32(); break; case 2: - message.queryResult = $root.google.cloud.dialogflow.cx.v3.QueryResult.decode(reader, reader.uint32()); + message.transcript = reader.string(); break; case 3: - message.outputAudio = reader.bytes(); + message.isFinal = reader.bool(); break; case 4: - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.decode(reader, reader.uint32()); + message.confidence = reader.float(); + break; + case 6: + message.stability = reader.float(); + break; + case 7: + if (!(message.speechWordInfo && message.speechWordInfo.length)) + message.speechWordInfo = []; + message.speechWordInfo.push($root.google.cloud.dialogflow.cx.v3.SpeechWordInfo.decode(reader, reader.uint32())); + break; + case 8: + message.speechEndOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -35274,152 +34872,222 @@ }; /** - * Decodes a FulfillIntentResponse message from the specified reader or buffer, length delimited. + * Decodes a StreamingRecognitionResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentResponse} FulfillIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult} StreamingRecognitionResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FulfillIntentResponse.decodeDelimited = function decodeDelimited(reader) { + StreamingRecognitionResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FulfillIntentResponse message. + * Verifies a StreamingRecognitionResult message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FulfillIntentResponse.verify = function verify(message) { + StreamingRecognitionResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.responseId != null && message.hasOwnProperty("responseId")) - if (!$util.isString(message.responseId)) - return "responseId: string expected"; - if (message.queryResult != null && message.hasOwnProperty("queryResult")) { - var error = $root.google.cloud.dialogflow.cx.v3.QueryResult.verify(message.queryResult); - if (error) - return "queryResult." + error; + if (message.messageType != null && message.hasOwnProperty("messageType")) + switch (message.messageType) { + default: + return "messageType: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.transcript != null && message.hasOwnProperty("transcript")) + if (!$util.isString(message.transcript)) + return "transcript: string expected"; + if (message.isFinal != null && message.hasOwnProperty("isFinal")) + if (typeof message.isFinal !== "boolean") + return "isFinal: boolean expected"; + if (message.confidence != null && message.hasOwnProperty("confidence")) + if (typeof message.confidence !== "number") + return "confidence: number expected"; + if (message.stability != null && message.hasOwnProperty("stability")) + if (typeof message.stability !== "number") + return "stability: number expected"; + if (message.speechWordInfo != null && message.hasOwnProperty("speechWordInfo")) { + if (!Array.isArray(message.speechWordInfo)) + return "speechWordInfo: array expected"; + for (var i = 0; i < message.speechWordInfo.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.SpeechWordInfo.verify(message.speechWordInfo[i]); + if (error) + return "speechWordInfo." + error; + } } - if (message.outputAudio != null && message.hasOwnProperty("outputAudio")) - if (!(message.outputAudio && typeof message.outputAudio.length === "number" || $util.isString(message.outputAudio))) - return "outputAudio: buffer expected"; - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify(message.outputAudioConfig); + if (message.speechEndOffset != null && message.hasOwnProperty("speechEndOffset")) { + var error = $root.google.protobuf.Duration.verify(message.speechEndOffset); if (error) - return "outputAudioConfig." + error; + return "speechEndOffset." + error; } return null; }; /** - * Creates a FulfillIntentResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingRecognitionResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentResponse} FulfillIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult} StreamingRecognitionResult */ - FulfillIntentResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.FulfillIntentResponse) + StreamingRecognitionResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.FulfillIntentResponse(); - if (object.responseId != null) - message.responseId = String(object.responseId); - if (object.queryResult != null) { - if (typeof object.queryResult !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.FulfillIntentResponse.queryResult: object expected"); - message.queryResult = $root.google.cloud.dialogflow.cx.v3.QueryResult.fromObject(object.queryResult); + var message = new $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult(); + switch (object.messageType) { + case "MESSAGE_TYPE_UNSPECIFIED": + case 0: + message.messageType = 0; + break; + case "TRANSCRIPT": + case 1: + message.messageType = 1; + break; + case "END_OF_SINGLE_UTTERANCE": + case 2: + message.messageType = 2; + break; } - if (object.outputAudio != null) - if (typeof object.outputAudio === "string") - $util.base64.decode(object.outputAudio, message.outputAudio = $util.newBuffer($util.base64.length(object.outputAudio)), 0); - else if (object.outputAudio.length) - message.outputAudio = object.outputAudio; - if (object.outputAudioConfig != null) { - if (typeof object.outputAudioConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.FulfillIntentResponse.outputAudioConfig: object expected"); - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.fromObject(object.outputAudioConfig); + if (object.transcript != null) + message.transcript = String(object.transcript); + if (object.isFinal != null) + message.isFinal = Boolean(object.isFinal); + if (object.confidence != null) + message.confidence = Number(object.confidence); + if (object.stability != null) + message.stability = Number(object.stability); + if (object.speechWordInfo) { + if (!Array.isArray(object.speechWordInfo)) + throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.speechWordInfo: array expected"); + message.speechWordInfo = []; + for (var i = 0; i < object.speechWordInfo.length; ++i) { + if (typeof object.speechWordInfo[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.speechWordInfo: object expected"); + message.speechWordInfo[i] = $root.google.cloud.dialogflow.cx.v3.SpeechWordInfo.fromObject(object.speechWordInfo[i]); + } + } + if (object.speechEndOffset != null) { + if (typeof object.speechEndOffset !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.speechEndOffset: object expected"); + message.speechEndOffset = $root.google.protobuf.Duration.fromObject(object.speechEndOffset); } return message; }; /** - * Creates a plain object from a FulfillIntentResponse message. Also converts values to other types if specified. + * Creates a plain object from a StreamingRecognitionResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @static - * @param {google.cloud.dialogflow.cx.v3.FulfillIntentResponse} message FulfillIntentResponse + * @param {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult} message StreamingRecognitionResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FulfillIntentResponse.toObject = function toObject(message, options) { + StreamingRecognitionResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.speechWordInfo = []; if (options.defaults) { - object.responseId = ""; - object.queryResult = null; - if (options.bytes === String) - object.outputAudio = ""; - else { - object.outputAudio = []; - if (options.bytes !== Array) - object.outputAudio = $util.newBuffer(object.outputAudio); - } - object.outputAudioConfig = null; + object.messageType = options.enums === String ? "MESSAGE_TYPE_UNSPECIFIED" : 0; + object.transcript = ""; + object.isFinal = false; + object.confidence = 0; + object.stability = 0; + object.speechEndOffset = null; } - if (message.responseId != null && message.hasOwnProperty("responseId")) - object.responseId = message.responseId; - if (message.queryResult != null && message.hasOwnProperty("queryResult")) - object.queryResult = $root.google.cloud.dialogflow.cx.v3.QueryResult.toObject(message.queryResult, options); - if (message.outputAudio != null && message.hasOwnProperty("outputAudio")) - object.outputAudio = options.bytes === String ? $util.base64.encode(message.outputAudio, 0, message.outputAudio.length) : options.bytes === Array ? Array.prototype.slice.call(message.outputAudio) : message.outputAudio; - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) - object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.toObject(message.outputAudioConfig, options); + if (message.messageType != null && message.hasOwnProperty("messageType")) + object.messageType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType[message.messageType] : message.messageType; + if (message.transcript != null && message.hasOwnProperty("transcript")) + object.transcript = message.transcript; + if (message.isFinal != null && message.hasOwnProperty("isFinal")) + object.isFinal = message.isFinal; + if (message.confidence != null && message.hasOwnProperty("confidence")) + object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; + if (message.stability != null && message.hasOwnProperty("stability")) + object.stability = options.json && !isFinite(message.stability) ? String(message.stability) : message.stability; + if (message.speechWordInfo && message.speechWordInfo.length) { + object.speechWordInfo = []; + for (var j = 0; j < message.speechWordInfo.length; ++j) + object.speechWordInfo[j] = $root.google.cloud.dialogflow.cx.v3.SpeechWordInfo.toObject(message.speechWordInfo[j], options); + } + if (message.speechEndOffset != null && message.hasOwnProperty("speechEndOffset")) + object.speechEndOffset = $root.google.protobuf.Duration.toObject(message.speechEndOffset, options); return object; }; /** - * Converts this FulfillIntentResponse to JSON. + * Converts this StreamingRecognitionResult to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @instance * @returns {Object.} JSON object */ - FulfillIntentResponse.prototype.toJSON = function toJSON() { + StreamingRecognitionResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FulfillIntentResponse; + /** + * MessageType enum. + * @name google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType + * @enum {number} + * @property {number} MESSAGE_TYPE_UNSPECIFIED=0 MESSAGE_TYPE_UNSPECIFIED value + * @property {number} TRANSCRIPT=1 TRANSCRIPT value + * @property {number} END_OF_SINGLE_UTTERANCE=2 END_OF_SINGLE_UTTERANCE value + */ + StreamingRecognitionResult.MessageType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MESSAGE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "TRANSCRIPT"] = 1; + values[valuesById[2] = "END_OF_SINGLE_UTTERANCE"] = 2; + return values; + })(); + + return StreamingRecognitionResult; })(); - v3.SentimentAnalysisResult = (function() { + v3.QueryParameters = (function() { /** - * Properties of a SentimentAnalysisResult. + * Properties of a QueryParameters. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ISentimentAnalysisResult - * @property {number|null} [score] SentimentAnalysisResult score - * @property {number|null} [magnitude] SentimentAnalysisResult magnitude + * @interface IQueryParameters + * @property {string|null} [timeZone] QueryParameters timeZone + * @property {google.type.ILatLng|null} [geoLocation] QueryParameters geoLocation + * @property {Array.|null} [sessionEntityTypes] QueryParameters sessionEntityTypes + * @property {google.protobuf.IStruct|null} [payload] QueryParameters payload + * @property {google.protobuf.IStruct|null} [parameters] QueryParameters parameters + * @property {boolean|null} [disableWebhook] QueryParameters disableWebhook + * @property {boolean|null} [analyzeQueryTextSentiment] QueryParameters analyzeQueryTextSentiment + * @property {Object.|null} [webhookHeaders] QueryParameters webhookHeaders */ /** - * Constructs a new SentimentAnalysisResult. + * Constructs a new QueryParameters. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a SentimentAnalysisResult. - * @implements ISentimentAnalysisResult + * @classdesc Represents a QueryParameters. + * @implements IQueryParameters * @constructor - * @param {google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IQueryParameters=} [properties] Properties to set */ - function SentimentAnalysisResult(properties) { + function QueryParameters(properties) { + this.sessionEntityTypes = []; + this.webhookHeaders = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -35427,88 +35095,189 @@ } /** - * SentimentAnalysisResult score. - * @member {number} score - * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult + * QueryParameters timeZone. + * @member {string} timeZone + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @instance */ - SentimentAnalysisResult.prototype.score = 0; + QueryParameters.prototype.timeZone = ""; /** - * SentimentAnalysisResult magnitude. - * @member {number} magnitude - * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult + * QueryParameters geoLocation. + * @member {google.type.ILatLng|null|undefined} geoLocation + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @instance */ - SentimentAnalysisResult.prototype.magnitude = 0; + QueryParameters.prototype.geoLocation = null; /** - * Creates a new SentimentAnalysisResult instance using the specified properties. + * QueryParameters sessionEntityTypes. + * @member {Array.} sessionEntityTypes + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @instance + */ + QueryParameters.prototype.sessionEntityTypes = $util.emptyArray; + + /** + * QueryParameters payload. + * @member {google.protobuf.IStruct|null|undefined} payload + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @instance + */ + QueryParameters.prototype.payload = null; + + /** + * QueryParameters parameters. + * @member {google.protobuf.IStruct|null|undefined} parameters + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @instance + */ + QueryParameters.prototype.parameters = null; + + /** + * QueryParameters disableWebhook. + * @member {boolean} disableWebhook + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @instance + */ + QueryParameters.prototype.disableWebhook = false; + + /** + * QueryParameters analyzeQueryTextSentiment. + * @member {boolean} analyzeQueryTextSentiment + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @instance + */ + QueryParameters.prototype.analyzeQueryTextSentiment = false; + + /** + * QueryParameters webhookHeaders. + * @member {Object.} webhookHeaders + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @instance + */ + QueryParameters.prototype.webhookHeaders = $util.emptyObject; + + /** + * Creates a new QueryParameters instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @static - * @param {google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.SentimentAnalysisResult} SentimentAnalysisResult instance + * @param {google.cloud.dialogflow.cx.v3.IQueryParameters=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.QueryParameters} QueryParameters instance */ - SentimentAnalysisResult.create = function create(properties) { - return new SentimentAnalysisResult(properties); + QueryParameters.create = function create(properties) { + return new QueryParameters(properties); }; /** - * Encodes the specified SentimentAnalysisResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.verify|verify} messages. + * Encodes the specified QueryParameters message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryParameters.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @static - * @param {google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult} message SentimentAnalysisResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IQueryParameters} message QueryParameters message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SentimentAnalysisResult.encode = function encode(message, writer) { + QueryParameters.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.score != null && Object.hasOwnProperty.call(message, "score")) - writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); - if (message.magnitude != null && Object.hasOwnProperty.call(message, "magnitude")) - writer.uint32(/* id 2, wireType 5 =*/21).float(message.magnitude); + if (message.timeZone != null && Object.hasOwnProperty.call(message, "timeZone")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.timeZone); + if (message.geoLocation != null && Object.hasOwnProperty.call(message, "geoLocation")) + $root.google.type.LatLng.encode(message.geoLocation, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.sessionEntityTypes != null && message.sessionEntityTypes.length) + for (var i = 0; i < message.sessionEntityTypes.length; ++i) + $root.google.cloud.dialogflow.cx.v3.SessionEntityType.encode(message.sessionEntityTypes[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) + $root.google.protobuf.Struct.encode(message.payload, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + $root.google.protobuf.Struct.encode(message.parameters, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.disableWebhook != null && Object.hasOwnProperty.call(message, "disableWebhook")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.disableWebhook); + if (message.analyzeQueryTextSentiment != null && Object.hasOwnProperty.call(message, "analyzeQueryTextSentiment")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.analyzeQueryTextSentiment); + if (message.webhookHeaders != null && Object.hasOwnProperty.call(message, "webhookHeaders")) + for (var keys = Object.keys(message.webhookHeaders), i = 0; i < keys.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.webhookHeaders[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified SentimentAnalysisResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.verify|verify} messages. + * Encodes the specified QueryParameters message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryParameters.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @static - * @param {google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult} message SentimentAnalysisResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IQueryParameters} message QueryParameters message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SentimentAnalysisResult.encodeDelimited = function encodeDelimited(message, writer) { + QueryParameters.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SentimentAnalysisResult message from the specified reader or buffer. + * Decodes a QueryParameters message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.SentimentAnalysisResult} SentimentAnalysisResult + * @returns {google.cloud.dialogflow.cx.v3.QueryParameters} QueryParameters * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SentimentAnalysisResult.decode = function decode(reader, length) { + QueryParameters.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.QueryParameters(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.score = reader.float(); + message.timeZone = reader.string(); break; case 2: - message.magnitude = reader.float(); + message.geoLocation = $root.google.type.LatLng.decode(reader, reader.uint32()); + break; + case 3: + if (!(message.sessionEntityTypes && message.sessionEntityTypes.length)) + message.sessionEntityTypes = []; + message.sessionEntityTypes.push($root.google.cloud.dialogflow.cx.v3.SessionEntityType.decode(reader, reader.uint32())); + break; + case 4: + message.payload = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 5: + message.parameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 7: + message.disableWebhook = reader.bool(); + break; + case 8: + message.analyzeQueryTextSentiment = reader.bool(); + break; + case 10: + if (message.webhookHeaders === $util.emptyObject) + message.webhookHeaders = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.webhookHeaders[key] = value; break; default: reader.skipType(tag & 7); @@ -35519,424 +35288,372 @@ }; /** - * Decodes a SentimentAnalysisResult message from the specified reader or buffer, length delimited. + * Decodes a QueryParameters message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.SentimentAnalysisResult} SentimentAnalysisResult + * @returns {google.cloud.dialogflow.cx.v3.QueryParameters} QueryParameters * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SentimentAnalysisResult.decodeDelimited = function decodeDelimited(reader) { + QueryParameters.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SentimentAnalysisResult message. + * Verifies a QueryParameters message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SentimentAnalysisResult.verify = function verify(message) { + QueryParameters.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.score != null && message.hasOwnProperty("score")) - if (typeof message.score !== "number") - return "score: number expected"; - if (message.magnitude != null && message.hasOwnProperty("magnitude")) - if (typeof message.magnitude !== "number") - return "magnitude: number expected"; + if (message.timeZone != null && message.hasOwnProperty("timeZone")) + if (!$util.isString(message.timeZone)) + return "timeZone: string expected"; + if (message.geoLocation != null && message.hasOwnProperty("geoLocation")) { + var error = $root.google.type.LatLng.verify(message.geoLocation); + if (error) + return "geoLocation." + error; + } + if (message.sessionEntityTypes != null && message.hasOwnProperty("sessionEntityTypes")) { + if (!Array.isArray(message.sessionEntityTypes)) + return "sessionEntityTypes: array expected"; + for (var i = 0; i < message.sessionEntityTypes.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.verify(message.sessionEntityTypes[i]); + if (error) + return "sessionEntityTypes." + error; + } + } + if (message.payload != null && message.hasOwnProperty("payload")) { + var error = $root.google.protobuf.Struct.verify(message.payload); + if (error) + return "payload." + error; + } + if (message.parameters != null && message.hasOwnProperty("parameters")) { + var error = $root.google.protobuf.Struct.verify(message.parameters); + if (error) + return "parameters." + error; + } + if (message.disableWebhook != null && message.hasOwnProperty("disableWebhook")) + if (typeof message.disableWebhook !== "boolean") + return "disableWebhook: boolean expected"; + if (message.analyzeQueryTextSentiment != null && message.hasOwnProperty("analyzeQueryTextSentiment")) + if (typeof message.analyzeQueryTextSentiment !== "boolean") + return "analyzeQueryTextSentiment: boolean expected"; + if (message.webhookHeaders != null && message.hasOwnProperty("webhookHeaders")) { + if (!$util.isObject(message.webhookHeaders)) + return "webhookHeaders: object expected"; + var key = Object.keys(message.webhookHeaders); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.webhookHeaders[key[i]])) + return "webhookHeaders: string{k:string} expected"; + } return null; }; /** - * Creates a SentimentAnalysisResult message from a plain object. Also converts values to their respective internal types. + * Creates a QueryParameters message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.SentimentAnalysisResult} SentimentAnalysisResult + * @returns {google.cloud.dialogflow.cx.v3.QueryParameters} QueryParameters */ - SentimentAnalysisResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult) + QueryParameters.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.QueryParameters) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult(); - if (object.score != null) - message.score = Number(object.score); - if (object.magnitude != null) - message.magnitude = Number(object.magnitude); + var message = new $root.google.cloud.dialogflow.cx.v3.QueryParameters(); + if (object.timeZone != null) + message.timeZone = String(object.timeZone); + if (object.geoLocation != null) { + if (typeof object.geoLocation !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryParameters.geoLocation: object expected"); + message.geoLocation = $root.google.type.LatLng.fromObject(object.geoLocation); + } + if (object.sessionEntityTypes) { + if (!Array.isArray(object.sessionEntityTypes)) + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryParameters.sessionEntityTypes: array expected"); + message.sessionEntityTypes = []; + for (var i = 0; i < object.sessionEntityTypes.length; ++i) { + if (typeof object.sessionEntityTypes[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryParameters.sessionEntityTypes: object expected"); + message.sessionEntityTypes[i] = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.fromObject(object.sessionEntityTypes[i]); + } + } + if (object.payload != null) { + if (typeof object.payload !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryParameters.payload: object expected"); + message.payload = $root.google.protobuf.Struct.fromObject(object.payload); + } + if (object.parameters != null) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryParameters.parameters: object expected"); + message.parameters = $root.google.protobuf.Struct.fromObject(object.parameters); + } + if (object.disableWebhook != null) + message.disableWebhook = Boolean(object.disableWebhook); + if (object.analyzeQueryTextSentiment != null) + message.analyzeQueryTextSentiment = Boolean(object.analyzeQueryTextSentiment); + if (object.webhookHeaders) { + if (typeof object.webhookHeaders !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryParameters.webhookHeaders: object expected"); + message.webhookHeaders = {}; + for (var keys = Object.keys(object.webhookHeaders), i = 0; i < keys.length; ++i) + message.webhookHeaders[keys[i]] = String(object.webhookHeaders[keys[i]]); + } return message; }; /** - * Creates a plain object from a SentimentAnalysisResult message. Also converts values to other types if specified. + * Creates a plain object from a QueryParameters message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @static - * @param {google.cloud.dialogflow.cx.v3.SentimentAnalysisResult} message SentimentAnalysisResult + * @param {google.cloud.dialogflow.cx.v3.QueryParameters} message QueryParameters * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SentimentAnalysisResult.toObject = function toObject(message, options) { + QueryParameters.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.sessionEntityTypes = []; + if (options.objects || options.defaults) + object.webhookHeaders = {}; if (options.defaults) { - object.score = 0; - object.magnitude = 0; + object.timeZone = ""; + object.geoLocation = null; + object.payload = null; + object.parameters = null; + object.disableWebhook = false; + object.analyzeQueryTextSentiment = false; + } + if (message.timeZone != null && message.hasOwnProperty("timeZone")) + object.timeZone = message.timeZone; + if (message.geoLocation != null && message.hasOwnProperty("geoLocation")) + object.geoLocation = $root.google.type.LatLng.toObject(message.geoLocation, options); + if (message.sessionEntityTypes && message.sessionEntityTypes.length) { + object.sessionEntityTypes = []; + for (var j = 0; j < message.sessionEntityTypes.length; ++j) + object.sessionEntityTypes[j] = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.toObject(message.sessionEntityTypes[j], options); + } + if (message.payload != null && message.hasOwnProperty("payload")) + object.payload = $root.google.protobuf.Struct.toObject(message.payload, options); + if (message.parameters != null && message.hasOwnProperty("parameters")) + object.parameters = $root.google.protobuf.Struct.toObject(message.parameters, options); + if (message.disableWebhook != null && message.hasOwnProperty("disableWebhook")) + object.disableWebhook = message.disableWebhook; + if (message.analyzeQueryTextSentiment != null && message.hasOwnProperty("analyzeQueryTextSentiment")) + object.analyzeQueryTextSentiment = message.analyzeQueryTextSentiment; + var keys2; + if (message.webhookHeaders && (keys2 = Object.keys(message.webhookHeaders)).length) { + object.webhookHeaders = {}; + for (var j = 0; j < keys2.length; ++j) + object.webhookHeaders[keys2[j]] = message.webhookHeaders[keys2[j]]; } - if (message.score != null && message.hasOwnProperty("score")) - object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; - if (message.magnitude != null && message.hasOwnProperty("magnitude")) - object.magnitude = options.json && !isFinite(message.magnitude) ? String(message.magnitude) : message.magnitude; return object; }; /** - * Converts this SentimentAnalysisResult to JSON. + * Converts this QueryParameters to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @instance * @returns {Object.} JSON object */ - SentimentAnalysisResult.prototype.toJSON = function toJSON() { + QueryParameters.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SentimentAnalysisResult; + return QueryParameters; })(); - v3.SessionEntityTypes = (function() { + v3.QueryInput = (function() { /** - * Constructs a new SessionEntityTypes service. + * Properties of a QueryInput. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a SessionEntityTypes - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function SessionEntityTypes(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (SessionEntityTypes.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = SessionEntityTypes; - - /** - * Creates new SessionEntityTypes service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {SessionEntityTypes} RPC service. Useful where requests and/or responses are streamed. - */ - SessionEntityTypes.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#listSessionEntityTypes}. - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes - * @typedef ListSessionEntityTypesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} [response] ListSessionEntityTypesResponse - */ - - /** - * Calls ListSessionEntityTypes. - * @function listSessionEntityTypes - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest} request ListSessionEntityTypesRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypesCallback} callback Node-style callback called with the error, if any, and ListSessionEntityTypesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(SessionEntityTypes.prototype.listSessionEntityTypes = function listSessionEntityTypes(request, callback) { - return this.rpcCall(listSessionEntityTypes, $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest, $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse, request, callback); - }, "name", { value: "ListSessionEntityTypes" }); - - /** - * Calls ListSessionEntityTypes. - * @function listSessionEntityTypes - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest} request ListSessionEntityTypesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#getSessionEntityType}. - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes - * @typedef GetSessionEntityTypeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.SessionEntityType} [response] SessionEntityType - */ - - /** - * Calls GetSessionEntityType. - * @function getSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest} request GetSessionEntityTypeRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.SessionEntityTypes.GetSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and SessionEntityType - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(SessionEntityTypes.prototype.getSessionEntityType = function getSessionEntityType(request, callback) { - return this.rpcCall(getSessionEntityType, $root.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3.SessionEntityType, request, callback); - }, "name", { value: "GetSessionEntityType" }); - - /** - * Calls GetSessionEntityType. - * @function getSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest} request GetSessionEntityTypeRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#createSessionEntityType}. - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes - * @typedef CreateSessionEntityTypeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.SessionEntityType} [response] SessionEntityType + * @interface IQueryInput + * @property {google.cloud.dialogflow.cx.v3.ITextInput|null} [text] QueryInput text + * @property {google.cloud.dialogflow.cx.v3.IIntentInput|null} [intent] QueryInput intent + * @property {google.cloud.dialogflow.cx.v3.IAudioInput|null} [audio] QueryInput audio + * @property {google.cloud.dialogflow.cx.v3.IEventInput|null} [event] QueryInput event + * @property {google.cloud.dialogflow.cx.v3.IDtmfInput|null} [dtmf] QueryInput dtmf + * @property {string|null} [languageCode] QueryInput languageCode */ /** - * Calls CreateSessionEntityType. - * @function createSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest} request CreateSessionEntityTypeRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.SessionEntityTypes.CreateSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and SessionEntityType - * @returns {undefined} - * @variation 1 + * Constructs a new QueryInput. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a QueryInput. + * @implements IQueryInput + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IQueryInput=} [properties] Properties to set */ - Object.defineProperty(SessionEntityTypes.prototype.createSessionEntityType = function createSessionEntityType(request, callback) { - return this.rpcCall(createSessionEntityType, $root.google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3.SessionEntityType, request, callback); - }, "name", { value: "CreateSessionEntityType" }); + function QueryInput(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls CreateSessionEntityType. - * @function createSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * QueryInput text. + * @member {google.cloud.dialogflow.cx.v3.ITextInput|null|undefined} text + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest} request CreateSessionEntityTypeRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#updateSessionEntityType}. - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes - * @typedef UpdateSessionEntityTypeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.SessionEntityType} [response] SessionEntityType */ + QueryInput.prototype.text = null; /** - * Calls UpdateSessionEntityType. - * @function updateSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * QueryInput intent. + * @member {google.cloud.dialogflow.cx.v3.IIntentInput|null|undefined} intent + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest} request UpdateSessionEntityTypeRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.SessionEntityTypes.UpdateSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and SessionEntityType - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(SessionEntityTypes.prototype.updateSessionEntityType = function updateSessionEntityType(request, callback) { - return this.rpcCall(updateSessionEntityType, $root.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3.SessionEntityType, request, callback); - }, "name", { value: "UpdateSessionEntityType" }); + QueryInput.prototype.intent = null; /** - * Calls UpdateSessionEntityType. - * @function updateSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * QueryInput audio. + * @member {google.cloud.dialogflow.cx.v3.IAudioInput|null|undefined} audio + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest} request UpdateSessionEntityTypeRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#deleteSessionEntityType}. - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes - * @typedef DeleteSessionEntityTypeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty */ + QueryInput.prototype.audio = null; /** - * Calls DeleteSessionEntityType. - * @function deleteSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * QueryInput event. + * @member {google.cloud.dialogflow.cx.v3.IEventInput|null|undefined} event + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest} request DeleteSessionEntityTypeRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.SessionEntityTypes.DeleteSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(SessionEntityTypes.prototype.deleteSessionEntityType = function deleteSessionEntityType(request, callback) { - return this.rpcCall(deleteSessionEntityType, $root.google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteSessionEntityType" }); + QueryInput.prototype.event = null; /** - * Calls DeleteSessionEntityType. - * @function deleteSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * QueryInput dtmf. + * @member {google.cloud.dialogflow.cx.v3.IDtmfInput|null|undefined} dtmf + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest} request DeleteSessionEntityTypeRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return SessionEntityTypes; - })(); - - v3.SessionEntityType = (function() { - - /** - * Properties of a SessionEntityType. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface ISessionEntityType - * @property {string|null} [name] SessionEntityType name - * @property {google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode|null} [entityOverrideMode] SessionEntityType entityOverrideMode - * @property {Array.|null} [entities] SessionEntityType entities - */ - - /** - * Constructs a new SessionEntityType. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a SessionEntityType. - * @implements ISessionEntityType - * @constructor - * @param {google.cloud.dialogflow.cx.v3.ISessionEntityType=} [properties] Properties to set */ - function SessionEntityType(properties) { - this.entities = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + QueryInput.prototype.dtmf = null; /** - * SessionEntityType name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType + * QueryInput languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @instance */ - SessionEntityType.prototype.name = ""; + QueryInput.prototype.languageCode = ""; - /** - * SessionEntityType entityOverrideMode. - * @member {google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode} entityOverrideMode - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType - * @instance - */ - SessionEntityType.prototype.entityOverrideMode = 0; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * SessionEntityType entities. - * @member {Array.} entities - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType + * QueryInput input. + * @member {"text"|"intent"|"audio"|"event"|"dtmf"|undefined} input + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @instance */ - SessionEntityType.prototype.entities = $util.emptyArray; + Object.defineProperty(QueryInput.prototype, "input", { + get: $util.oneOfGetter($oneOfFields = ["text", "intent", "audio", "event", "dtmf"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new SessionEntityType instance using the specified properties. + * Creates a new QueryInput instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @static - * @param {google.cloud.dialogflow.cx.v3.ISessionEntityType=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.SessionEntityType} SessionEntityType instance + * @param {google.cloud.dialogflow.cx.v3.IQueryInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.QueryInput} QueryInput instance */ - SessionEntityType.create = function create(properties) { - return new SessionEntityType(properties); + QueryInput.create = function create(properties) { + return new QueryInput(properties); }; /** - * Encodes the specified SessionEntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionEntityType.verify|verify} messages. + * Encodes the specified QueryInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryInput.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @static - * @param {google.cloud.dialogflow.cx.v3.ISessionEntityType} message SessionEntityType message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IQueryInput} message QueryInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SessionEntityType.encode = function encode(message, writer) { + QueryInput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.entityOverrideMode != null && Object.hasOwnProperty.call(message, "entityOverrideMode")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.entityOverrideMode); - if (message.entities != null && message.entities.length) - for (var i = 0; i < message.entities.length; ++i) - $root.google.cloud.dialogflow.cx.v3.EntityType.Entity.encode(message.entities[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.text != null && Object.hasOwnProperty.call(message, "text")) + $root.google.cloud.dialogflow.cx.v3.TextInput.encode(message.text, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) + $root.google.cloud.dialogflow.cx.v3.IntentInput.encode(message.intent, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.languageCode); + if (message.audio != null && Object.hasOwnProperty.call(message, "audio")) + $root.google.cloud.dialogflow.cx.v3.AudioInput.encode(message.audio, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.event != null && Object.hasOwnProperty.call(message, "event")) + $root.google.cloud.dialogflow.cx.v3.EventInput.encode(message.event, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.dtmf != null && Object.hasOwnProperty.call(message, "dtmf")) + $root.google.cloud.dialogflow.cx.v3.DtmfInput.encode(message.dtmf, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified SessionEntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionEntityType.verify|verify} messages. + * Encodes the specified QueryInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @static - * @param {google.cloud.dialogflow.cx.v3.ISessionEntityType} message SessionEntityType message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IQueryInput} message QueryInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SessionEntityType.encodeDelimited = function encodeDelimited(message, writer) { + QueryInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SessionEntityType message from the specified reader or buffer. + * Decodes a QueryInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.SessionEntityType} SessionEntityType + * @returns {google.cloud.dialogflow.cx.v3.QueryInput} QueryInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SessionEntityType.decode = function decode(reader, length) { + QueryInput.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.SessionEntityType(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.QueryInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); + case 2: + message.text = $root.google.cloud.dialogflow.cx.v3.TextInput.decode(reader, reader.uint32()); break; case 3: - message.entityOverrideMode = reader.int32(); + message.intent = $root.google.cloud.dialogflow.cx.v3.IntentInput.decode(reader, reader.uint32()); + break; + case 5: + message.audio = $root.google.cloud.dialogflow.cx.v3.AudioInput.decode(reader, reader.uint32()); + break; + case 6: + message.event = $root.google.cloud.dialogflow.cx.v3.EventInput.decode(reader, reader.uint32()); + break; + case 7: + message.dtmf = $root.google.cloud.dialogflow.cx.v3.DtmfInput.decode(reader, reader.uint32()); break; case 4: - if (!(message.entities && message.entities.length)) - message.entities = []; - message.entities.push($root.google.cloud.dialogflow.cx.v3.EntityType.Entity.decode(reader, reader.uint32())); + message.languageCode = reader.string(); break; default: reader.skipType(tag & 7); @@ -35947,178 +35664,223 @@ }; /** - * Decodes a SessionEntityType message from the specified reader or buffer, length delimited. + * Decodes a QueryInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.SessionEntityType} SessionEntityType + * @returns {google.cloud.dialogflow.cx.v3.QueryInput} QueryInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SessionEntityType.decodeDelimited = function decodeDelimited(reader) { + QueryInput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SessionEntityType message. + * Verifies a QueryInput message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SessionEntityType.verify = function verify(message) { + QueryInput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.entityOverrideMode != null && message.hasOwnProperty("entityOverrideMode")) - switch (message.entityOverrideMode) { - default: - return "entityOverrideMode: enum value expected"; - case 0: - case 1: - case 2: - break; + var properties = {}; + if (message.text != null && message.hasOwnProperty("text")) { + properties.input = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.TextInput.verify(message.text); + if (error) + return "text." + error; } - if (message.entities != null && message.hasOwnProperty("entities")) { - if (!Array.isArray(message.entities)) - return "entities: array expected"; - for (var i = 0; i < message.entities.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.EntityType.Entity.verify(message.entities[i]); + } + if (message.intent != null && message.hasOwnProperty("intent")) { + if (properties.input === 1) + return "input: multiple values"; + properties.input = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.IntentInput.verify(message.intent); if (error) - return "entities." + error; + return "intent." + error; + } + } + if (message.audio != null && message.hasOwnProperty("audio")) { + if (properties.input === 1) + return "input: multiple values"; + properties.input = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.AudioInput.verify(message.audio); + if (error) + return "audio." + error; + } + } + if (message.event != null && message.hasOwnProperty("event")) { + if (properties.input === 1) + return "input: multiple values"; + properties.input = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.EventInput.verify(message.event); + if (error) + return "event." + error; } } + if (message.dtmf != null && message.hasOwnProperty("dtmf")) { + if (properties.input === 1) + return "input: multiple values"; + properties.input = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.DtmfInput.verify(message.dtmf); + if (error) + return "dtmf." + error; + } + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates a SessionEntityType message from a plain object. Also converts values to their respective internal types. + * Creates a QueryInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.SessionEntityType} SessionEntityType + * @returns {google.cloud.dialogflow.cx.v3.QueryInput} QueryInput */ - SessionEntityType.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.SessionEntityType) + QueryInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.QueryInput) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.SessionEntityType(); - if (object.name != null) - message.name = String(object.name); - switch (object.entityOverrideMode) { - case "ENTITY_OVERRIDE_MODE_UNSPECIFIED": - case 0: - message.entityOverrideMode = 0; - break; - case "ENTITY_OVERRIDE_MODE_OVERRIDE": - case 1: - message.entityOverrideMode = 1; - break; - case "ENTITY_OVERRIDE_MODE_SUPPLEMENT": - case 2: - message.entityOverrideMode = 2; - break; + var message = new $root.google.cloud.dialogflow.cx.v3.QueryInput(); + if (object.text != null) { + if (typeof object.text !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryInput.text: object expected"); + message.text = $root.google.cloud.dialogflow.cx.v3.TextInput.fromObject(object.text); } - if (object.entities) { - if (!Array.isArray(object.entities)) - throw TypeError(".google.cloud.dialogflow.cx.v3.SessionEntityType.entities: array expected"); - message.entities = []; - for (var i = 0; i < object.entities.length; ++i) { - if (typeof object.entities[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.SessionEntityType.entities: object expected"); - message.entities[i] = $root.google.cloud.dialogflow.cx.v3.EntityType.Entity.fromObject(object.entities[i]); - } + if (object.intent != null) { + if (typeof object.intent !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryInput.intent: object expected"); + message.intent = $root.google.cloud.dialogflow.cx.v3.IntentInput.fromObject(object.intent); + } + if (object.audio != null) { + if (typeof object.audio !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryInput.audio: object expected"); + message.audio = $root.google.cloud.dialogflow.cx.v3.AudioInput.fromObject(object.audio); + } + if (object.event != null) { + if (typeof object.event !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryInput.event: object expected"); + message.event = $root.google.cloud.dialogflow.cx.v3.EventInput.fromObject(object.event); + } + if (object.dtmf != null) { + if (typeof object.dtmf !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryInput.dtmf: object expected"); + message.dtmf = $root.google.cloud.dialogflow.cx.v3.DtmfInput.fromObject(object.dtmf); } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a SessionEntityType message. Also converts values to other types if specified. + * Creates a plain object from a QueryInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @static - * @param {google.cloud.dialogflow.cx.v3.SessionEntityType} message SessionEntityType + * @param {google.cloud.dialogflow.cx.v3.QueryInput} message QueryInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SessionEntityType.toObject = function toObject(message, options) { + QueryInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.entities = []; - if (options.defaults) { - object.name = ""; - object.entityOverrideMode = options.enums === String ? "ENTITY_OVERRIDE_MODE_UNSPECIFIED" : 0; + if (options.defaults) + object.languageCode = ""; + if (message.text != null && message.hasOwnProperty("text")) { + object.text = $root.google.cloud.dialogflow.cx.v3.TextInput.toObject(message.text, options); + if (options.oneofs) + object.input = "text"; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.entityOverrideMode != null && message.hasOwnProperty("entityOverrideMode")) - object.entityOverrideMode = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode[message.entityOverrideMode] : message.entityOverrideMode; - if (message.entities && message.entities.length) { - object.entities = []; - for (var j = 0; j < message.entities.length; ++j) - object.entities[j] = $root.google.cloud.dialogflow.cx.v3.EntityType.Entity.toObject(message.entities[j], options); + if (message.intent != null && message.hasOwnProperty("intent")) { + object.intent = $root.google.cloud.dialogflow.cx.v3.IntentInput.toObject(message.intent, options); + if (options.oneofs) + object.input = "intent"; + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + if (message.audio != null && message.hasOwnProperty("audio")) { + object.audio = $root.google.cloud.dialogflow.cx.v3.AudioInput.toObject(message.audio, options); + if (options.oneofs) + object.input = "audio"; + } + if (message.event != null && message.hasOwnProperty("event")) { + object.event = $root.google.cloud.dialogflow.cx.v3.EventInput.toObject(message.event, options); + if (options.oneofs) + object.input = "event"; + } + if (message.dtmf != null && message.hasOwnProperty("dtmf")) { + object.dtmf = $root.google.cloud.dialogflow.cx.v3.DtmfInput.toObject(message.dtmf, options); + if (options.oneofs) + object.input = "dtmf"; } return object; }; /** - * Converts this SessionEntityType to JSON. + * Converts this QueryInput to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @instance * @returns {Object.} JSON object */ - SessionEntityType.prototype.toJSON = function toJSON() { + QueryInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * EntityOverrideMode enum. - * @name google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode - * @enum {number} - * @property {number} ENTITY_OVERRIDE_MODE_UNSPECIFIED=0 ENTITY_OVERRIDE_MODE_UNSPECIFIED value - * @property {number} ENTITY_OVERRIDE_MODE_OVERRIDE=1 ENTITY_OVERRIDE_MODE_OVERRIDE value - * @property {number} ENTITY_OVERRIDE_MODE_SUPPLEMENT=2 ENTITY_OVERRIDE_MODE_SUPPLEMENT value - */ - SessionEntityType.EntityOverrideMode = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ENTITY_OVERRIDE_MODE_UNSPECIFIED"] = 0; - values[valuesById[1] = "ENTITY_OVERRIDE_MODE_OVERRIDE"] = 1; - values[valuesById[2] = "ENTITY_OVERRIDE_MODE_SUPPLEMENT"] = 2; - return values; - })(); - - return SessionEntityType; + return QueryInput; })(); - v3.ListSessionEntityTypesRequest = (function() { + v3.QueryResult = (function() { /** - * Properties of a ListSessionEntityTypesRequest. + * Properties of a QueryResult. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListSessionEntityTypesRequest - * @property {string|null} [parent] ListSessionEntityTypesRequest parent - * @property {number|null} [pageSize] ListSessionEntityTypesRequest pageSize - * @property {string|null} [pageToken] ListSessionEntityTypesRequest pageToken + * @interface IQueryResult + * @property {string|null} [text] QueryResult text + * @property {string|null} [triggerIntent] QueryResult triggerIntent + * @property {string|null} [transcript] QueryResult transcript + * @property {string|null} [triggerEvent] QueryResult triggerEvent + * @property {string|null} [languageCode] QueryResult languageCode + * @property {google.protobuf.IStruct|null} [parameters] QueryResult parameters + * @property {Array.|null} [responseMessages] QueryResult responseMessages + * @property {Array.|null} [webhookStatuses] QueryResult webhookStatuses + * @property {Array.|null} [webhookPayloads] QueryResult webhookPayloads + * @property {google.cloud.dialogflow.cx.v3.IPage|null} [currentPage] QueryResult currentPage + * @property {google.cloud.dialogflow.cx.v3.IIntent|null} [intent] QueryResult intent + * @property {number|null} [intentDetectionConfidence] QueryResult intentDetectionConfidence + * @property {google.cloud.dialogflow.cx.v3.IMatch|null} [match] QueryResult match + * @property {google.protobuf.IStruct|null} [diagnosticInfo] QueryResult diagnosticInfo + * @property {google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult|null} [sentimentAnalysisResult] QueryResult sentimentAnalysisResult */ /** - * Constructs a new ListSessionEntityTypesRequest. + * Constructs a new QueryResult. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListSessionEntityTypesRequest. - * @implements IListSessionEntityTypesRequest + * @classdesc Represents a QueryResult. + * @implements IQueryResult * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IQueryResult=} [properties] Properties to set */ - function ListSessionEntityTypesRequest(properties) { + function QueryResult(properties) { + this.responseMessages = []; + this.webhookStatuses = []; + this.webhookPayloads = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36126,101 +35888,280 @@ } /** - * ListSessionEntityTypesRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * QueryResult text. + * @member {string} text + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance */ - ListSessionEntityTypesRequest.prototype.parent = ""; + QueryResult.prototype.text = ""; /** - * ListSessionEntityTypesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * QueryResult triggerIntent. + * @member {string} triggerIntent + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance */ - ListSessionEntityTypesRequest.prototype.pageSize = 0; + QueryResult.prototype.triggerIntent = ""; /** - * ListSessionEntityTypesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * QueryResult transcript. + * @member {string} transcript + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance */ - ListSessionEntityTypesRequest.prototype.pageToken = ""; + QueryResult.prototype.transcript = ""; /** - * Creates a new ListSessionEntityTypesRequest instance using the specified properties. + * QueryResult triggerEvent. + * @member {string} triggerEvent + * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @instance + */ + QueryResult.prototype.triggerEvent = ""; + + /** + * QueryResult languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @instance + */ + QueryResult.prototype.languageCode = ""; + + /** + * QueryResult parameters. + * @member {google.protobuf.IStruct|null|undefined} parameters + * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @instance + */ + QueryResult.prototype.parameters = null; + + /** + * QueryResult responseMessages. + * @member {Array.} responseMessages + * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @instance + */ + QueryResult.prototype.responseMessages = $util.emptyArray; + + /** + * QueryResult webhookStatuses. + * @member {Array.} webhookStatuses + * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @instance + */ + QueryResult.prototype.webhookStatuses = $util.emptyArray; + + /** + * QueryResult webhookPayloads. + * @member {Array.} webhookPayloads + * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @instance + */ + QueryResult.prototype.webhookPayloads = $util.emptyArray; + + /** + * QueryResult currentPage. + * @member {google.cloud.dialogflow.cx.v3.IPage|null|undefined} currentPage + * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @instance + */ + QueryResult.prototype.currentPage = null; + + /** + * QueryResult intent. + * @member {google.cloud.dialogflow.cx.v3.IIntent|null|undefined} intent + * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @instance + */ + QueryResult.prototype.intent = null; + + /** + * QueryResult intentDetectionConfidence. + * @member {number} intentDetectionConfidence + * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @instance + */ + QueryResult.prototype.intentDetectionConfidence = 0; + + /** + * QueryResult match. + * @member {google.cloud.dialogflow.cx.v3.IMatch|null|undefined} match + * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @instance + */ + QueryResult.prototype.match = null; + + /** + * QueryResult diagnosticInfo. + * @member {google.protobuf.IStruct|null|undefined} diagnosticInfo + * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @instance + */ + QueryResult.prototype.diagnosticInfo = null; + + /** + * QueryResult sentimentAnalysisResult. + * @member {google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult|null|undefined} sentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @instance + */ + QueryResult.prototype.sentimentAnalysisResult = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * QueryResult query. + * @member {"text"|"triggerIntent"|"transcript"|"triggerEvent"|undefined} query + * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @instance + */ + Object.defineProperty(QueryResult.prototype, "query", { + get: $util.oneOfGetter($oneOfFields = ["text", "triggerIntent", "transcript", "triggerEvent"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new QueryResult instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @static - * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest instance + * @param {google.cloud.dialogflow.cx.v3.IQueryResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.QueryResult} QueryResult instance */ - ListSessionEntityTypesRequest.create = function create(properties) { - return new ListSessionEntityTypesRequest(properties); + QueryResult.create = function create(properties) { + return new QueryResult(properties); }; /** - * Encodes the specified ListSessionEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest.verify|verify} messages. + * Encodes the specified QueryResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryResult.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @static - * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest} message ListSessionEntityTypesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IQueryResult} message QueryResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSessionEntityTypesRequest.encode = function encode(message, writer) { + QueryResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.text != null && Object.hasOwnProperty.call(message, "text")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + $root.google.protobuf.Struct.encode(message.parameters, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.responseMessages != null && message.responseMessages.length) + for (var i = 0; i < message.responseMessages.length; ++i) + $root.google.cloud.dialogflow.cx.v3.ResponseMessage.encode(message.responseMessages[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.webhookPayloads != null && message.webhookPayloads.length) + for (var i = 0; i < message.webhookPayloads.length; ++i) + $root.google.protobuf.Struct.encode(message.webhookPayloads[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) + $root.google.cloud.dialogflow.cx.v3.Page.encode(message.currentPage, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) + $root.google.cloud.dialogflow.cx.v3.Intent.encode(message.intent, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.intentDetectionConfidence != null && Object.hasOwnProperty.call(message, "intentDetectionConfidence")) + writer.uint32(/* id 9, wireType 5 =*/77).float(message.intentDetectionConfidence); + if (message.diagnosticInfo != null && Object.hasOwnProperty.call(message, "diagnosticInfo")) + $root.google.protobuf.Struct.encode(message.diagnosticInfo, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.triggerIntent != null && Object.hasOwnProperty.call(message, "triggerIntent")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.triggerIntent); + if (message.transcript != null && Object.hasOwnProperty.call(message, "transcript")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.transcript); + if (message.webhookStatuses != null && message.webhookStatuses.length) + for (var i = 0; i < message.webhookStatuses.length; ++i) + $root.google.rpc.Status.encode(message.webhookStatuses[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.triggerEvent != null && Object.hasOwnProperty.call(message, "triggerEvent")) + writer.uint32(/* id 14, wireType 2 =*/114).string(message.triggerEvent); + if (message.match != null && Object.hasOwnProperty.call(message, "match")) + $root.google.cloud.dialogflow.cx.v3.Match.encode(message.match, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.sentimentAnalysisResult != null && Object.hasOwnProperty.call(message, "sentimentAnalysisResult")) + $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.encode(message.sentimentAnalysisResult, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListSessionEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest.verify|verify} messages. + * Encodes the specified QueryResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryResult.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @static - * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest} message ListSessionEntityTypesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IQueryResult} message QueryResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSessionEntityTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer. + * Decodes a QueryResult message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest + * @returns {google.cloud.dialogflow.cx.v3.QueryResult} QueryResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSessionEntityTypesRequest.decode = function decode(reader, length) { + QueryResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.QueryResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.text = reader.string(); + break; + case 11: + message.triggerIntent = reader.string(); + break; + case 12: + message.transcript = reader.string(); + break; + case 14: + message.triggerEvent = reader.string(); break; case 2: - message.pageSize = reader.int32(); + message.languageCode = reader.string(); break; case 3: - message.pageToken = reader.string(); + message.parameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 4: + if (!(message.responseMessages && message.responseMessages.length)) + message.responseMessages = []; + message.responseMessages.push($root.google.cloud.dialogflow.cx.v3.ResponseMessage.decode(reader, reader.uint32())); + break; + case 13: + if (!(message.webhookStatuses && message.webhookStatuses.length)) + message.webhookStatuses = []; + message.webhookStatuses.push($root.google.rpc.Status.decode(reader, reader.uint32())); + break; + case 6: + if (!(message.webhookPayloads && message.webhookPayloads.length)) + message.webhookPayloads = []; + message.webhookPayloads.push($root.google.protobuf.Struct.decode(reader, reader.uint32())); + break; + case 7: + message.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.decode(reader, reader.uint32()); + break; + case 8: + message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.decode(reader, reader.uint32()); + break; + case 9: + message.intentDetectionConfidence = reader.float(); + break; + case 15: + message.match = $root.google.cloud.dialogflow.cx.v3.Match.decode(reader, reader.uint32()); + break; + case 10: + message.diagnosticInfo = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 17: + message.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -36231,126 +36172,326 @@ }; /** - * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest + * @returns {google.cloud.dialogflow.cx.v3.QueryResult} QueryResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSessionEntityTypesRequest.decodeDelimited = function decodeDelimited(reader) { + QueryResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListSessionEntityTypesRequest message. + * Verifies a QueryResult message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListSessionEntityTypesRequest.verify = function verify(message) { + QueryResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + var properties = {}; + if (message.text != null && message.hasOwnProperty("text")) { + properties.query = 1; + if (!$util.isString(message.text)) + return "text: string expected"; + } + if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { + if (properties.query === 1) + return "query: multiple values"; + properties.query = 1; + if (!$util.isString(message.triggerIntent)) + return "triggerIntent: string expected"; + } + if (message.transcript != null && message.hasOwnProperty("transcript")) { + if (properties.query === 1) + return "query: multiple values"; + properties.query = 1; + if (!$util.isString(message.transcript)) + return "transcript: string expected"; + } + if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { + if (properties.query === 1) + return "query: multiple values"; + properties.query = 1; + if (!$util.isString(message.triggerEvent)) + return "triggerEvent: string expected"; + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + if (message.parameters != null && message.hasOwnProperty("parameters")) { + var error = $root.google.protobuf.Struct.verify(message.parameters); + if (error) + return "parameters." + error; + } + if (message.responseMessages != null && message.hasOwnProperty("responseMessages")) { + if (!Array.isArray(message.responseMessages)) + return "responseMessages: array expected"; + for (var i = 0; i < message.responseMessages.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.verify(message.responseMessages[i]); + if (error) + return "responseMessages." + error; + } + } + if (message.webhookStatuses != null && message.hasOwnProperty("webhookStatuses")) { + if (!Array.isArray(message.webhookStatuses)) + return "webhookStatuses: array expected"; + for (var i = 0; i < message.webhookStatuses.length; ++i) { + var error = $root.google.rpc.Status.verify(message.webhookStatuses[i]); + if (error) + return "webhookStatuses." + error; + } + } + if (message.webhookPayloads != null && message.hasOwnProperty("webhookPayloads")) { + if (!Array.isArray(message.webhookPayloads)) + return "webhookPayloads: array expected"; + for (var i = 0; i < message.webhookPayloads.length; ++i) { + var error = $root.google.protobuf.Struct.verify(message.webhookPayloads[i]); + if (error) + return "webhookPayloads." + error; + } + } + if (message.currentPage != null && message.hasOwnProperty("currentPage")) { + var error = $root.google.cloud.dialogflow.cx.v3.Page.verify(message.currentPage); + if (error) + return "currentPage." + error; + } + if (message.intent != null && message.hasOwnProperty("intent")) { + var error = $root.google.cloud.dialogflow.cx.v3.Intent.verify(message.intent); + if (error) + return "intent." + error; + } + if (message.intentDetectionConfidence != null && message.hasOwnProperty("intentDetectionConfidence")) + if (typeof message.intentDetectionConfidence !== "number") + return "intentDetectionConfidence: number expected"; + if (message.match != null && message.hasOwnProperty("match")) { + var error = $root.google.cloud.dialogflow.cx.v3.Match.verify(message.match); + if (error) + return "match." + error; + } + if (message.diagnosticInfo != null && message.hasOwnProperty("diagnosticInfo")) { + var error = $root.google.protobuf.Struct.verify(message.diagnosticInfo); + if (error) + return "diagnosticInfo." + error; + } + if (message.sentimentAnalysisResult != null && message.hasOwnProperty("sentimentAnalysisResult")) { + var error = $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.verify(message.sentimentAnalysisResult); + if (error) + return "sentimentAnalysisResult." + error; + } return null; }; /** - * Creates a ListSessionEntityTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest + * @returns {google.cloud.dialogflow.cx.v3.QueryResult} QueryResult */ - ListSessionEntityTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest) + QueryResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.QueryResult) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.cloud.dialogflow.cx.v3.QueryResult(); + if (object.text != null) + message.text = String(object.text); + if (object.triggerIntent != null) + message.triggerIntent = String(object.triggerIntent); + if (object.transcript != null) + message.transcript = String(object.transcript); + if (object.triggerEvent != null) + message.triggerEvent = String(object.triggerEvent); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + if (object.parameters != null) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.parameters: object expected"); + message.parameters = $root.google.protobuf.Struct.fromObject(object.parameters); + } + if (object.responseMessages) { + if (!Array.isArray(object.responseMessages)) + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.responseMessages: array expected"); + message.responseMessages = []; + for (var i = 0; i < object.responseMessages.length; ++i) { + if (typeof object.responseMessages[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.responseMessages: object expected"); + message.responseMessages[i] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.fromObject(object.responseMessages[i]); + } + } + if (object.webhookStatuses) { + if (!Array.isArray(object.webhookStatuses)) + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.webhookStatuses: array expected"); + message.webhookStatuses = []; + for (var i = 0; i < object.webhookStatuses.length; ++i) { + if (typeof object.webhookStatuses[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.webhookStatuses: object expected"); + message.webhookStatuses[i] = $root.google.rpc.Status.fromObject(object.webhookStatuses[i]); + } + } + if (object.webhookPayloads) { + if (!Array.isArray(object.webhookPayloads)) + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.webhookPayloads: array expected"); + message.webhookPayloads = []; + for (var i = 0; i < object.webhookPayloads.length; ++i) { + if (typeof object.webhookPayloads[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.webhookPayloads: object expected"); + message.webhookPayloads[i] = $root.google.protobuf.Struct.fromObject(object.webhookPayloads[i]); + } + } + if (object.currentPage != null) { + if (typeof object.currentPage !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.currentPage: object expected"); + message.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.fromObject(object.currentPage); + } + if (object.intent != null) { + if (typeof object.intent !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.intent: object expected"); + message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.fromObject(object.intent); + } + if (object.intentDetectionConfidence != null) + message.intentDetectionConfidence = Number(object.intentDetectionConfidence); + if (object.match != null) { + if (typeof object.match !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.match: object expected"); + message.match = $root.google.cloud.dialogflow.cx.v3.Match.fromObject(object.match); + } + if (object.diagnosticInfo != null) { + if (typeof object.diagnosticInfo !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.diagnosticInfo: object expected"); + message.diagnosticInfo = $root.google.protobuf.Struct.fromObject(object.diagnosticInfo); + } + if (object.sentimentAnalysisResult != null) { + if (typeof object.sentimentAnalysisResult !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.sentimentAnalysisResult: object expected"); + message.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.fromObject(object.sentimentAnalysisResult); + } return message; }; /** - * Creates a plain object from a ListSessionEntityTypesRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @static - * @param {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest} message ListSessionEntityTypesRequest + * @param {google.cloud.dialogflow.cx.v3.QueryResult} message QueryResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListSessionEntityTypesRequest.toObject = function toObject(message, options) { + QueryResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.responseMessages = []; + object.webhookPayloads = []; + object.webhookStatuses = []; + } if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + object.languageCode = ""; + object.parameters = null; + object.currentPage = null; + object.intent = null; + object.intentDetectionConfidence = 0; + object.diagnosticInfo = null; + object.match = null; + object.sentimentAnalysisResult = null; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (message.text != null && message.hasOwnProperty("text")) { + object.text = message.text; + if (options.oneofs) + object.query = "text"; + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + if (message.parameters != null && message.hasOwnProperty("parameters")) + object.parameters = $root.google.protobuf.Struct.toObject(message.parameters, options); + if (message.responseMessages && message.responseMessages.length) { + object.responseMessages = []; + for (var j = 0; j < message.responseMessages.length; ++j) + object.responseMessages[j] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.toObject(message.responseMessages[j], options); + } + if (message.webhookPayloads && message.webhookPayloads.length) { + object.webhookPayloads = []; + for (var j = 0; j < message.webhookPayloads.length; ++j) + object.webhookPayloads[j] = $root.google.protobuf.Struct.toObject(message.webhookPayloads[j], options); + } + if (message.currentPage != null && message.hasOwnProperty("currentPage")) + object.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.toObject(message.currentPage, options); + if (message.intent != null && message.hasOwnProperty("intent")) + object.intent = $root.google.cloud.dialogflow.cx.v3.Intent.toObject(message.intent, options); + if (message.intentDetectionConfidence != null && message.hasOwnProperty("intentDetectionConfidence")) + object.intentDetectionConfidence = options.json && !isFinite(message.intentDetectionConfidence) ? String(message.intentDetectionConfidence) : message.intentDetectionConfidence; + if (message.diagnosticInfo != null && message.hasOwnProperty("diagnosticInfo")) + object.diagnosticInfo = $root.google.protobuf.Struct.toObject(message.diagnosticInfo, options); + if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { + object.triggerIntent = message.triggerIntent; + if (options.oneofs) + object.query = "triggerIntent"; + } + if (message.transcript != null && message.hasOwnProperty("transcript")) { + object.transcript = message.transcript; + if (options.oneofs) + object.query = "transcript"; + } + if (message.webhookStatuses && message.webhookStatuses.length) { + object.webhookStatuses = []; + for (var j = 0; j < message.webhookStatuses.length; ++j) + object.webhookStatuses[j] = $root.google.rpc.Status.toObject(message.webhookStatuses[j], options); + } + if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { + object.triggerEvent = message.triggerEvent; + if (options.oneofs) + object.query = "triggerEvent"; + } + if (message.match != null && message.hasOwnProperty("match")) + object.match = $root.google.cloud.dialogflow.cx.v3.Match.toObject(message.match, options); + if (message.sentimentAnalysisResult != null && message.hasOwnProperty("sentimentAnalysisResult")) + object.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.toObject(message.sentimentAnalysisResult, options); return object; }; /** - * Converts this ListSessionEntityTypesRequest to JSON. + * Converts this QueryResult to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance * @returns {Object.} JSON object */ - ListSessionEntityTypesRequest.prototype.toJSON = function toJSON() { + QueryResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListSessionEntityTypesRequest; + return QueryResult; })(); - v3.ListSessionEntityTypesResponse = (function() { + v3.TextInput = (function() { /** - * Properties of a ListSessionEntityTypesResponse. + * Properties of a TextInput. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListSessionEntityTypesResponse - * @property {Array.|null} [sessionEntityTypes] ListSessionEntityTypesResponse sessionEntityTypes - * @property {string|null} [nextPageToken] ListSessionEntityTypesResponse nextPageToken + * @interface ITextInput + * @property {string|null} [text] TextInput text */ /** - * Constructs a new ListSessionEntityTypesResponse. + * Constructs a new TextInput. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListSessionEntityTypesResponse. - * @implements IListSessionEntityTypesResponse + * @classdesc Represents a TextInput. + * @implements ITextInput * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ITextInput=} [properties] Properties to set */ - function ListSessionEntityTypesResponse(properties) { - this.sessionEntityTypes = []; + function TextInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36358,91 +36499,75 @@ } /** - * ListSessionEntityTypesResponse sessionEntityTypes. - * @member {Array.} sessionEntityTypes - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse - * @instance - */ - ListSessionEntityTypesResponse.prototype.sessionEntityTypes = $util.emptyArray; - - /** - * ListSessionEntityTypesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse + * TextInput text. + * @member {string} text + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @instance */ - ListSessionEntityTypesResponse.prototype.nextPageToken = ""; + TextInput.prototype.text = ""; /** - * Creates a new ListSessionEntityTypesResponse instance using the specified properties. + * Creates a new TextInput instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @static - * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse instance + * @param {google.cloud.dialogflow.cx.v3.ITextInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TextInput} TextInput instance */ - ListSessionEntityTypesResponse.create = function create(properties) { - return new ListSessionEntityTypesResponse(properties); + TextInput.create = function create(properties) { + return new TextInput(properties); }; /** - * Encodes the specified ListSessionEntityTypesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse.verify|verify} messages. + * Encodes the specified TextInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TextInput.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @static - * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse} message ListSessionEntityTypesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITextInput} message TextInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSessionEntityTypesResponse.encode = function encode(message, writer) { + TextInput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sessionEntityTypes != null && message.sessionEntityTypes.length) - for (var i = 0; i < message.sessionEntityTypes.length; ++i) - $root.google.cloud.dialogflow.cx.v3.SessionEntityType.encode(message.sessionEntityTypes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.text != null && Object.hasOwnProperty.call(message, "text")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); return writer; }; /** - * Encodes the specified ListSessionEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse.verify|verify} messages. + * Encodes the specified TextInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TextInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @static - * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse} message ListSessionEntityTypesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITextInput} message TextInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSessionEntityTypesResponse.encodeDelimited = function encodeDelimited(message, writer) { + TextInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListSessionEntityTypesResponse message from the specified reader or buffer. + * Decodes a TextInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse + * @returns {google.cloud.dialogflow.cx.v3.TextInput} TextInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSessionEntityTypesResponse.decode = function decode(reader, length) { + TextInput.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TextInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.sessionEntityTypes && message.sessionEntityTypes.length)) - message.sessionEntityTypes = []; - message.sessionEntityTypes.push($root.google.cloud.dialogflow.cx.v3.SessionEntityType.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); + message.text = reader.string(); break; default: reader.skipType(tag & 7); @@ -36453,133 +36578,107 @@ }; /** - * Decodes a ListSessionEntityTypesResponse message from the specified reader or buffer, length delimited. + * Decodes a TextInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse + * @returns {google.cloud.dialogflow.cx.v3.TextInput} TextInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSessionEntityTypesResponse.decodeDelimited = function decodeDelimited(reader) { + TextInput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListSessionEntityTypesResponse message. + * Verifies a TextInput message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListSessionEntityTypesResponse.verify = function verify(message) { + TextInput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sessionEntityTypes != null && message.hasOwnProperty("sessionEntityTypes")) { - if (!Array.isArray(message.sessionEntityTypes)) - return "sessionEntityTypes: array expected"; - for (var i = 0; i < message.sessionEntityTypes.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.verify(message.sessionEntityTypes[i]); - if (error) - return "sessionEntityTypes." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.text != null && message.hasOwnProperty("text")) + if (!$util.isString(message.text)) + return "text: string expected"; return null; }; /** - * Creates a ListSessionEntityTypesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a TextInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse + * @returns {google.cloud.dialogflow.cx.v3.TextInput} TextInput */ - ListSessionEntityTypesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse) + TextInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.TextInput) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse(); - if (object.sessionEntityTypes) { - if (!Array.isArray(object.sessionEntityTypes)) - throw TypeError(".google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse.sessionEntityTypes: array expected"); - message.sessionEntityTypes = []; - for (var i = 0; i < object.sessionEntityTypes.length; ++i) { - if (typeof object.sessionEntityTypes[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse.sessionEntityTypes: object expected"); - message.sessionEntityTypes[i] = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.fromObject(object.sessionEntityTypes[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.dialogflow.cx.v3.TextInput(); + if (object.text != null) + message.text = String(object.text); return message; }; /** - * Creates a plain object from a ListSessionEntityTypesResponse message. Also converts values to other types if specified. + * Creates a plain object from a TextInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @static - * @param {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} message ListSessionEntityTypesResponse + * @param {google.cloud.dialogflow.cx.v3.TextInput} message TextInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListSessionEntityTypesResponse.toObject = function toObject(message, options) { + TextInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.sessionEntityTypes = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.sessionEntityTypes && message.sessionEntityTypes.length) { - object.sessionEntityTypes = []; - for (var j = 0; j < message.sessionEntityTypes.length; ++j) - object.sessionEntityTypes[j] = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.toObject(message.sessionEntityTypes[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (options.defaults) + object.text = ""; + if (message.text != null && message.hasOwnProperty("text")) + object.text = message.text; return object; }; /** - * Converts this ListSessionEntityTypesResponse to JSON. + * Converts this TextInput to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @instance * @returns {Object.} JSON object */ - ListSessionEntityTypesResponse.prototype.toJSON = function toJSON() { + TextInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListSessionEntityTypesResponse; + return TextInput; })(); - v3.GetSessionEntityTypeRequest = (function() { + v3.IntentInput = (function() { /** - * Properties of a GetSessionEntityTypeRequest. + * Properties of an IntentInput. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IGetSessionEntityTypeRequest - * @property {string|null} [name] GetSessionEntityTypeRequest name + * @interface IIntentInput + * @property {string|null} [intent] IntentInput intent */ /** - * Constructs a new GetSessionEntityTypeRequest. + * Constructs a new IntentInput. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a GetSessionEntityTypeRequest. - * @implements IGetSessionEntityTypeRequest + * @classdesc Represents an IntentInput. + * @implements IIntentInput * @constructor - * @param {google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IIntentInput=} [properties] Properties to set */ - function GetSessionEntityTypeRequest(properties) { + function IntentInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36587,75 +36686,75 @@ } /** - * GetSessionEntityTypeRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * IntentInput intent. + * @member {string} intent + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @instance */ - GetSessionEntityTypeRequest.prototype.name = ""; + IntentInput.prototype.intent = ""; /** - * Creates a new GetSessionEntityTypeRequest instance using the specified properties. + * Creates a new IntentInput instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @static - * @param {google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest instance + * @param {google.cloud.dialogflow.cx.v3.IIntentInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.IntentInput} IntentInput instance */ - GetSessionEntityTypeRequest.create = function create(properties) { - return new GetSessionEntityTypeRequest(properties); + IntentInput.create = function create(properties) { + return new IntentInput(properties); }; /** - * Encodes the specified GetSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified IntentInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentInput.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @static - * @param {google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest} message GetSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IIntentInput} message IntentInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSessionEntityTypeRequest.encode = function encode(message, writer) { + IntentInput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.intent); return writer; }; /** - * Encodes the specified GetSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified IntentInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @static - * @param {google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest} message GetSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IIntentInput} message IntentInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + IntentInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer. + * Decodes an IntentInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.IntentInput} IntentInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSessionEntityTypeRequest.decode = function decode(reader, length) { + IntentInput.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.IntentInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.intent = reader.string(); break; default: reader.skipType(tag & 7); @@ -36666,108 +36765,108 @@ }; /** - * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes an IntentInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.IntentInput} IntentInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSessionEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + IntentInput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetSessionEntityTypeRequest message. + * Verifies an IntentInput message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetSessionEntityTypeRequest.verify = function verify(message) { + IntentInput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.intent != null && message.hasOwnProperty("intent")) + if (!$util.isString(message.intent)) + return "intent: string expected"; return null; }; /** - * Creates a GetSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates an IntentInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.IntentInput} IntentInput */ - GetSessionEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest) + IntentInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.IntentInput) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3.IntentInput(); + if (object.intent != null) + message.intent = String(object.intent); return message; }; /** - * Creates a plain object from a GetSessionEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from an IntentInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @static - * @param {google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest} message GetSessionEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3.IntentInput} message IntentInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSessionEntityTypeRequest.toObject = function toObject(message, options) { + IntentInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.intent = ""; + if (message.intent != null && message.hasOwnProperty("intent")) + object.intent = message.intent; return object; }; /** - * Converts this GetSessionEntityTypeRequest to JSON. + * Converts this IntentInput to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @instance * @returns {Object.} JSON object */ - GetSessionEntityTypeRequest.prototype.toJSON = function toJSON() { + IntentInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetSessionEntityTypeRequest; + return IntentInput; })(); - v3.CreateSessionEntityTypeRequest = (function() { + v3.AudioInput = (function() { /** - * Properties of a CreateSessionEntityTypeRequest. + * Properties of an AudioInput. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ICreateSessionEntityTypeRequest - * @property {string|null} [parent] CreateSessionEntityTypeRequest parent - * @property {google.cloud.dialogflow.cx.v3.ISessionEntityType|null} [sessionEntityType] CreateSessionEntityTypeRequest sessionEntityType + * @interface IAudioInput + * @property {google.cloud.dialogflow.cx.v3.IInputAudioConfig|null} [config] AudioInput config + * @property {Uint8Array|null} [audio] AudioInput audio */ /** - * Constructs a new CreateSessionEntityTypeRequest. + * Constructs a new AudioInput. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CreateSessionEntityTypeRequest. - * @implements ICreateSessionEntityTypeRequest + * @classdesc Represents an AudioInput. + * @implements IAudioInput * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IAudioInput=} [properties] Properties to set */ - function CreateSessionEntityTypeRequest(properties) { + function AudioInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36775,88 +36874,88 @@ } /** - * CreateSessionEntityTypeRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * AudioInput config. + * @member {google.cloud.dialogflow.cx.v3.IInputAudioConfig|null|undefined} config + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @instance */ - CreateSessionEntityTypeRequest.prototype.parent = ""; + AudioInput.prototype.config = null; /** - * CreateSessionEntityTypeRequest sessionEntityType. - * @member {google.cloud.dialogflow.cx.v3.ISessionEntityType|null|undefined} sessionEntityType - * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * AudioInput audio. + * @member {Uint8Array} audio + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @instance */ - CreateSessionEntityTypeRequest.prototype.sessionEntityType = null; + AudioInput.prototype.audio = $util.newBuffer([]); /** - * Creates a new CreateSessionEntityTypeRequest instance using the specified properties. + * Creates a new AudioInput instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest instance + * @param {google.cloud.dialogflow.cx.v3.IAudioInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.AudioInput} AudioInput instance */ - CreateSessionEntityTypeRequest.create = function create(properties) { - return new CreateSessionEntityTypeRequest(properties); + AudioInput.create = function create(properties) { + return new AudioInput(properties); }; /** - * Encodes the specified CreateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified AudioInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.AudioInput.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest} message CreateSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IAudioInput} message AudioInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateSessionEntityTypeRequest.encode = function encode(message, writer) { + AudioInput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.sessionEntityType != null && Object.hasOwnProperty.call(message, "sessionEntityType")) - $root.google.cloud.dialogflow.cx.v3.SessionEntityType.encode(message.sessionEntityType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.config != null && Object.hasOwnProperty.call(message, "config")) + $root.google.cloud.dialogflow.cx.v3.InputAudioConfig.encode(message.config, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.audio != null && Object.hasOwnProperty.call(message, "audio")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.audio); return writer; }; /** - * Encodes the specified CreateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified AudioInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.AudioInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest} message CreateSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IAudioInput} message AudioInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + AudioInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer. + * Decodes an AudioInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.AudioInput} AudioInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateSessionEntityTypeRequest.decode = function decode(reader, length) { + AudioInput.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.AudioInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.config = $root.google.cloud.dialogflow.cx.v3.InputAudioConfig.decode(reader, reader.uint32()); break; case 2: - message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.decode(reader, reader.uint32()); + message.audio = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -36867,122 +36966,130 @@ }; /** - * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes an AudioInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.AudioInput} AudioInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateSessionEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + AudioInput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateSessionEntityTypeRequest message. + * Verifies an AudioInput message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateSessionEntityTypeRequest.verify = function verify(message) { + AudioInput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) { - var error = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.verify(message.sessionEntityType); + if (message.config != null && message.hasOwnProperty("config")) { + var error = $root.google.cloud.dialogflow.cx.v3.InputAudioConfig.verify(message.config); if (error) - return "sessionEntityType." + error; + return "config." + error; } + if (message.audio != null && message.hasOwnProperty("audio")) + if (!(message.audio && typeof message.audio.length === "number" || $util.isString(message.audio))) + return "audio: buffer expected"; return null; }; /** - * Creates a CreateSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AudioInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.AudioInput} AudioInput */ - CreateSessionEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest) + AudioInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.AudioInput) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.sessionEntityType != null) { - if (typeof object.sessionEntityType !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest.sessionEntityType: object expected"); - message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.fromObject(object.sessionEntityType); + var message = new $root.google.cloud.dialogflow.cx.v3.AudioInput(); + if (object.config != null) { + if (typeof object.config !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.AudioInput.config: object expected"); + message.config = $root.google.cloud.dialogflow.cx.v3.InputAudioConfig.fromObject(object.config); } + if (object.audio != null) + if (typeof object.audio === "string") + $util.base64.decode(object.audio, message.audio = $util.newBuffer($util.base64.length(object.audio)), 0); + else if (object.audio.length) + message.audio = object.audio; return message; }; /** - * Creates a plain object from a CreateSessionEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from an AudioInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @static - * @param {google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest} message CreateSessionEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3.AudioInput} message AudioInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateSessionEntityTypeRequest.toObject = function toObject(message, options) { + AudioInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.sessionEntityType = null; + object.config = null; + if (options.bytes === String) + object.audio = ""; + else { + object.audio = []; + if (options.bytes !== Array) + object.audio = $util.newBuffer(object.audio); + } } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) - object.sessionEntityType = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.toObject(message.sessionEntityType, options); + if (message.config != null && message.hasOwnProperty("config")) + object.config = $root.google.cloud.dialogflow.cx.v3.InputAudioConfig.toObject(message.config, options); + if (message.audio != null && message.hasOwnProperty("audio")) + object.audio = options.bytes === String ? $util.base64.encode(message.audio, 0, message.audio.length) : options.bytes === Array ? Array.prototype.slice.call(message.audio) : message.audio; return object; }; /** - * Converts this CreateSessionEntityTypeRequest to JSON. + * Converts this AudioInput to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @instance * @returns {Object.} JSON object */ - CreateSessionEntityTypeRequest.prototype.toJSON = function toJSON() { + AudioInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateSessionEntityTypeRequest; + return AudioInput; })(); - v3.UpdateSessionEntityTypeRequest = (function() { + v3.EventInput = (function() { /** - * Properties of an UpdateSessionEntityTypeRequest. + * Properties of an EventInput. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IUpdateSessionEntityTypeRequest - * @property {google.cloud.dialogflow.cx.v3.ISessionEntityType|null} [sessionEntityType] UpdateSessionEntityTypeRequest sessionEntityType - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSessionEntityTypeRequest updateMask + * @interface IEventInput + * @property {string|null} [event] EventInput event */ /** - * Constructs a new UpdateSessionEntityTypeRequest. + * Constructs a new EventInput. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an UpdateSessionEntityTypeRequest. - * @implements IUpdateSessionEntityTypeRequest + * @classdesc Represents an EventInput. + * @implements IEventInput * @constructor - * @param {google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IEventInput=} [properties] Properties to set */ - function UpdateSessionEntityTypeRequest(properties) { + function EventInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36990,88 +37097,75 @@ } /** - * UpdateSessionEntityTypeRequest sessionEntityType. - * @member {google.cloud.dialogflow.cx.v3.ISessionEntityType|null|undefined} sessionEntityType - * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest - * @instance - */ - UpdateSessionEntityTypeRequest.prototype.sessionEntityType = null; - - /** - * UpdateSessionEntityTypeRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest + * EventInput event. + * @member {string} event + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @instance */ - UpdateSessionEntityTypeRequest.prototype.updateMask = null; + EventInput.prototype.event = ""; /** - * Creates a new UpdateSessionEntityTypeRequest instance using the specified properties. + * Creates a new EventInput instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest instance + * @param {google.cloud.dialogflow.cx.v3.IEventInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.EventInput} EventInput instance */ - UpdateSessionEntityTypeRequest.create = function create(properties) { - return new UpdateSessionEntityTypeRequest(properties); + EventInput.create = function create(properties) { + return new EventInput(properties); }; /** - * Encodes the specified UpdateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified EventInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EventInput.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest} message UpdateSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IEventInput} message EventInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateSessionEntityTypeRequest.encode = function encode(message, writer) { + EventInput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sessionEntityType != null && Object.hasOwnProperty.call(message, "sessionEntityType")) - $root.google.cloud.dialogflow.cx.v3.SessionEntityType.encode(message.sessionEntityType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.event != null && Object.hasOwnProperty.call(message, "event")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.event); return writer; }; /** - * Encodes the specified UpdateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified EventInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EventInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest} message UpdateSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IEventInput} message EventInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + EventInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateSessionEntityTypeRequest message from the specified reader or buffer. + * Decodes an EventInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.EventInput} EventInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateSessionEntityTypeRequest.decode = function decode(reader, length) { + EventInput.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.EventInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.event = reader.string(); break; default: reader.skipType(tag & 7); @@ -37082,126 +37176,108 @@ }; /** - * Decodes an UpdateSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes an EventInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.EventInput} EventInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateSessionEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + EventInput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateSessionEntityTypeRequest message. + * Verifies an EventInput message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateSessionEntityTypeRequest.verify = function verify(message) { + EventInput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) { - var error = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.verify(message.sessionEntityType); - if (error) - return "sessionEntityType." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + if (message.event != null && message.hasOwnProperty("event")) + if (!$util.isString(message.event)) + return "event: string expected"; return null; }; /** - * Creates an UpdateSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates an EventInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.EventInput} EventInput */ - UpdateSessionEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest) + EventInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.EventInput) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest(); - if (object.sessionEntityType != null) { - if (typeof object.sessionEntityType !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest.sessionEntityType: object expected"); - message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.fromObject(object.sessionEntityType); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.cloud.dialogflow.cx.v3.EventInput(); + if (object.event != null) + message.event = String(object.event); return message; }; /** - * Creates a plain object from an UpdateSessionEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from an EventInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @static - * @param {google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest} message UpdateSessionEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3.EventInput} message EventInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateSessionEntityTypeRequest.toObject = function toObject(message, options) { + EventInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.sessionEntityType = null; - object.updateMask = null; - } - if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) - object.sessionEntityType = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.toObject(message.sessionEntityType, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (options.defaults) + object.event = ""; + if (message.event != null && message.hasOwnProperty("event")) + object.event = message.event; return object; }; /** - * Converts this UpdateSessionEntityTypeRequest to JSON. + * Converts this EventInput to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @instance * @returns {Object.} JSON object */ - UpdateSessionEntityTypeRequest.prototype.toJSON = function toJSON() { + EventInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateSessionEntityTypeRequest; + return EventInput; })(); - v3.DeleteSessionEntityTypeRequest = (function() { + v3.DtmfInput = (function() { /** - * Properties of a DeleteSessionEntityTypeRequest. + * Properties of a DtmfInput. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDeleteSessionEntityTypeRequest - * @property {string|null} [name] DeleteSessionEntityTypeRequest name + * @interface IDtmfInput + * @property {string|null} [digits] DtmfInput digits + * @property {string|null} [finishDigit] DtmfInput finishDigit */ /** - * Constructs a new DeleteSessionEntityTypeRequest. + * Constructs a new DtmfInput. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DeleteSessionEntityTypeRequest. - * @implements IDeleteSessionEntityTypeRequest + * @classdesc Represents a DtmfInput. + * @implements IDtmfInput * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDtmfInput=} [properties] Properties to set */ - function DeleteSessionEntityTypeRequest(properties) { + function DtmfInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37209,75 +37285,88 @@ } /** - * DeleteSessionEntityTypeRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest + * DtmfInput digits. + * @member {string} digits + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @instance */ - DeleteSessionEntityTypeRequest.prototype.name = ""; + DtmfInput.prototype.digits = ""; /** - * Creates a new DeleteSessionEntityTypeRequest instance using the specified properties. + * DtmfInput finishDigit. + * @member {string} finishDigit + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput + * @instance + */ + DtmfInput.prototype.finishDigit = ""; + + /** + * Creates a new DtmfInput instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest instance + * @param {google.cloud.dialogflow.cx.v3.IDtmfInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DtmfInput} DtmfInput instance */ - DeleteSessionEntityTypeRequest.create = function create(properties) { - return new DeleteSessionEntityTypeRequest(properties); + DtmfInput.create = function create(properties) { + return new DtmfInput(properties); }; /** - * Encodes the specified DeleteSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified DtmfInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DtmfInput.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest} message DeleteSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDtmfInput} message DtmfInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteSessionEntityTypeRequest.encode = function encode(message, writer) { + DtmfInput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.digits != null && Object.hasOwnProperty.call(message, "digits")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.digits); + if (message.finishDigit != null && Object.hasOwnProperty.call(message, "finishDigit")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.finishDigit); return writer; }; /** - * Encodes the specified DeleteSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified DtmfInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DtmfInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest} message DeleteSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDtmfInput} message DtmfInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + DtmfInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer. + * Decodes a DtmfInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.DtmfInput} DtmfInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteSessionEntityTypeRequest.decode = function decode(reader, length) { + DtmfInput.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DtmfInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.digits = reader.string(); + break; + case 2: + message.finishDigit = reader.string(); break; default: reader.skipType(tag & 7); @@ -37288,514 +37377,121 @@ }; /** - * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a DtmfInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.DtmfInput} DtmfInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteSessionEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + DtmfInput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteSessionEntityTypeRequest message. + * Verifies a DtmfInput message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteSessionEntityTypeRequest.verify = function verify(message) { + DtmfInput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.digits != null && message.hasOwnProperty("digits")) + if (!$util.isString(message.digits)) + return "digits: string expected"; + if (message.finishDigit != null && message.hasOwnProperty("finishDigit")) + if (!$util.isString(message.finishDigit)) + return "finishDigit: string expected"; return null; }; /** - * Creates a DeleteSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DtmfInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.DtmfInput} DtmfInput */ - DeleteSessionEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest) + DtmfInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DtmfInput) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3.DtmfInput(); + if (object.digits != null) + message.digits = String(object.digits); + if (object.finishDigit != null) + message.finishDigit = String(object.finishDigit); return message; }; /** - * Creates a plain object from a DeleteSessionEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from a DtmfInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @static - * @param {google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest} message DeleteSessionEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3.DtmfInput} message DtmfInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteSessionEntityTypeRequest.toObject = function toObject(message, options) { + DtmfInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.digits = ""; + object.finishDigit = ""; + } + if (message.digits != null && message.hasOwnProperty("digits")) + object.digits = message.digits; + if (message.finishDigit != null && message.hasOwnProperty("finishDigit")) + object.finishDigit = message.finishDigit; return object; }; /** - * Converts this DeleteSessionEntityTypeRequest to JSON. + * Converts this DtmfInput to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest - * @instance - * @returns {Object.} JSON object - */ - DeleteSessionEntityTypeRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return DeleteSessionEntityTypeRequest; - })(); - - v3.TestCases = (function() { - - /** - * Constructs a new TestCases service. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a TestCases - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function TestCases(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (TestCases.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = TestCases; - - /** - * Creates new TestCases service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {TestCases} RPC service. Useful where requests and/or responses are streamed. - */ - TestCases.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#listTestCases}. - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @typedef ListTestCasesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.ListTestCasesResponse} [response] ListTestCasesResponse - */ - - /** - * Calls ListTestCases. - * @function listTestCases - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.IListTestCasesRequest} request ListTestCasesRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.TestCases.ListTestCasesCallback} callback Node-style callback called with the error, if any, and ListTestCasesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestCases.prototype.listTestCases = function listTestCases(request, callback) { - return this.rpcCall(listTestCases, $root.google.cloud.dialogflow.cx.v3.ListTestCasesRequest, $root.google.cloud.dialogflow.cx.v3.ListTestCasesResponse, request, callback); - }, "name", { value: "ListTestCases" }); - - /** - * Calls ListTestCases. - * @function listTestCases - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.IListTestCasesRequest} request ListTestCasesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#batchDeleteTestCases}. - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @typedef BatchDeleteTestCasesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty - */ - - /** - * Calls BatchDeleteTestCases. - * @function batchDeleteTestCases - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest} request BatchDeleteTestCasesRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.TestCases.BatchDeleteTestCasesCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestCases.prototype.batchDeleteTestCases = function batchDeleteTestCases(request, callback) { - return this.rpcCall(batchDeleteTestCases, $root.google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "BatchDeleteTestCases" }); - - /** - * Calls BatchDeleteTestCases. - * @function batchDeleteTestCases - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest} request BatchDeleteTestCasesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#getTestCase}. - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @typedef GetTestCaseCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.TestCase} [response] TestCase - */ - - /** - * Calls GetTestCase. - * @function getTestCase - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetTestCaseRequest} request GetTestCaseRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.TestCases.GetTestCaseCallback} callback Node-style callback called with the error, if any, and TestCase - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestCases.prototype.getTestCase = function getTestCase(request, callback) { - return this.rpcCall(getTestCase, $root.google.cloud.dialogflow.cx.v3.GetTestCaseRequest, $root.google.cloud.dialogflow.cx.v3.TestCase, request, callback); - }, "name", { value: "GetTestCase" }); - - /** - * Calls GetTestCase. - * @function getTestCase - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetTestCaseRequest} request GetTestCaseRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#createTestCase}. - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @typedef CreateTestCaseCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.TestCase} [response] TestCase - */ - - /** - * Calls CreateTestCase. - * @function createTestCase - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest} request CreateTestCaseRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.TestCases.CreateTestCaseCallback} callback Node-style callback called with the error, if any, and TestCase - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestCases.prototype.createTestCase = function createTestCase(request, callback) { - return this.rpcCall(createTestCase, $root.google.cloud.dialogflow.cx.v3.CreateTestCaseRequest, $root.google.cloud.dialogflow.cx.v3.TestCase, request, callback); - }, "name", { value: "CreateTestCase" }); - - /** - * Calls CreateTestCase. - * @function createTestCase - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest} request CreateTestCaseRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#updateTestCase}. - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @typedef UpdateTestCaseCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.TestCase} [response] TestCase - */ - - /** - * Calls UpdateTestCase. - * @function updateTestCase - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest} request UpdateTestCaseRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.TestCases.UpdateTestCaseCallback} callback Node-style callback called with the error, if any, and TestCase - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestCases.prototype.updateTestCase = function updateTestCase(request, callback) { - return this.rpcCall(updateTestCase, $root.google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest, $root.google.cloud.dialogflow.cx.v3.TestCase, request, callback); - }, "name", { value: "UpdateTestCase" }); - - /** - * Calls UpdateTestCase. - * @function updateTestCase - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest} request UpdateTestCaseRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#runTestCase}. - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @typedef RunTestCaseCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls RunTestCase. - * @function runTestCase - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseRequest} request RunTestCaseRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.TestCases.RunTestCaseCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestCases.prototype.runTestCase = function runTestCase(request, callback) { - return this.rpcCall(runTestCase, $root.google.cloud.dialogflow.cx.v3.RunTestCaseRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "RunTestCase" }); - - /** - * Calls RunTestCase. - * @function runTestCase - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseRequest} request RunTestCaseRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#batchRunTestCases}. - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @typedef BatchRunTestCasesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls BatchRunTestCases. - * @function batchRunTestCases - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest} request BatchRunTestCasesRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.TestCases.BatchRunTestCasesCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestCases.prototype.batchRunTestCases = function batchRunTestCases(request, callback) { - return this.rpcCall(batchRunTestCases, $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "BatchRunTestCases" }); - - /** - * Calls BatchRunTestCases. - * @function batchRunTestCases - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest} request BatchRunTestCasesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#calculateCoverage}. - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @typedef CalculateCoverageCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.CalculateCoverageResponse} [response] CalculateCoverageResponse - */ - - /** - * Calls CalculateCoverage. - * @function calculateCoverage - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest} request CalculateCoverageRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.TestCases.CalculateCoverageCallback} callback Node-style callback called with the error, if any, and CalculateCoverageResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestCases.prototype.calculateCoverage = function calculateCoverage(request, callback) { - return this.rpcCall(calculateCoverage, $root.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest, $root.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse, request, callback); - }, "name", { value: "CalculateCoverage" }); - - /** - * Calls CalculateCoverage. - * @function calculateCoverage - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest} request CalculateCoverageRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#importTestCases}. - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @typedef ImportTestCasesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls ImportTestCases. - * @function importTestCases - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesRequest} request ImportTestCasesRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.TestCases.ImportTestCasesCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestCases.prototype.importTestCases = function importTestCases(request, callback) { - return this.rpcCall(importTestCases, $root.google.cloud.dialogflow.cx.v3.ImportTestCasesRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "ImportTestCases" }); - - /** - * Calls ImportTestCases. - * @function importTestCases - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesRequest} request ImportTestCasesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#exportTestCases}. - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @typedef ExportTestCasesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls ExportTestCases. - * @function exportTestCases - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesRequest} request ExportTestCasesRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.TestCases.ExportTestCasesCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestCases.prototype.exportTestCases = function exportTestCases(request, callback) { - return this.rpcCall(exportTestCases, $root.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "ExportTestCases" }); - - /** - * Calls ExportTestCases. - * @function exportTestCases - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesRequest} request ExportTestCasesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#listTestCaseResults}. - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @typedef ListTestCaseResultsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse} [response] ListTestCaseResultsResponse - */ - - /** - * Calls ListTestCaseResults. - * @function listTestCaseResults - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest} request ListTestCaseResultsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.TestCases.ListTestCaseResultsCallback} callback Node-style callback called with the error, if any, and ListTestCaseResultsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestCases.prototype.listTestCaseResults = function listTestCaseResults(request, callback) { - return this.rpcCall(listTestCaseResults, $root.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest, $root.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse, request, callback); - }, "name", { value: "ListTestCaseResults" }); - - /** - * Calls ListTestCaseResults. - * @function listTestCaseResults - * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @instance - * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest} request ListTestCaseResultsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + DtmfInput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return TestCases; + return DtmfInput; })(); - v3.TestCase = (function() { + v3.Match = (function() { /** - * Properties of a TestCase. + * Properties of a Match. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ITestCase - * @property {string|null} [name] TestCase name - * @property {Array.|null} [tags] TestCase tags - * @property {string|null} [displayName] TestCase displayName - * @property {string|null} [notes] TestCase notes - * @property {google.cloud.dialogflow.cx.v3.ITestConfig|null} [testConfig] TestCase testConfig - * @property {Array.|null} [testCaseConversationTurns] TestCase testCaseConversationTurns - * @property {google.protobuf.ITimestamp|null} [creationTime] TestCase creationTime - * @property {google.cloud.dialogflow.cx.v3.ITestCaseResult|null} [lastTestResult] TestCase lastTestResult + * @interface IMatch + * @property {google.cloud.dialogflow.cx.v3.IIntent|null} [intent] Match intent + * @property {string|null} [event] Match event + * @property {google.protobuf.IStruct|null} [parameters] Match parameters + * @property {string|null} [resolvedInput] Match resolvedInput + * @property {google.cloud.dialogflow.cx.v3.Match.MatchType|null} [matchType] Match matchType + * @property {number|null} [confidence] Match confidence */ /** - * Constructs a new TestCase. + * Constructs a new Match. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a TestCase. - * @implements ITestCase + * @classdesc Represents a Match. + * @implements IMatch * @constructor - * @param {google.cloud.dialogflow.cx.v3.ITestCase=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IMatch=} [properties] Properties to set */ - function TestCase(properties) { - this.tags = []; - this.testCaseConversationTurns = []; + function Match(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37803,172 +37499,140 @@ } /** - * TestCase name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.TestCase - * @instance - */ - TestCase.prototype.name = ""; - - /** - * TestCase tags. - * @member {Array.} tags - * @memberof google.cloud.dialogflow.cx.v3.TestCase - * @instance - */ - TestCase.prototype.tags = $util.emptyArray; - - /** - * TestCase displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3.TestCase + * Match intent. + * @member {google.cloud.dialogflow.cx.v3.IIntent|null|undefined} intent + * @memberof google.cloud.dialogflow.cx.v3.Match * @instance */ - TestCase.prototype.displayName = ""; + Match.prototype.intent = null; /** - * TestCase notes. - * @member {string} notes - * @memberof google.cloud.dialogflow.cx.v3.TestCase + * Match event. + * @member {string} event + * @memberof google.cloud.dialogflow.cx.v3.Match * @instance */ - TestCase.prototype.notes = ""; + Match.prototype.event = ""; /** - * TestCase testConfig. - * @member {google.cloud.dialogflow.cx.v3.ITestConfig|null|undefined} testConfig - * @memberof google.cloud.dialogflow.cx.v3.TestCase + * Match parameters. + * @member {google.protobuf.IStruct|null|undefined} parameters + * @memberof google.cloud.dialogflow.cx.v3.Match * @instance */ - TestCase.prototype.testConfig = null; + Match.prototype.parameters = null; /** - * TestCase testCaseConversationTurns. - * @member {Array.} testCaseConversationTurns - * @memberof google.cloud.dialogflow.cx.v3.TestCase + * Match resolvedInput. + * @member {string} resolvedInput + * @memberof google.cloud.dialogflow.cx.v3.Match * @instance */ - TestCase.prototype.testCaseConversationTurns = $util.emptyArray; + Match.prototype.resolvedInput = ""; /** - * TestCase creationTime. - * @member {google.protobuf.ITimestamp|null|undefined} creationTime - * @memberof google.cloud.dialogflow.cx.v3.TestCase + * Match matchType. + * @member {google.cloud.dialogflow.cx.v3.Match.MatchType} matchType + * @memberof google.cloud.dialogflow.cx.v3.Match * @instance */ - TestCase.prototype.creationTime = null; + Match.prototype.matchType = 0; /** - * TestCase lastTestResult. - * @member {google.cloud.dialogflow.cx.v3.ITestCaseResult|null|undefined} lastTestResult - * @memberof google.cloud.dialogflow.cx.v3.TestCase + * Match confidence. + * @member {number} confidence + * @memberof google.cloud.dialogflow.cx.v3.Match * @instance */ - TestCase.prototype.lastTestResult = null; + Match.prototype.confidence = 0; /** - * Creates a new TestCase instance using the specified properties. + * Creates a new Match instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.TestCase + * @memberof google.cloud.dialogflow.cx.v3.Match * @static - * @param {google.cloud.dialogflow.cx.v3.ITestCase=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.TestCase} TestCase instance + * @param {google.cloud.dialogflow.cx.v3.IMatch=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Match} Match instance */ - TestCase.create = function create(properties) { - return new TestCase(properties); + Match.create = function create(properties) { + return new Match(properties); }; /** - * Encodes the specified TestCase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCase.verify|verify} messages. + * Encodes the specified Match message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Match.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.TestCase + * @memberof google.cloud.dialogflow.cx.v3.Match * @static - * @param {google.cloud.dialogflow.cx.v3.ITestCase} message TestCase message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IMatch} message Match message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestCase.encode = function encode(message, writer) { + Match.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.tags != null && message.tags.length) - for (var i = 0; i < message.tags.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.tags[i]); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); - if (message.notes != null && Object.hasOwnProperty.call(message, "notes")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.notes); - if (message.testCaseConversationTurns != null && message.testCaseConversationTurns.length) - for (var i = 0; i < message.testCaseConversationTurns.length; ++i) - $root.google.cloud.dialogflow.cx.v3.ConversationTurn.encode(message.testCaseConversationTurns[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.creationTime != null && Object.hasOwnProperty.call(message, "creationTime")) - $root.google.protobuf.Timestamp.encode(message.creationTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.lastTestResult != null && Object.hasOwnProperty.call(message, "lastTestResult")) - $root.google.cloud.dialogflow.cx.v3.TestCaseResult.encode(message.lastTestResult, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.testConfig != null && Object.hasOwnProperty.call(message, "testConfig")) - $root.google.cloud.dialogflow.cx.v3.TestConfig.encode(message.testConfig, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) + $root.google.cloud.dialogflow.cx.v3.Intent.encode(message.intent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + $root.google.protobuf.Struct.encode(message.parameters, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.resolvedInput != null && Object.hasOwnProperty.call(message, "resolvedInput")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.resolvedInput); + if (message.matchType != null && Object.hasOwnProperty.call(message, "matchType")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.matchType); + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) + writer.uint32(/* id 5, wireType 5 =*/45).float(message.confidence); + if (message.event != null && Object.hasOwnProperty.call(message, "event")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.event); return writer; }; /** - * Encodes the specified TestCase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCase.verify|verify} messages. + * Encodes the specified Match message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Match.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TestCase + * @memberof google.cloud.dialogflow.cx.v3.Match * @static - * @param {google.cloud.dialogflow.cx.v3.ITestCase} message TestCase message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IMatch} message Match message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestCase.encodeDelimited = function encodeDelimited(message, writer) { + Match.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestCase message from the specified reader or buffer. + * Decodes a Match message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.TestCase + * @memberof google.cloud.dialogflow.cx.v3.Match * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.TestCase} TestCase + * @returns {google.cloud.dialogflow.cx.v3.Match} Match * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestCase.decode = function decode(reader, length) { + Match.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TestCase(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Match(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.decode(reader, reader.uint32()); + break; + case 6: + message.event = reader.string(); break; case 2: - if (!(message.tags && message.tags.length)) - message.tags = []; - message.tags.push(reader.string()); + message.parameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); break; case 3: - message.displayName = reader.string(); + message.resolvedInput = reader.string(); break; case 4: - message.notes = reader.string(); - break; - case 13: - message.testConfig = $root.google.cloud.dialogflow.cx.v3.TestConfig.decode(reader, reader.uint32()); + message.matchType = reader.int32(); break; case 5: - if (!(message.testCaseConversationTurns && message.testCaseConversationTurns.length)) - message.testCaseConversationTurns = []; - message.testCaseConversationTurns.push($root.google.cloud.dialogflow.cx.v3.ConversationTurn.decode(reader, reader.uint32())); - break; - case 10: - message.creationTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 12: - message.lastTestResult = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.decode(reader, reader.uint32()); + message.confidence = reader.float(); break; default: reader.skipType(tag & 7); @@ -37979,215 +37643,222 @@ }; /** - * Decodes a TestCase message from the specified reader or buffer, length delimited. + * Decodes a Match message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TestCase + * @memberof google.cloud.dialogflow.cx.v3.Match * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.TestCase} TestCase + * @returns {google.cloud.dialogflow.cx.v3.Match} Match * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestCase.decodeDelimited = function decodeDelimited(reader) { + Match.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestCase message. + * Verifies a Match message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.TestCase + * @memberof google.cloud.dialogflow.cx.v3.Match * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestCase.verify = function verify(message) { + Match.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.tags != null && message.hasOwnProperty("tags")) { - if (!Array.isArray(message.tags)) - return "tags: array expected"; - for (var i = 0; i < message.tags.length; ++i) - if (!$util.isString(message.tags[i])) - return "tags: string[] expected"; - } - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.notes != null && message.hasOwnProperty("notes")) - if (!$util.isString(message.notes)) - return "notes: string expected"; - if (message.testConfig != null && message.hasOwnProperty("testConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3.TestConfig.verify(message.testConfig); - if (error) - return "testConfig." + error; - } - if (message.testCaseConversationTurns != null && message.hasOwnProperty("testCaseConversationTurns")) { - if (!Array.isArray(message.testCaseConversationTurns)) - return "testCaseConversationTurns: array expected"; - for (var i = 0; i < message.testCaseConversationTurns.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.verify(message.testCaseConversationTurns[i]); - if (error) - return "testCaseConversationTurns." + error; - } - } - if (message.creationTime != null && message.hasOwnProperty("creationTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.creationTime); + if (message.intent != null && message.hasOwnProperty("intent")) { + var error = $root.google.cloud.dialogflow.cx.v3.Intent.verify(message.intent); if (error) - return "creationTime." + error; + return "intent." + error; } - if (message.lastTestResult != null && message.hasOwnProperty("lastTestResult")) { - var error = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.verify(message.lastTestResult); + if (message.event != null && message.hasOwnProperty("event")) + if (!$util.isString(message.event)) + return "event: string expected"; + if (message.parameters != null && message.hasOwnProperty("parameters")) { + var error = $root.google.protobuf.Struct.verify(message.parameters); if (error) - return "lastTestResult." + error; + return "parameters." + error; } + if (message.resolvedInput != null && message.hasOwnProperty("resolvedInput")) + if (!$util.isString(message.resolvedInput)) + return "resolvedInput: string expected"; + if (message.matchType != null && message.hasOwnProperty("matchType")) + switch (message.matchType) { + default: + return "matchType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.confidence != null && message.hasOwnProperty("confidence")) + if (typeof message.confidence !== "number") + return "confidence: number expected"; return null; }; /** - * Creates a TestCase message from a plain object. Also converts values to their respective internal types. + * Creates a Match message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.TestCase + * @memberof google.cloud.dialogflow.cx.v3.Match * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.TestCase} TestCase + * @returns {google.cloud.dialogflow.cx.v3.Match} Match */ - TestCase.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.TestCase) + Match.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Match) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.TestCase(); - if (object.name != null) - message.name = String(object.name); - if (object.tags) { - if (!Array.isArray(object.tags)) - throw TypeError(".google.cloud.dialogflow.cx.v3.TestCase.tags: array expected"); - message.tags = []; - for (var i = 0; i < object.tags.length; ++i) - message.tags[i] = String(object.tags[i]); - } - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.notes != null) - message.notes = String(object.notes); - if (object.testConfig != null) { - if (typeof object.testConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TestCase.testConfig: object expected"); - message.testConfig = $root.google.cloud.dialogflow.cx.v3.TestConfig.fromObject(object.testConfig); - } - if (object.testCaseConversationTurns) { - if (!Array.isArray(object.testCaseConversationTurns)) - throw TypeError(".google.cloud.dialogflow.cx.v3.TestCase.testCaseConversationTurns: array expected"); - message.testCaseConversationTurns = []; - for (var i = 0; i < object.testCaseConversationTurns.length; ++i) { - if (typeof object.testCaseConversationTurns[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TestCase.testCaseConversationTurns: object expected"); - message.testCaseConversationTurns[i] = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.fromObject(object.testCaseConversationTurns[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3.Match(); + if (object.intent != null) { + if (typeof object.intent !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Match.intent: object expected"); + message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.fromObject(object.intent); } - if (object.creationTime != null) { - if (typeof object.creationTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TestCase.creationTime: object expected"); - message.creationTime = $root.google.protobuf.Timestamp.fromObject(object.creationTime); + if (object.event != null) + message.event = String(object.event); + if (object.parameters != null) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Match.parameters: object expected"); + message.parameters = $root.google.protobuf.Struct.fromObject(object.parameters); } - if (object.lastTestResult != null) { - if (typeof object.lastTestResult !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TestCase.lastTestResult: object expected"); - message.lastTestResult = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.fromObject(object.lastTestResult); + if (object.resolvedInput != null) + message.resolvedInput = String(object.resolvedInput); + switch (object.matchType) { + case "MATCH_TYPE_UNSPECIFIED": + case 0: + message.matchType = 0; + break; + case "INTENT": + case 1: + message.matchType = 1; + break; + case "DIRECT_INTENT": + case 2: + message.matchType = 2; + break; + case "PARAMETER_FILLING": + case 3: + message.matchType = 3; + break; + case "NO_MATCH": + case 4: + message.matchType = 4; + break; + case "NO_INPUT": + case 5: + message.matchType = 5; + break; + case "EVENT": + case 6: + message.matchType = 6; + break; } + if (object.confidence != null) + message.confidence = Number(object.confidence); return message; }; /** - * Creates a plain object from a TestCase message. Also converts values to other types if specified. + * Creates a plain object from a Match message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.TestCase + * @memberof google.cloud.dialogflow.cx.v3.Match * @static - * @param {google.cloud.dialogflow.cx.v3.TestCase} message TestCase + * @param {google.cloud.dialogflow.cx.v3.Match} message Match * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestCase.toObject = function toObject(message, options) { + Match.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.tags = []; - object.testCaseConversationTurns = []; - } if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.notes = ""; - object.creationTime = null; - object.lastTestResult = null; - object.testConfig = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.tags && message.tags.length) { - object.tags = []; - for (var j = 0; j < message.tags.length; ++j) - object.tags[j] = message.tags[j]; - } - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.notes != null && message.hasOwnProperty("notes")) - object.notes = message.notes; - if (message.testCaseConversationTurns && message.testCaseConversationTurns.length) { - object.testCaseConversationTurns = []; - for (var j = 0; j < message.testCaseConversationTurns.length; ++j) - object.testCaseConversationTurns[j] = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.toObject(message.testCaseConversationTurns[j], options); + object.intent = null; + object.parameters = null; + object.resolvedInput = ""; + object.matchType = options.enums === String ? "MATCH_TYPE_UNSPECIFIED" : 0; + object.confidence = 0; + object.event = ""; } - if (message.creationTime != null && message.hasOwnProperty("creationTime")) - object.creationTime = $root.google.protobuf.Timestamp.toObject(message.creationTime, options); - if (message.lastTestResult != null && message.hasOwnProperty("lastTestResult")) - object.lastTestResult = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.toObject(message.lastTestResult, options); - if (message.testConfig != null && message.hasOwnProperty("testConfig")) - object.testConfig = $root.google.cloud.dialogflow.cx.v3.TestConfig.toObject(message.testConfig, options); + if (message.intent != null && message.hasOwnProperty("intent")) + object.intent = $root.google.cloud.dialogflow.cx.v3.Intent.toObject(message.intent, options); + if (message.parameters != null && message.hasOwnProperty("parameters")) + object.parameters = $root.google.protobuf.Struct.toObject(message.parameters, options); + if (message.resolvedInput != null && message.hasOwnProperty("resolvedInput")) + object.resolvedInput = message.resolvedInput; + if (message.matchType != null && message.hasOwnProperty("matchType")) + object.matchType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.Match.MatchType[message.matchType] : message.matchType; + if (message.confidence != null && message.hasOwnProperty("confidence")) + object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; + if (message.event != null && message.hasOwnProperty("event")) + object.event = message.event; return object; }; /** - * Converts this TestCase to JSON. + * Converts this Match to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.TestCase + * @memberof google.cloud.dialogflow.cx.v3.Match * @instance * @returns {Object.} JSON object */ - TestCase.prototype.toJSON = function toJSON() { + Match.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TestCase; + /** + * MatchType enum. + * @name google.cloud.dialogflow.cx.v3.Match.MatchType + * @enum {number} + * @property {number} MATCH_TYPE_UNSPECIFIED=0 MATCH_TYPE_UNSPECIFIED value + * @property {number} INTENT=1 INTENT value + * @property {number} DIRECT_INTENT=2 DIRECT_INTENT value + * @property {number} PARAMETER_FILLING=3 PARAMETER_FILLING value + * @property {number} NO_MATCH=4 NO_MATCH value + * @property {number} NO_INPUT=5 NO_INPUT value + * @property {number} EVENT=6 EVENT value + */ + Match.MatchType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MATCH_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "INTENT"] = 1; + values[valuesById[2] = "DIRECT_INTENT"] = 2; + values[valuesById[3] = "PARAMETER_FILLING"] = 3; + values[valuesById[4] = "NO_MATCH"] = 4; + values[valuesById[5] = "NO_INPUT"] = 5; + values[valuesById[6] = "EVENT"] = 6; + return values; + })(); + + return Match; })(); - v3.TestCaseResult = (function() { + v3.MatchIntentRequest = (function() { /** - * Properties of a TestCaseResult. + * Properties of a MatchIntentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ITestCaseResult - * @property {string|null} [name] TestCaseResult name - * @property {string|null} [environment] TestCaseResult environment - * @property {Array.|null} [conversationTurns] TestCaseResult conversationTurns - * @property {google.cloud.dialogflow.cx.v3.TestResult|null} [testResult] TestCaseResult testResult - * @property {google.protobuf.ITimestamp|null} [testTime] TestCaseResult testTime + * @interface IMatchIntentRequest + * @property {string|null} [session] MatchIntentRequest session + * @property {google.cloud.dialogflow.cx.v3.IQueryParameters|null} [queryParams] MatchIntentRequest queryParams + * @property {google.cloud.dialogflow.cx.v3.IQueryInput|null} [queryInput] MatchIntentRequest queryInput */ /** - * Constructs a new TestCaseResult. + * Constructs a new MatchIntentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a TestCaseResult. - * @implements ITestCaseResult + * @classdesc Represents a MatchIntentRequest. + * @implements IMatchIntentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.ITestCaseResult=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IMatchIntentRequest=} [properties] Properties to set */ - function TestCaseResult(properties) { - this.conversationTurns = []; + function MatchIntentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38195,130 +37866,101 @@ } /** - * TestCaseResult name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult - * @instance - */ - TestCaseResult.prototype.name = ""; - - /** - * TestCaseResult environment. - * @member {string} environment - * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult - * @instance - */ - TestCaseResult.prototype.environment = ""; - - /** - * TestCaseResult conversationTurns. - * @member {Array.} conversationTurns - * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * MatchIntentRequest session. + * @member {string} session + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest * @instance */ - TestCaseResult.prototype.conversationTurns = $util.emptyArray; + MatchIntentRequest.prototype.session = ""; /** - * TestCaseResult testResult. - * @member {google.cloud.dialogflow.cx.v3.TestResult} testResult - * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * MatchIntentRequest queryParams. + * @member {google.cloud.dialogflow.cx.v3.IQueryParameters|null|undefined} queryParams + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest * @instance */ - TestCaseResult.prototype.testResult = 0; + MatchIntentRequest.prototype.queryParams = null; /** - * TestCaseResult testTime. - * @member {google.protobuf.ITimestamp|null|undefined} testTime - * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * MatchIntentRequest queryInput. + * @member {google.cloud.dialogflow.cx.v3.IQueryInput|null|undefined} queryInput + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest * @instance */ - TestCaseResult.prototype.testTime = null; + MatchIntentRequest.prototype.queryInput = null; /** - * Creates a new TestCaseResult instance using the specified properties. + * Creates a new MatchIntentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ITestCaseResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.TestCaseResult} TestCaseResult instance + * @param {google.cloud.dialogflow.cx.v3.IMatchIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.MatchIntentRequest} MatchIntentRequest instance */ - TestCaseResult.create = function create(properties) { - return new TestCaseResult(properties); + MatchIntentRequest.create = function create(properties) { + return new MatchIntentRequest(properties); }; /** - * Encodes the specified TestCaseResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCaseResult.verify|verify} messages. + * Encodes the specified MatchIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ITestCaseResult} message TestCaseResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IMatchIntentRequest} message MatchIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestCaseResult.encode = function encode(message, writer) { + MatchIntentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.environment); - if (message.conversationTurns != null && message.conversationTurns.length) - for (var i = 0; i < message.conversationTurns.length; ++i) - $root.google.cloud.dialogflow.cx.v3.ConversationTurn.encode(message.conversationTurns[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.testResult != null && Object.hasOwnProperty.call(message, "testResult")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.testResult); - if (message.testTime != null && Object.hasOwnProperty.call(message, "testTime")) - $root.google.protobuf.Timestamp.encode(message.testTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.session != null && Object.hasOwnProperty.call(message, "session")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.session); + if (message.queryParams != null && Object.hasOwnProperty.call(message, "queryParams")) + $root.google.cloud.dialogflow.cx.v3.QueryParameters.encode(message.queryParams, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.queryInput != null && Object.hasOwnProperty.call(message, "queryInput")) + $root.google.cloud.dialogflow.cx.v3.QueryInput.encode(message.queryInput, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified TestCaseResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCaseResult.verify|verify} messages. + * Encodes the specified MatchIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ITestCaseResult} message TestCaseResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IMatchIntentRequest} message MatchIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestCaseResult.encodeDelimited = function encodeDelimited(message, writer) { + MatchIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestCaseResult message from the specified reader or buffer. + * Decodes a MatchIntentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.TestCaseResult} TestCaseResult + * @returns {google.cloud.dialogflow.cx.v3.MatchIntentRequest} MatchIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestCaseResult.decode = function decode(reader, length) { + MatchIntentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TestCaseResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.session = reader.string(); break; case 2: - message.environment = reader.string(); + message.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.decode(reader, reader.uint32()); break; case 3: - if (!(message.conversationTurns && message.conversationTurns.length)) - message.conversationTurns = []; - message.conversationTurns.push($root.google.cloud.dialogflow.cx.v3.ConversationTurn.decode(reader, reader.uint32())); - break; - case 4: - message.testResult = reader.int32(); - break; - case 5: - message.testTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -38329,183 +37971,140 @@ }; /** - * Decodes a TestCaseResult message from the specified reader or buffer, length delimited. + * Decodes a MatchIntentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.TestCaseResult} TestCaseResult + * @returns {google.cloud.dialogflow.cx.v3.MatchIntentRequest} MatchIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestCaseResult.decodeDelimited = function decodeDelimited(reader) { + MatchIntentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestCaseResult message. + * Verifies a MatchIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestCaseResult.verify = function verify(message) { + MatchIntentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.environment != null && message.hasOwnProperty("environment")) - if (!$util.isString(message.environment)) - return "environment: string expected"; - if (message.conversationTurns != null && message.hasOwnProperty("conversationTurns")) { - if (!Array.isArray(message.conversationTurns)) - return "conversationTurns: array expected"; - for (var i = 0; i < message.conversationTurns.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.verify(message.conversationTurns[i]); - if (error) - return "conversationTurns." + error; - } + if (message.session != null && message.hasOwnProperty("session")) + if (!$util.isString(message.session)) + return "session: string expected"; + if (message.queryParams != null && message.hasOwnProperty("queryParams")) { + var error = $root.google.cloud.dialogflow.cx.v3.QueryParameters.verify(message.queryParams); + if (error) + return "queryParams." + error; } - if (message.testResult != null && message.hasOwnProperty("testResult")) - switch (message.testResult) { - default: - return "testResult: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.testTime != null && message.hasOwnProperty("testTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.testTime); + if (message.queryInput != null && message.hasOwnProperty("queryInput")) { + var error = $root.google.cloud.dialogflow.cx.v3.QueryInput.verify(message.queryInput); if (error) - return "testTime." + error; + return "queryInput." + error; } return null; }; /** - * Creates a TestCaseResult message from a plain object. Also converts values to their respective internal types. + * Creates a MatchIntentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.TestCaseResult} TestCaseResult + * @returns {google.cloud.dialogflow.cx.v3.MatchIntentRequest} MatchIntentRequest */ - TestCaseResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.TestCaseResult) + MatchIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.TestCaseResult(); - if (object.name != null) - message.name = String(object.name); - if (object.environment != null) - message.environment = String(object.environment); - if (object.conversationTurns) { - if (!Array.isArray(object.conversationTurns)) - throw TypeError(".google.cloud.dialogflow.cx.v3.TestCaseResult.conversationTurns: array expected"); - message.conversationTurns = []; - for (var i = 0; i < object.conversationTurns.length; ++i) { - if (typeof object.conversationTurns[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TestCaseResult.conversationTurns: object expected"); - message.conversationTurns[i] = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.fromObject(object.conversationTurns[i]); - } - } - switch (object.testResult) { - case "TEST_RESULT_UNSPECIFIED": - case 0: - message.testResult = 0; - break; - case "PASSED": - case 1: - message.testResult = 1; - break; - case "FAILED": - case 2: - message.testResult = 2; - break; + var message = new $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest(); + if (object.session != null) + message.session = String(object.session); + if (object.queryParams != null) { + if (typeof object.queryParams !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.MatchIntentRequest.queryParams: object expected"); + message.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.fromObject(object.queryParams); } - if (object.testTime != null) { - if (typeof object.testTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TestCaseResult.testTime: object expected"); - message.testTime = $root.google.protobuf.Timestamp.fromObject(object.testTime); + if (object.queryInput != null) { + if (typeof object.queryInput !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.MatchIntentRequest.queryInput: object expected"); + message.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.fromObject(object.queryInput); } return message; }; /** - * Creates a plain object from a TestCaseResult message. Also converts values to other types if specified. + * Creates a plain object from a MatchIntentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.TestCaseResult} message TestCaseResult + * @param {google.cloud.dialogflow.cx.v3.MatchIntentRequest} message MatchIntentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestCaseResult.toObject = function toObject(message, options) { + MatchIntentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.conversationTurns = []; if (options.defaults) { - object.name = ""; - object.environment = ""; - object.testResult = options.enums === String ? "TEST_RESULT_UNSPECIFIED" : 0; - object.testTime = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = message.environment; - if (message.conversationTurns && message.conversationTurns.length) { - object.conversationTurns = []; - for (var j = 0; j < message.conversationTurns.length; ++j) - object.conversationTurns[j] = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.toObject(message.conversationTurns[j], options); + object.session = ""; + object.queryParams = null; + object.queryInput = null; } - if (message.testResult != null && message.hasOwnProperty("testResult")) - object.testResult = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.TestResult[message.testResult] : message.testResult; - if (message.testTime != null && message.hasOwnProperty("testTime")) - object.testTime = $root.google.protobuf.Timestamp.toObject(message.testTime, options); + if (message.session != null && message.hasOwnProperty("session")) + object.session = message.session; + if (message.queryParams != null && message.hasOwnProperty("queryParams")) + object.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.toObject(message.queryParams, options); + if (message.queryInput != null && message.hasOwnProperty("queryInput")) + object.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.toObject(message.queryInput, options); return object; }; /** - * Converts this TestCaseResult to JSON. + * Converts this MatchIntentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest * @instance * @returns {Object.} JSON object */ - TestCaseResult.prototype.toJSON = function toJSON() { + MatchIntentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TestCaseResult; + return MatchIntentRequest; })(); - v3.TestConfig = (function() { + v3.MatchIntentResponse = (function() { /** - * Properties of a TestConfig. + * Properties of a MatchIntentResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ITestConfig - * @property {Array.|null} [trackingParameters] TestConfig trackingParameters - * @property {string|null} [flow] TestConfig flow + * @interface IMatchIntentResponse + * @property {string|null} [text] MatchIntentResponse text + * @property {string|null} [triggerIntent] MatchIntentResponse triggerIntent + * @property {string|null} [transcript] MatchIntentResponse transcript + * @property {string|null} [triggerEvent] MatchIntentResponse triggerEvent + * @property {Array.|null} [matches] MatchIntentResponse matches + * @property {google.cloud.dialogflow.cx.v3.IPage|null} [currentPage] MatchIntentResponse currentPage */ /** - * Constructs a new TestConfig. + * Constructs a new MatchIntentResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a TestConfig. - * @implements ITestConfig + * @classdesc Represents a MatchIntentResponse. + * @implements IMatchIntentResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.ITestConfig=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IMatchIntentResponse=} [properties] Properties to set */ - function TestConfig(properties) { - this.trackingParameters = []; + function MatchIntentResponse(properties) { + this.matches = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38513,91 +38112,157 @@ } /** - * TestConfig trackingParameters. - * @member {Array.} trackingParameters - * @memberof google.cloud.dialogflow.cx.v3.TestConfig + * MatchIntentResponse text. + * @member {string} text + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @instance */ - TestConfig.prototype.trackingParameters = $util.emptyArray; + MatchIntentResponse.prototype.text = ""; /** - * TestConfig flow. - * @member {string} flow - * @memberof google.cloud.dialogflow.cx.v3.TestConfig + * MatchIntentResponse triggerIntent. + * @member {string} triggerIntent + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @instance */ - TestConfig.prototype.flow = ""; + MatchIntentResponse.prototype.triggerIntent = ""; /** - * Creates a new TestConfig instance using the specified properties. + * MatchIntentResponse transcript. + * @member {string} transcript + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse + * @instance + */ + MatchIntentResponse.prototype.transcript = ""; + + /** + * MatchIntentResponse triggerEvent. + * @member {string} triggerEvent + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse + * @instance + */ + MatchIntentResponse.prototype.triggerEvent = ""; + + /** + * MatchIntentResponse matches. + * @member {Array.} matches + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse + * @instance + */ + MatchIntentResponse.prototype.matches = $util.emptyArray; + + /** + * MatchIntentResponse currentPage. + * @member {google.cloud.dialogflow.cx.v3.IPage|null|undefined} currentPage + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse + * @instance + */ + MatchIntentResponse.prototype.currentPage = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * MatchIntentResponse query. + * @member {"text"|"triggerIntent"|"transcript"|"triggerEvent"|undefined} query + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse + * @instance + */ + Object.defineProperty(MatchIntentResponse.prototype, "query", { + get: $util.oneOfGetter($oneOfFields = ["text", "triggerIntent", "transcript", "triggerEvent"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new MatchIntentResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.TestConfig + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ITestConfig=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.TestConfig} TestConfig instance + * @param {google.cloud.dialogflow.cx.v3.IMatchIntentResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.MatchIntentResponse} MatchIntentResponse instance */ - TestConfig.create = function create(properties) { - return new TestConfig(properties); + MatchIntentResponse.create = function create(properties) { + return new MatchIntentResponse(properties); }; /** - * Encodes the specified TestConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestConfig.verify|verify} messages. + * Encodes the specified MatchIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.TestConfig + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ITestConfig} message TestConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IMatchIntentResponse} message MatchIntentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestConfig.encode = function encode(message, writer) { + MatchIntentResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.trackingParameters != null && message.trackingParameters.length) - for (var i = 0; i < message.trackingParameters.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.trackingParameters[i]); - if (message.flow != null && Object.hasOwnProperty.call(message, "flow")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.flow); + if (message.text != null && Object.hasOwnProperty.call(message, "text")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); + if (message.triggerIntent != null && Object.hasOwnProperty.call(message, "triggerIntent")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.triggerIntent); + if (message.transcript != null && Object.hasOwnProperty.call(message, "transcript")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.transcript); + if (message.matches != null && message.matches.length) + for (var i = 0; i < message.matches.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Match.encode(message.matches[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) + $root.google.cloud.dialogflow.cx.v3.Page.encode(message.currentPage, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.triggerEvent != null && Object.hasOwnProperty.call(message, "triggerEvent")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.triggerEvent); return writer; }; /** - * Encodes the specified TestConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestConfig.verify|verify} messages. + * Encodes the specified MatchIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TestConfig + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ITestConfig} message TestConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IMatchIntentResponse} message MatchIntentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestConfig.encodeDelimited = function encodeDelimited(message, writer) { + MatchIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestConfig message from the specified reader or buffer. + * Decodes a MatchIntentResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.TestConfig + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.TestConfig} TestConfig + * @returns {google.cloud.dialogflow.cx.v3.MatchIntentResponse} MatchIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestConfig.decode = function decode(reader, length) { + MatchIntentResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TestConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.MatchIntentResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.trackingParameters && message.trackingParameters.length)) - message.trackingParameters = []; - message.trackingParameters.push(reader.string()); + message.text = reader.string(); break; case 2: - message.flow = reader.string(); + message.triggerIntent = reader.string(); + break; + case 3: + message.transcript = reader.string(); + break; + case 6: + message.triggerEvent = reader.string(); + break; + case 4: + if (!(message.matches && message.matches.length)) + message.matches = []; + message.matches.push($root.google.cloud.dialogflow.cx.v3.Match.decode(reader, reader.uint32())); + break; + case 5: + message.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -38608,129 +38273,195 @@ }; /** - * Decodes a TestConfig message from the specified reader or buffer, length delimited. + * Decodes a MatchIntentResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TestConfig + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.TestConfig} TestConfig + * @returns {google.cloud.dialogflow.cx.v3.MatchIntentResponse} MatchIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestConfig.decodeDelimited = function decodeDelimited(reader) { + MatchIntentResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestConfig message. + * Verifies a MatchIntentResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.TestConfig + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestConfig.verify = function verify(message) { + MatchIntentResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.trackingParameters != null && message.hasOwnProperty("trackingParameters")) { - if (!Array.isArray(message.trackingParameters)) - return "trackingParameters: array expected"; - for (var i = 0; i < message.trackingParameters.length; ++i) - if (!$util.isString(message.trackingParameters[i])) - return "trackingParameters: string[] expected"; + var properties = {}; + if (message.text != null && message.hasOwnProperty("text")) { + properties.query = 1; + if (!$util.isString(message.text)) + return "text: string expected"; + } + if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { + if (properties.query === 1) + return "query: multiple values"; + properties.query = 1; + if (!$util.isString(message.triggerIntent)) + return "triggerIntent: string expected"; + } + if (message.transcript != null && message.hasOwnProperty("transcript")) { + if (properties.query === 1) + return "query: multiple values"; + properties.query = 1; + if (!$util.isString(message.transcript)) + return "transcript: string expected"; + } + if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { + if (properties.query === 1) + return "query: multiple values"; + properties.query = 1; + if (!$util.isString(message.triggerEvent)) + return "triggerEvent: string expected"; + } + if (message.matches != null && message.hasOwnProperty("matches")) { + if (!Array.isArray(message.matches)) + return "matches: array expected"; + for (var i = 0; i < message.matches.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Match.verify(message.matches[i]); + if (error) + return "matches." + error; + } + } + if (message.currentPage != null && message.hasOwnProperty("currentPage")) { + var error = $root.google.cloud.dialogflow.cx.v3.Page.verify(message.currentPage); + if (error) + return "currentPage." + error; } - if (message.flow != null && message.hasOwnProperty("flow")) - if (!$util.isString(message.flow)) - return "flow: string expected"; return null; }; /** - * Creates a TestConfig message from a plain object. Also converts values to their respective internal types. + * Creates a MatchIntentResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.TestConfig + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.TestConfig} TestConfig + * @returns {google.cloud.dialogflow.cx.v3.MatchIntentResponse} MatchIntentResponse */ - TestConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.TestConfig) + MatchIntentResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.MatchIntentResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.TestConfig(); - if (object.trackingParameters) { - if (!Array.isArray(object.trackingParameters)) - throw TypeError(".google.cloud.dialogflow.cx.v3.TestConfig.trackingParameters: array expected"); - message.trackingParameters = []; - for (var i = 0; i < object.trackingParameters.length; ++i) - message.trackingParameters[i] = String(object.trackingParameters[i]); + var message = new $root.google.cloud.dialogflow.cx.v3.MatchIntentResponse(); + if (object.text != null) + message.text = String(object.text); + if (object.triggerIntent != null) + message.triggerIntent = String(object.triggerIntent); + if (object.transcript != null) + message.transcript = String(object.transcript); + if (object.triggerEvent != null) + message.triggerEvent = String(object.triggerEvent); + if (object.matches) { + if (!Array.isArray(object.matches)) + throw TypeError(".google.cloud.dialogflow.cx.v3.MatchIntentResponse.matches: array expected"); + message.matches = []; + for (var i = 0; i < object.matches.length; ++i) { + if (typeof object.matches[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.MatchIntentResponse.matches: object expected"); + message.matches[i] = $root.google.cloud.dialogflow.cx.v3.Match.fromObject(object.matches[i]); + } + } + if (object.currentPage != null) { + if (typeof object.currentPage !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.MatchIntentResponse.currentPage: object expected"); + message.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.fromObject(object.currentPage); } - if (object.flow != null) - message.flow = String(object.flow); return message; }; /** - * Creates a plain object from a TestConfig message. Also converts values to other types if specified. + * Creates a plain object from a MatchIntentResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.TestConfig + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.TestConfig} message TestConfig + * @param {google.cloud.dialogflow.cx.v3.MatchIntentResponse} message MatchIntentResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestConfig.toObject = function toObject(message, options) { + MatchIntentResponse.toObject = function toObject(message, options) { if (!options) options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.trackingParameters = []; - if (options.defaults) - object.flow = ""; - if (message.trackingParameters && message.trackingParameters.length) { - object.trackingParameters = []; - for (var j = 0; j < message.trackingParameters.length; ++j) - object.trackingParameters[j] = message.trackingParameters[j]; + var object = {}; + if (options.arrays || options.defaults) + object.matches = []; + if (options.defaults) + object.currentPage = null; + if (message.text != null && message.hasOwnProperty("text")) { + object.text = message.text; + if (options.oneofs) + object.query = "text"; + } + if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { + object.triggerIntent = message.triggerIntent; + if (options.oneofs) + object.query = "triggerIntent"; + } + if (message.transcript != null && message.hasOwnProperty("transcript")) { + object.transcript = message.transcript; + if (options.oneofs) + object.query = "transcript"; + } + if (message.matches && message.matches.length) { + object.matches = []; + for (var j = 0; j < message.matches.length; ++j) + object.matches[j] = $root.google.cloud.dialogflow.cx.v3.Match.toObject(message.matches[j], options); + } + if (message.currentPage != null && message.hasOwnProperty("currentPage")) + object.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.toObject(message.currentPage, options); + if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { + object.triggerEvent = message.triggerEvent; + if (options.oneofs) + object.query = "triggerEvent"; } - if (message.flow != null && message.hasOwnProperty("flow")) - object.flow = message.flow; return object; }; /** - * Converts this TestConfig to JSON. + * Converts this MatchIntentResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.TestConfig + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @instance * @returns {Object.} JSON object */ - TestConfig.prototype.toJSON = function toJSON() { + MatchIntentResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TestConfig; + return MatchIntentResponse; })(); - v3.ConversationTurn = (function() { + v3.FulfillIntentRequest = (function() { /** - * Properties of a ConversationTurn. + * Properties of a FulfillIntentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IConversationTurn - * @property {google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput|null} [userInput] ConversationTurn userInput - * @property {google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput|null} [virtualAgentOutput] ConversationTurn virtualAgentOutput + * @interface IFulfillIntentRequest + * @property {google.cloud.dialogflow.cx.v3.IMatchIntentRequest|null} [matchIntentRequest] FulfillIntentRequest matchIntentRequest + * @property {google.cloud.dialogflow.cx.v3.IMatch|null} [match] FulfillIntentRequest match + * @property {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null} [outputAudioConfig] FulfillIntentRequest outputAudioConfig */ /** - * Constructs a new ConversationTurn. + * Constructs a new FulfillIntentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ConversationTurn. - * @implements IConversationTurn + * @classdesc Represents a FulfillIntentRequest. + * @implements IFulfillIntentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IConversationTurn=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentRequest=} [properties] Properties to set */ - function ConversationTurn(properties) { + function FulfillIntentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38738,88 +38469,101 @@ } /** - * ConversationTurn userInput. - * @member {google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput|null|undefined} userInput - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * FulfillIntentRequest matchIntentRequest. + * @member {google.cloud.dialogflow.cx.v3.IMatchIntentRequest|null|undefined} matchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @instance */ - ConversationTurn.prototype.userInput = null; + FulfillIntentRequest.prototype.matchIntentRequest = null; /** - * ConversationTurn virtualAgentOutput. - * @member {google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput|null|undefined} virtualAgentOutput - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * FulfillIntentRequest match. + * @member {google.cloud.dialogflow.cx.v3.IMatch|null|undefined} match + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @instance */ - ConversationTurn.prototype.virtualAgentOutput = null; + FulfillIntentRequest.prototype.match = null; /** - * Creates a new ConversationTurn instance using the specified properties. + * FulfillIntentRequest outputAudioConfig. + * @member {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null|undefined} outputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest + * @instance + */ + FulfillIntentRequest.prototype.outputAudioConfig = null; + + /** + * Creates a new FulfillIntentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IConversationTurn=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn} ConversationTurn instance + * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentRequest} FulfillIntentRequest instance */ - ConversationTurn.create = function create(properties) { - return new ConversationTurn(properties); + FulfillIntentRequest.create = function create(properties) { + return new FulfillIntentRequest(properties); }; /** - * Encodes the specified ConversationTurn message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.verify|verify} messages. + * Encodes the specified FulfillIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IConversationTurn} message ConversationTurn message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentRequest} message FulfillIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConversationTurn.encode = function encode(message, writer) { + FulfillIntentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.userInput != null && Object.hasOwnProperty.call(message, "userInput")) - $root.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.encode(message.userInput, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.virtualAgentOutput != null && Object.hasOwnProperty.call(message, "virtualAgentOutput")) - $root.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.encode(message.virtualAgentOutput, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.matchIntentRequest != null && Object.hasOwnProperty.call(message, "matchIntentRequest")) + $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest.encode(message.matchIntentRequest, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.match != null && Object.hasOwnProperty.call(message, "match")) + $root.google.cloud.dialogflow.cx.v3.Match.encode(message.match, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) + $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ConversationTurn message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.verify|verify} messages. + * Encodes the specified FulfillIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IConversationTurn} message ConversationTurn message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentRequest} message FulfillIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConversationTurn.encodeDelimited = function encodeDelimited(message, writer) { + FulfillIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConversationTurn message from the specified reader or buffer. + * Decodes a FulfillIntentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn} ConversationTurn + * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentRequest} FulfillIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConversationTurn.decode = function decode(reader, length) { + FulfillIntentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ConversationTurn(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.FulfillIntentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.userInput = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.decode(reader, reader.uint32()); + message.matchIntentRequest = $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest.decode(reader, reader.uint32()); break; case 2: - message.virtualAgentOutput = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.decode(reader, reader.uint32()); + message.match = $root.google.cloud.dialogflow.cx.v3.Match.decode(reader, reader.uint32()); + break; + case 3: + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -38830,758 +38574,413 @@ }; /** - * Decodes a ConversationTurn message from the specified reader or buffer, length delimited. + * Decodes a FulfillIntentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn} ConversationTurn + * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentRequest} FulfillIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConversationTurn.decodeDelimited = function decodeDelimited(reader) { + FulfillIntentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConversationTurn message. + * Verifies a FulfillIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConversationTurn.verify = function verify(message) { + FulfillIntentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.userInput != null && message.hasOwnProperty("userInput")) { - var error = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.verify(message.userInput); + if (message.matchIntentRequest != null && message.hasOwnProperty("matchIntentRequest")) { + var error = $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest.verify(message.matchIntentRequest); if (error) - return "userInput." + error; + return "matchIntentRequest." + error; } - if (message.virtualAgentOutput != null && message.hasOwnProperty("virtualAgentOutput")) { - var error = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.verify(message.virtualAgentOutput); + if (message.match != null && message.hasOwnProperty("match")) { + var error = $root.google.cloud.dialogflow.cx.v3.Match.verify(message.match); if (error) - return "virtualAgentOutput." + error; + return "match." + error; + } + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify(message.outputAudioConfig); + if (error) + return "outputAudioConfig." + error; } return null; }; /** - * Creates a ConversationTurn message from a plain object. Also converts values to their respective internal types. + * Creates a FulfillIntentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn} ConversationTurn + * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentRequest} FulfillIntentRequest */ - ConversationTurn.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ConversationTurn) + FulfillIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.FulfillIntentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ConversationTurn(); - if (object.userInput != null) { - if (typeof object.userInput !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.userInput: object expected"); - message.userInput = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.fromObject(object.userInput); + var message = new $root.google.cloud.dialogflow.cx.v3.FulfillIntentRequest(); + if (object.matchIntentRequest != null) { + if (typeof object.matchIntentRequest !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.FulfillIntentRequest.matchIntentRequest: object expected"); + message.matchIntentRequest = $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest.fromObject(object.matchIntentRequest); } - if (object.virtualAgentOutput != null) { - if (typeof object.virtualAgentOutput !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.virtualAgentOutput: object expected"); - message.virtualAgentOutput = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.fromObject(object.virtualAgentOutput); + if (object.match != null) { + if (typeof object.match !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.FulfillIntentRequest.match: object expected"); + message.match = $root.google.cloud.dialogflow.cx.v3.Match.fromObject(object.match); } - return message; - }; - - /** - * Creates a plain object from a ConversationTurn message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn - * @static - * @param {google.cloud.dialogflow.cx.v3.ConversationTurn} message ConversationTurn - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ConversationTurn.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.userInput = null; - object.virtualAgentOutput = null; + if (object.outputAudioConfig != null) { + if (typeof object.outputAudioConfig !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.FulfillIntentRequest.outputAudioConfig: object expected"); + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.fromObject(object.outputAudioConfig); } - if (message.userInput != null && message.hasOwnProperty("userInput")) - object.userInput = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.toObject(message.userInput, options); - if (message.virtualAgentOutput != null && message.hasOwnProperty("virtualAgentOutput")) - object.virtualAgentOutput = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.toObject(message.virtualAgentOutput, options); - return object; - }; - - /** - * Converts this ConversationTurn to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn - * @instance - * @returns {Object.} JSON object - */ - ConversationTurn.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + return message; }; - ConversationTurn.UserInput = (function() { - - /** - * Properties of a UserInput. - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn - * @interface IUserInput - * @property {google.cloud.dialogflow.cx.v3.IQueryInput|null} [input] UserInput input - * @property {google.protobuf.IStruct|null} [injectedParameters] UserInput injectedParameters - * @property {boolean|null} [isWebhookEnabled] UserInput isWebhookEnabled - */ - - /** - * Constructs a new UserInput. - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn - * @classdesc Represents a UserInput. - * @implements IUserInput - * @constructor - * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput=} [properties] Properties to set - */ - function UserInput(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * UserInput input. - * @member {google.cloud.dialogflow.cx.v3.IQueryInput|null|undefined} input - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput - * @instance - */ - UserInput.prototype.input = null; - - /** - * UserInput injectedParameters. - * @member {google.protobuf.IStruct|null|undefined} injectedParameters - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput - * @instance - */ - UserInput.prototype.injectedParameters = null; - - /** - * UserInput isWebhookEnabled. - * @member {boolean} isWebhookEnabled - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput - * @instance - */ - UserInput.prototype.isWebhookEnabled = false; - - /** - * Creates a new UserInput instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput - * @static - * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput} UserInput instance - */ - UserInput.create = function create(properties) { - return new UserInput(properties); - }; - - /** - * Encodes the specified UserInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput - * @static - * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput} message UserInput message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserInput.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.injectedParameters != null && Object.hasOwnProperty.call(message, "injectedParameters")) - $root.google.protobuf.Struct.encode(message.injectedParameters, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.isWebhookEnabled != null && Object.hasOwnProperty.call(message, "isWebhookEnabled")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isWebhookEnabled); - if (message.input != null && Object.hasOwnProperty.call(message, "input")) - $root.google.cloud.dialogflow.cx.v3.QueryInput.encode(message.input, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified UserInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput - * @static - * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput} message UserInput message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserInput.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a UserInput message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput} UserInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserInput.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 5: - message.input = $root.google.cloud.dialogflow.cx.v3.QueryInput.decode(reader, reader.uint32()); - break; - case 2: - message.injectedParameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 3: - message.isWebhookEnabled = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a UserInput message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput} UserInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserInput.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserInput message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UserInput.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.input != null && message.hasOwnProperty("input")) { - var error = $root.google.cloud.dialogflow.cx.v3.QueryInput.verify(message.input); - if (error) - return "input." + error; - } - if (message.injectedParameters != null && message.hasOwnProperty("injectedParameters")) { - var error = $root.google.protobuf.Struct.verify(message.injectedParameters); - if (error) - return "injectedParameters." + error; - } - if (message.isWebhookEnabled != null && message.hasOwnProperty("isWebhookEnabled")) - if (typeof message.isWebhookEnabled !== "boolean") - return "isWebhookEnabled: boolean expected"; - return null; - }; - - /** - * Creates a UserInput message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput} UserInput - */ - UserInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput(); - if (object.input != null) { - if (typeof object.input !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.input: object expected"); - message.input = $root.google.cloud.dialogflow.cx.v3.QueryInput.fromObject(object.input); - } - if (object.injectedParameters != null) { - if (typeof object.injectedParameters !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.injectedParameters: object expected"); - message.injectedParameters = $root.google.protobuf.Struct.fromObject(object.injectedParameters); - } - if (object.isWebhookEnabled != null) - message.isWebhookEnabled = Boolean(object.isWebhookEnabled); - return message; - }; - - /** - * Creates a plain object from a UserInput message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput - * @static - * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput} message UserInput - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UserInput.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.injectedParameters = null; - object.isWebhookEnabled = false; - object.input = null; - } - if (message.injectedParameters != null && message.hasOwnProperty("injectedParameters")) - object.injectedParameters = $root.google.protobuf.Struct.toObject(message.injectedParameters, options); - if (message.isWebhookEnabled != null && message.hasOwnProperty("isWebhookEnabled")) - object.isWebhookEnabled = message.isWebhookEnabled; - if (message.input != null && message.hasOwnProperty("input")) - object.input = $root.google.cloud.dialogflow.cx.v3.QueryInput.toObject(message.input, options); - return object; - }; - - /** - * Converts this UserInput to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput - * @instance - * @returns {Object.} JSON object - */ - UserInput.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return UserInput; - })(); - - ConversationTurn.VirtualAgentOutput = (function() { - - /** - * Properties of a VirtualAgentOutput. - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn - * @interface IVirtualAgentOutput - * @property {google.protobuf.IStruct|null} [sessionParameters] VirtualAgentOutput sessionParameters - * @property {Array.|null} [differences] VirtualAgentOutput differences - * @property {google.protobuf.IStruct|null} [diagnosticInfo] VirtualAgentOutput diagnosticInfo - * @property {google.cloud.dialogflow.cx.v3.IIntent|null} [triggeredIntent] VirtualAgentOutput triggeredIntent - * @property {google.cloud.dialogflow.cx.v3.IPage|null} [currentPage] VirtualAgentOutput currentPage - * @property {Array.|null} [textResponses] VirtualAgentOutput textResponses - * @property {google.rpc.IStatus|null} [status] VirtualAgentOutput status - */ - - /** - * Constructs a new VirtualAgentOutput. - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn - * @classdesc Represents a VirtualAgentOutput. - * @implements IVirtualAgentOutput - * @constructor - * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput=} [properties] Properties to set - */ - function VirtualAgentOutput(properties) { - this.differences = []; - this.textResponses = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Creates a plain object from a FulfillIntentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.FulfillIntentRequest} message FulfillIntentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FulfillIntentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.matchIntentRequest = null; + object.match = null; + object.outputAudioConfig = null; } + if (message.matchIntentRequest != null && message.hasOwnProperty("matchIntentRequest")) + object.matchIntentRequest = $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest.toObject(message.matchIntentRequest, options); + if (message.match != null && message.hasOwnProperty("match")) + object.match = $root.google.cloud.dialogflow.cx.v3.Match.toObject(message.match, options); + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) + object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.toObject(message.outputAudioConfig, options); + return object; + }; - /** - * VirtualAgentOutput sessionParameters. - * @member {google.protobuf.IStruct|null|undefined} sessionParameters - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput - * @instance - */ - VirtualAgentOutput.prototype.sessionParameters = null; + /** + * Converts this FulfillIntentRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest + * @instance + * @returns {Object.} JSON object + */ + FulfillIntentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * VirtualAgentOutput differences. - * @member {Array.} differences - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput - * @instance - */ - VirtualAgentOutput.prototype.differences = $util.emptyArray; + return FulfillIntentRequest; + })(); - /** - * VirtualAgentOutput diagnosticInfo. - * @member {google.protobuf.IStruct|null|undefined} diagnosticInfo - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput - * @instance - */ - VirtualAgentOutput.prototype.diagnosticInfo = null; + v3.FulfillIntentResponse = (function() { - /** - * VirtualAgentOutput triggeredIntent. - * @member {google.cloud.dialogflow.cx.v3.IIntent|null|undefined} triggeredIntent - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput - * @instance - */ - VirtualAgentOutput.prototype.triggeredIntent = null; + /** + * Properties of a FulfillIntentResponse. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IFulfillIntentResponse + * @property {string|null} [responseId] FulfillIntentResponse responseId + * @property {google.cloud.dialogflow.cx.v3.IQueryResult|null} [queryResult] FulfillIntentResponse queryResult + * @property {Uint8Array|null} [outputAudio] FulfillIntentResponse outputAudio + * @property {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null} [outputAudioConfig] FulfillIntentResponse outputAudioConfig + */ - /** - * VirtualAgentOutput currentPage. - * @member {google.cloud.dialogflow.cx.v3.IPage|null|undefined} currentPage - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput - * @instance - */ - VirtualAgentOutput.prototype.currentPage = null; + /** + * Constructs a new FulfillIntentResponse. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a FulfillIntentResponse. + * @implements IFulfillIntentResponse + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentResponse=} [properties] Properties to set + */ + function FulfillIntentResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * VirtualAgentOutput textResponses. - * @member {Array.} textResponses - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput - * @instance - */ - VirtualAgentOutput.prototype.textResponses = $util.emptyArray; + /** + * FulfillIntentResponse responseId. + * @member {string} responseId + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @instance + */ + FulfillIntentResponse.prototype.responseId = ""; - /** - * VirtualAgentOutput status. - * @member {google.rpc.IStatus|null|undefined} status - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput - * @instance - */ - VirtualAgentOutput.prototype.status = null; + /** + * FulfillIntentResponse queryResult. + * @member {google.cloud.dialogflow.cx.v3.IQueryResult|null|undefined} queryResult + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @instance + */ + FulfillIntentResponse.prototype.queryResult = null; - /** - * Creates a new VirtualAgentOutput instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput - * @static - * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput} VirtualAgentOutput instance - */ - VirtualAgentOutput.create = function create(properties) { - return new VirtualAgentOutput(properties); - }; + /** + * FulfillIntentResponse outputAudio. + * @member {Uint8Array} outputAudio + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @instance + */ + FulfillIntentResponse.prototype.outputAudio = $util.newBuffer([]); - /** - * Encodes the specified VirtualAgentOutput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput - * @static - * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput} message VirtualAgentOutput message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VirtualAgentOutput.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.sessionParameters != null && Object.hasOwnProperty.call(message, "sessionParameters")) - $root.google.protobuf.Struct.encode(message.sessionParameters, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.differences != null && message.differences.length) - for (var i = 0; i < message.differences.length; ++i) - $root.google.cloud.dialogflow.cx.v3.TestRunDifference.encode(message.differences[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.diagnosticInfo != null && Object.hasOwnProperty.call(message, "diagnosticInfo")) - $root.google.protobuf.Struct.encode(message.diagnosticInfo, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.triggeredIntent != null && Object.hasOwnProperty.call(message, "triggeredIntent")) - $root.google.cloud.dialogflow.cx.v3.Intent.encode(message.triggeredIntent, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) - $root.google.cloud.dialogflow.cx.v3.Page.encode(message.currentPage, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.textResponses != null && message.textResponses.length) - for (var i = 0; i < message.textResponses.length; ++i) - $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.encode(message.textResponses[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - return writer; - }; + /** + * FulfillIntentResponse outputAudioConfig. + * @member {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null|undefined} outputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @instance + */ + FulfillIntentResponse.prototype.outputAudioConfig = null; - /** - * Encodes the specified VirtualAgentOutput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput - * @static - * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput} message VirtualAgentOutput message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VirtualAgentOutput.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new FulfillIntentResponse instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentResponse} FulfillIntentResponse instance + */ + FulfillIntentResponse.create = function create(properties) { + return new FulfillIntentResponse(properties); + }; - /** - * Decodes a VirtualAgentOutput message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput} VirtualAgentOutput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VirtualAgentOutput.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 4: - message.sessionParameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 5: - if (!(message.differences && message.differences.length)) - message.differences = []; - message.differences.push($root.google.cloud.dialogflow.cx.v3.TestRunDifference.decode(reader, reader.uint32())); - break; - case 6: - message.diagnosticInfo = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 7: - message.triggeredIntent = $root.google.cloud.dialogflow.cx.v3.Intent.decode(reader, reader.uint32()); - break; - case 8: - message.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.decode(reader, reader.uint32()); - break; - case 9: - if (!(message.textResponses && message.textResponses.length)) - message.textResponses = []; - message.textResponses.push($root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.decode(reader, reader.uint32())); - break; - case 10: - message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified FulfillIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentResponse} message FulfillIntentResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FulfillIntentResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.responseId != null && Object.hasOwnProperty.call(message, "responseId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.responseId); + if (message.queryResult != null && Object.hasOwnProperty.call(message, "queryResult")) + $root.google.cloud.dialogflow.cx.v3.QueryResult.encode(message.queryResult, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.outputAudio != null && Object.hasOwnProperty.call(message, "outputAudio")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.outputAudio); + if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) + $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; - /** - * Decodes a VirtualAgentOutput message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput} VirtualAgentOutput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VirtualAgentOutput.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified FulfillIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentResponse} message FulfillIntentResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FulfillIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies a VirtualAgentOutput message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - VirtualAgentOutput.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sessionParameters != null && message.hasOwnProperty("sessionParameters")) { - var error = $root.google.protobuf.Struct.verify(message.sessionParameters); - if (error) - return "sessionParameters." + error; - } - if (message.differences != null && message.hasOwnProperty("differences")) { - if (!Array.isArray(message.differences)) - return "differences: array expected"; - for (var i = 0; i < message.differences.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.TestRunDifference.verify(message.differences[i]); - if (error) - return "differences." + error; - } - } - if (message.diagnosticInfo != null && message.hasOwnProperty("diagnosticInfo")) { - var error = $root.google.protobuf.Struct.verify(message.diagnosticInfo); - if (error) - return "diagnosticInfo." + error; - } - if (message.triggeredIntent != null && message.hasOwnProperty("triggeredIntent")) { - var error = $root.google.cloud.dialogflow.cx.v3.Intent.verify(message.triggeredIntent); - if (error) - return "triggeredIntent." + error; - } - if (message.currentPage != null && message.hasOwnProperty("currentPage")) { - var error = $root.google.cloud.dialogflow.cx.v3.Page.verify(message.currentPage); - if (error) - return "currentPage." + error; - } - if (message.textResponses != null && message.hasOwnProperty("textResponses")) { - if (!Array.isArray(message.textResponses)) - return "textResponses: array expected"; - for (var i = 0; i < message.textResponses.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.verify(message.textResponses[i]); - if (error) - return "textResponses." + error; - } - } - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.google.rpc.Status.verify(message.status); - if (error) - return "status." + error; + /** + * Decodes a FulfillIntentResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentResponse} FulfillIntentResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FulfillIntentResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.FulfillIntentResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.responseId = reader.string(); + break; + case 2: + message.queryResult = $root.google.cloud.dialogflow.cx.v3.QueryResult.decode(reader, reader.uint32()); + break; + case 3: + message.outputAudio = reader.bytes(); + break; + case 4: + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; } - return null; - }; + } + return message; + }; - /** - * Creates a VirtualAgentOutput message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput} VirtualAgentOutput - */ - VirtualAgentOutput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput(); - if (object.sessionParameters != null) { - if (typeof object.sessionParameters !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.sessionParameters: object expected"); - message.sessionParameters = $root.google.protobuf.Struct.fromObject(object.sessionParameters); - } - if (object.differences) { - if (!Array.isArray(object.differences)) - throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.differences: array expected"); - message.differences = []; - for (var i = 0; i < object.differences.length; ++i) { - if (typeof object.differences[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.differences: object expected"); - message.differences[i] = $root.google.cloud.dialogflow.cx.v3.TestRunDifference.fromObject(object.differences[i]); - } - } - if (object.diagnosticInfo != null) { - if (typeof object.diagnosticInfo !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.diagnosticInfo: object expected"); - message.diagnosticInfo = $root.google.protobuf.Struct.fromObject(object.diagnosticInfo); - } - if (object.triggeredIntent != null) { - if (typeof object.triggeredIntent !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.triggeredIntent: object expected"); - message.triggeredIntent = $root.google.cloud.dialogflow.cx.v3.Intent.fromObject(object.triggeredIntent); - } - if (object.currentPage != null) { - if (typeof object.currentPage !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.currentPage: object expected"); - message.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.fromObject(object.currentPage); - } - if (object.textResponses) { - if (!Array.isArray(object.textResponses)) - throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.textResponses: array expected"); - message.textResponses = []; - for (var i = 0; i < object.textResponses.length; ++i) { - if (typeof object.textResponses[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.textResponses: object expected"); - message.textResponses[i] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.fromObject(object.textResponses[i]); - } - } - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.status: object expected"); - message.status = $root.google.rpc.Status.fromObject(object.status); - } - return message; - }; + /** + * Decodes a FulfillIntentResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentResponse} FulfillIntentResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FulfillIntentResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from a VirtualAgentOutput message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput - * @static - * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput} message VirtualAgentOutput - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - VirtualAgentOutput.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.differences = []; - object.textResponses = []; - } - if (options.defaults) { - object.sessionParameters = null; - object.diagnosticInfo = null; - object.triggeredIntent = null; - object.currentPage = null; - object.status = null; - } - if (message.sessionParameters != null && message.hasOwnProperty("sessionParameters")) - object.sessionParameters = $root.google.protobuf.Struct.toObject(message.sessionParameters, options); - if (message.differences && message.differences.length) { - object.differences = []; - for (var j = 0; j < message.differences.length; ++j) - object.differences[j] = $root.google.cloud.dialogflow.cx.v3.TestRunDifference.toObject(message.differences[j], options); - } - if (message.diagnosticInfo != null && message.hasOwnProperty("diagnosticInfo")) - object.diagnosticInfo = $root.google.protobuf.Struct.toObject(message.diagnosticInfo, options); - if (message.triggeredIntent != null && message.hasOwnProperty("triggeredIntent")) - object.triggeredIntent = $root.google.cloud.dialogflow.cx.v3.Intent.toObject(message.triggeredIntent, options); - if (message.currentPage != null && message.hasOwnProperty("currentPage")) - object.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.toObject(message.currentPage, options); - if (message.textResponses && message.textResponses.length) { - object.textResponses = []; - for (var j = 0; j < message.textResponses.length; ++j) - object.textResponses[j] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.toObject(message.textResponses[j], options); - } - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.google.rpc.Status.toObject(message.status, options); + /** + * Verifies a FulfillIntentResponse message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FulfillIntentResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.responseId != null && message.hasOwnProperty("responseId")) + if (!$util.isString(message.responseId)) + return "responseId: string expected"; + if (message.queryResult != null && message.hasOwnProperty("queryResult")) { + var error = $root.google.cloud.dialogflow.cx.v3.QueryResult.verify(message.queryResult); + if (error) + return "queryResult." + error; + } + if (message.outputAudio != null && message.hasOwnProperty("outputAudio")) + if (!(message.outputAudio && typeof message.outputAudio.length === "number" || $util.isString(message.outputAudio))) + return "outputAudio: buffer expected"; + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify(message.outputAudioConfig); + if (error) + return "outputAudioConfig." + error; + } + return null; + }; + + /** + * Creates a FulfillIntentResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentResponse} FulfillIntentResponse + */ + FulfillIntentResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.FulfillIntentResponse) return object; - }; + var message = new $root.google.cloud.dialogflow.cx.v3.FulfillIntentResponse(); + if (object.responseId != null) + message.responseId = String(object.responseId); + if (object.queryResult != null) { + if (typeof object.queryResult !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.FulfillIntentResponse.queryResult: object expected"); + message.queryResult = $root.google.cloud.dialogflow.cx.v3.QueryResult.fromObject(object.queryResult); + } + if (object.outputAudio != null) + if (typeof object.outputAudio === "string") + $util.base64.decode(object.outputAudio, message.outputAudio = $util.newBuffer($util.base64.length(object.outputAudio)), 0); + else if (object.outputAudio.length) + message.outputAudio = object.outputAudio; + if (object.outputAudioConfig != null) { + if (typeof object.outputAudioConfig !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.FulfillIntentResponse.outputAudioConfig: object expected"); + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.fromObject(object.outputAudioConfig); + } + return message; + }; - /** - * Converts this VirtualAgentOutput to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput - * @instance - * @returns {Object.} JSON object - */ - VirtualAgentOutput.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a FulfillIntentResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.FulfillIntentResponse} message FulfillIntentResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FulfillIntentResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.responseId = ""; + object.queryResult = null; + if (options.bytes === String) + object.outputAudio = ""; + else { + object.outputAudio = []; + if (options.bytes !== Array) + object.outputAudio = $util.newBuffer(object.outputAudio); + } + object.outputAudioConfig = null; + } + if (message.responseId != null && message.hasOwnProperty("responseId")) + object.responseId = message.responseId; + if (message.queryResult != null && message.hasOwnProperty("queryResult")) + object.queryResult = $root.google.cloud.dialogflow.cx.v3.QueryResult.toObject(message.queryResult, options); + if (message.outputAudio != null && message.hasOwnProperty("outputAudio")) + object.outputAudio = options.bytes === String ? $util.base64.encode(message.outputAudio, 0, message.outputAudio.length) : options.bytes === Array ? Array.prototype.slice.call(message.outputAudio) : message.outputAudio; + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) + object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.toObject(message.outputAudioConfig, options); + return object; + }; - return VirtualAgentOutput; - })(); + /** + * Converts this FulfillIntentResponse to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @instance + * @returns {Object.} JSON object + */ + FulfillIntentResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return ConversationTurn; + return FulfillIntentResponse; })(); - v3.TestRunDifference = (function() { + v3.SentimentAnalysisResult = (function() { /** - * Properties of a TestRunDifference. + * Properties of a SentimentAnalysisResult. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ITestRunDifference - * @property {google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType|null} [type] TestRunDifference type - * @property {string|null} [description] TestRunDifference description + * @interface ISentimentAnalysisResult + * @property {number|null} [score] SentimentAnalysisResult score + * @property {number|null} [magnitude] SentimentAnalysisResult magnitude */ /** - * Constructs a new TestRunDifference. + * Constructs a new SentimentAnalysisResult. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a TestRunDifference. - * @implements ITestRunDifference + * @classdesc Represents a SentimentAnalysisResult. + * @implements ISentimentAnalysisResult * @constructor - * @param {google.cloud.dialogflow.cx.v3.ITestRunDifference=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult=} [properties] Properties to set */ - function TestRunDifference(properties) { + function SentimentAnalysisResult(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -39589,88 +38988,88 @@ } /** - * TestRunDifference type. - * @member {google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType} type - * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference + * SentimentAnalysisResult score. + * @member {number} score + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult * @instance */ - TestRunDifference.prototype.type = 0; + SentimentAnalysisResult.prototype.score = 0; /** - * TestRunDifference description. - * @member {string} description - * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference + * SentimentAnalysisResult magnitude. + * @member {number} magnitude + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult * @instance */ - TestRunDifference.prototype.description = ""; + SentimentAnalysisResult.prototype.magnitude = 0; /** - * Creates a new TestRunDifference instance using the specified properties. + * Creates a new SentimentAnalysisResult instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult * @static - * @param {google.cloud.dialogflow.cx.v3.ITestRunDifference=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.TestRunDifference} TestRunDifference instance + * @param {google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.SentimentAnalysisResult} SentimentAnalysisResult instance */ - TestRunDifference.create = function create(properties) { - return new TestRunDifference(properties); + SentimentAnalysisResult.create = function create(properties) { + return new SentimentAnalysisResult(properties); }; /** - * Encodes the specified TestRunDifference message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestRunDifference.verify|verify} messages. + * Encodes the specified SentimentAnalysisResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult * @static - * @param {google.cloud.dialogflow.cx.v3.ITestRunDifference} message TestRunDifference message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult} message SentimentAnalysisResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestRunDifference.encode = function encode(message, writer) { + SentimentAnalysisResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + if (message.score != null && Object.hasOwnProperty.call(message, "score")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); + if (message.magnitude != null && Object.hasOwnProperty.call(message, "magnitude")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.magnitude); return writer; }; /** - * Encodes the specified TestRunDifference message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestRunDifference.verify|verify} messages. + * Encodes the specified SentimentAnalysisResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult * @static - * @param {google.cloud.dialogflow.cx.v3.ITestRunDifference} message TestRunDifference message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult} message SentimentAnalysisResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestRunDifference.encodeDelimited = function encodeDelimited(message, writer) { + SentimentAnalysisResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestRunDifference message from the specified reader or buffer. + * Decodes a SentimentAnalysisResult message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.TestRunDifference} TestRunDifference + * @returns {google.cloud.dialogflow.cx.v3.SentimentAnalysisResult} SentimentAnalysisResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestRunDifference.decode = function decode(reader, length) { + SentimentAnalysisResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TestRunDifference(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.type = reader.int32(); + message.score = reader.float(); break; case 2: - message.description = reader.string(); + message.magnitude = reader.float(); break; default: reader.skipType(tag & 7); @@ -39681,166 +39080,319 @@ }; /** - * Decodes a TestRunDifference message from the specified reader or buffer, length delimited. + * Decodes a SentimentAnalysisResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.TestRunDifference} TestRunDifference + * @returns {google.cloud.dialogflow.cx.v3.SentimentAnalysisResult} SentimentAnalysisResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestRunDifference.decodeDelimited = function decodeDelimited(reader) { + SentimentAnalysisResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestRunDifference message. + * Verifies a SentimentAnalysisResult message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestRunDifference.verify = function verify(message) { + SentimentAnalysisResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; + if (message.score != null && message.hasOwnProperty("score")) + if (typeof message.score !== "number") + return "score: number expected"; + if (message.magnitude != null && message.hasOwnProperty("magnitude")) + if (typeof message.magnitude !== "number") + return "magnitude: number expected"; return null; }; /** - * Creates a TestRunDifference message from a plain object. Also converts values to their respective internal types. + * Creates a SentimentAnalysisResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.TestRunDifference} TestRunDifference + * @returns {google.cloud.dialogflow.cx.v3.SentimentAnalysisResult} SentimentAnalysisResult */ - TestRunDifference.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.TestRunDifference) + SentimentAnalysisResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.TestRunDifference(); - switch (object.type) { - case "DIFF_TYPE_UNSPECIFIED": - case 0: - message.type = 0; - break; - case "INTENT": - case 1: - message.type = 1; - break; - case "PAGE": - case 2: - message.type = 2; - break; - case "PARAMETERS": - case 3: - message.type = 3; - break; - case "UTTERANCE": - case 4: - message.type = 4; - break; - } - if (object.description != null) - message.description = String(object.description); + var message = new $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult(); + if (object.score != null) + message.score = Number(object.score); + if (object.magnitude != null) + message.magnitude = Number(object.magnitude); return message; }; /** - * Creates a plain object from a TestRunDifference message. Also converts values to other types if specified. + * Creates a plain object from a SentimentAnalysisResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult * @static - * @param {google.cloud.dialogflow.cx.v3.TestRunDifference} message TestRunDifference + * @param {google.cloud.dialogflow.cx.v3.SentimentAnalysisResult} message SentimentAnalysisResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestRunDifference.toObject = function toObject(message, options) { + SentimentAnalysisResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.type = options.enums === String ? "DIFF_TYPE_UNSPECIFIED" : 0; - object.description = ""; + object.score = 0; + object.magnitude = 0; } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType[message.type] : message.type; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; + if (message.score != null && message.hasOwnProperty("score")) + object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; + if (message.magnitude != null && message.hasOwnProperty("magnitude")) + object.magnitude = options.json && !isFinite(message.magnitude) ? String(message.magnitude) : message.magnitude; return object; }; /** - * Converts this TestRunDifference to JSON. + * Converts this SentimentAnalysisResult to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult * @instance * @returns {Object.} JSON object */ - TestRunDifference.prototype.toJSON = function toJSON() { + SentimentAnalysisResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + return SentimentAnalysisResult; + })(); + + v3.SessionEntityTypes = (function() { + /** - * DiffType enum. - * @name google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType - * @enum {number} - * @property {number} DIFF_TYPE_UNSPECIFIED=0 DIFF_TYPE_UNSPECIFIED value - * @property {number} INTENT=1 INTENT value - * @property {number} PAGE=2 PAGE value - * @property {number} PARAMETERS=3 PARAMETERS value - * @property {number} UTTERANCE=4 UTTERANCE value + * Constructs a new SessionEntityTypes service. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a SessionEntityTypes + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function SessionEntityTypes(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (SessionEntityTypes.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = SessionEntityTypes; + + /** + * Creates new SessionEntityTypes service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {SessionEntityTypes} RPC service. Useful where requests and/or responses are streamed. + */ + SessionEntityTypes.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#listSessionEntityTypes}. + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * @typedef ListSessionEntityTypesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} [response] ListSessionEntityTypesResponse + */ + + /** + * Calls ListSessionEntityTypes. + * @function listSessionEntityTypes + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest} request ListSessionEntityTypesRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypesCallback} callback Node-style callback called with the error, if any, and ListSessionEntityTypesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SessionEntityTypes.prototype.listSessionEntityTypes = function listSessionEntityTypes(request, callback) { + return this.rpcCall(listSessionEntityTypes, $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest, $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse, request, callback); + }, "name", { value: "ListSessionEntityTypes" }); + + /** + * Calls ListSessionEntityTypes. + * @function listSessionEntityTypes + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest} request ListSessionEntityTypesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#getSessionEntityType}. + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * @typedef GetSessionEntityTypeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.SessionEntityType} [response] SessionEntityType + */ + + /** + * Calls GetSessionEntityType. + * @function getSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest} request GetSessionEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.SessionEntityTypes.GetSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and SessionEntityType + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SessionEntityTypes.prototype.getSessionEntityType = function getSessionEntityType(request, callback) { + return this.rpcCall(getSessionEntityType, $root.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3.SessionEntityType, request, callback); + }, "name", { value: "GetSessionEntityType" }); + + /** + * Calls GetSessionEntityType. + * @function getSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest} request GetSessionEntityTypeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#createSessionEntityType}. + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * @typedef CreateSessionEntityTypeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.SessionEntityType} [response] SessionEntityType + */ + + /** + * Calls CreateSessionEntityType. + * @function createSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest} request CreateSessionEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.SessionEntityTypes.CreateSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and SessionEntityType + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SessionEntityTypes.prototype.createSessionEntityType = function createSessionEntityType(request, callback) { + return this.rpcCall(createSessionEntityType, $root.google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3.SessionEntityType, request, callback); + }, "name", { value: "CreateSessionEntityType" }); + + /** + * Calls CreateSessionEntityType. + * @function createSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest} request CreateSessionEntityTypeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#updateSessionEntityType}. + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * @typedef UpdateSessionEntityTypeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.SessionEntityType} [response] SessionEntityType + */ + + /** + * Calls UpdateSessionEntityType. + * @function updateSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest} request UpdateSessionEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.SessionEntityTypes.UpdateSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and SessionEntityType + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SessionEntityTypes.prototype.updateSessionEntityType = function updateSessionEntityType(request, callback) { + return this.rpcCall(updateSessionEntityType, $root.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3.SessionEntityType, request, callback); + }, "name", { value: "UpdateSessionEntityType" }); + + /** + * Calls UpdateSessionEntityType. + * @function updateSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest} request UpdateSessionEntityTypeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#deleteSessionEntityType}. + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * @typedef DeleteSessionEntityTypeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteSessionEntityType. + * @function deleteSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest} request DeleteSessionEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.SessionEntityTypes.DeleteSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SessionEntityTypes.prototype.deleteSessionEntityType = function deleteSessionEntityType(request, callback) { + return this.rpcCall(deleteSessionEntityType, $root.google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteSessionEntityType" }); + + /** + * Calls DeleteSessionEntityType. + * @function deleteSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest} request DeleteSessionEntityTypeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - TestRunDifference.DiffType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DIFF_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "INTENT"] = 1; - values[valuesById[2] = "PAGE"] = 2; - values[valuesById[3] = "PARAMETERS"] = 3; - values[valuesById[4] = "UTTERANCE"] = 4; - return values; - })(); - return TestRunDifference; + return SessionEntityTypes; })(); - v3.TransitionCoverage = (function() { + v3.SessionEntityType = (function() { /** - * Properties of a TransitionCoverage. + * Properties of a SessionEntityType. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ITransitionCoverage - * @property {Array.|null} [transitions] TransitionCoverage transitions - * @property {number|null} [coverageScore] TransitionCoverage coverageScore + * @interface ISessionEntityType + * @property {string|null} [name] SessionEntityType name + * @property {google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode|null} [entityOverrideMode] SessionEntityType entityOverrideMode + * @property {Array.|null} [entities] SessionEntityType entities */ /** - * Constructs a new TransitionCoverage. + * Constructs a new SessionEntityType. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a TransitionCoverage. - * @implements ITransitionCoverage + * @classdesc Represents a SessionEntityType. + * @implements ISessionEntityType * @constructor - * @param {google.cloud.dialogflow.cx.v3.ITransitionCoverage=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ISessionEntityType=} [properties] Properties to set */ - function TransitionCoverage(properties) { - this.transitions = []; + function SessionEntityType(properties) { + this.entities = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -39848,91 +39400,104 @@ } /** - * TransitionCoverage transitions. - * @member {Array.} transitions - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * SessionEntityType name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @instance */ - TransitionCoverage.prototype.transitions = $util.emptyArray; + SessionEntityType.prototype.name = ""; /** - * TransitionCoverage coverageScore. - * @member {number} coverageScore - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * SessionEntityType entityOverrideMode. + * @member {google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode} entityOverrideMode + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @instance */ - TransitionCoverage.prototype.coverageScore = 0; + SessionEntityType.prototype.entityOverrideMode = 0; /** - * Creates a new TransitionCoverage instance using the specified properties. + * SessionEntityType entities. + * @member {Array.} entities + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType + * @instance + */ + SessionEntityType.prototype.entities = $util.emptyArray; + + /** + * Creates a new SessionEntityType instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @static - * @param {google.cloud.dialogflow.cx.v3.ITransitionCoverage=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage} TransitionCoverage instance + * @param {google.cloud.dialogflow.cx.v3.ISessionEntityType=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.SessionEntityType} SessionEntityType instance */ - TransitionCoverage.create = function create(properties) { - return new TransitionCoverage(properties); + SessionEntityType.create = function create(properties) { + return new SessionEntityType(properties); }; /** - * Encodes the specified TransitionCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.verify|verify} messages. + * Encodes the specified SessionEntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionEntityType.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @static - * @param {google.cloud.dialogflow.cx.v3.ITransitionCoverage} message TransitionCoverage message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ISessionEntityType} message SessionEntityType message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TransitionCoverage.encode = function encode(message, writer) { + SessionEntityType.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.transitions != null && message.transitions.length) - for (var i = 0; i < message.transitions.length; ++i) - $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.encode(message.transitions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.coverageScore != null && Object.hasOwnProperty.call(message, "coverageScore")) - writer.uint32(/* id 2, wireType 5 =*/21).float(message.coverageScore); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.entityOverrideMode != null && Object.hasOwnProperty.call(message, "entityOverrideMode")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.entityOverrideMode); + if (message.entities != null && message.entities.length) + for (var i = 0; i < message.entities.length; ++i) + $root.google.cloud.dialogflow.cx.v3.EntityType.Entity.encode(message.entities[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified TransitionCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.verify|verify} messages. + * Encodes the specified SessionEntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionEntityType.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @static - * @param {google.cloud.dialogflow.cx.v3.ITransitionCoverage} message TransitionCoverage message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ISessionEntityType} message SessionEntityType message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TransitionCoverage.encodeDelimited = function encodeDelimited(message, writer) { + SessionEntityType.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TransitionCoverage message from the specified reader or buffer. + * Decodes a SessionEntityType message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage} TransitionCoverage + * @returns {google.cloud.dialogflow.cx.v3.SessionEntityType} SessionEntityType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TransitionCoverage.decode = function decode(reader, length) { + SessionEntityType.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TransitionCoverage(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.SessionEntityType(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.transitions && message.transitions.length)) - message.transitions = []; - message.transitions.push($root.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.decode(reader, reader.uint32())); + message.name = reader.string(); break; - case 2: - message.coverageScore = reader.float(); + case 3: + message.entityOverrideMode = reader.int32(); + break; + case 4: + if (!(message.entities && message.entities.length)) + message.entities = []; + message.entities.push($root.google.cloud.dialogflow.cx.v3.EntityType.Entity.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -39943,725 +39508,410 @@ }; /** - * Decodes a TransitionCoverage message from the specified reader or buffer, length delimited. + * Decodes a SessionEntityType message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage} TransitionCoverage + * @returns {google.cloud.dialogflow.cx.v3.SessionEntityType} SessionEntityType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TransitionCoverage.decodeDelimited = function decodeDelimited(reader) { + SessionEntityType.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TransitionCoverage message. + * Verifies a SessionEntityType message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TransitionCoverage.verify = function verify(message) { + SessionEntityType.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.transitions != null && message.hasOwnProperty("transitions")) { - if (!Array.isArray(message.transitions)) - return "transitions: array expected"; - for (var i = 0; i < message.transitions.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.verify(message.transitions[i]); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.entityOverrideMode != null && message.hasOwnProperty("entityOverrideMode")) + switch (message.entityOverrideMode) { + default: + return "entityOverrideMode: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.entities != null && message.hasOwnProperty("entities")) { + if (!Array.isArray(message.entities)) + return "entities: array expected"; + for (var i = 0; i < message.entities.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.EntityType.Entity.verify(message.entities[i]); if (error) - return "transitions." + error; + return "entities." + error; } } - if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) - if (typeof message.coverageScore !== "number") - return "coverageScore: number expected"; return null; }; /** - * Creates a TransitionCoverage message from a plain object. Also converts values to their respective internal types. + * Creates a SessionEntityType message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage} TransitionCoverage + * @returns {google.cloud.dialogflow.cx.v3.SessionEntityType} SessionEntityType */ - TransitionCoverage.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.TransitionCoverage) + SessionEntityType.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.SessionEntityType) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.TransitionCoverage(); - if (object.transitions) { - if (!Array.isArray(object.transitions)) - throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionCoverage.transitions: array expected"); - message.transitions = []; - for (var i = 0; i < object.transitions.length; ++i) { - if (typeof object.transitions[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionCoverage.transitions: object expected"); - message.transitions[i] = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.fromObject(object.transitions[i]); + var message = new $root.google.cloud.dialogflow.cx.v3.SessionEntityType(); + if (object.name != null) + message.name = String(object.name); + switch (object.entityOverrideMode) { + case "ENTITY_OVERRIDE_MODE_UNSPECIFIED": + case 0: + message.entityOverrideMode = 0; + break; + case "ENTITY_OVERRIDE_MODE_OVERRIDE": + case 1: + message.entityOverrideMode = 1; + break; + case "ENTITY_OVERRIDE_MODE_SUPPLEMENT": + case 2: + message.entityOverrideMode = 2; + break; + } + if (object.entities) { + if (!Array.isArray(object.entities)) + throw TypeError(".google.cloud.dialogflow.cx.v3.SessionEntityType.entities: array expected"); + message.entities = []; + for (var i = 0; i < object.entities.length; ++i) { + if (typeof object.entities[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.SessionEntityType.entities: object expected"); + message.entities[i] = $root.google.cloud.dialogflow.cx.v3.EntityType.Entity.fromObject(object.entities[i]); } } - if (object.coverageScore != null) - message.coverageScore = Number(object.coverageScore); return message; }; /** - * Creates a plain object from a TransitionCoverage message. Also converts values to other types if specified. + * Creates a plain object from a SessionEntityType message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage} message TransitionCoverage + * @param {google.cloud.dialogflow.cx.v3.SessionEntityType} message SessionEntityType * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TransitionCoverage.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.transitions = []; - if (options.defaults) - object.coverageScore = 0; - if (message.transitions && message.transitions.length) { - object.transitions = []; - for (var j = 0; j < message.transitions.length; ++j) - object.transitions[j] = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.toObject(message.transitions[j], options); - } - if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) - object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; - return object; - }; - - /** - * Converts this TransitionCoverage to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage - * @instance - * @returns {Object.} JSON object - */ - TransitionCoverage.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - TransitionCoverage.TransitionNode = (function() { - - /** - * Properties of a TransitionNode. - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage - * @interface ITransitionNode - * @property {google.cloud.dialogflow.cx.v3.IPage|null} [page] TransitionNode page - * @property {google.cloud.dialogflow.cx.v3.IFlow|null} [flow] TransitionNode flow - */ - - /** - * Constructs a new TransitionNode. - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage - * @classdesc Represents a TransitionNode. - * @implements ITransitionNode - * @constructor - * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode=} [properties] Properties to set - */ - function TransitionNode(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TransitionNode page. - * @member {google.cloud.dialogflow.cx.v3.IPage|null|undefined} page - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode - * @instance - */ - TransitionNode.prototype.page = null; - - /** - * TransitionNode flow. - * @member {google.cloud.dialogflow.cx.v3.IFlow|null|undefined} flow - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode - * @instance - */ - TransitionNode.prototype.flow = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * TransitionNode kind. - * @member {"page"|"flow"|undefined} kind - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode - * @instance - */ - Object.defineProperty(TransitionNode.prototype, "kind", { - get: $util.oneOfGetter($oneOfFields = ["page", "flow"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new TransitionNode instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode - * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode} TransitionNode instance - */ - TransitionNode.create = function create(properties) { - return new TransitionNode(properties); - }; - - /** - * Encodes the specified TransitionNode message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode - * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode} message TransitionNode message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TransitionNode.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.page != null && Object.hasOwnProperty.call(message, "page")) - $root.google.cloud.dialogflow.cx.v3.Page.encode(message.page, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.flow != null && Object.hasOwnProperty.call(message, "flow")) - $root.google.cloud.dialogflow.cx.v3.Flow.encode(message.flow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified TransitionNode message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode - * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode} message TransitionNode message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TransitionNode.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a TransitionNode message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode} TransitionNode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TransitionNode.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.page = $root.google.cloud.dialogflow.cx.v3.Page.decode(reader, reader.uint32()); - break; - case 2: - message.flow = $root.google.cloud.dialogflow.cx.v3.Flow.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a TransitionNode message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode} TransitionNode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TransitionNode.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TransitionNode message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TransitionNode.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.page != null && message.hasOwnProperty("page")) { - properties.kind = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.Page.verify(message.page); - if (error) - return "page." + error; - } - } - if (message.flow != null && message.hasOwnProperty("flow")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.Flow.verify(message.flow); - if (error) - return "flow." + error; - } - } - return null; - }; - - /** - * Creates a TransitionNode message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode} TransitionNode - */ - TransitionNode.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode(); - if (object.page != null) { - if (typeof object.page !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.page: object expected"); - message.page = $root.google.cloud.dialogflow.cx.v3.Page.fromObject(object.page); - } - if (object.flow != null) { - if (typeof object.flow !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.flow: object expected"); - message.flow = $root.google.cloud.dialogflow.cx.v3.Flow.fromObject(object.flow); - } - return message; - }; - - /** - * Creates a plain object from a TransitionNode message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode - * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode} message TransitionNode - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TransitionNode.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.page != null && message.hasOwnProperty("page")) { - object.page = $root.google.cloud.dialogflow.cx.v3.Page.toObject(message.page, options); - if (options.oneofs) - object.kind = "page"; - } - if (message.flow != null && message.hasOwnProperty("flow")) { - object.flow = $root.google.cloud.dialogflow.cx.v3.Flow.toObject(message.flow, options); - if (options.oneofs) - object.kind = "flow"; - } - return object; - }; - - /** - * Converts this TransitionNode to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode - * @instance - * @returns {Object.} JSON object - */ - TransitionNode.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return TransitionNode; - })(); - - TransitionCoverage.Transition = (function() { - - /** - * Properties of a Transition. - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage - * @interface ITransition - * @property {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode|null} [source] Transition source - * @property {number|null} [index] Transition index - * @property {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode|null} [target] Transition target - * @property {boolean|null} [covered] Transition covered - * @property {google.cloud.dialogflow.cx.v3.ITransitionRoute|null} [transitionRoute] Transition transitionRoute - * @property {google.cloud.dialogflow.cx.v3.IEventHandler|null} [eventHandler] Transition eventHandler - */ - - /** - * Constructs a new Transition. - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage - * @classdesc Represents a Transition. - * @implements ITransition - * @constructor - * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition=} [properties] Properties to set - */ - function Transition(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + SessionEntityType.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.entities = []; + if (options.defaults) { + object.name = ""; + object.entityOverrideMode = options.enums === String ? "ENTITY_OVERRIDE_MODE_UNSPECIFIED" : 0; } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.entityOverrideMode != null && message.hasOwnProperty("entityOverrideMode")) + object.entityOverrideMode = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode[message.entityOverrideMode] : message.entityOverrideMode; + if (message.entities && message.entities.length) { + object.entities = []; + for (var j = 0; j < message.entities.length; ++j) + object.entities[j] = $root.google.cloud.dialogflow.cx.v3.EntityType.Entity.toObject(message.entities[j], options); + } + return object; + }; - /** - * Transition source. - * @member {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode|null|undefined} source - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition - * @instance - */ - Transition.prototype.source = null; - - /** - * Transition index. - * @member {number} index - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition - * @instance - */ - Transition.prototype.index = 0; + /** + * Converts this SessionEntityType to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType + * @instance + * @returns {Object.} JSON object + */ + SessionEntityType.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Transition target. - * @member {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode|null|undefined} target - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition - * @instance - */ - Transition.prototype.target = null; + /** + * EntityOverrideMode enum. + * @name google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode + * @enum {number} + * @property {number} ENTITY_OVERRIDE_MODE_UNSPECIFIED=0 ENTITY_OVERRIDE_MODE_UNSPECIFIED value + * @property {number} ENTITY_OVERRIDE_MODE_OVERRIDE=1 ENTITY_OVERRIDE_MODE_OVERRIDE value + * @property {number} ENTITY_OVERRIDE_MODE_SUPPLEMENT=2 ENTITY_OVERRIDE_MODE_SUPPLEMENT value + */ + SessionEntityType.EntityOverrideMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ENTITY_OVERRIDE_MODE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ENTITY_OVERRIDE_MODE_OVERRIDE"] = 1; + values[valuesById[2] = "ENTITY_OVERRIDE_MODE_SUPPLEMENT"] = 2; + return values; + })(); - /** - * Transition covered. - * @member {boolean} covered - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition - * @instance - */ - Transition.prototype.covered = false; + return SessionEntityType; + })(); - /** - * Transition transitionRoute. - * @member {google.cloud.dialogflow.cx.v3.ITransitionRoute|null|undefined} transitionRoute - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition - * @instance - */ - Transition.prototype.transitionRoute = null; + v3.ListSessionEntityTypesRequest = (function() { - /** - * Transition eventHandler. - * @member {google.cloud.dialogflow.cx.v3.IEventHandler|null|undefined} eventHandler - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition - * @instance - */ - Transition.prototype.eventHandler = null; + /** + * Properties of a ListSessionEntityTypesRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IListSessionEntityTypesRequest + * @property {string|null} [parent] ListSessionEntityTypesRequest parent + * @property {number|null} [pageSize] ListSessionEntityTypesRequest pageSize + * @property {string|null} [pageToken] ListSessionEntityTypesRequest pageToken + */ - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Constructs a new ListSessionEntityTypesRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a ListSessionEntityTypesRequest. + * @implements IListSessionEntityTypesRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest=} [properties] Properties to set + */ + function ListSessionEntityTypesRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Transition detail. - * @member {"transitionRoute"|"eventHandler"|undefined} detail - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition - * @instance - */ - Object.defineProperty(Transition.prototype, "detail", { - get: $util.oneOfGetter($oneOfFields = ["transitionRoute", "eventHandler"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * ListSessionEntityTypesRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @instance + */ + ListSessionEntityTypesRequest.prototype.parent = ""; - /** - * Creates a new Transition instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition - * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition} Transition instance - */ - Transition.create = function create(properties) { - return new Transition(properties); - }; + /** + * ListSessionEntityTypesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @instance + */ + ListSessionEntityTypesRequest.prototype.pageSize = 0; - /** - * Encodes the specified Transition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition - * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition} message Transition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Transition.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.source != null && Object.hasOwnProperty.call(message, "source")) - $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.encode(message.source, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.encode(message.target, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.covered != null && Object.hasOwnProperty.call(message, "covered")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.covered); - if (message.index != null && Object.hasOwnProperty.call(message, "index")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.index); - if (message.transitionRoute != null && Object.hasOwnProperty.call(message, "transitionRoute")) - $root.google.cloud.dialogflow.cx.v3.TransitionRoute.encode(message.transitionRoute, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.eventHandler != null && Object.hasOwnProperty.call(message, "eventHandler")) - $root.google.cloud.dialogflow.cx.v3.EventHandler.encode(message.eventHandler, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - return writer; - }; + /** + * ListSessionEntityTypesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @instance + */ + ListSessionEntityTypesRequest.prototype.pageToken = ""; - /** - * Encodes the specified Transition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition - * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition} message Transition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Transition.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new ListSessionEntityTypesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest instance + */ + ListSessionEntityTypesRequest.create = function create(properties) { + return new ListSessionEntityTypesRequest(properties); + }; - /** - * Decodes a Transition message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition} Transition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Transition.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.source = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.decode(reader, reader.uint32()); - break; - case 4: - message.index = reader.int32(); - break; - case 2: - message.target = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.decode(reader, reader.uint32()); - break; - case 3: - message.covered = reader.bool(); - break; - case 5: - message.transitionRoute = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.decode(reader, reader.uint32()); - break; - case 6: - message.eventHandler = $root.google.cloud.dialogflow.cx.v3.EventHandler.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified ListSessionEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest} message ListSessionEntityTypesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListSessionEntityTypesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + return writer; + }; - /** - * Decodes a Transition message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition} Transition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Transition.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified ListSessionEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest} message ListSessionEntityTypesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListSessionEntityTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies a Transition message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Transition.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.source != null && message.hasOwnProperty("source")) { - var error = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.verify(message.source); - if (error) - return "source." + error; - } - if (message.index != null && message.hasOwnProperty("index")) - if (!$util.isInteger(message.index)) - return "index: integer expected"; - if (message.target != null && message.hasOwnProperty("target")) { - var error = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.verify(message.target); - if (error) - return "target." + error; - } - if (message.covered != null && message.hasOwnProperty("covered")) - if (typeof message.covered !== "boolean") - return "covered: boolean expected"; - if (message.transitionRoute != null && message.hasOwnProperty("transitionRoute")) { - properties.detail = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.verify(message.transitionRoute); - if (error) - return "transitionRoute." + error; - } - } - if (message.eventHandler != null && message.hasOwnProperty("eventHandler")) { - if (properties.detail === 1) - return "detail: multiple values"; - properties.detail = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.EventHandler.verify(message.eventHandler); - if (error) - return "eventHandler." + error; - } + /** + * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListSessionEntityTypesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; } - return null; - }; + } + return message; + }; - /** - * Creates a Transition message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition} Transition - */ - Transition.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition(); - if (object.source != null) { - if (typeof object.source !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.source: object expected"); - message.source = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.fromObject(object.source); - } - if (object.index != null) - message.index = object.index | 0; - if (object.target != null) { - if (typeof object.target !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.target: object expected"); - message.target = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.fromObject(object.target); - } - if (object.covered != null) - message.covered = Boolean(object.covered); - if (object.transitionRoute != null) { - if (typeof object.transitionRoute !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.transitionRoute: object expected"); - message.transitionRoute = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.fromObject(object.transitionRoute); - } - if (object.eventHandler != null) { - if (typeof object.eventHandler !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.eventHandler: object expected"); - message.eventHandler = $root.google.cloud.dialogflow.cx.v3.EventHandler.fromObject(object.eventHandler); - } - return message; - }; + /** + * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListSessionEntityTypesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from a Transition message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition - * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition} message Transition - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Transition.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.source = null; - object.target = null; - object.covered = false; - object.index = 0; - } - if (message.source != null && message.hasOwnProperty("source")) - object.source = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.toObject(message.source, options); - if (message.target != null && message.hasOwnProperty("target")) - object.target = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.toObject(message.target, options); - if (message.covered != null && message.hasOwnProperty("covered")) - object.covered = message.covered; - if (message.index != null && message.hasOwnProperty("index")) - object.index = message.index; - if (message.transitionRoute != null && message.hasOwnProperty("transitionRoute")) { - object.transitionRoute = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.toObject(message.transitionRoute, options); - if (options.oneofs) - object.detail = "transitionRoute"; - } - if (message.eventHandler != null && message.hasOwnProperty("eventHandler")) { - object.eventHandler = $root.google.cloud.dialogflow.cx.v3.EventHandler.toObject(message.eventHandler, options); - if (options.oneofs) - object.detail = "eventHandler"; - } - return object; - }; + /** + * Verifies a ListSessionEntityTypesRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListSessionEntityTypesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + return null; + }; - /** - * Converts this Transition to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition - * @instance - * @returns {Object.} JSON object - */ - Transition.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a ListSessionEntityTypesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest + */ + ListSessionEntityTypesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + return message; + }; - return Transition; - })(); + /** + * Creates a plain object from a ListSessionEntityTypesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest} message ListSessionEntityTypesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListSessionEntityTypesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + return object; + }; - return TransitionCoverage; + /** + * Converts this ListSessionEntityTypesRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @instance + * @returns {Object.} JSON object + */ + ListSessionEntityTypesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListSessionEntityTypesRequest; })(); - v3.TransitionRouteGroupCoverage = (function() { + v3.ListSessionEntityTypesResponse = (function() { /** - * Properties of a TransitionRouteGroupCoverage. + * Properties of a ListSessionEntityTypesResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ITransitionRouteGroupCoverage - * @property {Array.|null} [coverages] TransitionRouteGroupCoverage coverages - * @property {number|null} [coverageScore] TransitionRouteGroupCoverage coverageScore + * @interface IListSessionEntityTypesResponse + * @property {Array.|null} [sessionEntityTypes] ListSessionEntityTypesResponse sessionEntityTypes + * @property {string|null} [nextPageToken] ListSessionEntityTypesResponse nextPageToken */ /** - * Constructs a new TransitionRouteGroupCoverage. + * Constructs a new ListSessionEntityTypesResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a TransitionRouteGroupCoverage. - * @implements ITransitionRouteGroupCoverage + * @classdesc Represents a ListSessionEntityTypesResponse. + * @implements IListSessionEntityTypesResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse=} [properties] Properties to set */ - function TransitionRouteGroupCoverage(properties) { - this.coverages = []; + function ListSessionEntityTypesResponse(properties) { + this.sessionEntityTypes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -40669,91 +39919,91 @@ } /** - * TransitionRouteGroupCoverage coverages. - * @member {Array.} coverages - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage + * ListSessionEntityTypesResponse sessionEntityTypes. + * @member {Array.} sessionEntityTypes + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @instance */ - TransitionRouteGroupCoverage.prototype.coverages = $util.emptyArray; + ListSessionEntityTypesResponse.prototype.sessionEntityTypes = $util.emptyArray; /** - * TransitionRouteGroupCoverage coverageScore. - * @member {number} coverageScore - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage + * ListSessionEntityTypesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @instance */ - TransitionRouteGroupCoverage.prototype.coverageScore = 0; + ListSessionEntityTypesResponse.prototype.nextPageToken = ""; /** - * Creates a new TransitionRouteGroupCoverage instance using the specified properties. + * Creates a new ListSessionEntityTypesResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage instance + * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse instance */ - TransitionRouteGroupCoverage.create = function create(properties) { - return new TransitionRouteGroupCoverage(properties); + ListSessionEntityTypesResponse.create = function create(properties) { + return new ListSessionEntityTypesResponse(properties); }; /** - * Encodes the specified TransitionRouteGroupCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.verify|verify} messages. + * Encodes the specified ListSessionEntityTypesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage} message TransitionRouteGroupCoverage message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse} message ListSessionEntityTypesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TransitionRouteGroupCoverage.encode = function encode(message, writer) { + ListSessionEntityTypesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.coverages != null && message.coverages.length) - for (var i = 0; i < message.coverages.length; ++i) - $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.encode(message.coverages[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.coverageScore != null && Object.hasOwnProperty.call(message, "coverageScore")) - writer.uint32(/* id 2, wireType 5 =*/21).float(message.coverageScore); + if (message.sessionEntityTypes != null && message.sessionEntityTypes.length) + for (var i = 0; i < message.sessionEntityTypes.length; ++i) + $root.google.cloud.dialogflow.cx.v3.SessionEntityType.encode(message.sessionEntityTypes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified TransitionRouteGroupCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.verify|verify} messages. + * Encodes the specified ListSessionEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage} message TransitionRouteGroupCoverage message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse} message ListSessionEntityTypesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TransitionRouteGroupCoverage.encodeDelimited = function encodeDelimited(message, writer) { + ListSessionEntityTypesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TransitionRouteGroupCoverage message from the specified reader or buffer. + * Decodes a ListSessionEntityTypesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage + * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TransitionRouteGroupCoverage.decode = function decode(reader, length) { + ListSessionEntityTypesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.coverages && message.coverages.length)) - message.coverages = []; - message.coverages.push($root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.decode(reader, reader.uint32())); + if (!(message.sessionEntityTypes && message.sessionEntityTypes.length)) + message.sessionEntityTypes = []; + message.sessionEntityTypes.push($root.google.cloud.dialogflow.cx.v3.SessionEntityType.decode(reader, reader.uint32())); break; case 2: - message.coverageScore = reader.float(); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -40764,609 +40014,536 @@ }; /** - * Decodes a TransitionRouteGroupCoverage message from the specified reader or buffer, length delimited. + * Decodes a ListSessionEntityTypesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage + * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TransitionRouteGroupCoverage.decodeDelimited = function decodeDelimited(reader) { + ListSessionEntityTypesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TransitionRouteGroupCoverage message. + * Verifies a ListSessionEntityTypesResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TransitionRouteGroupCoverage.verify = function verify(message) { + ListSessionEntityTypesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.coverages != null && message.hasOwnProperty("coverages")) { - if (!Array.isArray(message.coverages)) - return "coverages: array expected"; - for (var i = 0; i < message.coverages.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.verify(message.coverages[i]); + if (message.sessionEntityTypes != null && message.hasOwnProperty("sessionEntityTypes")) { + if (!Array.isArray(message.sessionEntityTypes)) + return "sessionEntityTypes: array expected"; + for (var i = 0; i < message.sessionEntityTypes.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.verify(message.sessionEntityTypes[i]); if (error) - return "coverages." + error; + return "sessionEntityTypes." + error; } } - if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) - if (typeof message.coverageScore !== "number") - return "coverageScore: number expected"; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a TransitionRouteGroupCoverage message from a plain object. Also converts values to their respective internal types. + * Creates a ListSessionEntityTypesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage + * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse */ - TransitionRouteGroupCoverage.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage) + ListSessionEntityTypesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage(); - if (object.coverages) { - if (!Array.isArray(object.coverages)) - throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.coverages: array expected"); - message.coverages = []; - for (var i = 0; i < object.coverages.length; ++i) { - if (typeof object.coverages[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.coverages: object expected"); - message.coverages[i] = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.fromObject(object.coverages[i]); + var message = new $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse(); + if (object.sessionEntityTypes) { + if (!Array.isArray(object.sessionEntityTypes)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse.sessionEntityTypes: array expected"); + message.sessionEntityTypes = []; + for (var i = 0; i < object.sessionEntityTypes.length; ++i) { + if (typeof object.sessionEntityTypes[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse.sessionEntityTypes: object expected"); + message.sessionEntityTypes[i] = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.fromObject(object.sessionEntityTypes[i]); } } - if (object.coverageScore != null) - message.coverageScore = Number(object.coverageScore); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a TransitionRouteGroupCoverage message. Also converts values to other types if specified. + * Creates a plain object from a ListSessionEntityTypesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage} message TransitionRouteGroupCoverage + * @param {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} message ListSessionEntityTypesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TransitionRouteGroupCoverage.toObject = function toObject(message, options) { + ListSessionEntityTypesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.coverages = []; + object.sessionEntityTypes = []; if (options.defaults) - object.coverageScore = 0; - if (message.coverages && message.coverages.length) { - object.coverages = []; - for (var j = 0; j < message.coverages.length; ++j) - object.coverages[j] = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.toObject(message.coverages[j], options); + object.nextPageToken = ""; + if (message.sessionEntityTypes && message.sessionEntityTypes.length) { + object.sessionEntityTypes = []; + for (var j = 0; j < message.sessionEntityTypes.length; ++j) + object.sessionEntityTypes[j] = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.toObject(message.sessionEntityTypes[j], options); } - if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) - object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this TransitionRouteGroupCoverage to JSON. + * Converts this ListSessionEntityTypesResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @instance * @returns {Object.} JSON object */ - TransitionRouteGroupCoverage.prototype.toJSON = function toJSON() { + ListSessionEntityTypesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - TransitionRouteGroupCoverage.Coverage = (function() { - - /** - * Properties of a Coverage. - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage - * @interface ICoverage - * @property {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null} [routeGroup] Coverage routeGroup - * @property {Array.|null} [transitions] Coverage transitions - * @property {number|null} [coverageScore] Coverage coverageScore - */ - - /** - * Constructs a new Coverage. - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage - * @classdesc Represents a Coverage. - * @implements ICoverage - * @constructor - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage=} [properties] Properties to set - */ - function Coverage(properties) { - this.transitions = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Coverage routeGroup. - * @member {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null|undefined} routeGroup - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage - * @instance - */ - Coverage.prototype.routeGroup = null; - - /** - * Coverage transitions. - * @member {Array.} transitions - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage - * @instance - */ - Coverage.prototype.transitions = $util.emptyArray; - - /** - * Coverage coverageScore. - * @member {number} coverageScore - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage - * @instance - */ - Coverage.prototype.coverageScore = 0; + return ListSessionEntityTypesResponse; + })(); - /** - * Creates a new Coverage instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage - * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage} Coverage instance - */ - Coverage.create = function create(properties) { - return new Coverage(properties); - }; + v3.GetSessionEntityTypeRequest = (function() { - /** - * Encodes the specified Coverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage - * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage} message Coverage message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Coverage.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.routeGroup != null && Object.hasOwnProperty.call(message, "routeGroup")) - $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.encode(message.routeGroup, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.transitions != null && message.transitions.length) - for (var i = 0; i < message.transitions.length; ++i) - $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.encode(message.transitions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.coverageScore != null && Object.hasOwnProperty.call(message, "coverageScore")) - writer.uint32(/* id 3, wireType 5 =*/29).float(message.coverageScore); - return writer; - }; + /** + * Properties of a GetSessionEntityTypeRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IGetSessionEntityTypeRequest + * @property {string|null} [name] GetSessionEntityTypeRequest name + */ - /** - * Encodes the specified Coverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage - * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage} message Coverage message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Coverage.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Constructs a new GetSessionEntityTypeRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a GetSessionEntityTypeRequest. + * @implements IGetSessionEntityTypeRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest=} [properties] Properties to set + */ + function GetSessionEntityTypeRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Decodes a Coverage message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage} Coverage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Coverage.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.routeGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.decode(reader, reader.uint32()); - break; - case 2: - if (!(message.transitions && message.transitions.length)) - message.transitions = []; - message.transitions.push($root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.decode(reader, reader.uint32())); - break; - case 3: - message.coverageScore = reader.float(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * GetSessionEntityTypeRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @instance + */ + GetSessionEntityTypeRequest.prototype.name = ""; - /** - * Decodes a Coverage message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage} Coverage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Coverage.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a new GetSessionEntityTypeRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest instance + */ + GetSessionEntityTypeRequest.create = function create(properties) { + return new GetSessionEntityTypeRequest(properties); + }; - /** - * Verifies a Coverage message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Coverage.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.routeGroup != null && message.hasOwnProperty("routeGroup")) { - var error = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify(message.routeGroup); - if (error) - return "routeGroup." + error; - } - if (message.transitions != null && message.hasOwnProperty("transitions")) { - if (!Array.isArray(message.transitions)) - return "transitions: array expected"; - for (var i = 0; i < message.transitions.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.verify(message.transitions[i]); - if (error) - return "transitions." + error; - } - } - if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) - if (typeof message.coverageScore !== "number") - return "coverageScore: number expected"; - return null; - }; + /** + * Encodes the specified GetSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest} message GetSessionEntityTypeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetSessionEntityTypeRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; - /** - * Creates a Coverage message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage} Coverage - */ - Coverage.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage(); - if (object.routeGroup != null) { - if (typeof object.routeGroup !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.routeGroup: object expected"); - message.routeGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.fromObject(object.routeGroup); - } - if (object.transitions) { - if (!Array.isArray(object.transitions)) - throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.transitions: array expected"); - message.transitions = []; - for (var i = 0; i < object.transitions.length; ++i) { - if (typeof object.transitions[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.transitions: object expected"); - message.transitions[i] = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.fromObject(object.transitions[i]); - } - } - if (object.coverageScore != null) - message.coverageScore = Number(object.coverageScore); - return message; - }; + /** + * Encodes the specified GetSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest} message GetSessionEntityTypeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a plain object from a Coverage message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage - * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage} message Coverage - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Coverage.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.transitions = []; - if (options.defaults) { - object.routeGroup = null; - object.coverageScore = 0; - } - if (message.routeGroup != null && message.hasOwnProperty("routeGroup")) - object.routeGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.toObject(message.routeGroup, options); - if (message.transitions && message.transitions.length) { - object.transitions = []; - for (var j = 0; j < message.transitions.length; ++j) - object.transitions[j] = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.toObject(message.transitions[j], options); + /** + * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetSessionEntityTypeRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; } - if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) - object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; + } + return message; + }; + + /** + * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetSessionEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetSessionEntityTypeRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetSessionEntityTypeRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest + */ + GetSessionEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest) return object; - }; + var message = new $root.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - /** - * Converts this Coverage to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage - * @instance - * @returns {Object.} JSON object - */ - Coverage.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a GetSessionEntityTypeRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest} message GetSessionEntityTypeRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetSessionEntityTypeRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; - Coverage.Transition = (function() { + /** + * Converts this GetSessionEntityTypeRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @instance + * @returns {Object.} JSON object + */ + GetSessionEntityTypeRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Properties of a Transition. - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage - * @interface ITransition - * @property {google.cloud.dialogflow.cx.v3.ITransitionRoute|null} [transitionRoute] Transition transitionRoute - * @property {boolean|null} [covered] Transition covered - */ + return GetSessionEntityTypeRequest; + })(); - /** - * Constructs a new Transition. - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage - * @classdesc Represents a Transition. - * @implements ITransition - * @constructor - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition=} [properties] Properties to set - */ - function Transition(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v3.CreateSessionEntityTypeRequest = (function() { - /** - * Transition transitionRoute. - * @member {google.cloud.dialogflow.cx.v3.ITransitionRoute|null|undefined} transitionRoute - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition - * @instance - */ - Transition.prototype.transitionRoute = null; + /** + * Properties of a CreateSessionEntityTypeRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface ICreateSessionEntityTypeRequest + * @property {string|null} [parent] CreateSessionEntityTypeRequest parent + * @property {google.cloud.dialogflow.cx.v3.ISessionEntityType|null} [sessionEntityType] CreateSessionEntityTypeRequest sessionEntityType + */ - /** - * Transition covered. - * @member {boolean} covered - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition - * @instance - */ - Transition.prototype.covered = false; + /** + * Constructs a new CreateSessionEntityTypeRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a CreateSessionEntityTypeRequest. + * @implements ICreateSessionEntityTypeRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest=} [properties] Properties to set + */ + function CreateSessionEntityTypeRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a new Transition instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition - * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition} Transition instance - */ - Transition.create = function create(properties) { - return new Transition(properties); - }; + /** + * CreateSessionEntityTypeRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * @instance + */ + CreateSessionEntityTypeRequest.prototype.parent = ""; - /** - * Encodes the specified Transition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition - * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition} message Transition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Transition.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.transitionRoute != null && Object.hasOwnProperty.call(message, "transitionRoute")) - $root.google.cloud.dialogflow.cx.v3.TransitionRoute.encode(message.transitionRoute, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.covered != null && Object.hasOwnProperty.call(message, "covered")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.covered); - return writer; - }; + /** + * CreateSessionEntityTypeRequest sessionEntityType. + * @member {google.cloud.dialogflow.cx.v3.ISessionEntityType|null|undefined} sessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * @instance + */ + CreateSessionEntityTypeRequest.prototype.sessionEntityType = null; - /** - * Encodes the specified Transition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition - * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition} message Transition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Transition.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new CreateSessionEntityTypeRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest instance + */ + CreateSessionEntityTypeRequest.create = function create(properties) { + return new CreateSessionEntityTypeRequest(properties); + }; - /** - * Decodes a Transition message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition} Transition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Transition.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.transitionRoute = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.decode(reader, reader.uint32()); - break; - case 2: - message.covered = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified CreateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest} message CreateSessionEntityTypeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateSessionEntityTypeRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.sessionEntityType != null && Object.hasOwnProperty.call(message, "sessionEntityType")) + $root.google.cloud.dialogflow.cx.v3.SessionEntityType.encode(message.sessionEntityType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Decodes a Transition message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition} Transition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Transition.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified CreateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest} message CreateSessionEntityTypeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies a Transition message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Transition.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.transitionRoute != null && message.hasOwnProperty("transitionRoute")) { - var error = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.verify(message.transitionRoute); - if (error) - return "transitionRoute." + error; - } - if (message.covered != null && message.hasOwnProperty("covered")) - if (typeof message.covered !== "boolean") - return "covered: boolean expected"; - return null; - }; + /** + * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateSessionEntityTypeRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a Transition message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition} Transition - */ - Transition.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition(); - if (object.transitionRoute != null) { - if (typeof object.transitionRoute !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.transitionRoute: object expected"); - message.transitionRoute = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.fromObject(object.transitionRoute); - } - if (object.covered != null) - message.covered = Boolean(object.covered); - return message; - }; + /** + * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateSessionEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from a Transition message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition - * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition} message Transition - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Transition.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.transitionRoute = null; - object.covered = false; - } - if (message.transitionRoute != null && message.hasOwnProperty("transitionRoute")) - object.transitionRoute = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.toObject(message.transitionRoute, options); - if (message.covered != null && message.hasOwnProperty("covered")) - object.covered = message.covered; - return object; - }; + /** + * Verifies a CreateSessionEntityTypeRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateSessionEntityTypeRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) { + var error = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.verify(message.sessionEntityType); + if (error) + return "sessionEntityType." + error; + } + return null; + }; - /** - * Converts this Transition to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition - * @instance - * @returns {Object.} JSON object - */ - Transition.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a CreateSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest + */ + CreateSessionEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.sessionEntityType != null) { + if (typeof object.sessionEntityType !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest.sessionEntityType: object expected"); + message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.fromObject(object.sessionEntityType); + } + return message; + }; - return Transition; - })(); + /** + * Creates a plain object from a CreateSessionEntityTypeRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest} message CreateSessionEntityTypeRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateSessionEntityTypeRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.sessionEntityType = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) + object.sessionEntityType = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.toObject(message.sessionEntityType, options); + return object; + }; - return Coverage; - })(); + /** + * Converts this CreateSessionEntityTypeRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * @instance + * @returns {Object.} JSON object + */ + CreateSessionEntityTypeRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return TransitionRouteGroupCoverage; + return CreateSessionEntityTypeRequest; })(); - v3.IntentCoverage = (function() { + v3.UpdateSessionEntityTypeRequest = (function() { /** - * Properties of an IntentCoverage. + * Properties of an UpdateSessionEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IIntentCoverage - * @property {Array.|null} [intents] IntentCoverage intents - * @property {number|null} [coverageScore] IntentCoverage coverageScore + * @interface IUpdateSessionEntityTypeRequest + * @property {google.cloud.dialogflow.cx.v3.ISessionEntityType|null} [sessionEntityType] UpdateSessionEntityTypeRequest sessionEntityType + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSessionEntityTypeRequest updateMask */ /** - * Constructs a new IntentCoverage. + * Constructs a new UpdateSessionEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an IntentCoverage. - * @implements IIntentCoverage + * @classdesc Represents an UpdateSessionEntityTypeRequest. + * @implements IUpdateSessionEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IIntentCoverage=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest=} [properties] Properties to set */ - function IntentCoverage(properties) { - this.intents = []; + function UpdateSessionEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -41374,91 +40551,88 @@ } /** - * IntentCoverage intents. - * @member {Array.} intents - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage + * UpdateSessionEntityTypeRequest sessionEntityType. + * @member {google.cloud.dialogflow.cx.v3.ISessionEntityType|null|undefined} sessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @instance */ - IntentCoverage.prototype.intents = $util.emptyArray; + UpdateSessionEntityTypeRequest.prototype.sessionEntityType = null; /** - * IntentCoverage coverageScore. - * @member {number} coverageScore - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage + * UpdateSessionEntityTypeRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @instance */ - IntentCoverage.prototype.coverageScore = 0; + UpdateSessionEntityTypeRequest.prototype.updateMask = null; /** - * Creates a new IntentCoverage instance using the specified properties. + * Creates a new UpdateSessionEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IIntentCoverage=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.IntentCoverage} IntentCoverage instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest instance */ - IntentCoverage.create = function create(properties) { - return new IntentCoverage(properties); + UpdateSessionEntityTypeRequest.create = function create(properties) { + return new UpdateSessionEntityTypeRequest(properties); }; /** - * Encodes the specified IntentCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentCoverage.verify|verify} messages. + * Encodes the specified UpdateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IIntentCoverage} message IntentCoverage message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest} message UpdateSessionEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IntentCoverage.encode = function encode(message, writer) { + UpdateSessionEntityTypeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.intents != null && message.intents.length) - for (var i = 0; i < message.intents.length; ++i) - $root.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent.encode(message.intents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.coverageScore != null && Object.hasOwnProperty.call(message, "coverageScore")) - writer.uint32(/* id 2, wireType 5 =*/21).float(message.coverageScore); + if (message.sessionEntityType != null && Object.hasOwnProperty.call(message, "sessionEntityType")) + $root.google.cloud.dialogflow.cx.v3.SessionEntityType.encode(message.sessionEntityType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified IntentCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentCoverage.verify|verify} messages. + * Encodes the specified UpdateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IIntentCoverage} message IntentCoverage message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest} message UpdateSessionEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IntentCoverage.encodeDelimited = function encodeDelimited(message, writer) { + UpdateSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IntentCoverage message from the specified reader or buffer. + * Decodes an UpdateSessionEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.IntentCoverage} IntentCoverage + * @returns {google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IntentCoverage.decode = function decode(reader, length) { + UpdateSessionEntityTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.IntentCoverage(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.intents && message.intents.length)) - message.intents = []; - message.intents.push($root.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent.decode(reader, reader.uint32())); + message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.decode(reader, reader.uint32()); break; case 2: - message.coverageScore = reader.float(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -41469,344 +40643,516 @@ }; /** - * Decodes an IntentCoverage message from the specified reader or buffer, length delimited. + * Decodes an UpdateSessionEntityTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.IntentCoverage} IntentCoverage + * @returns {google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IntentCoverage.decodeDelimited = function decodeDelimited(reader) { + UpdateSessionEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IntentCoverage message. + * Verifies an UpdateSessionEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IntentCoverage.verify = function verify(message) { + UpdateSessionEntityTypeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.intents != null && message.hasOwnProperty("intents")) { - if (!Array.isArray(message.intents)) - return "intents: array expected"; - for (var i = 0; i < message.intents.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent.verify(message.intents[i]); - if (error) - return "intents." + error; - } + if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) { + var error = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.verify(message.sessionEntityType); + if (error) + return "sessionEntityType." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } - if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) - if (typeof message.coverageScore !== "number") - return "coverageScore: number expected"; return null; }; /** - * Creates an IntentCoverage message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.IntentCoverage} IntentCoverage + * @returns {google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest */ - IntentCoverage.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.IntentCoverage) + UpdateSessionEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.IntentCoverage(); - if (object.intents) { - if (!Array.isArray(object.intents)) - throw TypeError(".google.cloud.dialogflow.cx.v3.IntentCoverage.intents: array expected"); - message.intents = []; - for (var i = 0; i < object.intents.length; ++i) { - if (typeof object.intents[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.IntentCoverage.intents: object expected"); - message.intents[i] = $root.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent.fromObject(object.intents[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest(); + if (object.sessionEntityType != null) { + if (typeof object.sessionEntityType !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest.sessionEntityType: object expected"); + message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.fromObject(object.sessionEntityType); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } - if (object.coverageScore != null) - message.coverageScore = Number(object.coverageScore); return message; }; /** - * Creates a plain object from an IntentCoverage message. Also converts values to other types if specified. + * Creates a plain object from an UpdateSessionEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IntentCoverage} message IntentCoverage + * @param {google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest} message UpdateSessionEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IntentCoverage.toObject = function toObject(message, options) { + UpdateSessionEntityTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.intents = []; - if (options.defaults) - object.coverageScore = 0; - if (message.intents && message.intents.length) { - object.intents = []; - for (var j = 0; j < message.intents.length; ++j) - object.intents[j] = $root.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent.toObject(message.intents[j], options); + if (options.defaults) { + object.sessionEntityType = null; + object.updateMask = null; } - if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) - object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; + if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) + object.sessionEntityType = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.toObject(message.sessionEntityType, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this IntentCoverage to JSON. + * Converts this UpdateSessionEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @instance * @returns {Object.} JSON object */ - IntentCoverage.prototype.toJSON = function toJSON() { + UpdateSessionEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - IntentCoverage.Intent = (function() { + return UpdateSessionEntityTypeRequest; + })(); - /** - * Properties of an Intent. - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage - * @interface IIntent - * @property {string|null} [intent] Intent intent - * @property {boolean|null} [covered] Intent covered - */ + v3.DeleteSessionEntityTypeRequest = (function() { - /** - * Constructs a new Intent. - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage - * @classdesc Represents an Intent. - * @implements IIntent - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent=} [properties] Properties to set - */ - function Intent(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Properties of a DeleteSessionEntityTypeRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IDeleteSessionEntityTypeRequest + * @property {string|null} [name] DeleteSessionEntityTypeRequest name + */ + + /** + * Constructs a new DeleteSessionEntityTypeRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a DeleteSessionEntityTypeRequest. + * @implements IDeleteSessionEntityTypeRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest=} [properties] Properties to set + */ + function DeleteSessionEntityTypeRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeleteSessionEntityTypeRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest + * @instance + */ + DeleteSessionEntityTypeRequest.prototype.name = ""; + + /** + * Creates a new DeleteSessionEntityTypeRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest instance + */ + DeleteSessionEntityTypeRequest.create = function create(properties) { + return new DeleteSessionEntityTypeRequest(properties); + }; + + /** + * Encodes the specified DeleteSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest} message DeleteSessionEntityTypeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteSessionEntityTypeRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified DeleteSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest} message DeleteSessionEntityTypeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteSessionEntityTypeRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } } + return message; + }; - /** - * Intent intent. - * @member {string} intent - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent - * @instance - */ - Intent.prototype.intent = ""; + /** + * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteSessionEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Intent covered. - * @member {boolean} covered - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent - * @instance - */ - Intent.prototype.covered = false; + /** + * Verifies a DeleteSessionEntityTypeRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteSessionEntityTypeRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a DeleteSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest + */ + DeleteSessionEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a DeleteSessionEntityTypeRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest} message DeleteSessionEntityTypeRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteSessionEntityTypeRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this DeleteSessionEntityTypeRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteSessionEntityTypeRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteSessionEntityTypeRequest; + })(); + + v3.TransitionRouteGroups = (function() { + + /** + * Constructs a new TransitionRouteGroups service. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a TransitionRouteGroups + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function TransitionRouteGroups(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (TransitionRouteGroups.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = TransitionRouteGroups; + + /** + * Creates new TransitionRouteGroups service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {TransitionRouteGroups} RPC service. Useful where requests and/or responses are streamed. + */ + TransitionRouteGroups.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#listTransitionRouteGroups}. + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * @typedef ListTransitionRouteGroupsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} [response] ListTransitionRouteGroupsResponse + */ + + /** + * Calls ListTransitionRouteGroups. + * @function listTransitionRouteGroups + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * @instance + * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest} request ListTransitionRouteGroupsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroups.ListTransitionRouteGroupsCallback} callback Node-style callback called with the error, if any, and ListTransitionRouteGroupsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(TransitionRouteGroups.prototype.listTransitionRouteGroups = function listTransitionRouteGroups(request, callback) { + return this.rpcCall(listTransitionRouteGroups, $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest, $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse, request, callback); + }, "name", { value: "ListTransitionRouteGroups" }); + + /** + * Calls ListTransitionRouteGroups. + * @function listTransitionRouteGroups + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * @instance + * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest} request ListTransitionRouteGroupsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#getTransitionRouteGroup}. + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * @typedef GetTransitionRouteGroupCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} [response] TransitionRouteGroup + */ - /** - * Creates a new Intent instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent - * @static - * @param {google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.IntentCoverage.Intent} Intent instance - */ - Intent.create = function create(properties) { - return new Intent(properties); - }; + /** + * Calls GetTransitionRouteGroup. + * @function getTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest} request GetTransitionRouteGroupRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroups.GetTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and TransitionRouteGroup + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(TransitionRouteGroups.prototype.getTransitionRouteGroup = function getTransitionRouteGroup(request, callback) { + return this.rpcCall(getTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest, $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup, request, callback); + }, "name", { value: "GetTransitionRouteGroup" }); - /** - * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentCoverage.Intent.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent - * @static - * @param {google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent} message Intent message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Intent.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.intent); - if (message.covered != null && Object.hasOwnProperty.call(message, "covered")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.covered); - return writer; - }; + /** + * Calls GetTransitionRouteGroup. + * @function getTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest} request GetTransitionRouteGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Encodes the specified Intent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentCoverage.Intent.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent - * @static - * @param {google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent} message Intent message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Intent.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#createTransitionRouteGroup}. + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * @typedef CreateTransitionRouteGroupCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} [response] TransitionRouteGroup + */ - /** - * Decodes an Intent message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.IntentCoverage.Intent} Intent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Intent.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.intent = reader.string(); - break; - case 2: - message.covered = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Calls CreateTransitionRouteGroup. + * @function createTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * @instance + * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest} request CreateTransitionRouteGroupRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and TransitionRouteGroup + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(TransitionRouteGroups.prototype.createTransitionRouteGroup = function createTransitionRouteGroup(request, callback) { + return this.rpcCall(createTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest, $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup, request, callback); + }, "name", { value: "CreateTransitionRouteGroup" }); - /** - * Decodes an Intent message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.IntentCoverage.Intent} Intent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Intent.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Calls CreateTransitionRouteGroup. + * @function createTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * @instance + * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest} request CreateTransitionRouteGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Verifies an Intent message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Intent.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.intent != null && message.hasOwnProperty("intent")) - if (!$util.isString(message.intent)) - return "intent: string expected"; - if (message.covered != null && message.hasOwnProperty("covered")) - if (typeof message.covered !== "boolean") - return "covered: boolean expected"; - return null; - }; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#updateTransitionRouteGroup}. + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * @typedef UpdateTransitionRouteGroupCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} [response] TransitionRouteGroup + */ - /** - * Creates an Intent message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.IntentCoverage.Intent} Intent - */ - Intent.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent(); - if (object.intent != null) - message.intent = String(object.intent); - if (object.covered != null) - message.covered = Boolean(object.covered); - return message; - }; + /** + * Calls UpdateTransitionRouteGroup. + * @function updateTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * @instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest} request UpdateTransitionRouteGroupRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroups.UpdateTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and TransitionRouteGroup + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(TransitionRouteGroups.prototype.updateTransitionRouteGroup = function updateTransitionRouteGroup(request, callback) { + return this.rpcCall(updateTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest, $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup, request, callback); + }, "name", { value: "UpdateTransitionRouteGroup" }); - /** - * Creates a plain object from an Intent message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent - * @static - * @param {google.cloud.dialogflow.cx.v3.IntentCoverage.Intent} message Intent - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Intent.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.intent = ""; - object.covered = false; - } - if (message.intent != null && message.hasOwnProperty("intent")) - object.intent = message.intent; - if (message.covered != null && message.hasOwnProperty("covered")) - object.covered = message.covered; - return object; - }; + /** + * Calls UpdateTransitionRouteGroup. + * @function updateTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * @instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest} request UpdateTransitionRouteGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Converts this Intent to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent - * @instance - * @returns {Object.} JSON object - */ - Intent.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#deleteTransitionRouteGroup}. + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * @typedef DeleteTransitionRouteGroupCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ - return Intent; - })(); + /** + * Calls DeleteTransitionRouteGroup. + * @function deleteTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * @instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest} request DeleteTransitionRouteGroupRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroups.DeleteTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(TransitionRouteGroups.prototype.deleteTransitionRouteGroup = function deleteTransitionRouteGroup(request, callback) { + return this.rpcCall(deleteTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteTransitionRouteGroup" }); - return IntentCoverage; + /** + * Calls DeleteTransitionRouteGroup. + * @function deleteTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * @instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest} request DeleteTransitionRouteGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return TransitionRouteGroups; })(); - v3.CalculateCoverageRequest = (function() { + v3.TransitionRouteGroup = (function() { /** - * Properties of a CalculateCoverageRequest. + * Properties of a TransitionRouteGroup. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ICalculateCoverageRequest - * @property {string|null} [agent] CalculateCoverageRequest agent - * @property {google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType|null} [type] CalculateCoverageRequest type + * @interface ITransitionRouteGroup + * @property {string|null} [name] TransitionRouteGroup name + * @property {string|null} [displayName] TransitionRouteGroup displayName + * @property {Array.|null} [transitionRoutes] TransitionRouteGroup transitionRoutes */ /** - * Constructs a new CalculateCoverageRequest. + * Constructs a new TransitionRouteGroup. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CalculateCoverageRequest. - * @implements ICalculateCoverageRequest + * @classdesc Represents a TransitionRouteGroup. + * @implements ITransitionRouteGroup * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup=} [properties] Properties to set */ - function CalculateCoverageRequest(properties) { + function TransitionRouteGroup(properties) { + this.transitionRoutes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -41814,88 +41160,104 @@ } /** - * CalculateCoverageRequest agent. - * @member {string} agent - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest + * TransitionRouteGroup name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @instance */ - CalculateCoverageRequest.prototype.agent = ""; + TransitionRouteGroup.prototype.name = ""; /** - * CalculateCoverageRequest type. - * @member {google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType} type - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest + * TransitionRouteGroup displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @instance */ - CalculateCoverageRequest.prototype.type = 0; + TransitionRouteGroup.prototype.displayName = ""; /** - * Creates a new CalculateCoverageRequest instance using the specified properties. + * TransitionRouteGroup transitionRoutes. + * @member {Array.} transitionRoutes + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup + * @instance + */ + TransitionRouteGroup.prototype.transitionRoutes = $util.emptyArray; + + /** + * Creates a new TransitionRouteGroup instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @static - * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.CalculateCoverageRequest} CalculateCoverageRequest instance + * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} TransitionRouteGroup instance */ - CalculateCoverageRequest.create = function create(properties) { - return new CalculateCoverageRequest(properties); + TransitionRouteGroup.create = function create(properties) { + return new TransitionRouteGroup(properties); }; /** - * Encodes the specified CalculateCoverageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.verify|verify} messages. + * Encodes the specified TransitionRouteGroup message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @static - * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest} message CalculateCoverageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup} message TransitionRouteGroup message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CalculateCoverageRequest.encode = function encode(message, writer) { + TransitionRouteGroup.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); - if (message.agent != null && Object.hasOwnProperty.call(message, "agent")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.agent); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.transitionRoutes != null && message.transitionRoutes.length) + for (var i = 0; i < message.transitionRoutes.length; ++i) + $root.google.cloud.dialogflow.cx.v3.TransitionRoute.encode(message.transitionRoutes[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified CalculateCoverageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.verify|verify} messages. + * Encodes the specified TransitionRouteGroup message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @static - * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest} message CalculateCoverageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup} message TransitionRouteGroup message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CalculateCoverageRequest.encodeDelimited = function encodeDelimited(message, writer) { + TransitionRouteGroup.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CalculateCoverageRequest message from the specified reader or buffer. + * Decodes a TransitionRouteGroup message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.CalculateCoverageRequest} CalculateCoverageRequest + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} TransitionRouteGroup * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CalculateCoverageRequest.decode = function decode(reader, length) { + TransitionRouteGroup.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 3: - message.agent = reader.string(); + case 1: + message.name = reader.string(); break; case 2: - message.type = reader.int32(); + message.displayName = reader.string(); + break; + case 5: + if (!(message.transitionRoutes && message.transitionRoutes.length)) + message.transitionRoutes = []; + message.transitionRoutes.push($root.google.cloud.dialogflow.cx.v3.TransitionRoute.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -41906,160 +41268,145 @@ }; /** - * Decodes a CalculateCoverageRequest message from the specified reader or buffer, length delimited. + * Decodes a TransitionRouteGroup message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.CalculateCoverageRequest} CalculateCoverageRequest + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} TransitionRouteGroup * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CalculateCoverageRequest.decodeDelimited = function decodeDelimited(reader) { + TransitionRouteGroup.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CalculateCoverageRequest message. + * Verifies a TransitionRouteGroup message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CalculateCoverageRequest.verify = function verify(message) { + TransitionRouteGroup.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.agent != null && message.hasOwnProperty("agent")) - if (!$util.isString(message.agent)) - return "agent: string expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.transitionRoutes != null && message.hasOwnProperty("transitionRoutes")) { + if (!Array.isArray(message.transitionRoutes)) + return "transitionRoutes: array expected"; + for (var i = 0; i < message.transitionRoutes.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.verify(message.transitionRoutes[i]); + if (error) + return "transitionRoutes." + error; } + } return null; }; /** - * Creates a CalculateCoverageRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TransitionRouteGroup message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CalculateCoverageRequest} CalculateCoverageRequest + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} TransitionRouteGroup */ - CalculateCoverageRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest) + TransitionRouteGroup.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest(); - if (object.agent != null) - message.agent = String(object.agent); - switch (object.type) { - case "COVERAGE_TYPE_UNSPECIFIED": - case 0: - message.type = 0; - break; - case "INTENT": - case 1: - message.type = 1; - break; - case "PAGE_TRANSITION": - case 2: - message.type = 2; - break; - case "TRANSITION_ROUTE_GROUP": - case 3: - message.type = 3; - break; + var message = new $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.transitionRoutes) { + if (!Array.isArray(object.transitionRoutes)) + throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRouteGroup.transitionRoutes: array expected"); + message.transitionRoutes = []; + for (var i = 0; i < object.transitionRoutes.length; ++i) { + if (typeof object.transitionRoutes[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRouteGroup.transitionRoutes: object expected"); + message.transitionRoutes[i] = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.fromObject(object.transitionRoutes[i]); + } } return message; }; /** - * Creates a plain object from a CalculateCoverageRequest message. Also converts values to other types if specified. + * Creates a plain object from a TransitionRouteGroup message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @static - * @param {google.cloud.dialogflow.cx.v3.CalculateCoverageRequest} message CalculateCoverageRequest + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} message TransitionRouteGroup * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CalculateCoverageRequest.toObject = function toObject(message, options) { + TransitionRouteGroup.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.transitionRoutes = []; if (options.defaults) { - object.type = options.enums === String ? "COVERAGE_TYPE_UNSPECIFIED" : 0; - object.agent = ""; + object.name = ""; + object.displayName = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.transitionRoutes && message.transitionRoutes.length) { + object.transitionRoutes = []; + for (var j = 0; j < message.transitionRoutes.length; ++j) + object.transitionRoutes[j] = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.toObject(message.transitionRoutes[j], options); } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType[message.type] : message.type; - if (message.agent != null && message.hasOwnProperty("agent")) - object.agent = message.agent; return object; }; /** - * Converts this CalculateCoverageRequest to JSON. + * Converts this TransitionRouteGroup to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @instance - * @returns {Object.} JSON object - */ - CalculateCoverageRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * CoverageType enum. - * @name google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType - * @enum {number} - * @property {number} COVERAGE_TYPE_UNSPECIFIED=0 COVERAGE_TYPE_UNSPECIFIED value - * @property {number} INTENT=1 INTENT value - * @property {number} PAGE_TRANSITION=2 PAGE_TRANSITION value - * @property {number} TRANSITION_ROUTE_GROUP=3 TRANSITION_ROUTE_GROUP value + * @returns {Object.} JSON object */ - CalculateCoverageRequest.CoverageType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "COVERAGE_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "INTENT"] = 1; - values[valuesById[2] = "PAGE_TRANSITION"] = 2; - values[valuesById[3] = "TRANSITION_ROUTE_GROUP"] = 3; - return values; - })(); + TransitionRouteGroup.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return CalculateCoverageRequest; + return TransitionRouteGroup; })(); - v3.CalculateCoverageResponse = (function() { + v3.ListTransitionRouteGroupsRequest = (function() { /** - * Properties of a CalculateCoverageResponse. + * Properties of a ListTransitionRouteGroupsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ICalculateCoverageResponse - * @property {string|null} [agent] CalculateCoverageResponse agent - * @property {google.cloud.dialogflow.cx.v3.IIntentCoverage|null} [intentCoverage] CalculateCoverageResponse intentCoverage - * @property {google.cloud.dialogflow.cx.v3.ITransitionCoverage|null} [transitionCoverage] CalculateCoverageResponse transitionCoverage - * @property {google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage|null} [routeGroupCoverage] CalculateCoverageResponse routeGroupCoverage + * @interface IListTransitionRouteGroupsRequest + * @property {string|null} [parent] ListTransitionRouteGroupsRequest parent + * @property {number|null} [pageSize] ListTransitionRouteGroupsRequest pageSize + * @property {string|null} [pageToken] ListTransitionRouteGroupsRequest pageToken + * @property {string|null} [languageCode] ListTransitionRouteGroupsRequest languageCode */ /** - * Constructs a new CalculateCoverageResponse. + * Constructs a new ListTransitionRouteGroupsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CalculateCoverageResponse. - * @implements ICalculateCoverageResponse + * @classdesc Represents a ListTransitionRouteGroupsRequest. + * @implements IListTransitionRouteGroupsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest=} [properties] Properties to set */ - function CalculateCoverageResponse(properties) { + function ListTransitionRouteGroupsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -42067,128 +41414,114 @@ } /** - * CalculateCoverageResponse agent. - * @member {string} agent - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse - * @instance - */ - CalculateCoverageResponse.prototype.agent = ""; - - /** - * CalculateCoverageResponse intentCoverage. - * @member {google.cloud.dialogflow.cx.v3.IIntentCoverage|null|undefined} intentCoverage - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * ListTransitionRouteGroupsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @instance */ - CalculateCoverageResponse.prototype.intentCoverage = null; + ListTransitionRouteGroupsRequest.prototype.parent = ""; /** - * CalculateCoverageResponse transitionCoverage. - * @member {google.cloud.dialogflow.cx.v3.ITransitionCoverage|null|undefined} transitionCoverage - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * ListTransitionRouteGroupsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @instance */ - CalculateCoverageResponse.prototype.transitionCoverage = null; + ListTransitionRouteGroupsRequest.prototype.pageSize = 0; /** - * CalculateCoverageResponse routeGroupCoverage. - * @member {google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage|null|undefined} routeGroupCoverage - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * ListTransitionRouteGroupsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @instance */ - CalculateCoverageResponse.prototype.routeGroupCoverage = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + ListTransitionRouteGroupsRequest.prototype.pageToken = ""; /** - * CalculateCoverageResponse coverageType. - * @member {"intentCoverage"|"transitionCoverage"|"routeGroupCoverage"|undefined} coverageType - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * ListTransitionRouteGroupsRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @instance */ - Object.defineProperty(CalculateCoverageResponse.prototype, "coverageType", { - get: $util.oneOfGetter($oneOfFields = ["intentCoverage", "transitionCoverage", "routeGroupCoverage"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListTransitionRouteGroupsRequest.prototype.languageCode = ""; /** - * Creates a new CalculateCoverageResponse instance using the specified properties. + * Creates a new ListTransitionRouteGroupsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.CalculateCoverageResponse} CalculateCoverageResponse instance + * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest instance */ - CalculateCoverageResponse.create = function create(properties) { - return new CalculateCoverageResponse(properties); + ListTransitionRouteGroupsRequest.create = function create(properties) { + return new ListTransitionRouteGroupsRequest(properties); }; /** - * Encodes the specified CalculateCoverageResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CalculateCoverageResponse.verify|verify} messages. + * Encodes the specified ListTransitionRouteGroupsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageResponse} message CalculateCoverageResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest} message ListTransitionRouteGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CalculateCoverageResponse.encode = function encode(message, writer) { + ListTransitionRouteGroupsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.intentCoverage != null && Object.hasOwnProperty.call(message, "intentCoverage")) - $root.google.cloud.dialogflow.cx.v3.IntentCoverage.encode(message.intentCoverage, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.transitionCoverage != null && Object.hasOwnProperty.call(message, "transitionCoverage")) - $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.encode(message.transitionCoverage, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.agent != null && Object.hasOwnProperty.call(message, "agent")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.agent); - if (message.routeGroupCoverage != null && Object.hasOwnProperty.call(message, "routeGroupCoverage")) - $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.encode(message.routeGroupCoverage, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.languageCode); return writer; }; /** - * Encodes the specified CalculateCoverageResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CalculateCoverageResponse.verify|verify} messages. + * Encodes the specified ListTransitionRouteGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageResponse} message CalculateCoverageResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest} message ListTransitionRouteGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CalculateCoverageResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListTransitionRouteGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CalculateCoverageResponse message from the specified reader or buffer. + * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.CalculateCoverageResponse} CalculateCoverageResponse + * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CalculateCoverageResponse.decode = function decode(reader, length) { + ListTransitionRouteGroupsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 5: - message.agent = reader.string(); + case 1: + message.parent = reader.string(); break; case 2: - message.intentCoverage = $root.google.cloud.dialogflow.cx.v3.IntentCoverage.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); break; - case 4: - message.transitionCoverage = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.decode(reader, reader.uint32()); + case 3: + message.pageToken = reader.string(); break; - case 6: - message.routeGroupCoverage = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.decode(reader, reader.uint32()); + case 4: + message.languageCode = reader.string(); break; default: reader.skipType(tag & 7); @@ -42199,169 +41532,134 @@ }; /** - * Decodes a CalculateCoverageResponse message from the specified reader or buffer, length delimited. + * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.CalculateCoverageResponse} CalculateCoverageResponse + * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CalculateCoverageResponse.decodeDelimited = function decodeDelimited(reader) { + ListTransitionRouteGroupsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CalculateCoverageResponse message. + * Verifies a ListTransitionRouteGroupsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CalculateCoverageResponse.verify = function verify(message) { + ListTransitionRouteGroupsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.agent != null && message.hasOwnProperty("agent")) - if (!$util.isString(message.agent)) - return "agent: string expected"; - if (message.intentCoverage != null && message.hasOwnProperty("intentCoverage")) { - properties.coverageType = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.IntentCoverage.verify(message.intentCoverage); - if (error) - return "intentCoverage." + error; - } - } - if (message.transitionCoverage != null && message.hasOwnProperty("transitionCoverage")) { - if (properties.coverageType === 1) - return "coverageType: multiple values"; - properties.coverageType = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.verify(message.transitionCoverage); - if (error) - return "transitionCoverage." + error; - } - } - if (message.routeGroupCoverage != null && message.hasOwnProperty("routeGroupCoverage")) { - if (properties.coverageType === 1) - return "coverageType: multiple values"; - properties.coverageType = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.verify(message.routeGroupCoverage); - if (error) - return "routeGroupCoverage." + error; - } - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates a CalculateCoverageResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListTransitionRouteGroupsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CalculateCoverageResponse} CalculateCoverageResponse + * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest */ - CalculateCoverageResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse) + ListTransitionRouteGroupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse(); - if (object.agent != null) - message.agent = String(object.agent); - if (object.intentCoverage != null) { - if (typeof object.intentCoverage !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CalculateCoverageResponse.intentCoverage: object expected"); - message.intentCoverage = $root.google.cloud.dialogflow.cx.v3.IntentCoverage.fromObject(object.intentCoverage); - } - if (object.transitionCoverage != null) { - if (typeof object.transitionCoverage !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CalculateCoverageResponse.transitionCoverage: object expected"); - message.transitionCoverage = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.fromObject(object.transitionCoverage); - } - if (object.routeGroupCoverage != null) { - if (typeof object.routeGroupCoverage !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CalculateCoverageResponse.routeGroupCoverage: object expected"); - message.routeGroupCoverage = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.fromObject(object.routeGroupCoverage); - } + var message = new $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a CalculateCoverageResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListTransitionRouteGroupsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.CalculateCoverageResponse} message CalculateCoverageResponse + * @param {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest} message ListTransitionRouteGroupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CalculateCoverageResponse.toObject = function toObject(message, options) { + ListTransitionRouteGroupsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.agent = ""; - if (message.intentCoverage != null && message.hasOwnProperty("intentCoverage")) { - object.intentCoverage = $root.google.cloud.dialogflow.cx.v3.IntentCoverage.toObject(message.intentCoverage, options); - if (options.oneofs) - object.coverageType = "intentCoverage"; - } - if (message.transitionCoverage != null && message.hasOwnProperty("transitionCoverage")) { - object.transitionCoverage = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.toObject(message.transitionCoverage, options); - if (options.oneofs) - object.coverageType = "transitionCoverage"; - } - if (message.agent != null && message.hasOwnProperty("agent")) - object.agent = message.agent; - if (message.routeGroupCoverage != null && message.hasOwnProperty("routeGroupCoverage")) { - object.routeGroupCoverage = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.toObject(message.routeGroupCoverage, options); - if (options.oneofs) - object.coverageType = "routeGroupCoverage"; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.languageCode = ""; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this CalculateCoverageResponse to JSON. + * Converts this ListTransitionRouteGroupsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @instance * @returns {Object.} JSON object */ - CalculateCoverageResponse.prototype.toJSON = function toJSON() { + ListTransitionRouteGroupsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CalculateCoverageResponse; + return ListTransitionRouteGroupsRequest; })(); - v3.ListTestCasesRequest = (function() { + v3.ListTransitionRouteGroupsResponse = (function() { /** - * Properties of a ListTestCasesRequest. + * Properties of a ListTransitionRouteGroupsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListTestCasesRequest - * @property {string|null} [parent] ListTestCasesRequest parent - * @property {number|null} [pageSize] ListTestCasesRequest pageSize - * @property {string|null} [pageToken] ListTestCasesRequest pageToken - * @property {google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView|null} [view] ListTestCasesRequest view + * @interface IListTransitionRouteGroupsResponse + * @property {Array.|null} [transitionRouteGroups] ListTransitionRouteGroupsResponse transitionRouteGroups + * @property {string|null} [nextPageToken] ListTransitionRouteGroupsResponse nextPageToken */ /** - * Constructs a new ListTestCasesRequest. + * Constructs a new ListTransitionRouteGroupsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListTestCasesRequest. - * @implements IListTestCasesRequest + * @classdesc Represents a ListTransitionRouteGroupsResponse. + * @implements IListTransitionRouteGroupsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListTestCasesRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse=} [properties] Properties to set */ - function ListTestCasesRequest(properties) { + function ListTransitionRouteGroupsResponse(properties) { + this.transitionRouteGroups = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -42369,114 +41667,91 @@ } /** - * ListTestCasesRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest - * @instance - */ - ListTestCasesRequest.prototype.parent = ""; - - /** - * ListTestCasesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest - * @instance - */ - ListTestCasesRequest.prototype.pageSize = 0; - - /** - * ListTestCasesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * ListTransitionRouteGroupsResponse transitionRouteGroups. + * @member {Array.} transitionRouteGroups + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @instance */ - ListTestCasesRequest.prototype.pageToken = ""; + ListTransitionRouteGroupsResponse.prototype.transitionRouteGroups = $util.emptyArray; /** - * ListTestCasesRequest view. - * @member {google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView} view - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * ListTransitionRouteGroupsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @instance */ - ListTestCasesRequest.prototype.view = 0; + ListTransitionRouteGroupsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListTestCasesRequest instance using the specified properties. + * Creates a new ListTransitionRouteGroupsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IListTestCasesRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListTestCasesRequest} ListTestCasesRequest instance + * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse instance */ - ListTestCasesRequest.create = function create(properties) { - return new ListTestCasesRequest(properties); + ListTransitionRouteGroupsResponse.create = function create(properties) { + return new ListTransitionRouteGroupsResponse(properties); }; /** - * Encodes the specified ListTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCasesRequest.verify|verify} messages. + * Encodes the specified ListTransitionRouteGroupsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IListTestCasesRequest} message ListTestCasesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse} message ListTransitionRouteGroupsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTestCasesRequest.encode = function encode(message, writer) { + ListTransitionRouteGroupsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.view != null && Object.hasOwnProperty.call(message, "view")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.view); + if (message.transitionRouteGroups != null && message.transitionRouteGroups.length) + for (var i = 0; i < message.transitionRouteGroups.length; ++i) + $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.encode(message.transitionRouteGroups[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCasesRequest.verify|verify} messages. + * Encodes the specified ListTransitionRouteGroupsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IListTestCasesRequest} message ListTestCasesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse} message ListTransitionRouteGroupsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListTransitionRouteGroupsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTestCasesRequest message from the specified reader or buffer. + * Decodes a ListTransitionRouteGroupsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListTestCasesRequest} ListTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTestCasesRequest.decode = function decode(reader, length) { + ListTransitionRouteGroupsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListTestCasesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + if (!(message.transitionRouteGroups && message.transitionRouteGroups.length)) + message.transitionRouteGroups = []; + message.transitionRouteGroups.push($root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.decode(reader, reader.uint32())); break; case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); - break; - case 4: - message.view = reader.int32(); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -42487,168 +41762,134 @@ }; /** - * Decodes a ListTestCasesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListTransitionRouteGroupsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListTestCasesRequest} ListTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { + ListTransitionRouteGroupsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTestCasesRequest message. + * Verifies a ListTransitionRouteGroupsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTestCasesRequest.verify = function verify(message) { + ListTransitionRouteGroupsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.view != null && message.hasOwnProperty("view")) - switch (message.view) { - default: - return "view: enum value expected"; - case 0: - case 1: - case 2: - break; + if (message.transitionRouteGroups != null && message.hasOwnProperty("transitionRouteGroups")) { + if (!Array.isArray(message.transitionRouteGroups)) + return "transitionRouteGroups: array expected"; + for (var i = 0; i < message.transitionRouteGroups.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify(message.transitionRouteGroups[i]); + if (error) + return "transitionRouteGroups." + error; } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a ListTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListTransitionRouteGroupsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListTestCasesRequest} ListTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse */ - ListTestCasesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListTestCasesRequest) + ListTransitionRouteGroupsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListTestCasesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - switch (object.view) { - case "TEST_CASE_VIEW_UNSPECIFIED": - case 0: - message.view = 0; - break; - case "BASIC": - case 1: - message.view = 1; - break; - case "FULL": - case 2: - message.view = 2; - break; + var message = new $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse(); + if (object.transitionRouteGroups) { + if (!Array.isArray(object.transitionRouteGroups)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse.transitionRouteGroups: array expected"); + message.transitionRouteGroups = []; + for (var i = 0; i < object.transitionRouteGroups.length; ++i) { + if (typeof object.transitionRouteGroups[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse.transitionRouteGroups: object expected"); + message.transitionRouteGroups[i] = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.fromObject(object.transitionRouteGroups[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListTestCasesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListTransitionRouteGroupsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ListTestCasesRequest} message ListTestCasesRequest + * @param {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} message ListTransitionRouteGroupsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTestCasesRequest.toObject = function toObject(message, options) { + ListTransitionRouteGroupsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.view = options.enums === String ? "TEST_CASE_VIEW_UNSPECIFIED" : 0; + if (options.arrays || options.defaults) + object.transitionRouteGroups = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.transitionRouteGroups && message.transitionRouteGroups.length) { + object.transitionRouteGroups = []; + for (var j = 0; j < message.transitionRouteGroups.length; ++j) + object.transitionRouteGroups[j] = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.toObject(message.transitionRouteGroups[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.view != null && message.hasOwnProperty("view")) - object.view = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView[message.view] : message.view; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ListTestCasesRequest to JSON. + * Converts this ListTransitionRouteGroupsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @instance * @returns {Object.} JSON object */ - ListTestCasesRequest.prototype.toJSON = function toJSON() { + ListTransitionRouteGroupsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * TestCaseView enum. - * @name google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView - * @enum {number} - * @property {number} TEST_CASE_VIEW_UNSPECIFIED=0 TEST_CASE_VIEW_UNSPECIFIED value - * @property {number} BASIC=1 BASIC value - * @property {number} FULL=2 FULL value - */ - ListTestCasesRequest.TestCaseView = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TEST_CASE_VIEW_UNSPECIFIED"] = 0; - values[valuesById[1] = "BASIC"] = 1; - values[valuesById[2] = "FULL"] = 2; - return values; - })(); - - return ListTestCasesRequest; + return ListTransitionRouteGroupsResponse; })(); - v3.ListTestCasesResponse = (function() { + v3.GetTransitionRouteGroupRequest = (function() { /** - * Properties of a ListTestCasesResponse. + * Properties of a GetTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListTestCasesResponse - * @property {Array.|null} [testCases] ListTestCasesResponse testCases - * @property {string|null} [nextPageToken] ListTestCasesResponse nextPageToken + * @interface IGetTransitionRouteGroupRequest + * @property {string|null} [name] GetTransitionRouteGroupRequest name + * @property {string|null} [languageCode] GetTransitionRouteGroupRequest languageCode */ /** - * Constructs a new ListTestCasesResponse. + * Constructs a new GetTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListTestCasesResponse. - * @implements IListTestCasesResponse + * @classdesc Represents a GetTransitionRouteGroupRequest. + * @implements IGetTransitionRouteGroupRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListTestCasesResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest=} [properties] Properties to set */ - function ListTestCasesResponse(properties) { - this.testCases = []; + function GetTransitionRouteGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -42656,91 +41897,88 @@ } /** - * ListTestCasesResponse testCases. - * @member {Array.} testCases - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse + * GetTransitionRouteGroupRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @instance */ - ListTestCasesResponse.prototype.testCases = $util.emptyArray; + GetTransitionRouteGroupRequest.prototype.name = ""; /** - * ListTestCasesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse + * GetTransitionRouteGroupRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @instance */ - ListTestCasesResponse.prototype.nextPageToken = ""; + GetTransitionRouteGroupRequest.prototype.languageCode = ""; /** - * Creates a new ListTestCasesResponse instance using the specified properties. + * Creates a new GetTransitionRouteGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListTestCasesResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListTestCasesResponse} ListTestCasesResponse instance + * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest instance */ - ListTestCasesResponse.create = function create(properties) { - return new ListTestCasesResponse(properties); + GetTransitionRouteGroupRequest.create = function create(properties) { + return new GetTransitionRouteGroupRequest(properties); }; /** - * Encodes the specified ListTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCasesResponse.verify|verify} messages. + * Encodes the specified GetTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListTestCasesResponse} message ListTestCasesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest} message GetTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTestCasesResponse.encode = function encode(message, writer) { + GetTransitionRouteGroupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.testCases != null && message.testCases.length) - for (var i = 0; i < message.testCases.length; ++i) - $root.google.cloud.dialogflow.cx.v3.TestCase.encode(message.testCases[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); return writer; }; /** - * Encodes the specified ListTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCasesResponse.verify|verify} messages. + * Encodes the specified GetTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListTestCasesResponse} message ListTestCasesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest} message GetTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTestCasesResponse message from the specified reader or buffer. + * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListTestCasesResponse} ListTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTestCasesResponse.decode = function decode(reader, length) { + GetTransitionRouteGroupRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListTestCasesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.testCases && message.testCases.length)) - message.testCases = []; - message.testCases.push($root.google.cloud.dialogflow.cx.v3.TestCase.decode(reader, reader.uint32())); + message.name = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + message.languageCode = reader.string(); break; default: reader.skipType(tag & 7); @@ -42751,135 +41989,118 @@ }; /** - * Decodes a ListTestCasesResponse message from the specified reader or buffer, length delimited. + * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListTestCasesResponse} ListTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTestCasesResponse.decodeDelimited = function decodeDelimited(reader) { + GetTransitionRouteGroupRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTestCasesResponse message. + * Verifies a GetTransitionRouteGroupRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTestCasesResponse.verify = function verify(message) { + GetTransitionRouteGroupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.testCases != null && message.hasOwnProperty("testCases")) { - if (!Array.isArray(message.testCases)) - return "testCases: array expected"; - for (var i = 0; i < message.testCases.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.TestCase.verify(message.testCases[i]); - if (error) - return "testCases." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates a ListTestCasesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListTestCasesResponse} ListTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest */ - ListTestCasesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListTestCasesResponse) + GetTransitionRouteGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListTestCasesResponse(); - if (object.testCases) { - if (!Array.isArray(object.testCases)) - throw TypeError(".google.cloud.dialogflow.cx.v3.ListTestCasesResponse.testCases: array expected"); - message.testCases = []; - for (var i = 0; i < object.testCases.length; ++i) { - if (typeof object.testCases[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ListTestCasesResponse.testCases: object expected"); - message.testCases[i] = $root.google.cloud.dialogflow.cx.v3.TestCase.fromObject(object.testCases[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a ListTestCasesResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetTransitionRouteGroupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ListTestCasesResponse} message ListTestCasesResponse + * @param {google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest} message GetTransitionRouteGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTestCasesResponse.toObject = function toObject(message, options) { + GetTransitionRouteGroupRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.testCases = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.testCases && message.testCases.length) { - object.testCases = []; - for (var j = 0; j < message.testCases.length; ++j) - object.testCases[j] = $root.google.cloud.dialogflow.cx.v3.TestCase.toObject(message.testCases[j], options); + if (options.defaults) { + object.name = ""; + object.languageCode = ""; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this ListTestCasesResponse to JSON. + * Converts this GetTransitionRouteGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @instance * @returns {Object.} JSON object */ - ListTestCasesResponse.prototype.toJSON = function toJSON() { + GetTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListTestCasesResponse; + return GetTransitionRouteGroupRequest; })(); - v3.BatchDeleteTestCasesRequest = (function() { + v3.CreateTransitionRouteGroupRequest = (function() { /** - * Properties of a BatchDeleteTestCasesRequest. + * Properties of a CreateTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IBatchDeleteTestCasesRequest - * @property {string|null} [parent] BatchDeleteTestCasesRequest parent - * @property {Array.|null} [names] BatchDeleteTestCasesRequest names + * @interface ICreateTransitionRouteGroupRequest + * @property {string|null} [parent] CreateTransitionRouteGroupRequest parent + * @property {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null} [transitionRouteGroup] CreateTransitionRouteGroupRequest transitionRouteGroup + * @property {string|null} [languageCode] CreateTransitionRouteGroupRequest languageCode */ /** - * Constructs a new BatchDeleteTestCasesRequest. + * Constructs a new CreateTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a BatchDeleteTestCasesRequest. - * @implements IBatchDeleteTestCasesRequest + * @classdesc Represents a CreateTransitionRouteGroupRequest. + * @implements ICreateTransitionRouteGroupRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest=} [properties] Properties to set */ - function BatchDeleteTestCasesRequest(properties) { - this.names = []; + function CreateTransitionRouteGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -42887,91 +42108,101 @@ } /** - * BatchDeleteTestCasesRequest parent. + * CreateTransitionRouteGroupRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @instance */ - BatchDeleteTestCasesRequest.prototype.parent = ""; + CreateTransitionRouteGroupRequest.prototype.parent = ""; /** - * BatchDeleteTestCasesRequest names. - * @member {Array.} names - * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest + * CreateTransitionRouteGroupRequest transitionRouteGroup. + * @member {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null|undefined} transitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @instance */ - BatchDeleteTestCasesRequest.prototype.names = $util.emptyArray; + CreateTransitionRouteGroupRequest.prototype.transitionRouteGroup = null; /** - * Creates a new BatchDeleteTestCasesRequest instance using the specified properties. + * CreateTransitionRouteGroupRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest + * @instance + */ + CreateTransitionRouteGroupRequest.prototype.languageCode = ""; + + /** + * Creates a new CreateTransitionRouteGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest instance + * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest instance */ - BatchDeleteTestCasesRequest.create = function create(properties) { - return new BatchDeleteTestCasesRequest(properties); + CreateTransitionRouteGroupRequest.create = function create(properties) { + return new CreateTransitionRouteGroupRequest(properties); }; /** - * Encodes the specified BatchDeleteTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest.verify|verify} messages. + * Encodes the specified CreateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest} message BatchDeleteTestCasesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest} message CreateTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchDeleteTestCasesRequest.encode = function encode(message, writer) { + CreateTransitionRouteGroupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.names != null && message.names.length) - for (var i = 0; i < message.names.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.names[i]); + if (message.transitionRouteGroup != null && Object.hasOwnProperty.call(message, "transitionRouteGroup")) + $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.encode(message.transitionRouteGroup, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); return writer; }; /** - * Encodes the specified BatchDeleteTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest.verify|verify} messages. + * Encodes the specified CreateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest} message BatchDeleteTestCasesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest} message CreateTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchDeleteTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchDeleteTestCasesRequest message from the specified reader or buffer. + * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchDeleteTestCasesRequest.decode = function decode(reader, length) { + CreateTransitionRouteGroupRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.parent = reader.string(); break; + case 2: + message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.decode(reader, reader.uint32()); + break; case 3: - if (!(message.names && message.names.length)) - message.names = []; - message.names.push(reader.string()); + message.languageCode = reader.string(); break; default: reader.skipType(tag & 7); @@ -42982,129 +42213,131 @@ }; /** - * Decodes a BatchDeleteTestCasesRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchDeleteTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { + CreateTransitionRouteGroupRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchDeleteTestCasesRequest message. + * Verifies a CreateTransitionRouteGroupRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchDeleteTestCasesRequest.verify = function verify(message) { + CreateTransitionRouteGroupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.names != null && message.hasOwnProperty("names")) { - if (!Array.isArray(message.names)) - return "names: array expected"; - for (var i = 0; i < message.names.length; ++i) - if (!$util.isString(message.names[i])) - return "names: string[] expected"; + if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) { + var error = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify(message.transitionRouteGroup); + if (error) + return "transitionRouteGroup." + error; } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates a BatchDeleteTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest */ - BatchDeleteTestCasesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest) + CreateTransitionRouteGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.names) { - if (!Array.isArray(object.names)) - throw TypeError(".google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest.names: array expected"); - message.names = []; - for (var i = 0; i < object.names.length; ++i) - message.names[i] = String(object.names[i]); + if (object.transitionRouteGroup != null) { + if (typeof object.transitionRouteGroup !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest.transitionRouteGroup: object expected"); + message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.fromObject(object.transitionRouteGroup); } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a BatchDeleteTestCasesRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateTransitionRouteGroupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest} message BatchDeleteTestCasesRequest + * @param {google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest} message CreateTransitionRouteGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchDeleteTestCasesRequest.toObject = function toObject(message, options) { + CreateTransitionRouteGroupRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.names = []; - if (options.defaults) + if (options.defaults) { object.parent = ""; + object.transitionRouteGroup = null; + object.languageCode = ""; + } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.names && message.names.length) { - object.names = []; - for (var j = 0; j < message.names.length; ++j) - object.names[j] = message.names[j]; - } + if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) + object.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.toObject(message.transitionRouteGroup, options); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this BatchDeleteTestCasesRequest to JSON. + * Converts this CreateTransitionRouteGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @instance * @returns {Object.} JSON object */ - BatchDeleteTestCasesRequest.prototype.toJSON = function toJSON() { + CreateTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BatchDeleteTestCasesRequest; + return CreateTransitionRouteGroupRequest; })(); - v3.CreateTestCaseRequest = (function() { + v3.UpdateTransitionRouteGroupRequest = (function() { /** - * Properties of a CreateTestCaseRequest. + * Properties of an UpdateTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ICreateTestCaseRequest - * @property {string|null} [parent] CreateTestCaseRequest parent - * @property {google.cloud.dialogflow.cx.v3.ITestCase|null} [testCase] CreateTestCaseRequest testCase + * @interface IUpdateTransitionRouteGroupRequest + * @property {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null} [transitionRouteGroup] UpdateTransitionRouteGroupRequest transitionRouteGroup + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateTransitionRouteGroupRequest updateMask + * @property {string|null} [languageCode] UpdateTransitionRouteGroupRequest languageCode */ /** - * Constructs a new CreateTestCaseRequest. + * Constructs a new UpdateTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CreateTestCaseRequest. - * @implements ICreateTestCaseRequest + * @classdesc Represents an UpdateTransitionRouteGroupRequest. + * @implements IUpdateTransitionRouteGroupRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest=} [properties] Properties to set */ - function CreateTestCaseRequest(properties) { + function UpdateTransitionRouteGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -43112,88 +42345,101 @@ } /** - * CreateTestCaseRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest + * UpdateTransitionRouteGroupRequest transitionRouteGroup. + * @member {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null|undefined} transitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @instance */ - CreateTestCaseRequest.prototype.parent = ""; + UpdateTransitionRouteGroupRequest.prototype.transitionRouteGroup = null; /** - * CreateTestCaseRequest testCase. - * @member {google.cloud.dialogflow.cx.v3.ITestCase|null|undefined} testCase - * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest + * UpdateTransitionRouteGroupRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @instance */ - CreateTestCaseRequest.prototype.testCase = null; + UpdateTransitionRouteGroupRequest.prototype.updateMask = null; /** - * Creates a new CreateTestCaseRequest instance using the specified properties. + * UpdateTransitionRouteGroupRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest + * @instance + */ + UpdateTransitionRouteGroupRequest.prototype.languageCode = ""; + + /** + * Creates a new UpdateTransitionRouteGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.CreateTestCaseRequest} CreateTestCaseRequest instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest instance */ - CreateTestCaseRequest.create = function create(properties) { - return new CreateTestCaseRequest(properties); + UpdateTransitionRouteGroupRequest.create = function create(properties) { + return new UpdateTransitionRouteGroupRequest(properties); }; /** - * Encodes the specified CreateTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTestCaseRequest.verify|verify} messages. + * Encodes the specified UpdateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest} message CreateTestCaseRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest} message UpdateTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateTestCaseRequest.encode = function encode(message, writer) { + UpdateTransitionRouteGroupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.testCase != null && Object.hasOwnProperty.call(message, "testCase")) - $root.google.cloud.dialogflow.cx.v3.TestCase.encode(message.testCase, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.transitionRouteGroup != null && Object.hasOwnProperty.call(message, "transitionRouteGroup")) + $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.encode(message.transitionRouteGroup, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); return writer; }; /** - * Encodes the specified CreateTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTestCaseRequest.verify|verify} messages. + * Encodes the specified UpdateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest} message CreateTestCaseRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest} message UpdateTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateTestCaseRequest message from the specified reader or buffer. + * Decodes an UpdateTransitionRouteGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.CreateTestCaseRequest} CreateTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateTestCaseRequest.decode = function decode(reader, length) { + UpdateTransitionRouteGroupRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateTestCaseRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.decode(reader, reader.uint32()); break; case 2: - message.testCase = $root.google.cloud.dialogflow.cx.v3.TestCase.decode(reader, reader.uint32()); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + case 3: + message.languageCode = reader.string(); break; default: reader.skipType(tag & 7); @@ -43204,122 +42450,135 @@ }; /** - * Decodes a CreateTestCaseRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.CreateTestCaseRequest} CreateTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateTestCaseRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateTransitionRouteGroupRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateTestCaseRequest message. + * Verifies an UpdateTransitionRouteGroupRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateTestCaseRequest.verify = function verify(message) { + UpdateTransitionRouteGroupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.testCase != null && message.hasOwnProperty("testCase")) { - var error = $root.google.cloud.dialogflow.cx.v3.TestCase.verify(message.testCase); + if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) { + var error = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify(message.transitionRouteGroup); if (error) - return "testCase." + error; + return "transitionRouteGroup." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates a CreateTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CreateTestCaseRequest} CreateTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest */ - CreateTestCaseRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateTestCaseRequest) + UpdateTransitionRouteGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.CreateTestCaseRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.testCase != null) { - if (typeof object.testCase !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CreateTestCaseRequest.testCase: object expected"); - message.testCase = $root.google.cloud.dialogflow.cx.v3.TestCase.fromObject(object.testCase); + var message = new $root.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest(); + if (object.transitionRouteGroup != null) { + if (typeof object.transitionRouteGroup !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest.transitionRouteGroup: object expected"); + message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.fromObject(object.transitionRouteGroup); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a CreateTestCaseRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateTransitionRouteGroupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.CreateTestCaseRequest} message CreateTestCaseRequest + * @param {google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest} message UpdateTransitionRouteGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateTestCaseRequest.toObject = function toObject(message, options) { + UpdateTransitionRouteGroupRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.testCase = null; + object.transitionRouteGroup = null; + object.updateMask = null; + object.languageCode = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.testCase != null && message.hasOwnProperty("testCase")) - object.testCase = $root.google.cloud.dialogflow.cx.v3.TestCase.toObject(message.testCase, options); + if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) + object.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.toObject(message.transitionRouteGroup, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this CreateTestCaseRequest to JSON. + * Converts this UpdateTransitionRouteGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @instance * @returns {Object.} JSON object */ - CreateTestCaseRequest.prototype.toJSON = function toJSON() { + UpdateTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateTestCaseRequest; + return UpdateTransitionRouteGroupRequest; })(); - v3.UpdateTestCaseRequest = (function() { + v3.DeleteTransitionRouteGroupRequest = (function() { /** - * Properties of an UpdateTestCaseRequest. + * Properties of a DeleteTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IUpdateTestCaseRequest - * @property {google.cloud.dialogflow.cx.v3.ITestCase|null} [testCase] UpdateTestCaseRequest testCase - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateTestCaseRequest updateMask + * @interface IDeleteTransitionRouteGroupRequest + * @property {string|null} [name] DeleteTransitionRouteGroupRequest name + * @property {boolean|null} [force] DeleteTransitionRouteGroupRequest force */ /** - * Constructs a new UpdateTestCaseRequest. + * Constructs a new DeleteTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an UpdateTestCaseRequest. - * @implements IUpdateTestCaseRequest + * @classdesc Represents a DeleteTransitionRouteGroupRequest. + * @implements IDeleteTransitionRouteGroupRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest=} [properties] Properties to set */ - function UpdateTestCaseRequest(properties) { + function DeleteTransitionRouteGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -43327,88 +42586,88 @@ } /** - * UpdateTestCaseRequest testCase. - * @member {google.cloud.dialogflow.cx.v3.ITestCase|null|undefined} testCase - * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest + * DeleteTransitionRouteGroupRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @instance */ - UpdateTestCaseRequest.prototype.testCase = null; + DeleteTransitionRouteGroupRequest.prototype.name = ""; /** - * UpdateTestCaseRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest + * DeleteTransitionRouteGroupRequest force. + * @member {boolean} force + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @instance */ - UpdateTestCaseRequest.prototype.updateMask = null; + DeleteTransitionRouteGroupRequest.prototype.force = false; /** - * Creates a new UpdateTestCaseRequest instance using the specified properties. + * Creates a new DeleteTransitionRouteGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest} UpdateTestCaseRequest instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest instance */ - UpdateTestCaseRequest.create = function create(properties) { - return new UpdateTestCaseRequest(properties); + DeleteTransitionRouteGroupRequest.create = function create(properties) { + return new DeleteTransitionRouteGroupRequest(properties); }; /** - * Encodes the specified UpdateTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest.verify|verify} messages. + * Encodes the specified DeleteTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest} message UpdateTestCaseRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest} message DeleteTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateTestCaseRequest.encode = function encode(message, writer) { + DeleteTransitionRouteGroupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.testCase != null && Object.hasOwnProperty.call(message, "testCase")) - $root.google.cloud.dialogflow.cx.v3.TestCase.encode(message.testCase, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); return writer; }; /** - * Encodes the specified UpdateTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest.verify|verify} messages. + * Encodes the specified DeleteTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest} message UpdateTestCaseRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest} message DeleteTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateTestCaseRequest message from the specified reader or buffer. + * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest} UpdateTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateTestCaseRequest.decode = function decode(reader, length) { + DeleteTransitionRouteGroupRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.testCase = $root.google.cloud.dialogflow.cx.v3.TestCase.decode(reader, reader.uint32()); + message.name = reader.string(); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.force = reader.bool(); break; default: reader.skipType(tag & 7); @@ -43419,126 +42678,394 @@ }; /** - * Decodes an UpdateTestCaseRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest} UpdateTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateTestCaseRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteTransitionRouteGroupRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateTestCaseRequest message. + * Verifies a DeleteTransitionRouteGroupRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateTestCaseRequest.verify = function verify(message) { + DeleteTransitionRouteGroupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.testCase != null && message.hasOwnProperty("testCase")) { - var error = $root.google.cloud.dialogflow.cx.v3.TestCase.verify(message.testCase); - if (error) - return "testCase." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; return null; }; /** - * Creates an UpdateTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest} UpdateTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest */ - UpdateTestCaseRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest) + DeleteTransitionRouteGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest(); - if (object.testCase != null) { - if (typeof object.testCase !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest.testCase: object expected"); - message.testCase = $root.google.cloud.dialogflow.cx.v3.TestCase.fromObject(object.testCase); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.force != null) + message.force = Boolean(object.force); return message; }; /** - * Creates a plain object from an UpdateTestCaseRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteTransitionRouteGroupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest} message UpdateTestCaseRequest + * @param {google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest} message DeleteTransitionRouteGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateTestCaseRequest.toObject = function toObject(message, options) { + DeleteTransitionRouteGroupRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.testCase = null; - object.updateMask = null; + object.name = ""; + object.force = false; } - if (message.testCase != null && message.hasOwnProperty("testCase")) - object.testCase = $root.google.cloud.dialogflow.cx.v3.TestCase.toObject(message.testCase, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; return object; }; /** - * Converts this UpdateTestCaseRequest to JSON. + * Converts this DeleteTransitionRouteGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteTransitionRouteGroupRequest; + })(); + + v3.Experiments = (function() { + + /** + * Constructs a new Experiments service. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents an Experiments + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function Experiments(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Experiments.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Experiments; + + /** + * Creates new Experiments service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Experiments + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {Experiments} RPC service. Useful where requests and/or responses are streamed. + */ + Experiments.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#listExperiments}. + * @memberof google.cloud.dialogflow.cx.v3.Experiments + * @typedef ListExperimentsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.ListExperimentsResponse} [response] ListExperimentsResponse + */ + + /** + * Calls ListExperiments. + * @function listExperiments + * @memberof google.cloud.dialogflow.cx.v3.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3.IListExperimentsRequest} request ListExperimentsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Experiments.ListExperimentsCallback} callback Node-style callback called with the error, if any, and ListExperimentsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Experiments.prototype.listExperiments = function listExperiments(request, callback) { + return this.rpcCall(listExperiments, $root.google.cloud.dialogflow.cx.v3.ListExperimentsRequest, $root.google.cloud.dialogflow.cx.v3.ListExperimentsResponse, request, callback); + }, "name", { value: "ListExperiments" }); + + /** + * Calls ListExperiments. + * @function listExperiments + * @memberof google.cloud.dialogflow.cx.v3.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3.IListExperimentsRequest} request ListExperimentsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#getExperiment}. + * @memberof google.cloud.dialogflow.cx.v3.Experiments + * @typedef GetExperimentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.Experiment} [response] Experiment + */ + + /** + * Calls GetExperiment. + * @function getExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetExperimentRequest} request GetExperimentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Experiments.GetExperimentCallback} callback Node-style callback called with the error, if any, and Experiment + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Experiments.prototype.getExperiment = function getExperiment(request, callback) { + return this.rpcCall(getExperiment, $root.google.cloud.dialogflow.cx.v3.GetExperimentRequest, $root.google.cloud.dialogflow.cx.v3.Experiment, request, callback); + }, "name", { value: "GetExperiment" }); + + /** + * Calls GetExperiment. + * @function getExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetExperimentRequest} request GetExperimentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#createExperiment}. + * @memberof google.cloud.dialogflow.cx.v3.Experiments + * @typedef CreateExperimentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.Experiment} [response] Experiment + */ + + /** + * Calls CreateExperiment. + * @function createExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3.ICreateExperimentRequest} request CreateExperimentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Experiments.CreateExperimentCallback} callback Node-style callback called with the error, if any, and Experiment + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Experiments.prototype.createExperiment = function createExperiment(request, callback) { + return this.rpcCall(createExperiment, $root.google.cloud.dialogflow.cx.v3.CreateExperimentRequest, $root.google.cloud.dialogflow.cx.v3.Experiment, request, callback); + }, "name", { value: "CreateExperiment" }); + + /** + * Calls CreateExperiment. + * @function createExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3.ICreateExperimentRequest} request CreateExperimentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#updateExperiment}. + * @memberof google.cloud.dialogflow.cx.v3.Experiments + * @typedef UpdateExperimentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.Experiment} [response] Experiment + */ + + /** + * Calls UpdateExperiment. + * @function updateExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest} request UpdateExperimentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Experiments.UpdateExperimentCallback} callback Node-style callback called with the error, if any, and Experiment + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Experiments.prototype.updateExperiment = function updateExperiment(request, callback) { + return this.rpcCall(updateExperiment, $root.google.cloud.dialogflow.cx.v3.UpdateExperimentRequest, $root.google.cloud.dialogflow.cx.v3.Experiment, request, callback); + }, "name", { value: "UpdateExperiment" }); + + /** + * Calls UpdateExperiment. + * @function updateExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest} request UpdateExperimentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#deleteExperiment}. + * @memberof google.cloud.dialogflow.cx.v3.Experiments + * @typedef DeleteExperimentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteExperiment. + * @function deleteExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest} request DeleteExperimentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Experiments.DeleteExperimentCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Experiments.prototype.deleteExperiment = function deleteExperiment(request, callback) { + return this.rpcCall(deleteExperiment, $root.google.cloud.dialogflow.cx.v3.DeleteExperimentRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteExperiment" }); + + /** + * Calls DeleteExperiment. + * @function deleteExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest} request DeleteExperimentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#startExperiment}. + * @memberof google.cloud.dialogflow.cx.v3.Experiments + * @typedef StartExperimentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.Experiment} [response] Experiment + */ + + /** + * Calls StartExperiment. + * @function startExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3.IStartExperimentRequest} request StartExperimentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Experiments.StartExperimentCallback} callback Node-style callback called with the error, if any, and Experiment + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Experiments.prototype.startExperiment = function startExperiment(request, callback) { + return this.rpcCall(startExperiment, $root.google.cloud.dialogflow.cx.v3.StartExperimentRequest, $root.google.cloud.dialogflow.cx.v3.Experiment, request, callback); + }, "name", { value: "StartExperiment" }); + + /** + * Calls StartExperiment. + * @function startExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3.IStartExperimentRequest} request StartExperimentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#stopExperiment}. + * @memberof google.cloud.dialogflow.cx.v3.Experiments + * @typedef StopExperimentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.Experiment} [response] Experiment + */ + + /** + * Calls StopExperiment. + * @function stopExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3.IStopExperimentRequest} request StopExperimentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Experiments.StopExperimentCallback} callback Node-style callback called with the error, if any, and Experiment + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Experiments.prototype.stopExperiment = function stopExperiment(request, callback) { + return this.rpcCall(stopExperiment, $root.google.cloud.dialogflow.cx.v3.StopExperimentRequest, $root.google.cloud.dialogflow.cx.v3.Experiment, request, callback); + }, "name", { value: "StopExperiment" }); + + /** + * Calls StopExperiment. + * @function stopExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments * @instance - * @returns {Object.} JSON object + * @param {google.cloud.dialogflow.cx.v3.IStopExperimentRequest} request StopExperimentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - UpdateTestCaseRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - return UpdateTestCaseRequest; + return Experiments; })(); - v3.GetTestCaseRequest = (function() { + v3.Experiment = (function() { /** - * Properties of a GetTestCaseRequest. + * Properties of an Experiment. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IGetTestCaseRequest - * @property {string|null} [name] GetTestCaseRequest name + * @interface IExperiment + * @property {string|null} [name] Experiment name + * @property {string|null} [displayName] Experiment displayName + * @property {string|null} [description] Experiment description + * @property {google.cloud.dialogflow.cx.v3.Experiment.State|null} [state] Experiment state + * @property {google.cloud.dialogflow.cx.v3.Experiment.IDefinition|null} [definition] Experiment definition + * @property {google.cloud.dialogflow.cx.v3.Experiment.IResult|null} [result] Experiment result + * @property {google.protobuf.ITimestamp|null} [createTime] Experiment createTime + * @property {google.protobuf.ITimestamp|null} [startTime] Experiment startTime + * @property {google.protobuf.ITimestamp|null} [endTime] Experiment endTime + * @property {google.protobuf.ITimestamp|null} [lastUpdateTime] Experiment lastUpdateTime + * @property {google.protobuf.IDuration|null} [experimentLength] Experiment experimentLength + * @property {Array.|null} [variantsHistory] Experiment variantsHistory */ /** - * Constructs a new GetTestCaseRequest. + * Constructs a new Experiment. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a GetTestCaseRequest. - * @implements IGetTestCaseRequest + * @classdesc Represents an Experiment. + * @implements IExperiment * @constructor - * @param {google.cloud.dialogflow.cx.v3.IGetTestCaseRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IExperiment=} [properties] Properties to set */ - function GetTestCaseRequest(properties) { + function Experiment(properties) { + this.variantsHistory = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -43546,268 +43073,181 @@ } /** - * GetTestCaseRequest name. + * Experiment name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @instance */ - GetTestCaseRequest.prototype.name = ""; - - /** - * Creates a new GetTestCaseRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IGetTestCaseRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.GetTestCaseRequest} GetTestCaseRequest instance - */ - GetTestCaseRequest.create = function create(properties) { - return new GetTestCaseRequest(properties); - }; - - /** - * Encodes the specified GetTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTestCaseRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IGetTestCaseRequest} message GetTestCaseRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetTestCaseRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; + Experiment.prototype.name = ""; /** - * Encodes the specified GetTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTestCaseRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IGetTestCaseRequest} message GetTestCaseRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Experiment displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @instance */ - GetTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Experiment.prototype.displayName = ""; /** - * Decodes a GetTestCaseRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.GetTestCaseRequest} GetTestCaseRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Experiment description. + * @member {string} description + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @instance */ - GetTestCaseRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetTestCaseRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + Experiment.prototype.description = ""; /** - * Decodes a GetTestCaseRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.GetTestCaseRequest} GetTestCaseRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Experiment state. + * @member {google.cloud.dialogflow.cx.v3.Experiment.State} state + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @instance */ - GetTestCaseRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Experiment.prototype.state = 0; /** - * Verifies a GetTestCaseRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Experiment definition. + * @member {google.cloud.dialogflow.cx.v3.Experiment.IDefinition|null|undefined} definition + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @instance */ - GetTestCaseRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; + Experiment.prototype.definition = null; /** - * Creates a GetTestCaseRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.GetTestCaseRequest} GetTestCaseRequest + * Experiment result. + * @member {google.cloud.dialogflow.cx.v3.Experiment.IResult|null|undefined} result + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @instance */ - GetTestCaseRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetTestCaseRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.GetTestCaseRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + Experiment.prototype.result = null; /** - * Creates a plain object from a GetTestCaseRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.GetTestCaseRequest} message GetTestCaseRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Experiment createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @instance */ - GetTestCaseRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + Experiment.prototype.createTime = null; /** - * Converts this GetTestCaseRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest + * Experiment startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @instance - * @returns {Object.} JSON object */ - GetTestCaseRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetTestCaseRequest; - })(); - - v3.RunTestCaseRequest = (function() { + Experiment.prototype.startTime = null; /** - * Properties of a RunTestCaseRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IRunTestCaseRequest - * @property {string|null} [name] RunTestCaseRequest name - * @property {string|null} [environment] RunTestCaseRequest environment + * Experiment endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @instance */ + Experiment.prototype.endTime = null; /** - * Constructs a new RunTestCaseRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a RunTestCaseRequest. - * @implements IRunTestCaseRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseRequest=} [properties] Properties to set + * Experiment lastUpdateTime. + * @member {google.protobuf.ITimestamp|null|undefined} lastUpdateTime + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @instance */ - function RunTestCaseRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Experiment.prototype.lastUpdateTime = null; /** - * RunTestCaseRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest + * Experiment experimentLength. + * @member {google.protobuf.IDuration|null|undefined} experimentLength + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @instance */ - RunTestCaseRequest.prototype.name = ""; + Experiment.prototype.experimentLength = null; /** - * RunTestCaseRequest environment. - * @member {string} environment - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest + * Experiment variantsHistory. + * @member {Array.} variantsHistory + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @instance */ - RunTestCaseRequest.prototype.environment = ""; + Experiment.prototype.variantsHistory = $util.emptyArray; /** - * Creates a new RunTestCaseRequest instance using the specified properties. + * Creates a new Experiment instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @static - * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseRequest} RunTestCaseRequest instance + * @param {google.cloud.dialogflow.cx.v3.IExperiment=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Experiment} Experiment instance */ - RunTestCaseRequest.create = function create(properties) { - return new RunTestCaseRequest(properties); + Experiment.create = function create(properties) { + return new Experiment(properties); }; /** - * Encodes the specified RunTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseRequest.verify|verify} messages. + * Encodes the specified Experiment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @static - * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseRequest} message RunTestCaseRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IExperiment} message Experiment message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunTestCaseRequest.encode = function encode(message, writer) { + Experiment.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.environment); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state); + if (message.definition != null && Object.hasOwnProperty.call(message, "definition")) + $root.google.cloud.dialogflow.cx.v3.Experiment.Definition.encode(message.definition, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + $root.google.cloud.dialogflow.cx.v3.Experiment.Result.encode(message.result, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.lastUpdateTime != null && Object.hasOwnProperty.call(message, "lastUpdateTime")) + $root.google.protobuf.Timestamp.encode(message.lastUpdateTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.experimentLength != null && Object.hasOwnProperty.call(message, "experimentLength")) + $root.google.protobuf.Duration.encode(message.experimentLength, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.variantsHistory != null && message.variantsHistory.length) + for (var i = 0; i < message.variantsHistory.length; ++i) + $root.google.cloud.dialogflow.cx.v3.VariantsHistory.encode(message.variantsHistory[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); return writer; }; /** - * Encodes the specified RunTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseRequest.verify|verify} messages. + * Encodes the specified Experiment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @static - * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseRequest} message RunTestCaseRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IExperiment} message Experiment message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { + Experiment.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RunTestCaseRequest message from the specified reader or buffer. + * Decodes an Experiment message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseRequest} RunTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3.Experiment} Experiment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunTestCaseRequest.decode = function decode(reader, length) { + Experiment.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.RunTestCaseRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Experiment(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -43815,7 +43255,39 @@ message.name = reader.string(); break; case 2: - message.environment = reader.string(); + message.displayName = reader.string(); + break; + case 3: + message.description = reader.string(); + break; + case 4: + message.state = reader.int32(); + break; + case 5: + message.definition = $root.google.cloud.dialogflow.cx.v3.Experiment.Definition.decode(reader, reader.uint32()); + break; + case 6: + message.result = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.decode(reader, reader.uint32()); + break; + case 7: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 8: + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 9: + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 10: + message.lastUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 11: + message.experimentLength = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 12: + if (!(message.variantsHistory && message.variantsHistory.length)) + message.variantsHistory = []; + message.variantsHistory.push($root.google.cloud.dialogflow.cx.v3.VariantsHistory.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -43826,926 +43298,1671 @@ }; /** - * Decodes a RunTestCaseRequest message from the specified reader or buffer, length delimited. + * Decodes an Experiment message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseRequest} RunTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3.Experiment} Experiment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunTestCaseRequest.decodeDelimited = function decodeDelimited(reader) { + Experiment.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RunTestCaseRequest message. + * Verifies an Experiment message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RunTestCaseRequest.verify = function verify(message) { + Experiment.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.environment != null && message.hasOwnProperty("environment")) - if (!$util.isString(message.environment)) - return "environment: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.definition != null && message.hasOwnProperty("definition")) { + var error = $root.google.cloud.dialogflow.cx.v3.Experiment.Definition.verify(message.definition); + if (error) + return "definition." + error; + } + if (message.result != null && message.hasOwnProperty("result")) { + var error = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.verify(message.result); + if (error) + return "result." + error; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.lastUpdateTime); + if (error) + return "lastUpdateTime." + error; + } + if (message.experimentLength != null && message.hasOwnProperty("experimentLength")) { + var error = $root.google.protobuf.Duration.verify(message.experimentLength); + if (error) + return "experimentLength." + error; + } + if (message.variantsHistory != null && message.hasOwnProperty("variantsHistory")) { + if (!Array.isArray(message.variantsHistory)) + return "variantsHistory: array expected"; + for (var i = 0; i < message.variantsHistory.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.VariantsHistory.verify(message.variantsHistory[i]); + if (error) + return "variantsHistory." + error; + } + } return null; }; /** - * Creates a RunTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates an Experiment message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseRequest} RunTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3.Experiment} Experiment */ - RunTestCaseRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.RunTestCaseRequest) + Experiment.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Experiment) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.RunTestCaseRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.Experiment(); if (object.name != null) message.name = String(object.name); - if (object.environment != null) - message.environment = String(object.environment); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.description != null) + message.description = String(object.description); + switch (object.state) { + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "DRAFT": + case 1: + message.state = 1; + break; + case "RUNNING": + case 2: + message.state = 2; + break; + case "DONE": + case 3: + message.state = 3; + break; + } + if (object.definition != null) { + if (typeof object.definition !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.definition: object expected"); + message.definition = $root.google.cloud.dialogflow.cx.v3.Experiment.Definition.fromObject(object.definition); + } + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.result: object expected"); + message.result = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.fromObject(object.result); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + if (object.lastUpdateTime != null) { + if (typeof object.lastUpdateTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.lastUpdateTime: object expected"); + message.lastUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.lastUpdateTime); + } + if (object.experimentLength != null) { + if (typeof object.experimentLength !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.experimentLength: object expected"); + message.experimentLength = $root.google.protobuf.Duration.fromObject(object.experimentLength); + } + if (object.variantsHistory) { + if (!Array.isArray(object.variantsHistory)) + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.variantsHistory: array expected"); + message.variantsHistory = []; + for (var i = 0; i < object.variantsHistory.length; ++i) { + if (typeof object.variantsHistory[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.variantsHistory: object expected"); + message.variantsHistory[i] = $root.google.cloud.dialogflow.cx.v3.VariantsHistory.fromObject(object.variantsHistory[i]); + } + } return message; }; /** - * Creates a plain object from a RunTestCaseRequest message. Also converts values to other types if specified. + * Creates a plain object from an Experiment message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @static - * @param {google.cloud.dialogflow.cx.v3.RunTestCaseRequest} message RunTestCaseRequest + * @param {google.cloud.dialogflow.cx.v3.Experiment} message Experiment * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RunTestCaseRequest.toObject = function toObject(message, options) { + Experiment.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.variantsHistory = []; if (options.defaults) { object.name = ""; - object.environment = ""; + object.displayName = ""; + object.description = ""; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.definition = null; + object.result = null; + object.createTime = null; + object.startTime = null; + object.endTime = null; + object.lastUpdateTime = null; + object.experimentLength = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = message.environment; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.Experiment.State[message.state] : message.state; + if (message.definition != null && message.hasOwnProperty("definition")) + object.definition = $root.google.cloud.dialogflow.cx.v3.Experiment.Definition.toObject(message.definition, options); + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.toObject(message.result, options); + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) + object.lastUpdateTime = $root.google.protobuf.Timestamp.toObject(message.lastUpdateTime, options); + if (message.experimentLength != null && message.hasOwnProperty("experimentLength")) + object.experimentLength = $root.google.protobuf.Duration.toObject(message.experimentLength, options); + if (message.variantsHistory && message.variantsHistory.length) { + object.variantsHistory = []; + for (var j = 0; j < message.variantsHistory.length; ++j) + object.variantsHistory[j] = $root.google.cloud.dialogflow.cx.v3.VariantsHistory.toObject(message.variantsHistory[j], options); + } return object; }; /** - * Converts this RunTestCaseRequest to JSON. + * Converts this Experiment to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @instance * @returns {Object.} JSON object */ - RunTestCaseRequest.prototype.toJSON = function toJSON() { + Experiment.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RunTestCaseRequest; - })(); + Experiment.Definition = (function() { - v3.RunTestCaseResponse = (function() { + /** + * Properties of a Definition. + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @interface IDefinition + * @property {string|null} [condition] Definition condition + * @property {google.cloud.dialogflow.cx.v3.IVersionVariants|null} [versionVariants] Definition versionVariants + */ + + /** + * Constructs a new Definition. + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @classdesc Represents a Definition. + * @implements IDefinition + * @constructor + * @param {google.cloud.dialogflow.cx.v3.Experiment.IDefinition=} [properties] Properties to set + */ + function Definition(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Definition condition. + * @member {string} condition + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @instance + */ + Definition.prototype.condition = ""; + + /** + * Definition versionVariants. + * @member {google.cloud.dialogflow.cx.v3.IVersionVariants|null|undefined} versionVariants + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @instance + */ + Definition.prototype.versionVariants = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Definition variants. + * @member {"versionVariants"|undefined} variants + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @instance + */ + Object.defineProperty(Definition.prototype, "variants", { + get: $util.oneOfGetter($oneOfFields = ["versionVariants"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Definition instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.IDefinition=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Definition} Definition instance + */ + Definition.create = function create(properties) { + return new Definition(properties); + }; + + /** + * Encodes the specified Definition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Definition.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.IDefinition} message Definition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Definition.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.condition != null && Object.hasOwnProperty.call(message, "condition")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.condition); + if (message.versionVariants != null && Object.hasOwnProperty.call(message, "versionVariants")) + $root.google.cloud.dialogflow.cx.v3.VersionVariants.encode(message.versionVariants, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Definition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Definition.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.IDefinition} message Definition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Definition.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Definition message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Definition} Definition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Definition.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Definition(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.condition = reader.string(); + break; + case 2: + message.versionVariants = $root.google.cloud.dialogflow.cx.v3.VersionVariants.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Definition message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Definition} Definition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Definition.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Definition message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Definition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.condition != null && message.hasOwnProperty("condition")) + if (!$util.isString(message.condition)) + return "condition: string expected"; + if (message.versionVariants != null && message.hasOwnProperty("versionVariants")) { + properties.variants = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.VersionVariants.verify(message.versionVariants); + if (error) + return "versionVariants." + error; + } + } + return null; + }; + + /** + * Creates a Definition message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Definition} Definition + */ + Definition.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Experiment.Definition) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Definition(); + if (object.condition != null) + message.condition = String(object.condition); + if (object.versionVariants != null) { + if (typeof object.versionVariants !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.Definition.versionVariants: object expected"); + message.versionVariants = $root.google.cloud.dialogflow.cx.v3.VersionVariants.fromObject(object.versionVariants); + } + return message; + }; + + /** + * Creates a plain object from a Definition message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.Definition} message Definition + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Definition.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.condition = ""; + if (message.condition != null && message.hasOwnProperty("condition")) + object.condition = message.condition; + if (message.versionVariants != null && message.hasOwnProperty("versionVariants")) { + object.versionVariants = $root.google.cloud.dialogflow.cx.v3.VersionVariants.toObject(message.versionVariants, options); + if (options.oneofs) + object.variants = "versionVariants"; + } + return object; + }; + + /** + * Converts this Definition to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @instance + * @returns {Object.} JSON object + */ + Definition.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Definition; + })(); + + Experiment.Result = (function() { + + /** + * Properties of a Result. + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @interface IResult + * @property {Array.|null} [versionMetrics] Result versionMetrics + * @property {google.protobuf.ITimestamp|null} [lastUpdateTime] Result lastUpdateTime + */ + + /** + * Constructs a new Result. + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @classdesc Represents a Result. + * @implements IResult + * @constructor + * @param {google.cloud.dialogflow.cx.v3.Experiment.IResult=} [properties] Properties to set + */ + function Result(properties) { + this.versionMetrics = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Result versionMetrics. + * @member {Array.} versionMetrics + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @instance + */ + Result.prototype.versionMetrics = $util.emptyArray; + + /** + * Result lastUpdateTime. + * @member {google.protobuf.ITimestamp|null|undefined} lastUpdateTime + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @instance + */ + Result.prototype.lastUpdateTime = null; + + /** + * Creates a new Result instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.IResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result} Result instance + */ + Result.create = function create(properties) { + return new Result(properties); + }; + + /** + * Encodes the specified Result message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.IResult} message Result message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Result.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.versionMetrics != null && message.versionMetrics.length) + for (var i = 0; i < message.versionMetrics.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.encode(message.versionMetrics[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.lastUpdateTime != null && Object.hasOwnProperty.call(message, "lastUpdateTime")) + $root.google.protobuf.Timestamp.encode(message.lastUpdateTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Result message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.IResult} message Result message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Result.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Result message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result} Result + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Result.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.versionMetrics && message.versionMetrics.length)) + message.versionMetrics = []; + message.versionMetrics.push($root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.decode(reader, reader.uint32())); + break; + case 2: + message.lastUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Result message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result} Result + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Result.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Result message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Result.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.versionMetrics != null && message.hasOwnProperty("versionMetrics")) { + if (!Array.isArray(message.versionMetrics)) + return "versionMetrics: array expected"; + for (var i = 0; i < message.versionMetrics.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.verify(message.versionMetrics[i]); + if (error) + return "versionMetrics." + error; + } + } + if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.lastUpdateTime); + if (error) + return "lastUpdateTime." + error; + } + return null; + }; + + /** + * Creates a Result message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result} Result + */ + Result.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Experiment.Result) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result(); + if (object.versionMetrics) { + if (!Array.isArray(object.versionMetrics)) + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.Result.versionMetrics: array expected"); + message.versionMetrics = []; + for (var i = 0; i < object.versionMetrics.length; ++i) { + if (typeof object.versionMetrics[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.Result.versionMetrics: object expected"); + message.versionMetrics[i] = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.fromObject(object.versionMetrics[i]); + } + } + if (object.lastUpdateTime != null) { + if (typeof object.lastUpdateTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.Result.lastUpdateTime: object expected"); + message.lastUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.lastUpdateTime); + } + return message; + }; + + /** + * Creates a plain object from a Result message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.Result} message Result + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Result.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.versionMetrics = []; + if (options.defaults) + object.lastUpdateTime = null; + if (message.versionMetrics && message.versionMetrics.length) { + object.versionMetrics = []; + for (var j = 0; j < message.versionMetrics.length; ++j) + object.versionMetrics[j] = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.toObject(message.versionMetrics[j], options); + } + if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) + object.lastUpdateTime = $root.google.protobuf.Timestamp.toObject(message.lastUpdateTime, options); + return object; + }; - /** - * Properties of a RunTestCaseResponse. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IRunTestCaseResponse - * @property {google.cloud.dialogflow.cx.v3.ITestCaseResult|null} [result] RunTestCaseResponse result - */ + /** + * Converts this Result to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @instance + * @returns {Object.} JSON object + */ + Result.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Constructs a new RunTestCaseResponse. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a RunTestCaseResponse. - * @implements IRunTestCaseResponse - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseResponse=} [properties] Properties to set - */ - function RunTestCaseResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Result.ConfidenceInterval = (function() { - /** - * RunTestCaseResponse result. - * @member {google.cloud.dialogflow.cx.v3.ITestCaseResult|null|undefined} result - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse - * @instance - */ - RunTestCaseResponse.prototype.result = null; + /** + * Properties of a ConfidenceInterval. + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @interface IConfidenceInterval + * @property {number|null} [confidenceLevel] ConfidenceInterval confidenceLevel + * @property {number|null} [ratio] ConfidenceInterval ratio + * @property {number|null} [lowerBound] ConfidenceInterval lowerBound + * @property {number|null} [upperBound] ConfidenceInterval upperBound + */ - /** - * Creates a new RunTestCaseResponse instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseResponse} RunTestCaseResponse instance - */ - RunTestCaseResponse.create = function create(properties) { - return new RunTestCaseResponse(properties); - }; + /** + * Constructs a new ConfidenceInterval. + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @classdesc Represents a ConfidenceInterval. + * @implements IConfidenceInterval + * @constructor + * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval=} [properties] Properties to set + */ + function ConfidenceInterval(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified RunTestCaseResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseResponse} message RunTestCaseResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RunTestCaseResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.google.cloud.dialogflow.cx.v3.TestCaseResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * ConfidenceInterval confidenceLevel. + * @member {number} confidenceLevel + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @instance + */ + ConfidenceInterval.prototype.confidenceLevel = 0; - /** - * Encodes the specified RunTestCaseResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseResponse} message RunTestCaseResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RunTestCaseResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * ConfidenceInterval ratio. + * @member {number} ratio + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @instance + */ + ConfidenceInterval.prototype.ratio = 0; - /** - * Decodes a RunTestCaseResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseResponse} RunTestCaseResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RunTestCaseResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.RunTestCaseResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.result = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * ConfidenceInterval lowerBound. + * @member {number} lowerBound + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @instance + */ + ConfidenceInterval.prototype.lowerBound = 0; - /** - * Decodes a RunTestCaseResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseResponse} RunTestCaseResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RunTestCaseResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * ConfidenceInterval upperBound. + * @member {number} upperBound + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @instance + */ + ConfidenceInterval.prototype.upperBound = 0; - /** - * Verifies a RunTestCaseResponse message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RunTestCaseResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.result != null && message.hasOwnProperty("result")) { - var error = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.verify(message.result); - if (error) - return "result." + error; - } - return null; - }; + /** + * Creates a new ConfidenceInterval instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval} ConfidenceInterval instance + */ + ConfidenceInterval.create = function create(properties) { + return new ConfidenceInterval(properties); + }; - /** - * Creates a RunTestCaseResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseResponse} RunTestCaseResponse - */ - RunTestCaseResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.RunTestCaseResponse) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.RunTestCaseResponse(); - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.RunTestCaseResponse.result: object expected"); - message.result = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.fromObject(object.result); - } - return message; - }; + /** + * Encodes the specified ConfidenceInterval message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval} message ConfidenceInterval message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConfidenceInterval.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.confidenceLevel != null && Object.hasOwnProperty.call(message, "confidenceLevel")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.confidenceLevel); + if (message.ratio != null && Object.hasOwnProperty.call(message, "ratio")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.ratio); + if (message.lowerBound != null && Object.hasOwnProperty.call(message, "lowerBound")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.lowerBound); + if (message.upperBound != null && Object.hasOwnProperty.call(message, "upperBound")) + writer.uint32(/* id 4, wireType 1 =*/33).double(message.upperBound); + return writer; + }; - /** - * Creates a plain object from a RunTestCaseResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.RunTestCaseResponse} message RunTestCaseResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RunTestCaseResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.result = null; - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.toObject(message.result, options); - return object; - }; + /** + * Encodes the specified ConfidenceInterval message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval} message ConfidenceInterval message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConfidenceInterval.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Converts this RunTestCaseResponse to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse - * @instance - * @returns {Object.} JSON object - */ - RunTestCaseResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a ConfidenceInterval message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval} ConfidenceInterval + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConfidenceInterval.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.confidenceLevel = reader.double(); + break; + case 2: + message.ratio = reader.double(); + break; + case 3: + message.lowerBound = reader.double(); + break; + case 4: + message.upperBound = reader.double(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - return RunTestCaseResponse; - })(); + /** + * Decodes a ConfidenceInterval message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval} ConfidenceInterval + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConfidenceInterval.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - v3.RunTestCaseMetadata = (function() { + /** + * Verifies a ConfidenceInterval message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConfidenceInterval.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.confidenceLevel != null && message.hasOwnProperty("confidenceLevel")) + if (typeof message.confidenceLevel !== "number") + return "confidenceLevel: number expected"; + if (message.ratio != null && message.hasOwnProperty("ratio")) + if (typeof message.ratio !== "number") + return "ratio: number expected"; + if (message.lowerBound != null && message.hasOwnProperty("lowerBound")) + if (typeof message.lowerBound !== "number") + return "lowerBound: number expected"; + if (message.upperBound != null && message.hasOwnProperty("upperBound")) + if (typeof message.upperBound !== "number") + return "upperBound: number expected"; + return null; + }; - /** - * Properties of a RunTestCaseMetadata. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IRunTestCaseMetadata - */ + /** + * Creates a ConfidenceInterval message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval} ConfidenceInterval + */ + ConfidenceInterval.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval(); + if (object.confidenceLevel != null) + message.confidenceLevel = Number(object.confidenceLevel); + if (object.ratio != null) + message.ratio = Number(object.ratio); + if (object.lowerBound != null) + message.lowerBound = Number(object.lowerBound); + if (object.upperBound != null) + message.upperBound = Number(object.upperBound); + return message; + }; - /** - * Constructs a new RunTestCaseMetadata. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a RunTestCaseMetadata. - * @implements IRunTestCaseMetadata - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseMetadata=} [properties] Properties to set - */ - function RunTestCaseMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Creates a plain object from a ConfidenceInterval message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval} message ConfidenceInterval + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ConfidenceInterval.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.confidenceLevel = 0; + object.ratio = 0; + object.lowerBound = 0; + object.upperBound = 0; + } + if (message.confidenceLevel != null && message.hasOwnProperty("confidenceLevel")) + object.confidenceLevel = options.json && !isFinite(message.confidenceLevel) ? String(message.confidenceLevel) : message.confidenceLevel; + if (message.ratio != null && message.hasOwnProperty("ratio")) + object.ratio = options.json && !isFinite(message.ratio) ? String(message.ratio) : message.ratio; + if (message.lowerBound != null && message.hasOwnProperty("lowerBound")) + object.lowerBound = options.json && !isFinite(message.lowerBound) ? String(message.lowerBound) : message.lowerBound; + if (message.upperBound != null && message.hasOwnProperty("upperBound")) + object.upperBound = options.json && !isFinite(message.upperBound) ? String(message.upperBound) : message.upperBound; + return object; + }; - /** - * Creates a new RunTestCaseMetadata instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseMetadata - * @static - * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseMetadata=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseMetadata} RunTestCaseMetadata instance - */ - RunTestCaseMetadata.create = function create(properties) { - return new RunTestCaseMetadata(properties); - }; + /** + * Converts this ConfidenceInterval to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @instance + * @returns {Object.} JSON object + */ + ConfidenceInterval.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Encodes the specified RunTestCaseMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseMetadata.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseMetadata - * @static - * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseMetadata} message RunTestCaseMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RunTestCaseMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + return ConfidenceInterval; + })(); - /** - * Encodes the specified RunTestCaseMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseMetadata.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseMetadata - * @static - * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseMetadata} message RunTestCaseMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RunTestCaseMetadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Result.Metric = (function() { - /** - * Decodes a RunTestCaseMetadata message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseMetadata} RunTestCaseMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RunTestCaseMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.RunTestCaseMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Properties of a Metric. + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @interface IMetric + * @property {google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType|null} [type] Metric type + * @property {google.cloud.dialogflow.cx.v3.Experiment.Result.CountType|null} [countType] Metric countType + * @property {number|null} [ratio] Metric ratio + * @property {number|null} [count] Metric count + * @property {google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval|null} [confidenceInterval] Metric confidenceInterval + */ - /** - * Decodes a RunTestCaseMetadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseMetadata} RunTestCaseMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RunTestCaseMetadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Constructs a new Metric. + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @classdesc Represents a Metric. + * @implements IMetric + * @constructor + * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric=} [properties] Properties to set + */ + function Metric(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Verifies a RunTestCaseMetadata message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RunTestCaseMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * Metric type. + * @member {google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType} type + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @instance + */ + Metric.prototype.type = 0; - /** - * Creates a RunTestCaseMetadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseMetadata - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseMetadata} RunTestCaseMetadata - */ - RunTestCaseMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.RunTestCaseMetadata) - return object; - return new $root.google.cloud.dialogflow.cx.v3.RunTestCaseMetadata(); - }; + /** + * Metric countType. + * @member {google.cloud.dialogflow.cx.v3.Experiment.Result.CountType} countType + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @instance + */ + Metric.prototype.countType = 0; - /** - * Creates a plain object from a RunTestCaseMetadata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseMetadata - * @static - * @param {google.cloud.dialogflow.cx.v3.RunTestCaseMetadata} message RunTestCaseMetadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RunTestCaseMetadata.toObject = function toObject() { - return {}; - }; + /** + * Metric ratio. + * @member {number} ratio + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @instance + */ + Metric.prototype.ratio = 0; - /** - * Converts this RunTestCaseMetadata to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseMetadata - * @instance - * @returns {Object.} JSON object - */ - RunTestCaseMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Metric count. + * @member {number} count + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @instance + */ + Metric.prototype.count = 0; - return RunTestCaseMetadata; - })(); + /** + * Metric confidenceInterval. + * @member {google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval|null|undefined} confidenceInterval + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @instance + */ + Metric.prototype.confidenceInterval = null; - v3.BatchRunTestCasesRequest = (function() { + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Properties of a BatchRunTestCasesRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IBatchRunTestCasesRequest - * @property {string|null} [parent] BatchRunTestCasesRequest parent - * @property {string|null} [environment] BatchRunTestCasesRequest environment - * @property {Array.|null} [testCases] BatchRunTestCasesRequest testCases - */ + /** + * Metric value. + * @member {"ratio"|"count"|undefined} value + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @instance + */ + Object.defineProperty(Metric.prototype, "value", { + get: $util.oneOfGetter($oneOfFields = ["ratio", "count"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Constructs a new BatchRunTestCasesRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a BatchRunTestCasesRequest. - * @implements IBatchRunTestCasesRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest=} [properties] Properties to set - */ - function BatchRunTestCasesRequest(properties) { - this.testCases = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Creates a new Metric instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.Metric} Metric instance + */ + Metric.create = function create(properties) { + return new Metric(properties); + }; - /** - * BatchRunTestCasesRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest - * @instance - */ - BatchRunTestCasesRequest.prototype.parent = ""; + /** + * Encodes the specified Metric message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric} message Metric message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Metric.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.ratio != null && Object.hasOwnProperty.call(message, "ratio")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.ratio); + if (message.confidenceInterval != null && Object.hasOwnProperty.call(message, "confidenceInterval")) + $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.encode(message.confidenceInterval, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.count != null && Object.hasOwnProperty.call(message, "count")) + writer.uint32(/* id 4, wireType 1 =*/33).double(message.count); + if (message.countType != null && Object.hasOwnProperty.call(message, "countType")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.countType); + return writer; + }; - /** - * BatchRunTestCasesRequest environment. - * @member {string} environment - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest - * @instance - */ - BatchRunTestCasesRequest.prototype.environment = ""; + /** + * Encodes the specified Metric message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric} message Metric message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Metric.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * BatchRunTestCasesRequest testCases. - * @member {Array.} testCases - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest - * @instance - */ - BatchRunTestCasesRequest.prototype.testCases = $util.emptyArray; + /** + * Decodes a Metric message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.Metric} Metric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Metric.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = reader.int32(); + break; + case 5: + message.countType = reader.int32(); + break; + case 2: + message.ratio = reader.double(); + break; + case 4: + message.count = reader.double(); + break; + case 3: + message.confidenceInterval = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a new BatchRunTestCasesRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest} BatchRunTestCasesRequest instance - */ - BatchRunTestCasesRequest.create = function create(properties) { - return new BatchRunTestCasesRequest(properties); - }; + /** + * Decodes a Metric message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.Metric} Metric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Metric.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified BatchRunTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest} message BatchRunTestCasesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BatchRunTestCasesRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.environment); - if (message.testCases != null && message.testCases.length) - for (var i = 0; i < message.testCases.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.testCases[i]); - return writer; - }; + /** + * Verifies a Metric message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Metric.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.countType != null && message.hasOwnProperty("countType")) + switch (message.countType) { + default: + return "countType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.ratio != null && message.hasOwnProperty("ratio")) { + properties.value = 1; + if (typeof message.ratio !== "number") + return "ratio: number expected"; + } + if (message.count != null && message.hasOwnProperty("count")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (typeof message.count !== "number") + return "count: number expected"; + } + if (message.confidenceInterval != null && message.hasOwnProperty("confidenceInterval")) { + var error = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.verify(message.confidenceInterval); + if (error) + return "confidenceInterval." + error; + } + return null; + }; - /** - * Encodes the specified BatchRunTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest} message BatchRunTestCasesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BatchRunTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a Metric message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.Metric} Metric + */ + Metric.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric(); + switch (object.type) { + case "METRIC_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "CONTAINED_SESSION_NO_CALLBACK_RATE": + case 1: + message.type = 1; + break; + case "LIVE_AGENT_HANDOFF_RATE": + case 2: + message.type = 2; + break; + case "CALLBACK_SESSION_RATE": + case 3: + message.type = 3; + break; + case "ABANDONED_SESSION_RATE": + case 4: + message.type = 4; + break; + case "SESSION_END_RATE": + case 5: + message.type = 5; + break; + } + switch (object.countType) { + case "COUNT_TYPE_UNSPECIFIED": + case 0: + message.countType = 0; + break; + case "TOTAL_NO_MATCH_COUNT": + case 1: + message.countType = 1; + break; + case "TOTAL_TURN_COUNT": + case 2: + message.countType = 2; + break; + case "AVERAGE_TURN_COUNT": + case 3: + message.countType = 3; + break; + } + if (object.ratio != null) + message.ratio = Number(object.ratio); + if (object.count != null) + message.count = Number(object.count); + if (object.confidenceInterval != null) { + if (typeof object.confidenceInterval !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.confidenceInterval: object expected"); + message.confidenceInterval = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.fromObject(object.confidenceInterval); + } + return message; + }; - /** - * Decodes a BatchRunTestCasesRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest} BatchRunTestCasesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BatchRunTestCasesRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.environment = reader.string(); - break; - case 3: - if (!(message.testCases && message.testCases.length)) - message.testCases = []; - message.testCases.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a plain object from a Metric message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.Metric} message Metric + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Metric.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.type = options.enums === String ? "METRIC_UNSPECIFIED" : 0; + object.confidenceInterval = null; + object.countType = options.enums === String ? "COUNT_TYPE_UNSPECIFIED" : 0; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType[message.type] : message.type; + if (message.ratio != null && message.hasOwnProperty("ratio")) { + object.ratio = options.json && !isFinite(message.ratio) ? String(message.ratio) : message.ratio; + if (options.oneofs) + object.value = "ratio"; + } + if (message.confidenceInterval != null && message.hasOwnProperty("confidenceInterval")) + object.confidenceInterval = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.toObject(message.confidenceInterval, options); + if (message.count != null && message.hasOwnProperty("count")) { + object.count = options.json && !isFinite(message.count) ? String(message.count) : message.count; + if (options.oneofs) + object.value = "count"; + } + if (message.countType != null && message.hasOwnProperty("countType")) + object.countType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.Experiment.Result.CountType[message.countType] : message.countType; + return object; + }; - /** - * Decodes a BatchRunTestCasesRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest} BatchRunTestCasesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BatchRunTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Converts this Metric to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @instance + * @returns {Object.} JSON object + */ + Metric.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Verifies a BatchRunTestCasesRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BatchRunTestCasesRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.environment != null && message.hasOwnProperty("environment")) - if (!$util.isString(message.environment)) - return "environment: string expected"; - if (message.testCases != null && message.hasOwnProperty("testCases")) { - if (!Array.isArray(message.testCases)) - return "testCases: array expected"; - for (var i = 0; i < message.testCases.length; ++i) - if (!$util.isString(message.testCases[i])) - return "testCases: string[] expected"; - } - return null; - }; + return Metric; + })(); - /** - * Creates a BatchRunTestCasesRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest} BatchRunTestCasesRequest - */ - BatchRunTestCasesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.environment != null) - message.environment = String(object.environment); - if (object.testCases) { - if (!Array.isArray(object.testCases)) - throw TypeError(".google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest.testCases: array expected"); - message.testCases = []; - for (var i = 0; i < object.testCases.length; ++i) - message.testCases[i] = String(object.testCases[i]); - } - return message; - }; + Result.VersionMetrics = (function() { - /** - * Creates a plain object from a BatchRunTestCasesRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest} message BatchRunTestCasesRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - BatchRunTestCasesRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.testCases = []; - if (options.defaults) { - object.parent = ""; - object.environment = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = message.environment; - if (message.testCases && message.testCases.length) { - object.testCases = []; - for (var j = 0; j < message.testCases.length; ++j) - object.testCases[j] = message.testCases[j]; - } - return object; - }; + /** + * Properties of a VersionMetrics. + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @interface IVersionMetrics + * @property {string|null} [version] VersionMetrics version + * @property {Array.|null} [metrics] VersionMetrics metrics + * @property {number|null} [sessionCount] VersionMetrics sessionCount + */ - /** - * Converts this BatchRunTestCasesRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest - * @instance - * @returns {Object.} JSON object - */ - BatchRunTestCasesRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Constructs a new VersionMetrics. + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @classdesc Represents a VersionMetrics. + * @implements IVersionMetrics + * @constructor + * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics=} [properties] Properties to set + */ + function VersionMetrics(properties) { + this.metrics = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - return BatchRunTestCasesRequest; - })(); + /** + * VersionMetrics version. + * @member {string} version + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics + * @instance + */ + VersionMetrics.prototype.version = ""; - v3.BatchRunTestCasesResponse = (function() { + /** + * VersionMetrics metrics. + * @member {Array.} metrics + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics + * @instance + */ + VersionMetrics.prototype.metrics = $util.emptyArray; - /** - * Properties of a BatchRunTestCasesResponse. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IBatchRunTestCasesResponse - * @property {Array.|null} [results] BatchRunTestCasesResponse results - */ + /** + * VersionMetrics sessionCount. + * @member {number} sessionCount + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics + * @instance + */ + VersionMetrics.prototype.sessionCount = 0; - /** - * Constructs a new BatchRunTestCasesResponse. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a BatchRunTestCasesResponse. - * @implements IBatchRunTestCasesResponse - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesResponse=} [properties] Properties to set - */ - function BatchRunTestCasesResponse(properties) { - this.results = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Creates a new VersionMetrics instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics} VersionMetrics instance + */ + VersionMetrics.create = function create(properties) { + return new VersionMetrics(properties); + }; - /** - * BatchRunTestCasesResponse results. - * @member {Array.} results - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse - * @instance - */ - BatchRunTestCasesResponse.prototype.results = $util.emptyArray; + /** + * Encodes the specified VersionMetrics message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics} message VersionMetrics message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VersionMetrics.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); + if (message.metrics != null && message.metrics.length) + for (var i = 0; i < message.metrics.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.encode(message.metrics[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.sessionCount != null && Object.hasOwnProperty.call(message, "sessionCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.sessionCount); + return writer; + }; - /** - * Creates a new BatchRunTestCasesResponse instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse} BatchRunTestCasesResponse instance - */ - BatchRunTestCasesResponse.create = function create(properties) { - return new BatchRunTestCasesResponse(properties); - }; + /** + * Encodes the specified VersionMetrics message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics} message VersionMetrics message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VersionMetrics.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified BatchRunTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesResponse} message BatchRunTestCasesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BatchRunTestCasesResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.results != null && message.results.length) - for (var i = 0; i < message.results.length; ++i) - $root.google.cloud.dialogflow.cx.v3.TestCaseResult.encode(message.results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Decodes a VersionMetrics message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics} VersionMetrics + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VersionMetrics.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.version = reader.string(); + break; + case 2: + if (!(message.metrics && message.metrics.length)) + message.metrics = []; + message.metrics.push($root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.decode(reader, reader.uint32())); + break; + case 3: + message.sessionCount = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified BatchRunTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesResponse} message BatchRunTestCasesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BatchRunTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a VersionMetrics message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics} VersionMetrics + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VersionMetrics.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a BatchRunTestCasesResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse} BatchRunTestCasesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BatchRunTestCasesResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.results && message.results.length)) - message.results = []; - message.results.push($root.google.cloud.dialogflow.cx.v3.TestCaseResult.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Verifies a VersionMetrics message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VersionMetrics.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.metrics != null && message.hasOwnProperty("metrics")) { + if (!Array.isArray(message.metrics)) + return "metrics: array expected"; + for (var i = 0; i < message.metrics.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.verify(message.metrics[i]); + if (error) + return "metrics." + error; + } + } + if (message.sessionCount != null && message.hasOwnProperty("sessionCount")) + if (!$util.isInteger(message.sessionCount)) + return "sessionCount: integer expected"; + return null; + }; - /** - * Decodes a BatchRunTestCasesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse} BatchRunTestCasesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BatchRunTestCasesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a VersionMetrics message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics} VersionMetrics + */ + VersionMetrics.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics(); + if (object.version != null) + message.version = String(object.version); + if (object.metrics) { + if (!Array.isArray(object.metrics)) + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.metrics: array expected"); + message.metrics = []; + for (var i = 0; i < object.metrics.length; ++i) { + if (typeof object.metrics[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.metrics: object expected"); + message.metrics[i] = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.fromObject(object.metrics[i]); + } + } + if (object.sessionCount != null) + message.sessionCount = object.sessionCount | 0; + return message; + }; - /** - * Verifies a BatchRunTestCasesResponse message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BatchRunTestCasesResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.results != null && message.hasOwnProperty("results")) { - if (!Array.isArray(message.results)) - return "results: array expected"; - for (var i = 0; i < message.results.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.verify(message.results[i]); - if (error) - return "results." + error; - } - } - return null; - }; + /** + * Creates a plain object from a VersionMetrics message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics} message VersionMetrics + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VersionMetrics.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.metrics = []; + if (options.defaults) { + object.version = ""; + object.sessionCount = 0; + } + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + if (message.metrics && message.metrics.length) { + object.metrics = []; + for (var j = 0; j < message.metrics.length; ++j) + object.metrics[j] = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.toObject(message.metrics[j], options); + } + if (message.sessionCount != null && message.hasOwnProperty("sessionCount")) + object.sessionCount = message.sessionCount; + return object; + }; + + /** + * Converts this VersionMetrics to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics + * @instance + * @returns {Object.} JSON object + */ + VersionMetrics.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return VersionMetrics; + })(); + + /** + * MetricType enum. + * @name google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType + * @enum {number} + * @property {number} METRIC_UNSPECIFIED=0 METRIC_UNSPECIFIED value + * @property {number} CONTAINED_SESSION_NO_CALLBACK_RATE=1 CONTAINED_SESSION_NO_CALLBACK_RATE value + * @property {number} LIVE_AGENT_HANDOFF_RATE=2 LIVE_AGENT_HANDOFF_RATE value + * @property {number} CALLBACK_SESSION_RATE=3 CALLBACK_SESSION_RATE value + * @property {number} ABANDONED_SESSION_RATE=4 ABANDONED_SESSION_RATE value + * @property {number} SESSION_END_RATE=5 SESSION_END_RATE value + */ + Result.MetricType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "METRIC_UNSPECIFIED"] = 0; + values[valuesById[1] = "CONTAINED_SESSION_NO_CALLBACK_RATE"] = 1; + values[valuesById[2] = "LIVE_AGENT_HANDOFF_RATE"] = 2; + values[valuesById[3] = "CALLBACK_SESSION_RATE"] = 3; + values[valuesById[4] = "ABANDONED_SESSION_RATE"] = 4; + values[valuesById[5] = "SESSION_END_RATE"] = 5; + return values; + })(); - /** - * Creates a BatchRunTestCasesResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse} BatchRunTestCasesResponse - */ - BatchRunTestCasesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse(); - if (object.results) { - if (!Array.isArray(object.results)) - throw TypeError(".google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse.results: array expected"); - message.results = []; - for (var i = 0; i < object.results.length; ++i) { - if (typeof object.results[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse.results: object expected"); - message.results[i] = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.fromObject(object.results[i]); - } - } - return message; - }; + /** + * CountType enum. + * @name google.cloud.dialogflow.cx.v3.Experiment.Result.CountType + * @enum {number} + * @property {number} COUNT_TYPE_UNSPECIFIED=0 COUNT_TYPE_UNSPECIFIED value + * @property {number} TOTAL_NO_MATCH_COUNT=1 TOTAL_NO_MATCH_COUNT value + * @property {number} TOTAL_TURN_COUNT=2 TOTAL_TURN_COUNT value + * @property {number} AVERAGE_TURN_COUNT=3 AVERAGE_TURN_COUNT value + */ + Result.CountType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "COUNT_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "TOTAL_NO_MATCH_COUNT"] = 1; + values[valuesById[2] = "TOTAL_TURN_COUNT"] = 2; + values[valuesById[3] = "AVERAGE_TURN_COUNT"] = 3; + return values; + })(); - /** - * Creates a plain object from a BatchRunTestCasesResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse} message BatchRunTestCasesResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - BatchRunTestCasesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.results = []; - if (message.results && message.results.length) { - object.results = []; - for (var j = 0; j < message.results.length; ++j) - object.results[j] = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.toObject(message.results[j], options); - } - return object; - }; + return Result; + })(); /** - * Converts this BatchRunTestCasesResponse to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse - * @instance - * @returns {Object.} JSON object + * State enum. + * @name google.cloud.dialogflow.cx.v3.Experiment.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} DRAFT=1 DRAFT value + * @property {number} RUNNING=2 RUNNING value + * @property {number} DONE=3 DONE value */ - BatchRunTestCasesResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Experiment.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "DRAFT"] = 1; + values[valuesById[2] = "RUNNING"] = 2; + values[valuesById[3] = "DONE"] = 3; + return values; + })(); - return BatchRunTestCasesResponse; + return Experiment; })(); - v3.BatchRunTestCasesMetadata = (function() { + v3.VersionVariants = (function() { /** - * Properties of a BatchRunTestCasesMetadata. + * Properties of a VersionVariants. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IBatchRunTestCasesMetadata - * @property {Array.|null} [errors] BatchRunTestCasesMetadata errors + * @interface IVersionVariants + * @property {Array.|null} [variants] VersionVariants variants */ /** - * Constructs a new BatchRunTestCasesMetadata. + * Constructs a new VersionVariants. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a BatchRunTestCasesMetadata. - * @implements IBatchRunTestCasesMetadata + * @classdesc Represents a VersionVariants. + * @implements IVersionVariants * @constructor - * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesMetadata=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IVersionVariants=} [properties] Properties to set */ - function BatchRunTestCasesMetadata(properties) { - this.errors = []; + function VersionVariants(properties) { + this.variants = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -44753,78 +44970,78 @@ } /** - * BatchRunTestCasesMetadata errors. - * @member {Array.} errors - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata + * VersionVariants variants. + * @member {Array.} variants + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants * @instance */ - BatchRunTestCasesMetadata.prototype.errors = $util.emptyArray; + VersionVariants.prototype.variants = $util.emptyArray; /** - * Creates a new BatchRunTestCasesMetadata instance using the specified properties. + * Creates a new VersionVariants instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants * @static - * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesMetadata=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata instance + * @param {google.cloud.dialogflow.cx.v3.IVersionVariants=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.VersionVariants} VersionVariants instance */ - BatchRunTestCasesMetadata.create = function create(properties) { - return new BatchRunTestCasesMetadata(properties); + VersionVariants.create = function create(properties) { + return new VersionVariants(properties); }; /** - * Encodes the specified BatchRunTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata.verify|verify} messages. + * Encodes the specified VersionVariants message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants * @static - * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesMetadata} message BatchRunTestCasesMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IVersionVariants} message VersionVariants message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchRunTestCasesMetadata.encode = function encode(message, writer) { + VersionVariants.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.errors != null && message.errors.length) - for (var i = 0; i < message.errors.length; ++i) - $root.google.cloud.dialogflow.cx.v3.TestError.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.variants != null && message.variants.length) + for (var i = 0; i < message.variants.length; ++i) + $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant.encode(message.variants[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified BatchRunTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata.verify|verify} messages. + * Encodes the specified VersionVariants message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants * @static - * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesMetadata} message BatchRunTestCasesMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IVersionVariants} message VersionVariants message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchRunTestCasesMetadata.encodeDelimited = function encodeDelimited(message, writer) { + VersionVariants.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchRunTestCasesMetadata message from the specified reader or buffer. + * Decodes a VersionVariants message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata + * @returns {google.cloud.dialogflow.cx.v3.VersionVariants} VersionVariants * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchRunTestCasesMetadata.decode = function decode(reader, length) { + VersionVariants.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.VersionVariants(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.errors && message.errors.length)) - message.errors = []; - message.errors.push($root.google.cloud.dialogflow.cx.v3.TestError.decode(reader, reader.uint32())); + if (!(message.variants && message.variants.length)) + message.variants = []; + message.variants.push($root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -44835,368 +45052,357 @@ }; /** - * Decodes a BatchRunTestCasesMetadata message from the specified reader or buffer, length delimited. + * Decodes a VersionVariants message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata + * @returns {google.cloud.dialogflow.cx.v3.VersionVariants} VersionVariants * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchRunTestCasesMetadata.decodeDelimited = function decodeDelimited(reader) { + VersionVariants.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchRunTestCasesMetadata message. + * Verifies a VersionVariants message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchRunTestCasesMetadata.verify = function verify(message) { + VersionVariants.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.errors != null && message.hasOwnProperty("errors")) { - if (!Array.isArray(message.errors)) - return "errors: array expected"; - for (var i = 0; i < message.errors.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.TestError.verify(message.errors[i]); + if (message.variants != null && message.hasOwnProperty("variants")) { + if (!Array.isArray(message.variants)) + return "variants: array expected"; + for (var i = 0; i < message.variants.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant.verify(message.variants[i]); if (error) - return "errors." + error; + return "variants." + error; } } return null; }; /** - * Creates a BatchRunTestCasesMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a VersionVariants message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata + * @returns {google.cloud.dialogflow.cx.v3.VersionVariants} VersionVariants */ - BatchRunTestCasesMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata) + VersionVariants.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.VersionVariants) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata(); - if (object.errors) { - if (!Array.isArray(object.errors)) - throw TypeError(".google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata.errors: array expected"); - message.errors = []; - for (var i = 0; i < object.errors.length; ++i) { - if (typeof object.errors[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata.errors: object expected"); - message.errors[i] = $root.google.cloud.dialogflow.cx.v3.TestError.fromObject(object.errors[i]); + var message = new $root.google.cloud.dialogflow.cx.v3.VersionVariants(); + if (object.variants) { + if (!Array.isArray(object.variants)) + throw TypeError(".google.cloud.dialogflow.cx.v3.VersionVariants.variants: array expected"); + message.variants = []; + for (var i = 0; i < object.variants.length; ++i) { + if (typeof object.variants[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.VersionVariants.variants: object expected"); + message.variants[i] = $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant.fromObject(object.variants[i]); } } return message; }; /** - * Creates a plain object from a BatchRunTestCasesMetadata message. Also converts values to other types if specified. + * Creates a plain object from a VersionVariants message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants * @static - * @param {google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata} message BatchRunTestCasesMetadata + * @param {google.cloud.dialogflow.cx.v3.VersionVariants} message VersionVariants * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchRunTestCasesMetadata.toObject = function toObject(message, options) { + VersionVariants.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.errors = []; - if (message.errors && message.errors.length) { - object.errors = []; - for (var j = 0; j < message.errors.length; ++j) - object.errors[j] = $root.google.cloud.dialogflow.cx.v3.TestError.toObject(message.errors[j], options); + object.variants = []; + if (message.variants && message.variants.length) { + object.variants = []; + for (var j = 0; j < message.variants.length; ++j) + object.variants[j] = $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant.toObject(message.variants[j], options); } return object; }; /** - * Converts this BatchRunTestCasesMetadata to JSON. + * Converts this VersionVariants to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants * @instance * @returns {Object.} JSON object */ - BatchRunTestCasesMetadata.prototype.toJSON = function toJSON() { + VersionVariants.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BatchRunTestCasesMetadata; - })(); - - v3.TestError = (function() { + VersionVariants.Variant = (function() { - /** - * Properties of a TestError. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface ITestError - * @property {string|null} [testCase] TestError testCase - * @property {google.rpc.IStatus|null} [status] TestError status - * @property {google.protobuf.ITimestamp|null} [testTime] TestError testTime - */ + /** + * Properties of a Variant. + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants + * @interface IVariant + * @property {string|null} [version] Variant version + * @property {number|null} [trafficAllocation] Variant trafficAllocation + * @property {boolean|null} [isControlGroup] Variant isControlGroup + */ - /** - * Constructs a new TestError. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a TestError. - * @implements ITestError - * @constructor - * @param {google.cloud.dialogflow.cx.v3.ITestError=} [properties] Properties to set - */ - function TestError(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new Variant. + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants + * @classdesc Represents a Variant. + * @implements IVariant + * @constructor + * @param {google.cloud.dialogflow.cx.v3.VersionVariants.IVariant=} [properties] Properties to set + */ + function Variant(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * TestError testCase. - * @member {string} testCase - * @memberof google.cloud.dialogflow.cx.v3.TestError - * @instance - */ - TestError.prototype.testCase = ""; + /** + * Variant version. + * @member {string} version + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @instance + */ + Variant.prototype.version = ""; - /** - * TestError status. - * @member {google.rpc.IStatus|null|undefined} status - * @memberof google.cloud.dialogflow.cx.v3.TestError - * @instance - */ - TestError.prototype.status = null; + /** + * Variant trafficAllocation. + * @member {number} trafficAllocation + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @instance + */ + Variant.prototype.trafficAllocation = 0; - /** - * TestError testTime. - * @member {google.protobuf.ITimestamp|null|undefined} testTime - * @memberof google.cloud.dialogflow.cx.v3.TestError - * @instance - */ - TestError.prototype.testTime = null; + /** + * Variant isControlGroup. + * @member {boolean} isControlGroup + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @instance + */ + Variant.prototype.isControlGroup = false; - /** - * Creates a new TestError instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.TestError - * @static - * @param {google.cloud.dialogflow.cx.v3.ITestError=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.TestError} TestError instance - */ - TestError.create = function create(properties) { - return new TestError(properties); - }; + /** + * Creates a new Variant instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @static + * @param {google.cloud.dialogflow.cx.v3.VersionVariants.IVariant=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.VersionVariants.Variant} Variant instance + */ + Variant.create = function create(properties) { + return new Variant(properties); + }; - /** - * Encodes the specified TestError message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestError.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.TestError - * @static - * @param {google.cloud.dialogflow.cx.v3.ITestError} message TestError message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TestError.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.testCase != null && Object.hasOwnProperty.call(message, "testCase")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.testCase); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.testTime != null && Object.hasOwnProperty.call(message, "testTime")) - $root.google.protobuf.Timestamp.encode(message.testTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified Variant message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.Variant.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @static + * @param {google.cloud.dialogflow.cx.v3.VersionVariants.IVariant} message Variant message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Variant.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); + if (message.trafficAllocation != null && Object.hasOwnProperty.call(message, "trafficAllocation")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.trafficAllocation); + if (message.isControlGroup != null && Object.hasOwnProperty.call(message, "isControlGroup")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isControlGroup); + return writer; + }; - /** - * Encodes the specified TestError message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestError.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TestError - * @static - * @param {google.cloud.dialogflow.cx.v3.ITestError} message TestError message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TestError.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Variant message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.Variant.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @static + * @param {google.cloud.dialogflow.cx.v3.VersionVariants.IVariant} message Variant message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Variant.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a TestError message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.TestError - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.TestError} TestError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TestError.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TestError(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.testCase = reader.string(); - break; - case 2: - message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; - case 3: - message.testTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Decodes a Variant message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.VersionVariants.Variant} Variant + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Variant.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.version = reader.string(); + break; + case 2: + message.trafficAllocation = reader.float(); + break; + case 3: + message.isControlGroup = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; + + /** + * Decodes a Variant message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.VersionVariants.Variant} Variant + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Variant.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a TestError message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TestError - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.TestError} TestError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TestError.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Verifies a Variant message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Variant.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.trafficAllocation != null && message.hasOwnProperty("trafficAllocation")) + if (typeof message.trafficAllocation !== "number") + return "trafficAllocation: number expected"; + if (message.isControlGroup != null && message.hasOwnProperty("isControlGroup")) + if (typeof message.isControlGroup !== "boolean") + return "isControlGroup: boolean expected"; + return null; + }; - /** - * Verifies a TestError message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.TestError - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TestError.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.testCase != null && message.hasOwnProperty("testCase")) - if (!$util.isString(message.testCase)) - return "testCase: string expected"; - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.google.rpc.Status.verify(message.status); - if (error) - return "status." + error; - } - if (message.testTime != null && message.hasOwnProperty("testTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.testTime); - if (error) - return "testTime." + error; - } - return null; - }; + /** + * Creates a Variant message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.VersionVariants.Variant} Variant + */ + Variant.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant(); + if (object.version != null) + message.version = String(object.version); + if (object.trafficAllocation != null) + message.trafficAllocation = Number(object.trafficAllocation); + if (object.isControlGroup != null) + message.isControlGroup = Boolean(object.isControlGroup); + return message; + }; - /** - * Creates a TestError message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.TestError - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.TestError} TestError - */ - TestError.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.TestError) + /** + * Creates a plain object from a Variant message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @static + * @param {google.cloud.dialogflow.cx.v3.VersionVariants.Variant} message Variant + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Variant.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.version = ""; + object.trafficAllocation = 0; + object.isControlGroup = false; + } + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + if (message.trafficAllocation != null && message.hasOwnProperty("trafficAllocation")) + object.trafficAllocation = options.json && !isFinite(message.trafficAllocation) ? String(message.trafficAllocation) : message.trafficAllocation; + if (message.isControlGroup != null && message.hasOwnProperty("isControlGroup")) + object.isControlGroup = message.isControlGroup; return object; - var message = new $root.google.cloud.dialogflow.cx.v3.TestError(); - if (object.testCase != null) - message.testCase = String(object.testCase); - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TestError.status: object expected"); - message.status = $root.google.rpc.Status.fromObject(object.status); - } - if (object.testTime != null) { - if (typeof object.testTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TestError.testTime: object expected"); - message.testTime = $root.google.protobuf.Timestamp.fromObject(object.testTime); - } - return message; - }; + }; - /** - * Creates a plain object from a TestError message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.TestError - * @static - * @param {google.cloud.dialogflow.cx.v3.TestError} message TestError - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TestError.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.testCase = ""; - object.status = null; - object.testTime = null; - } - if (message.testCase != null && message.hasOwnProperty("testCase")) - object.testCase = message.testCase; - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.google.rpc.Status.toObject(message.status, options); - if (message.testTime != null && message.hasOwnProperty("testTime")) - object.testTime = $root.google.protobuf.Timestamp.toObject(message.testTime, options); - return object; - }; + /** + * Converts this Variant to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @instance + * @returns {Object.} JSON object + */ + Variant.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this TestError to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.TestError - * @instance - * @returns {Object.} JSON object - */ - TestError.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return Variant; + })(); - return TestError; + return VersionVariants; })(); - v3.ImportTestCasesRequest = (function() { + v3.VariantsHistory = (function() { /** - * Properties of an ImportTestCasesRequest. + * Properties of a VariantsHistory. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IImportTestCasesRequest - * @property {string|null} [parent] ImportTestCasesRequest parent - * @property {string|null} [gcsUri] ImportTestCasesRequest gcsUri - * @property {Uint8Array|null} [content] ImportTestCasesRequest content + * @interface IVariantsHistory + * @property {google.cloud.dialogflow.cx.v3.IVersionVariants|null} [versionVariants] VariantsHistory versionVariants + * @property {google.protobuf.ITimestamp|null} [updateTime] VariantsHistory updateTime */ /** - * Constructs a new ImportTestCasesRequest. + * Constructs a new VariantsHistory. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an ImportTestCasesRequest. - * @implements IImportTestCasesRequest + * @classdesc Represents a VariantsHistory. + * @implements IVariantsHistory * @constructor - * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IVariantsHistory=} [properties] Properties to set */ - function ImportTestCasesRequest(properties) { + function VariantsHistory(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -45204,115 +45410,102 @@ } /** - * ImportTestCasesRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest - * @instance - */ - ImportTestCasesRequest.prototype.parent = ""; - - /** - * ImportTestCasesRequest gcsUri. - * @member {string} gcsUri - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest + * VariantsHistory versionVariants. + * @member {google.cloud.dialogflow.cx.v3.IVersionVariants|null|undefined} versionVariants + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @instance */ - ImportTestCasesRequest.prototype.gcsUri = ""; + VariantsHistory.prototype.versionVariants = null; /** - * ImportTestCasesRequest content. - * @member {Uint8Array} content - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest + * VariantsHistory updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @instance */ - ImportTestCasesRequest.prototype.content = $util.newBuffer([]); + VariantsHistory.prototype.updateTime = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ImportTestCasesRequest source. - * @member {"gcsUri"|"content"|undefined} source - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest + * VariantsHistory variants. + * @member {"versionVariants"|undefined} variants + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @instance */ - Object.defineProperty(ImportTestCasesRequest.prototype, "source", { - get: $util.oneOfGetter($oneOfFields = ["gcsUri", "content"]), + Object.defineProperty(VariantsHistory.prototype, "variants", { + get: $util.oneOfGetter($oneOfFields = ["versionVariants"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ImportTestCasesRequest instance using the specified properties. + * Creates a new VariantsHistory instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @static - * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesRequest} ImportTestCasesRequest instance + * @param {google.cloud.dialogflow.cx.v3.IVariantsHistory=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.VariantsHistory} VariantsHistory instance */ - ImportTestCasesRequest.create = function create(properties) { - return new ImportTestCasesRequest(properties); + VariantsHistory.create = function create(properties) { + return new VariantsHistory(properties); }; /** - * Encodes the specified ImportTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesRequest.verify|verify} messages. + * Encodes the specified VariantsHistory message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VariantsHistory.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @static - * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesRequest} message ImportTestCasesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IVariantsHistory} message VariantsHistory message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportTestCasesRequest.encode = function encode(message, writer) { + VariantsHistory.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.gcsUri != null && Object.hasOwnProperty.call(message, "gcsUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.gcsUri); - if (message.content != null && Object.hasOwnProperty.call(message, "content")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.content); + if (message.versionVariants != null && Object.hasOwnProperty.call(message, "versionVariants")) + $root.google.cloud.dialogflow.cx.v3.VersionVariants.encode(message.versionVariants, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ImportTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesRequest.verify|verify} messages. + * Encodes the specified VariantsHistory message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VariantsHistory.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @static - * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesRequest} message ImportTestCasesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IVariantsHistory} message VariantsHistory message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { + VariantsHistory.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImportTestCasesRequest message from the specified reader or buffer. + * Decodes a VariantsHistory message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesRequest} ImportTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3.VariantsHistory} VariantsHistory * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportTestCasesRequest.decode = function decode(reader, length) { + VariantsHistory.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ImportTestCasesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.VariantsHistory(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.versionVariants = $root.google.cloud.dialogflow.cx.v3.VersionVariants.decode(reader, reader.uint32()); break; case 2: - message.gcsUri = reader.string(); - break; - case 3: - message.content = reader.bytes(); + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -45323,138 +45516,133 @@ }; /** - * Decodes an ImportTestCasesRequest message from the specified reader or buffer, length delimited. + * Decodes a VariantsHistory message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesRequest} ImportTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3.VariantsHistory} VariantsHistory * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { + VariantsHistory.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ImportTestCasesRequest message. + * Verifies a VariantsHistory message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ImportTestCasesRequest.verify = function verify(message) { + VariantsHistory.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { - properties.source = 1; - if (!$util.isString(message.gcsUri)) - return "gcsUri: string expected"; + if (message.versionVariants != null && message.hasOwnProperty("versionVariants")) { + properties.variants = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.VersionVariants.verify(message.versionVariants); + if (error) + return "versionVariants." + error; + } } - if (message.content != null && message.hasOwnProperty("content")) { - if (properties.source === 1) - return "source: multiple values"; - properties.source = 1; - if (!(message.content && typeof message.content.length === "number" || $util.isString(message.content))) - return "content: buffer expected"; + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; } return null; }; /** - * Creates an ImportTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VariantsHistory message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesRequest} ImportTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3.VariantsHistory} VariantsHistory */ - ImportTestCasesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ImportTestCasesRequest) + VariantsHistory.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.VariantsHistory) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ImportTestCasesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.gcsUri != null) - message.gcsUri = String(object.gcsUri); - if (object.content != null) - if (typeof object.content === "string") - $util.base64.decode(object.content, message.content = $util.newBuffer($util.base64.length(object.content)), 0); - else if (object.content.length) - message.content = object.content; + var message = new $root.google.cloud.dialogflow.cx.v3.VariantsHistory(); + if (object.versionVariants != null) { + if (typeof object.versionVariants !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.VariantsHistory.versionVariants: object expected"); + message.versionVariants = $root.google.cloud.dialogflow.cx.v3.VersionVariants.fromObject(object.versionVariants); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.VariantsHistory.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } return message; }; /** - * Creates a plain object from an ImportTestCasesRequest message. Also converts values to other types if specified. + * Creates a plain object from a VariantsHistory message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @static - * @param {google.cloud.dialogflow.cx.v3.ImportTestCasesRequest} message ImportTestCasesRequest + * @param {google.cloud.dialogflow.cx.v3.VariantsHistory} message VariantsHistory * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportTestCasesRequest.toObject = function toObject(message, options) { + VariantsHistory.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.parent = ""; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { - object.gcsUri = message.gcsUri; - if (options.oneofs) - object.source = "gcsUri"; - } - if (message.content != null && message.hasOwnProperty("content")) { - object.content = options.bytes === String ? $util.base64.encode(message.content, 0, message.content.length) : options.bytes === Array ? Array.prototype.slice.call(message.content) : message.content; + object.updateTime = null; + if (message.versionVariants != null && message.hasOwnProperty("versionVariants")) { + object.versionVariants = $root.google.cloud.dialogflow.cx.v3.VersionVariants.toObject(message.versionVariants, options); if (options.oneofs) - object.source = "content"; + object.variants = "versionVariants"; } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); return object; }; /** - * Converts this ImportTestCasesRequest to JSON. + * Converts this VariantsHistory to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @instance * @returns {Object.} JSON object */ - ImportTestCasesRequest.prototype.toJSON = function toJSON() { + VariantsHistory.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ImportTestCasesRequest; + return VariantsHistory; })(); - v3.ImportTestCasesResponse = (function() { + v3.ListExperimentsRequest = (function() { /** - * Properties of an ImportTestCasesResponse. + * Properties of a ListExperimentsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IImportTestCasesResponse - * @property {Array.|null} [names] ImportTestCasesResponse names + * @interface IListExperimentsRequest + * @property {string|null} [parent] ListExperimentsRequest parent + * @property {number|null} [pageSize] ListExperimentsRequest pageSize + * @property {string|null} [pageToken] ListExperimentsRequest pageToken */ /** - * Constructs a new ImportTestCasesResponse. + * Constructs a new ListExperimentsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an ImportTestCasesResponse. - * @implements IImportTestCasesResponse + * @classdesc Represents a ListExperimentsRequest. + * @implements IListExperimentsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListExperimentsRequest=} [properties] Properties to set */ - function ImportTestCasesResponse(properties) { - this.names = []; + function ListExperimentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -45462,78 +45650,101 @@ } /** - * ImportTestCasesResponse names. - * @member {Array.} names - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse + * ListExperimentsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @instance */ - ImportTestCasesResponse.prototype.names = $util.emptyArray; + ListExperimentsRequest.prototype.parent = ""; /** - * Creates a new ImportTestCasesResponse instance using the specified properties. + * ListExperimentsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest + * @instance + */ + ListExperimentsRequest.prototype.pageSize = 0; + + /** + * ListExperimentsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest + * @instance + */ + ListExperimentsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListExperimentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesResponse} ImportTestCasesResponse instance + * @param {google.cloud.dialogflow.cx.v3.IListExperimentsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsRequest} ListExperimentsRequest instance */ - ImportTestCasesResponse.create = function create(properties) { - return new ImportTestCasesResponse(properties); + ListExperimentsRequest.create = function create(properties) { + return new ListExperimentsRequest(properties); }; /** - * Encodes the specified ImportTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesResponse.verify|verify} messages. + * Encodes the specified ListExperimentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesResponse} message ImportTestCasesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListExperimentsRequest} message ListExperimentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportTestCasesResponse.encode = function encode(message, writer) { + ListExperimentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.names != null && message.names.length) - for (var i = 0; i < message.names.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.names[i]); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified ImportTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesResponse.verify|verify} messages. + * Encodes the specified ListExperimentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesResponse} message ImportTestCasesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListExperimentsRequest} message ListExperimentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListExperimentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImportTestCasesResponse message from the specified reader or buffer. + * Decodes a ListExperimentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesResponse} ImportTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsRequest} ListExperimentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportTestCasesResponse.decode = function decode(reader, length) { + ListExperimentsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ImportTestCasesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListExperimentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.names && message.names.length)) - message.names = []; - message.names.push(reader.string()); + message.parent = reader.string(); + break; + case 2: + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -45544,120 +45755,126 @@ }; /** - * Decodes an ImportTestCasesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListExperimentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesResponse} ImportTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsRequest} ListExperimentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportTestCasesResponse.decodeDelimited = function decodeDelimited(reader) { + ListExperimentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ImportTestCasesResponse message. + * Verifies a ListExperimentsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ImportTestCasesResponse.verify = function verify(message) { + ListExperimentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.names != null && message.hasOwnProperty("names")) { - if (!Array.isArray(message.names)) - return "names: array expected"; - for (var i = 0; i < message.names.length; ++i) - if (!$util.isString(message.names[i])) - return "names: string[] expected"; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates an ImportTestCasesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListExperimentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesResponse} ImportTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsRequest} ListExperimentsRequest */ - ImportTestCasesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ImportTestCasesResponse) + ListExperimentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListExperimentsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ImportTestCasesResponse(); - if (object.names) { - if (!Array.isArray(object.names)) - throw TypeError(".google.cloud.dialogflow.cx.v3.ImportTestCasesResponse.names: array expected"); - message.names = []; - for (var i = 0; i < object.names.length; ++i) - message.names[i] = String(object.names[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3.ListExperimentsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from an ImportTestCasesResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListExperimentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ImportTestCasesResponse} message ImportTestCasesResponse + * @param {google.cloud.dialogflow.cx.v3.ListExperimentsRequest} message ListExperimentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportTestCasesResponse.toObject = function toObject(message, options) { + ListExperimentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.names = []; - if (message.names && message.names.length) { - object.names = []; - for (var j = 0; j < message.names.length; ++j) - object.names[j] = message.names[j]; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this ImportTestCasesResponse to JSON. + * Converts this ListExperimentsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @instance * @returns {Object.} JSON object */ - ImportTestCasesResponse.prototype.toJSON = function toJSON() { + ListExperimentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ImportTestCasesResponse; + return ListExperimentsRequest; })(); - v3.ImportTestCasesMetadata = (function() { + v3.ListExperimentsResponse = (function() { /** - * Properties of an ImportTestCasesMetadata. + * Properties of a ListExperimentsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IImportTestCasesMetadata - * @property {Array.|null} [errors] ImportTestCasesMetadata errors + * @interface IListExperimentsResponse + * @property {Array.|null} [experiments] ListExperimentsResponse experiments + * @property {string|null} [nextPageToken] ListExperimentsResponse nextPageToken */ /** - * Constructs a new ImportTestCasesMetadata. + * Constructs a new ListExperimentsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an ImportTestCasesMetadata. - * @implements IImportTestCasesMetadata + * @classdesc Represents a ListExperimentsResponse. + * @implements IListExperimentsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesMetadata=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListExperimentsResponse=} [properties] Properties to set */ - function ImportTestCasesMetadata(properties) { - this.errors = []; + function ListExperimentsResponse(properties) { + this.experiments = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -45665,78 +45882,91 @@ } /** - * ImportTestCasesMetadata errors. - * @member {Array.} errors - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata + * ListExperimentsResponse experiments. + * @member {Array.} experiments + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse * @instance */ - ImportTestCasesMetadata.prototype.errors = $util.emptyArray; + ListExperimentsResponse.prototype.experiments = $util.emptyArray; /** - * Creates a new ImportTestCasesMetadata instance using the specified properties. + * ListExperimentsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse + * @instance + */ + ListExperimentsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListExperimentsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesMetadata=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata} ImportTestCasesMetadata instance + * @param {google.cloud.dialogflow.cx.v3.IListExperimentsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsResponse} ListExperimentsResponse instance */ - ImportTestCasesMetadata.create = function create(properties) { - return new ImportTestCasesMetadata(properties); + ListExperimentsResponse.create = function create(properties) { + return new ListExperimentsResponse(properties); }; /** - * Encodes the specified ImportTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata.verify|verify} messages. + * Encodes the specified ListExperimentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesMetadata} message ImportTestCasesMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListExperimentsResponse} message ListExperimentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportTestCasesMetadata.encode = function encode(message, writer) { + ListExperimentsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.errors != null && message.errors.length) - for (var i = 0; i < message.errors.length; ++i) - $root.google.cloud.dialogflow.cx.v3.TestCaseError.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.experiments != null && message.experiments.length) + for (var i = 0; i < message.experiments.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Experiment.encode(message.experiments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ImportTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata.verify|verify} messages. + * Encodes the specified ListExperimentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesMetadata} message ImportTestCasesMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListExperimentsResponse} message ListExperimentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportTestCasesMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ListExperimentsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImportTestCasesMetadata message from the specified reader or buffer. + * Decodes a ListExperimentsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata} ImportTestCasesMetadata + * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsResponse} ListExperimentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportTestCasesMetadata.decode = function decode(reader, length) { + ListExperimentsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListExperimentsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.errors && message.errors.length)) - message.errors = []; - message.errors.push($root.google.cloud.dialogflow.cx.v3.TestCaseError.decode(reader, reader.uint32())); + if (!(message.experiments && message.experiments.length)) + message.experiments = []; + message.experiments.push($root.google.cloud.dialogflow.cx.v3.Experiment.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -45747,125 +45977,133 @@ }; /** - * Decodes an ImportTestCasesMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListExperimentsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata} ImportTestCasesMetadata + * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsResponse} ListExperimentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportTestCasesMetadata.decodeDelimited = function decodeDelimited(reader) { + ListExperimentsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ImportTestCasesMetadata message. + * Verifies a ListExperimentsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ImportTestCasesMetadata.verify = function verify(message) { + ListExperimentsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.errors != null && message.hasOwnProperty("errors")) { - if (!Array.isArray(message.errors)) - return "errors: array expected"; - for (var i = 0; i < message.errors.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.TestCaseError.verify(message.errors[i]); + if (message.experiments != null && message.hasOwnProperty("experiments")) { + if (!Array.isArray(message.experiments)) + return "experiments: array expected"; + for (var i = 0; i < message.experiments.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Experiment.verify(message.experiments[i]); if (error) - return "errors." + error; + return "experiments." + error; } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an ImportTestCasesMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListExperimentsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata} ImportTestCasesMetadata + * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsResponse} ListExperimentsResponse */ - ImportTestCasesMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata) + ListExperimentsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListExperimentsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata(); - if (object.errors) { - if (!Array.isArray(object.errors)) - throw TypeError(".google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata.errors: array expected"); - message.errors = []; - for (var i = 0; i < object.errors.length; ++i) { - if (typeof object.errors[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata.errors: object expected"); - message.errors[i] = $root.google.cloud.dialogflow.cx.v3.TestCaseError.fromObject(object.errors[i]); + var message = new $root.google.cloud.dialogflow.cx.v3.ListExperimentsResponse(); + if (object.experiments) { + if (!Array.isArray(object.experiments)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ListExperimentsResponse.experiments: array expected"); + message.experiments = []; + for (var i = 0; i < object.experiments.length; ++i) { + if (typeof object.experiments[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ListExperimentsResponse.experiments: object expected"); + message.experiments[i] = $root.google.cloud.dialogflow.cx.v3.Experiment.fromObject(object.experiments[i]); } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an ImportTestCasesMetadata message. Also converts values to other types if specified. + * Creates a plain object from a ListExperimentsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata} message ImportTestCasesMetadata + * @param {google.cloud.dialogflow.cx.v3.ListExperimentsResponse} message ListExperimentsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportTestCasesMetadata.toObject = function toObject(message, options) { + ListExperimentsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.errors = []; - if (message.errors && message.errors.length) { - object.errors = []; - for (var j = 0; j < message.errors.length; ++j) - object.errors[j] = $root.google.cloud.dialogflow.cx.v3.TestCaseError.toObject(message.errors[j], options); + object.experiments = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.experiments && message.experiments.length) { + object.experiments = []; + for (var j = 0; j < message.experiments.length; ++j) + object.experiments[j] = $root.google.cloud.dialogflow.cx.v3.Experiment.toObject(message.experiments[j], options); } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ImportTestCasesMetadata to JSON. + * Converts this ListExperimentsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse * @instance * @returns {Object.} JSON object */ - ImportTestCasesMetadata.prototype.toJSON = function toJSON() { + ListExperimentsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ImportTestCasesMetadata; + return ListExperimentsResponse; })(); - v3.TestCaseError = (function() { + v3.GetExperimentRequest = (function() { /** - * Properties of a TestCaseError. + * Properties of a GetExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ITestCaseError - * @property {google.cloud.dialogflow.cx.v3.ITestCase|null} [testCase] TestCaseError testCase - * @property {google.rpc.IStatus|null} [status] TestCaseError status + * @interface IGetExperimentRequest + * @property {string|null} [name] GetExperimentRequest name */ /** - * Constructs a new TestCaseError. + * Constructs a new GetExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a TestCaseError. - * @implements ITestCaseError + * @classdesc Represents a GetExperimentRequest. + * @implements IGetExperimentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.ITestCaseError=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IGetExperimentRequest=} [properties] Properties to set */ - function TestCaseError(properties) { + function GetExperimentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -45873,88 +46111,75 @@ } /** - * TestCaseError testCase. - * @member {google.cloud.dialogflow.cx.v3.ITestCase|null|undefined} testCase - * @memberof google.cloud.dialogflow.cx.v3.TestCaseError - * @instance - */ - TestCaseError.prototype.testCase = null; - - /** - * TestCaseError status. - * @member {google.rpc.IStatus|null|undefined} status - * @memberof google.cloud.dialogflow.cx.v3.TestCaseError + * GetExperimentRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest * @instance */ - TestCaseError.prototype.status = null; + GetExperimentRequest.prototype.name = ""; /** - * Creates a new TestCaseError instance using the specified properties. + * Creates a new GetExperimentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.TestCaseError + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ITestCaseError=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.TestCaseError} TestCaseError instance + * @param {google.cloud.dialogflow.cx.v3.IGetExperimentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetExperimentRequest} GetExperimentRequest instance */ - TestCaseError.create = function create(properties) { - return new TestCaseError(properties); + GetExperimentRequest.create = function create(properties) { + return new GetExperimentRequest(properties); }; /** - * Encodes the specified TestCaseError message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCaseError.verify|verify} messages. + * Encodes the specified GetExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetExperimentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.TestCaseError + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ITestCaseError} message TestCaseError message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetExperimentRequest} message GetExperimentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestCaseError.encode = function encode(message, writer) { + GetExperimentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.testCase != null && Object.hasOwnProperty.call(message, "testCase")) - $root.google.cloud.dialogflow.cx.v3.TestCase.encode(message.testCase, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified TestCaseError message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCaseError.verify|verify} messages. + * Encodes the specified GetExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetExperimentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TestCaseError + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ITestCaseError} message TestCaseError message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetExperimentRequest} message GetExperimentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestCaseError.encodeDelimited = function encodeDelimited(message, writer) { + GetExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestCaseError message from the specified reader or buffer. + * Decodes a GetExperimentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.TestCaseError + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.TestCaseError} TestCaseError + * @returns {google.cloud.dialogflow.cx.v3.GetExperimentRequest} GetExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestCaseError.decode = function decode(reader, length) { + GetExperimentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TestCaseError(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetExperimentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.testCase = $root.google.cloud.dialogflow.cx.v3.TestCase.decode(reader, reader.uint32()); - break; - case 2: - message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -45965,129 +46190,108 @@ }; /** - * Decodes a TestCaseError message from the specified reader or buffer, length delimited. + * Decodes a GetExperimentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TestCaseError + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.TestCaseError} TestCaseError + * @returns {google.cloud.dialogflow.cx.v3.GetExperimentRequest} GetExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestCaseError.decodeDelimited = function decodeDelimited(reader) { + GetExperimentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestCaseError message. + * Verifies a GetExperimentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.TestCaseError + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestCaseError.verify = function verify(message) { + GetExperimentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.testCase != null && message.hasOwnProperty("testCase")) { - var error = $root.google.cloud.dialogflow.cx.v3.TestCase.verify(message.testCase); - if (error) - return "testCase." + error; - } - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.google.rpc.Status.verify(message.status); - if (error) - return "status." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a TestCaseError message from a plain object. Also converts values to their respective internal types. + * Creates a GetExperimentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.TestCaseError + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.TestCaseError} TestCaseError + * @returns {google.cloud.dialogflow.cx.v3.GetExperimentRequest} GetExperimentRequest */ - TestCaseError.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.TestCaseError) + GetExperimentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetExperimentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.TestCaseError(); - if (object.testCase != null) { - if (typeof object.testCase !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TestCaseError.testCase: object expected"); - message.testCase = $root.google.cloud.dialogflow.cx.v3.TestCase.fromObject(object.testCase); - } - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TestCaseError.status: object expected"); - message.status = $root.google.rpc.Status.fromObject(object.status); - } + var message = new $root.google.cloud.dialogflow.cx.v3.GetExperimentRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a TestCaseError message. Also converts values to other types if specified. + * Creates a plain object from a GetExperimentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.TestCaseError + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.TestCaseError} message TestCaseError + * @param {google.cloud.dialogflow.cx.v3.GetExperimentRequest} message GetExperimentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestCaseError.toObject = function toObject(message, options) { + GetExperimentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.testCase = null; - object.status = null; - } - if (message.testCase != null && message.hasOwnProperty("testCase")) - object.testCase = $root.google.cloud.dialogflow.cx.v3.TestCase.toObject(message.testCase, options); - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.google.rpc.Status.toObject(message.status, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this TestCaseError to JSON. + * Converts this GetExperimentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.TestCaseError + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest * @instance * @returns {Object.} JSON object */ - TestCaseError.prototype.toJSON = function toJSON() { + GetExperimentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TestCaseError; + return GetExperimentRequest; })(); - v3.ExportTestCasesRequest = (function() { + v3.CreateExperimentRequest = (function() { /** - * Properties of an ExportTestCasesRequest. + * Properties of a CreateExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IExportTestCasesRequest - * @property {string|null} [parent] ExportTestCasesRequest parent - * @property {string|null} [gcsUri] ExportTestCasesRequest gcsUri - * @property {google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat|null} [dataFormat] ExportTestCasesRequest dataFormat - * @property {string|null} [filter] ExportTestCasesRequest filter + * @interface ICreateExperimentRequest + * @property {string|null} [parent] CreateExperimentRequest parent + * @property {google.cloud.dialogflow.cx.v3.IExperiment|null} [experiment] CreateExperimentRequest experiment */ /** - * Constructs a new ExportTestCasesRequest. + * Constructs a new CreateExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an ExportTestCasesRequest. - * @implements IExportTestCasesRequest + * @classdesc Represents a CreateExperimentRequest. + * @implements ICreateExperimentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICreateExperimentRequest=} [properties] Properties to set */ - function ExportTestCasesRequest(properties) { + function CreateExperimentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -46095,114 +46299,80 @@ } /** - * ExportTestCasesRequest parent. + * CreateExperimentRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest - * @instance - */ - ExportTestCasesRequest.prototype.parent = ""; - - /** - * ExportTestCasesRequest gcsUri. - * @member {string} gcsUri - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest - * @instance - */ - ExportTestCasesRequest.prototype.gcsUri = ""; - - /** - * ExportTestCasesRequest dataFormat. - * @member {google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat} dataFormat - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest - * @instance - */ - ExportTestCasesRequest.prototype.dataFormat = 0; - - /** - * ExportTestCasesRequest filter. - * @member {string} filter - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest * @instance */ - ExportTestCasesRequest.prototype.filter = ""; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + CreateExperimentRequest.prototype.parent = ""; /** - * ExportTestCasesRequest destination. - * @member {"gcsUri"|undefined} destination - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest + * CreateExperimentRequest experiment. + * @member {google.cloud.dialogflow.cx.v3.IExperiment|null|undefined} experiment + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest * @instance */ - Object.defineProperty(ExportTestCasesRequest.prototype, "destination", { - get: $util.oneOfGetter($oneOfFields = ["gcsUri"]), - set: $util.oneOfSetter($oneOfFields) - }); + CreateExperimentRequest.prototype.experiment = null; /** - * Creates a new ExportTestCasesRequest instance using the specified properties. + * Creates a new CreateExperimentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesRequest} ExportTestCasesRequest instance + * @param {google.cloud.dialogflow.cx.v3.ICreateExperimentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateExperimentRequest} CreateExperimentRequest instance */ - ExportTestCasesRequest.create = function create(properties) { - return new ExportTestCasesRequest(properties); + CreateExperimentRequest.create = function create(properties) { + return new CreateExperimentRequest(properties); }; /** - * Encodes the specified ExportTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.verify|verify} messages. + * Encodes the specified CreateExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateExperimentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesRequest} message ExportTestCasesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateExperimentRequest} message CreateExperimentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportTestCasesRequest.encode = function encode(message, writer) { + CreateExperimentRequest.encode = function encode(message, writer) { if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.gcsUri != null && Object.hasOwnProperty.call(message, "gcsUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.gcsUri); - if (message.dataFormat != null && Object.hasOwnProperty.call(message, "dataFormat")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.dataFormat); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.experiment != null && Object.hasOwnProperty.call(message, "experiment")) + $root.google.cloud.dialogflow.cx.v3.Experiment.encode(message.experiment, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExportTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.verify|verify} messages. + * Encodes the specified CreateExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateExperimentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesRequest} message ExportTestCasesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateExperimentRequest} message CreateExperimentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportTestCasesRequest message from the specified reader or buffer. + * Decodes a CreateExperimentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesRequest} ExportTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateExperimentRequest} CreateExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportTestCasesRequest.decode = function decode(reader, length) { + CreateExperimentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateExperimentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -46210,13 +46380,7 @@ message.parent = reader.string(); break; case 2: - message.gcsUri = reader.string(); - break; - case 3: - message.dataFormat = reader.int32(); - break; - case 4: - message.filter = reader.string(); + message.experiment = $root.google.cloud.dialogflow.cx.v3.Experiment.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -46227,172 +46391,122 @@ }; /** - * Decodes an ExportTestCasesRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateExperimentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesRequest} ExportTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateExperimentRequest} CreateExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { + CreateExperimentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportTestCasesRequest message. + * Verifies a CreateExperimentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportTestCasesRequest.verify = function verify(message) { + CreateExperimentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { - properties.destination = 1; - if (!$util.isString(message.gcsUri)) - return "gcsUri: string expected"; + if (message.experiment != null && message.hasOwnProperty("experiment")) { + var error = $root.google.cloud.dialogflow.cx.v3.Experiment.verify(message.experiment); + if (error) + return "experiment." + error; } - if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) - switch (message.dataFormat) { - default: - return "dataFormat: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; return null; }; /** - * Creates an ExportTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateExperimentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesRequest} ExportTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateExperimentRequest} CreateExperimentRequest */ - ExportTestCasesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest) + CreateExperimentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateExperimentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.CreateExperimentRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.gcsUri != null) - message.gcsUri = String(object.gcsUri); - switch (object.dataFormat) { - case "DATA_FORMAT_UNSPECIFIED": - case 0: - message.dataFormat = 0; - break; - case "BLOB": - case 1: - message.dataFormat = 1; - break; - case "JSON": - case 2: - message.dataFormat = 2; - break; + if (object.experiment != null) { + if (typeof object.experiment !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CreateExperimentRequest.experiment: object expected"); + message.experiment = $root.google.cloud.dialogflow.cx.v3.Experiment.fromObject(object.experiment); } - if (object.filter != null) - message.filter = String(object.filter); return message; }; /** - * Creates a plain object from an ExportTestCasesRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateExperimentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ExportTestCasesRequest} message ExportTestCasesRequest + * @param {google.cloud.dialogflow.cx.v3.CreateExperimentRequest} message CreateExperimentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportTestCasesRequest.toObject = function toObject(message, options) { + CreateExperimentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.dataFormat = options.enums === String ? "DATA_FORMAT_UNSPECIFIED" : 0; - object.filter = ""; + object.experiment = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { - object.gcsUri = message.gcsUri; - if (options.oneofs) - object.destination = "gcsUri"; - } - if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) - object.dataFormat = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat[message.dataFormat] : message.dataFormat; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; + if (message.experiment != null && message.hasOwnProperty("experiment")) + object.experiment = $root.google.cloud.dialogflow.cx.v3.Experiment.toObject(message.experiment, options); return object; }; /** - * Converts this ExportTestCasesRequest to JSON. + * Converts this CreateExperimentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest * @instance * @returns {Object.} JSON object */ - ExportTestCasesRequest.prototype.toJSON = function toJSON() { + CreateExperimentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * DataFormat enum. - * @name google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat - * @enum {number} - * @property {number} DATA_FORMAT_UNSPECIFIED=0 DATA_FORMAT_UNSPECIFIED value - * @property {number} BLOB=1 BLOB value - * @property {number} JSON=2 JSON value - */ - ExportTestCasesRequest.DataFormat = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DATA_FORMAT_UNSPECIFIED"] = 0; - values[valuesById[1] = "BLOB"] = 1; - values[valuesById[2] = "JSON"] = 2; - return values; - })(); - - return ExportTestCasesRequest; + return CreateExperimentRequest; })(); - v3.ExportTestCasesResponse = (function() { + v3.UpdateExperimentRequest = (function() { /** - * Properties of an ExportTestCasesResponse. + * Properties of an UpdateExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IExportTestCasesResponse - * @property {string|null} [gcsUri] ExportTestCasesResponse gcsUri - * @property {Uint8Array|null} [content] ExportTestCasesResponse content + * @interface IUpdateExperimentRequest + * @property {google.cloud.dialogflow.cx.v3.IExperiment|null} [experiment] UpdateExperimentRequest experiment + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateExperimentRequest updateMask */ /** - * Constructs a new ExportTestCasesResponse. + * Constructs a new UpdateExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an ExportTestCasesResponse. - * @implements IExportTestCasesResponse + * @classdesc Represents an UpdateExperimentRequest. + * @implements IUpdateExperimentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest=} [properties] Properties to set */ - function ExportTestCasesResponse(properties) { + function UpdateExperimentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -46400,102 +46514,88 @@ } /** - * ExportTestCasesResponse gcsUri. - * @member {string} gcsUri - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse - * @instance - */ - ExportTestCasesResponse.prototype.gcsUri = ""; - - /** - * ExportTestCasesResponse content. - * @member {Uint8Array} content - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse + * UpdateExperimentRequest experiment. + * @member {google.cloud.dialogflow.cx.v3.IExperiment|null|undefined} experiment + * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest * @instance */ - ExportTestCasesResponse.prototype.content = $util.newBuffer([]); - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + UpdateExperimentRequest.prototype.experiment = null; /** - * ExportTestCasesResponse destination. - * @member {"gcsUri"|"content"|undefined} destination - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse + * UpdateExperimentRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest * @instance */ - Object.defineProperty(ExportTestCasesResponse.prototype, "destination", { - get: $util.oneOfGetter($oneOfFields = ["gcsUri", "content"]), - set: $util.oneOfSetter($oneOfFields) - }); + UpdateExperimentRequest.prototype.updateMask = null; /** - * Creates a new ExportTestCasesResponse instance using the specified properties. + * Creates a new UpdateExperimentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesResponse} ExportTestCasesResponse instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.UpdateExperimentRequest} UpdateExperimentRequest instance */ - ExportTestCasesResponse.create = function create(properties) { - return new ExportTestCasesResponse(properties); + UpdateExperimentRequest.create = function create(properties) { + return new UpdateExperimentRequest(properties); }; /** - * Encodes the specified ExportTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesResponse.verify|verify} messages. + * Encodes the specified UpdateExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateExperimentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesResponse} message ExportTestCasesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest} message UpdateExperimentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportTestCasesResponse.encode = function encode(message, writer) { + UpdateExperimentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.gcsUri != null && Object.hasOwnProperty.call(message, "gcsUri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.gcsUri); - if (message.content != null && Object.hasOwnProperty.call(message, "content")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.content); + if (message.experiment != null && Object.hasOwnProperty.call(message, "experiment")) + $root.google.cloud.dialogflow.cx.v3.Experiment.encode(message.experiment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExportTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesResponse.verify|verify} messages. + * Encodes the specified UpdateExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateExperimentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesResponse} message ExportTestCasesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest} message UpdateExperimentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpdateExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportTestCasesResponse message from the specified reader or buffer. + * Decodes an UpdateExperimentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesResponse} ExportTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3.UpdateExperimentRequest} UpdateExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportTestCasesResponse.decode = function decode(reader, length) { + UpdateExperimentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ExportTestCasesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateExperimentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.gcsUri = reader.string(); + message.experiment = $root.google.cloud.dialogflow.cx.v3.Experiment.decode(reader, reader.uint32()); break; case 2: - message.content = reader.bytes(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -46506,127 +46606,126 @@ }; /** - * Decodes an ExportTestCasesResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateExperimentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesResponse} ExportTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3.UpdateExperimentRequest} UpdateExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportTestCasesResponse.decodeDelimited = function decodeDelimited(reader) { + UpdateExperimentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportTestCasesResponse message. + * Verifies an UpdateExperimentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportTestCasesResponse.verify = function verify(message) { + UpdateExperimentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { - properties.destination = 1; - if (!$util.isString(message.gcsUri)) - return "gcsUri: string expected"; + if (message.experiment != null && message.hasOwnProperty("experiment")) { + var error = $root.google.cloud.dialogflow.cx.v3.Experiment.verify(message.experiment); + if (error) + return "experiment." + error; } - if (message.content != null && message.hasOwnProperty("content")) { - if (properties.destination === 1) - return "destination: multiple values"; - properties.destination = 1; - if (!(message.content && typeof message.content.length === "number" || $util.isString(message.content))) - return "content: buffer expected"; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } return null; }; /** - * Creates an ExportTestCasesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateExperimentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesResponse} ExportTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3.UpdateExperimentRequest} UpdateExperimentRequest */ - ExportTestCasesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ExportTestCasesResponse) + UpdateExperimentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateExperimentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ExportTestCasesResponse(); - if (object.gcsUri != null) - message.gcsUri = String(object.gcsUri); - if (object.content != null) - if (typeof object.content === "string") - $util.base64.decode(object.content, message.content = $util.newBuffer($util.base64.length(object.content)), 0); - else if (object.content.length) - message.content = object.content; + var message = new $root.google.cloud.dialogflow.cx.v3.UpdateExperimentRequest(); + if (object.experiment != null) { + if (typeof object.experiment !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateExperimentRequest.experiment: object expected"); + message.experiment = $root.google.cloud.dialogflow.cx.v3.Experiment.fromObject(object.experiment); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateExperimentRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; /** - * Creates a plain object from an ExportTestCasesResponse message. Also converts values to other types if specified. + * Creates a plain object from an UpdateExperimentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ExportTestCasesResponse} message ExportTestCasesResponse + * @param {google.cloud.dialogflow.cx.v3.UpdateExperimentRequest} message UpdateExperimentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportTestCasesResponse.toObject = function toObject(message, options) { + UpdateExperimentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { - object.gcsUri = message.gcsUri; - if (options.oneofs) - object.destination = "gcsUri"; - } - if (message.content != null && message.hasOwnProperty("content")) { - object.content = options.bytes === String ? $util.base64.encode(message.content, 0, message.content.length) : options.bytes === Array ? Array.prototype.slice.call(message.content) : message.content; - if (options.oneofs) - object.destination = "content"; + if (options.defaults) { + object.experiment = null; + object.updateMask = null; } + if (message.experiment != null && message.hasOwnProperty("experiment")) + object.experiment = $root.google.cloud.dialogflow.cx.v3.Experiment.toObject(message.experiment, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this ExportTestCasesResponse to JSON. + * Converts this UpdateExperimentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest * @instance * @returns {Object.} JSON object */ - ExportTestCasesResponse.prototype.toJSON = function toJSON() { + UpdateExperimentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ExportTestCasesResponse; + return UpdateExperimentRequest; })(); - v3.ExportTestCasesMetadata = (function() { + v3.DeleteExperimentRequest = (function() { /** - * Properties of an ExportTestCasesMetadata. + * Properties of a DeleteExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IExportTestCasesMetadata + * @interface IDeleteExperimentRequest + * @property {string|null} [name] DeleteExperimentRequest name */ /** - * Constructs a new ExportTestCasesMetadata. + * Constructs a new DeleteExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an ExportTestCasesMetadata. - * @implements IExportTestCasesMetadata + * @classdesc Represents a DeleteExperimentRequest. + * @implements IDeleteExperimentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesMetadata=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest=} [properties] Properties to set */ - function ExportTestCasesMetadata(properties) { + function DeleteExperimentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -46634,63 +46733,76 @@ } /** - * Creates a new ExportTestCasesMetadata instance using the specified properties. + * DeleteExperimentRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest + * @instance + */ + DeleteExperimentRequest.prototype.name = ""; + + /** + * Creates a new DeleteExperimentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesMetadata=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata} ExportTestCasesMetadata instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeleteExperimentRequest} DeleteExperimentRequest instance */ - ExportTestCasesMetadata.create = function create(properties) { - return new ExportTestCasesMetadata(properties); + DeleteExperimentRequest.create = function create(properties) { + return new DeleteExperimentRequest(properties); }; /** - * Encodes the specified ExportTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata.verify|verify} messages. + * Encodes the specified DeleteExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteExperimentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesMetadata} message ExportTestCasesMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest} message DeleteExperimentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportTestCasesMetadata.encode = function encode(message, writer) { + DeleteExperimentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ExportTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata.verify|verify} messages. + * Encodes the specified DeleteExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteExperimentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesMetadata} message ExportTestCasesMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest} message DeleteExperimentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportTestCasesMetadata.encodeDelimited = function encodeDelimited(message, writer) { + DeleteExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportTestCasesMetadata message from the specified reader or buffer. + * Decodes a DeleteExperimentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata} ExportTestCasesMetadata + * @returns {google.cloud.dialogflow.cx.v3.DeleteExperimentRequest} DeleteExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportTestCasesMetadata.decode = function decode(reader, length) { + DeleteExperimentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteExperimentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -46700,97 +46812,107 @@ }; /** - * Decodes an ExportTestCasesMetadata message from the specified reader or buffer, length delimited. + * Decodes a DeleteExperimentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata} ExportTestCasesMetadata + * @returns {google.cloud.dialogflow.cx.v3.DeleteExperimentRequest} DeleteExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportTestCasesMetadata.decodeDelimited = function decodeDelimited(reader) { + DeleteExperimentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportTestCasesMetadata message. + * Verifies a DeleteExperimentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportTestCasesMetadata.verify = function verify(message) { + DeleteExperimentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an ExportTestCasesMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteExperimentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata} ExportTestCasesMetadata + * @returns {google.cloud.dialogflow.cx.v3.DeleteExperimentRequest} DeleteExperimentRequest */ - ExportTestCasesMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata) + DeleteExperimentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteExperimentRequest) return object; - return new $root.google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata(); + var message = new $root.google.cloud.dialogflow.cx.v3.DeleteExperimentRequest(); + if (object.name != null) + message.name = String(object.name); + return message; }; /** - * Creates a plain object from an ExportTestCasesMetadata message. Also converts values to other types if specified. + * Creates a plain object from a DeleteExperimentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata} message ExportTestCasesMetadata + * @param {google.cloud.dialogflow.cx.v3.DeleteExperimentRequest} message DeleteExperimentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportTestCasesMetadata.toObject = function toObject() { - return {}; + DeleteExperimentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; }; /** - * Converts this ExportTestCasesMetadata to JSON. + * Converts this DeleteExperimentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest * @instance * @returns {Object.} JSON object */ - ExportTestCasesMetadata.prototype.toJSON = function toJSON() { + DeleteExperimentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ExportTestCasesMetadata; + return DeleteExperimentRequest; })(); - v3.ListTestCaseResultsRequest = (function() { + v3.StartExperimentRequest = (function() { /** - * Properties of a ListTestCaseResultsRequest. + * Properties of a StartExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListTestCaseResultsRequest - * @property {string|null} [parent] ListTestCaseResultsRequest parent - * @property {number|null} [pageSize] ListTestCaseResultsRequest pageSize - * @property {string|null} [pageToken] ListTestCaseResultsRequest pageToken - * @property {string|null} [filter] ListTestCaseResultsRequest filter + * @interface IStartExperimentRequest + * @property {string|null} [name] StartExperimentRequest name */ /** - * Constructs a new ListTestCaseResultsRequest. + * Constructs a new StartExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListTestCaseResultsRequest. - * @implements IListTestCaseResultsRequest + * @classdesc Represents a StartExperimentRequest. + * @implements IStartExperimentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IStartExperimentRequest=} [properties] Properties to set */ - function ListTestCaseResultsRequest(properties) { + function StartExperimentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -46798,114 +46920,75 @@ } /** - * ListTestCaseResultsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest - * @instance - */ - ListTestCaseResultsRequest.prototype.parent = ""; - - /** - * ListTestCaseResultsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest - * @instance - */ - ListTestCaseResultsRequest.prototype.pageSize = 0; - - /** - * ListTestCaseResultsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest - * @instance - */ - ListTestCaseResultsRequest.prototype.pageToken = ""; - - /** - * ListTestCaseResultsRequest filter. - * @member {string} filter - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest + * StartExperimentRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest * @instance */ - ListTestCaseResultsRequest.prototype.filter = ""; + StartExperimentRequest.prototype.name = ""; /** - * Creates a new ListTestCaseResultsRequest instance using the specified properties. + * Creates a new StartExperimentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest + * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest} ListTestCaseResultsRequest instance + * @param {google.cloud.dialogflow.cx.v3.IStartExperimentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.StartExperimentRequest} StartExperimentRequest instance */ - ListTestCaseResultsRequest.create = function create(properties) { - return new ListTestCaseResultsRequest(properties); + StartExperimentRequest.create = function create(properties) { + return new StartExperimentRequest(properties); }; /** - * Encodes the specified ListTestCaseResultsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest.verify|verify} messages. + * Encodes the specified StartExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StartExperimentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest + * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest} message ListTestCaseResultsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IStartExperimentRequest} message StartExperimentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTestCaseResultsRequest.encode = function encode(message, writer) { + StartExperimentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListTestCaseResultsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest.verify|verify} messages. + * Encodes the specified StartExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StartExperimentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest + * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest} message ListTestCaseResultsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IStartExperimentRequest} message StartExperimentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTestCaseResultsRequest.encodeDelimited = function encodeDelimited(message, writer) { + StartExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTestCaseResultsRequest message from the specified reader or buffer. + * Decodes a StartExperimentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest + * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest} ListTestCaseResultsRequest + * @returns {google.cloud.dialogflow.cx.v3.StartExperimentRequest} StartExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTestCaseResultsRequest.decode = function decode(reader, length) { + StartExperimentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.StartExperimentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); - break; - case 4: - message.filter = reader.string(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -46916,134 +46999,107 @@ }; /** - * Decodes a ListTestCaseResultsRequest message from the specified reader or buffer, length delimited. + * Decodes a StartExperimentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest + * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest} ListTestCaseResultsRequest + * @returns {google.cloud.dialogflow.cx.v3.StartExperimentRequest} StartExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTestCaseResultsRequest.decodeDelimited = function decodeDelimited(reader) { + StartExperimentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTestCaseResultsRequest message. + * Verifies a StartExperimentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest + * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTestCaseResultsRequest.verify = function verify(message) { + StartExperimentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListTestCaseResultsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StartExperimentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest + * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest} ListTestCaseResultsRequest + * @returns {google.cloud.dialogflow.cx.v3.StartExperimentRequest} StartExperimentRequest */ - ListTestCaseResultsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest) + StartExperimentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.StartExperimentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.filter != null) - message.filter = String(object.filter); + var message = new $root.google.cloud.dialogflow.cx.v3.StartExperimentRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListTestCaseResultsRequest message. Also converts values to other types if specified. + * Creates a plain object from a StartExperimentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest + * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest} message ListTestCaseResultsRequest + * @param {google.cloud.dialogflow.cx.v3.StartExperimentRequest} message StartExperimentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTestCaseResultsRequest.toObject = function toObject(message, options) { + StartExperimentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListTestCaseResultsRequest to JSON. + * Converts this StartExperimentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest + * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest * @instance * @returns {Object.} JSON object */ - ListTestCaseResultsRequest.prototype.toJSON = function toJSON() { + StartExperimentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListTestCaseResultsRequest; + return StartExperimentRequest; })(); - v3.ListTestCaseResultsResponse = (function() { + v3.StopExperimentRequest = (function() { /** - * Properties of a ListTestCaseResultsResponse. + * Properties of a StopExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListTestCaseResultsResponse - * @property {Array.|null} [testCaseResults] ListTestCaseResultsResponse testCaseResults - * @property {string|null} [nextPageToken] ListTestCaseResultsResponse nextPageToken + * @interface IStopExperimentRequest + * @property {string|null} [name] StopExperimentRequest name */ /** - * Constructs a new ListTestCaseResultsResponse. + * Constructs a new StopExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListTestCaseResultsResponse. - * @implements IListTestCaseResultsResponse + * @classdesc Represents a StopExperimentRequest. + * @implements IStopExperimentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IStopExperimentRequest=} [properties] Properties to set */ - function ListTestCaseResultsResponse(properties) { - this.testCaseResults = []; + function StopExperimentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -47051,91 +47107,75 @@ } /** - * ListTestCaseResultsResponse testCaseResults. - * @member {Array.} testCaseResults - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse - * @instance - */ - ListTestCaseResultsResponse.prototype.testCaseResults = $util.emptyArray; - - /** - * ListTestCaseResultsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse + * StopExperimentRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest * @instance */ - ListTestCaseResultsResponse.prototype.nextPageToken = ""; + StopExperimentRequest.prototype.name = ""; /** - * Creates a new ListTestCaseResultsResponse instance using the specified properties. + * Creates a new StopExperimentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse + * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse} ListTestCaseResultsResponse instance + * @param {google.cloud.dialogflow.cx.v3.IStopExperimentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.StopExperimentRequest} StopExperimentRequest instance */ - ListTestCaseResultsResponse.create = function create(properties) { - return new ListTestCaseResultsResponse(properties); + StopExperimentRequest.create = function create(properties) { + return new StopExperimentRequest(properties); }; /** - * Encodes the specified ListTestCaseResultsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse.verify|verify} messages. + * Encodes the specified StopExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StopExperimentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse + * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsResponse} message ListTestCaseResultsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IStopExperimentRequest} message StopExperimentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTestCaseResultsResponse.encode = function encode(message, writer) { + StopExperimentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.testCaseResults != null && message.testCaseResults.length) - for (var i = 0; i < message.testCaseResults.length; ++i) - $root.google.cloud.dialogflow.cx.v3.TestCaseResult.encode(message.testCaseResults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListTestCaseResultsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse.verify|verify} messages. + * Encodes the specified StopExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StopExperimentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse + * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsResponse} message ListTestCaseResultsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IStopExperimentRequest} message StopExperimentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTestCaseResultsResponse.encodeDelimited = function encodeDelimited(message, writer) { + StopExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTestCaseResultsResponse message from the specified reader or buffer. + * Decodes a StopExperimentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse + * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse} ListTestCaseResultsResponse + * @returns {google.cloud.dialogflow.cx.v3.StopExperimentRequest} StopExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTestCaseResultsResponse.decode = function decode(reader, length) { + StopExperimentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.StopExperimentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.testCaseResults && message.testCaseResults.length)) - message.testCaseResults = []; - message.testCaseResults.push($root.google.cloud.dialogflow.cx.v3.TestCaseResult.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -47146,352 +47186,307 @@ }; /** - * Decodes a ListTestCaseResultsResponse message from the specified reader or buffer, length delimited. + * Decodes a StopExperimentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse + * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse} ListTestCaseResultsResponse + * @returns {google.cloud.dialogflow.cx.v3.StopExperimentRequest} StopExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTestCaseResultsResponse.decodeDelimited = function decodeDelimited(reader) { + StopExperimentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTestCaseResultsResponse message. + * Verifies a StopExperimentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse + * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTestCaseResultsResponse.verify = function verify(message) { + StopExperimentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.testCaseResults != null && message.hasOwnProperty("testCaseResults")) { - if (!Array.isArray(message.testCaseResults)) - return "testCaseResults: array expected"; - for (var i = 0; i < message.testCaseResults.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.verify(message.testCaseResults[i]); - if (error) - return "testCaseResults." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListTestCaseResultsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StopExperimentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse + * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse} ListTestCaseResultsResponse + * @returns {google.cloud.dialogflow.cx.v3.StopExperimentRequest} StopExperimentRequest */ - ListTestCaseResultsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse) + StopExperimentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.StopExperimentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse(); - if (object.testCaseResults) { - if (!Array.isArray(object.testCaseResults)) - throw TypeError(".google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse.testCaseResults: array expected"); - message.testCaseResults = []; - for (var i = 0; i < object.testCaseResults.length; ++i) { - if (typeof object.testCaseResults[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse.testCaseResults: object expected"); - message.testCaseResults[i] = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.fromObject(object.testCaseResults[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.dialogflow.cx.v3.StopExperimentRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListTestCaseResultsResponse message. Also converts values to other types if specified. + * Creates a plain object from a StopExperimentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse + * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse} message ListTestCaseResultsResponse + * @param {google.cloud.dialogflow.cx.v3.StopExperimentRequest} message StopExperimentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTestCaseResultsResponse.toObject = function toObject(message, options) { + StopExperimentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.testCaseResults = []; if (options.defaults) - object.nextPageToken = ""; - if (message.testCaseResults && message.testCaseResults.length) { - object.testCaseResults = []; - for (var j = 0; j < message.testCaseResults.length; ++j) - object.testCaseResults[j] = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.toObject(message.testCaseResults[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListTestCaseResultsResponse to JSON. + * Converts this StopExperimentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse + * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest * @instance * @returns {Object.} JSON object */ - ListTestCaseResultsResponse.prototype.toJSON = function toJSON() { + StopExperimentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListTestCaseResultsResponse; - })(); - - /** - * TestResult enum. - * @name google.cloud.dialogflow.cx.v3.TestResult - * @enum {number} - * @property {number} TEST_RESULT_UNSPECIFIED=0 TEST_RESULT_UNSPECIFIED value - * @property {number} PASSED=1 PASSED value - * @property {number} FAILED=2 FAILED value - */ - v3.TestResult = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TEST_RESULT_UNSPECIFIED"] = 0; - values[valuesById[1] = "PASSED"] = 1; - values[valuesById[2] = "FAILED"] = 2; - return values; + return StopExperimentRequest; })(); - v3.TransitionRouteGroups = (function() { + v3.SecuritySettingsService = (function() { /** - * Constructs a new TransitionRouteGroups service. + * Constructs a new SecuritySettingsService service. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a TransitionRouteGroups + * @classdesc Represents a SecuritySettingsService * @extends $protobuf.rpc.Service * @constructor * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - function TransitionRouteGroups(rpcImpl, requestDelimited, responseDelimited) { + function SecuritySettingsService(rpcImpl, requestDelimited, responseDelimited) { $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - (TransitionRouteGroups.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = TransitionRouteGroups; + (SecuritySettingsService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = SecuritySettingsService; /** - * Creates new TransitionRouteGroups service using the specified rpc implementation. + * Creates new SecuritySettingsService service using the specified rpc implementation. * @function create - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService * @static * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {TransitionRouteGroups} RPC service. Useful where requests and/or responses are streamed. + * @returns {SecuritySettingsService} RPC service. Useful where requests and/or responses are streamed. */ - TransitionRouteGroups.create = function create(rpcImpl, requestDelimited, responseDelimited) { + SecuritySettingsService.create = function create(rpcImpl, requestDelimited, responseDelimited) { return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#listTransitionRouteGroups}. - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups - * @typedef ListTransitionRouteGroupsCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#createSecuritySettings}. + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @typedef CreateSecuritySettingsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} [response] ListTransitionRouteGroupsResponse + * @param {google.cloud.dialogflow.cx.v3.SecuritySettings} [response] SecuritySettings */ /** - * Calls ListTransitionRouteGroups. - * @function listTransitionRouteGroups - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * Calls CreateSecuritySettings. + * @function createSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService * @instance - * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest} request ListTransitionRouteGroupsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroups.ListTransitionRouteGroupsCallback} callback Node-style callback called with the error, if any, and ListTransitionRouteGroupsResponse + * @param {google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest} request CreateSecuritySettingsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettingsCallback} callback Node-style callback called with the error, if any, and SecuritySettings * @returns {undefined} * @variation 1 */ - Object.defineProperty(TransitionRouteGroups.prototype.listTransitionRouteGroups = function listTransitionRouteGroups(request, callback) { - return this.rpcCall(listTransitionRouteGroups, $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest, $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse, request, callback); - }, "name", { value: "ListTransitionRouteGroups" }); + Object.defineProperty(SecuritySettingsService.prototype.createSecuritySettings = function createSecuritySettings(request, callback) { + return this.rpcCall(createSecuritySettings, $root.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest, $root.google.cloud.dialogflow.cx.v3.SecuritySettings, request, callback); + }, "name", { value: "CreateSecuritySettings" }); /** - * Calls ListTransitionRouteGroups. - * @function listTransitionRouteGroups - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * Calls CreateSecuritySettings. + * @function createSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService * @instance - * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest} request ListTransitionRouteGroupsRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest} request CreateSecuritySettingsRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#getTransitionRouteGroup}. - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups - * @typedef GetTransitionRouteGroupCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#getSecuritySettings}. + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @typedef GetSecuritySettingsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} [response] TransitionRouteGroup + * @param {google.cloud.dialogflow.cx.v3.SecuritySettings} [response] SecuritySettings */ /** - * Calls GetTransitionRouteGroup. - * @function getTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * Calls GetSecuritySettings. + * @function getSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest} request GetTransitionRouteGroupRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroups.GetTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and TransitionRouteGroup + * @param {google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest} request GetSecuritySettingsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.SecuritySettingsService.GetSecuritySettingsCallback} callback Node-style callback called with the error, if any, and SecuritySettings * @returns {undefined} * @variation 1 */ - Object.defineProperty(TransitionRouteGroups.prototype.getTransitionRouteGroup = function getTransitionRouteGroup(request, callback) { - return this.rpcCall(getTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest, $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup, request, callback); - }, "name", { value: "GetTransitionRouteGroup" }); + Object.defineProperty(SecuritySettingsService.prototype.getSecuritySettings = function getSecuritySettings(request, callback) { + return this.rpcCall(getSecuritySettings, $root.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest, $root.google.cloud.dialogflow.cx.v3.SecuritySettings, request, callback); + }, "name", { value: "GetSecuritySettings" }); /** - * Calls GetTransitionRouteGroup. - * @function getTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * Calls GetSecuritySettings. + * @function getSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest} request GetTransitionRouteGroupRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest} request GetSecuritySettingsRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#createTransitionRouteGroup}. - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups - * @typedef CreateTransitionRouteGroupCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#updateSecuritySettings}. + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @typedef UpdateSecuritySettingsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} [response] TransitionRouteGroup + * @param {google.cloud.dialogflow.cx.v3.SecuritySettings} [response] SecuritySettings */ /** - * Calls CreateTransitionRouteGroup. - * @function createTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * Calls UpdateSecuritySettings. + * @function updateSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest} request CreateTransitionRouteGroupRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and TransitionRouteGroup + * @param {google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest} request UpdateSecuritySettingsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettingsCallback} callback Node-style callback called with the error, if any, and SecuritySettings * @returns {undefined} * @variation 1 */ - Object.defineProperty(TransitionRouteGroups.prototype.createTransitionRouteGroup = function createTransitionRouteGroup(request, callback) { - return this.rpcCall(createTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest, $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup, request, callback); - }, "name", { value: "CreateTransitionRouteGroup" }); + Object.defineProperty(SecuritySettingsService.prototype.updateSecuritySettings = function updateSecuritySettings(request, callback) { + return this.rpcCall(updateSecuritySettings, $root.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest, $root.google.cloud.dialogflow.cx.v3.SecuritySettings, request, callback); + }, "name", { value: "UpdateSecuritySettings" }); /** - * Calls CreateTransitionRouteGroup. - * @function createTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * Calls UpdateSecuritySettings. + * @function updateSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest} request CreateTransitionRouteGroupRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest} request UpdateSecuritySettingsRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#updateTransitionRouteGroup}. - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups - * @typedef UpdateTransitionRouteGroupCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#listSecuritySettings}. + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @typedef ListSecuritySettingsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} [response] TransitionRouteGroup + * @param {google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse} [response] ListSecuritySettingsResponse */ /** - * Calls UpdateTransitionRouteGroup. - * @function updateTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * Calls ListSecuritySettings. + * @function listSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest} request UpdateTransitionRouteGroupRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroups.UpdateTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and TransitionRouteGroup + * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest} request ListSecuritySettingsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.SecuritySettingsService.ListSecuritySettingsCallback} callback Node-style callback called with the error, if any, and ListSecuritySettingsResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(TransitionRouteGroups.prototype.updateTransitionRouteGroup = function updateTransitionRouteGroup(request, callback) { - return this.rpcCall(updateTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest, $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup, request, callback); - }, "name", { value: "UpdateTransitionRouteGroup" }); + Object.defineProperty(SecuritySettingsService.prototype.listSecuritySettings = function listSecuritySettings(request, callback) { + return this.rpcCall(listSecuritySettings, $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest, $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse, request, callback); + }, "name", { value: "ListSecuritySettings" }); /** - * Calls UpdateTransitionRouteGroup. - * @function updateTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * Calls ListSecuritySettings. + * @function listSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest} request UpdateTransitionRouteGroupRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest} request ListSecuritySettingsRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#deleteTransitionRouteGroup}. - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups - * @typedef DeleteTransitionRouteGroupCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#deleteSecuritySettings}. + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @typedef DeleteSecuritySettingsCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.protobuf.Empty} [response] Empty */ /** - * Calls DeleteTransitionRouteGroup. - * @function deleteTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * Calls DeleteSecuritySettings. + * @function deleteSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest} request DeleteTransitionRouteGroupRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroups.DeleteTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and Empty + * @param {google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest} request DeleteSecuritySettingsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.SecuritySettingsService.DeleteSecuritySettingsCallback} callback Node-style callback called with the error, if any, and Empty * @returns {undefined} * @variation 1 */ - Object.defineProperty(TransitionRouteGroups.prototype.deleteTransitionRouteGroup = function deleteTransitionRouteGroup(request, callback) { - return this.rpcCall(deleteTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteTransitionRouteGroup" }); + Object.defineProperty(SecuritySettingsService.prototype.deleteSecuritySettings = function deleteSecuritySettings(request, callback) { + return this.rpcCall(deleteSecuritySettings, $root.google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteSecuritySettings" }); /** - * Calls DeleteTransitionRouteGroup. - * @function deleteTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * Calls DeleteSecuritySettings. + * @function deleteSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest} request DeleteTransitionRouteGroupRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest} request DeleteSecuritySettingsRequest message or plain object * @returns {Promise} Promise * @variation 2 */ - return TransitionRouteGroups; + return SecuritySettingsService; })(); - v3.TransitionRouteGroup = (function() { + v3.GetSecuritySettingsRequest = (function() { /** - * Properties of a TransitionRouteGroup. + * Properties of a GetSecuritySettingsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ITransitionRouteGroup - * @property {string|null} [name] TransitionRouteGroup name - * @property {string|null} [displayName] TransitionRouteGroup displayName - * @property {Array.|null} [transitionRoutes] TransitionRouteGroup transitionRoutes + * @interface IGetSecuritySettingsRequest + * @property {string|null} [name] GetSecuritySettingsRequest name */ /** - * Constructs a new TransitionRouteGroup. + * Constructs a new GetSecuritySettingsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a TransitionRouteGroup. - * @implements ITransitionRouteGroup + * @classdesc Represents a GetSecuritySettingsRequest. + * @implements IGetSecuritySettingsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest=} [properties] Properties to set */ - function TransitionRouteGroup(properties) { - this.transitionRoutes = []; + function GetSecuritySettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -47499,105 +47494,76 @@ } /** - * TransitionRouteGroup name. + * GetSecuritySettingsRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup - * @instance - */ - TransitionRouteGroup.prototype.name = ""; - - /** - * TransitionRouteGroup displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup - * @instance - */ - TransitionRouteGroup.prototype.displayName = ""; - - /** - * TransitionRouteGroup transitionRoutes. - * @member {Array.} transitionRoutes - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest * @instance */ - TransitionRouteGroup.prototype.transitionRoutes = $util.emptyArray; + GetSecuritySettingsRequest.prototype.name = ""; /** - * Creates a new TransitionRouteGroup instance using the specified properties. + * Creates a new GetSecuritySettingsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} TransitionRouteGroup instance + * @param {google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest} GetSecuritySettingsRequest instance */ - TransitionRouteGroup.create = function create(properties) { - return new TransitionRouteGroup(properties); + GetSecuritySettingsRequest.create = function create(properties) { + return new GetSecuritySettingsRequest(properties); }; /** - * Encodes the specified TransitionRouteGroup message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify|verify} messages. + * Encodes the specified GetSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup} message TransitionRouteGroup message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest} message GetSecuritySettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TransitionRouteGroup.encode = function encode(message, writer) { + GetSecuritySettingsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.transitionRoutes != null && message.transitionRoutes.length) - for (var i = 0; i < message.transitionRoutes.length; ++i) - $root.google.cloud.dialogflow.cx.v3.TransitionRoute.encode(message.transitionRoutes[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified TransitionRouteGroup message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify|verify} messages. + * Encodes the specified GetSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup} message TransitionRouteGroup message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest} message GetSecuritySettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TransitionRouteGroup.encodeDelimited = function encodeDelimited(message, writer) { + GetSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TransitionRouteGroup message from the specified reader or buffer. + * Decodes a GetSecuritySettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} TransitionRouteGroup + * @returns {google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest} GetSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TransitionRouteGroup.decode = function decode(reader, length) { + GetSecuritySettingsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; - case 2: - message.displayName = reader.string(); - break; - case 5: - if (!(message.transitionRoutes && message.transitionRoutes.length)) - message.transitionRoutes = []; - message.transitionRoutes.push($root.google.cloud.dialogflow.cx.v3.TransitionRoute.decode(reader, reader.uint32())); - break; default: reader.skipType(tag & 7); break; @@ -47607,145 +47573,108 @@ }; /** - * Decodes a TransitionRouteGroup message from the specified reader or buffer, length delimited. + * Decodes a GetSecuritySettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} TransitionRouteGroup + * @returns {google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest} GetSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TransitionRouteGroup.decodeDelimited = function decodeDelimited(reader) { + GetSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TransitionRouteGroup message. + * Verifies a GetSecuritySettingsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TransitionRouteGroup.verify = function verify(message) { + GetSecuritySettingsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.transitionRoutes != null && message.hasOwnProperty("transitionRoutes")) { - if (!Array.isArray(message.transitionRoutes)) - return "transitionRoutes: array expected"; - for (var i = 0; i < message.transitionRoutes.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.verify(message.transitionRoutes[i]); - if (error) - return "transitionRoutes." + error; - } - } return null; }; /** - * Creates a TransitionRouteGroup message from a plain object. Also converts values to their respective internal types. + * Creates a GetSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} TransitionRouteGroup + * @returns {google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest} GetSecuritySettingsRequest */ - TransitionRouteGroup.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup) + GetSecuritySettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup(); + var message = new $root.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest(); if (object.name != null) message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.transitionRoutes) { - if (!Array.isArray(object.transitionRoutes)) - throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRouteGroup.transitionRoutes: array expected"); - message.transitionRoutes = []; - for (var i = 0; i < object.transitionRoutes.length; ++i) { - if (typeof object.transitionRoutes[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRouteGroup.transitionRoutes: object expected"); - message.transitionRoutes[i] = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.fromObject(object.transitionRoutes[i]); - } - } return message; }; /** - * Creates a plain object from a TransitionRouteGroup message. Also converts values to other types if specified. + * Creates a plain object from a GetSecuritySettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} message TransitionRouteGroup + * @param {google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest} message GetSecuritySettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TransitionRouteGroup.toObject = function toObject(message, options) { + GetSecuritySettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.transitionRoutes = []; - if (options.defaults) { + if (options.defaults) object.name = ""; - object.displayName = ""; - } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.transitionRoutes && message.transitionRoutes.length) { - object.transitionRoutes = []; - for (var j = 0; j < message.transitionRoutes.length; ++j) - object.transitionRoutes[j] = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.toObject(message.transitionRoutes[j], options); - } return object; }; /** - * Converts this TransitionRouteGroup to JSON. + * Converts this GetSecuritySettingsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest * @instance * @returns {Object.} JSON object */ - TransitionRouteGroup.prototype.toJSON = function toJSON() { + GetSecuritySettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TransitionRouteGroup; + return GetSecuritySettingsRequest; })(); - v3.ListTransitionRouteGroupsRequest = (function() { + v3.UpdateSecuritySettingsRequest = (function() { /** - * Properties of a ListTransitionRouteGroupsRequest. + * Properties of an UpdateSecuritySettingsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListTransitionRouteGroupsRequest - * @property {string|null} [parent] ListTransitionRouteGroupsRequest parent - * @property {number|null} [pageSize] ListTransitionRouteGroupsRequest pageSize - * @property {string|null} [pageToken] ListTransitionRouteGroupsRequest pageToken - * @property {string|null} [languageCode] ListTransitionRouteGroupsRequest languageCode + * @interface IUpdateSecuritySettingsRequest + * @property {google.cloud.dialogflow.cx.v3.ISecuritySettings|null} [securitySettings] UpdateSecuritySettingsRequest securitySettings + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSecuritySettingsRequest updateMask */ /** - * Constructs a new ListTransitionRouteGroupsRequest. + * Constructs a new UpdateSecuritySettingsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListTransitionRouteGroupsRequest. - * @implements IListTransitionRouteGroupsRequest + * @classdesc Represents an UpdateSecuritySettingsRequest. + * @implements IUpdateSecuritySettingsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest=} [properties] Properties to set */ - function ListTransitionRouteGroupsRequest(properties) { + function UpdateSecuritySettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -47753,114 +47682,88 @@ } /** - * ListTransitionRouteGroupsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest - * @instance - */ - ListTransitionRouteGroupsRequest.prototype.parent = ""; - - /** - * ListTransitionRouteGroupsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest - * @instance - */ - ListTransitionRouteGroupsRequest.prototype.pageSize = 0; - - /** - * ListTransitionRouteGroupsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * UpdateSecuritySettingsRequest securitySettings. + * @member {google.cloud.dialogflow.cx.v3.ISecuritySettings|null|undefined} securitySettings + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @instance */ - ListTransitionRouteGroupsRequest.prototype.pageToken = ""; + UpdateSecuritySettingsRequest.prototype.securitySettings = null; /** - * ListTransitionRouteGroupsRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * UpdateSecuritySettingsRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @instance */ - ListTransitionRouteGroupsRequest.prototype.languageCode = ""; + UpdateSecuritySettingsRequest.prototype.updateMask = null; /** - * Creates a new ListTransitionRouteGroupsRequest instance using the specified properties. + * Creates a new UpdateSecuritySettingsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest} UpdateSecuritySettingsRequest instance */ - ListTransitionRouteGroupsRequest.create = function create(properties) { - return new ListTransitionRouteGroupsRequest(properties); + UpdateSecuritySettingsRequest.create = function create(properties) { + return new UpdateSecuritySettingsRequest(properties); }; /** - * Encodes the specified ListTransitionRouteGroupsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest.verify|verify} messages. + * Encodes the specified UpdateSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest} message ListTransitionRouteGroupsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest} message UpdateSecuritySettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTransitionRouteGroupsRequest.encode = function encode(message, writer) { + UpdateSecuritySettingsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.languageCode); + if (message.securitySettings != null && Object.hasOwnProperty.call(message, "securitySettings")) + $root.google.cloud.dialogflow.cx.v3.SecuritySettings.encode(message.securitySettings, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListTransitionRouteGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest.verify|verify} messages. + * Encodes the specified UpdateSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest} message ListTransitionRouteGroupsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest} message UpdateSecuritySettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTransitionRouteGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer. + * Decodes an UpdateSecuritySettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest} UpdateSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTransitionRouteGroupsRequest.decode = function decode(reader, length) { + UpdateSecuritySettingsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.securitySettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.decode(reader, reader.uint32()); break; case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); - break; - case 4: - message.languageCode = reader.string(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -47871,134 +47774,128 @@ }; /** - * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateSecuritySettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest} UpdateSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTransitionRouteGroupsRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTransitionRouteGroupsRequest message. + * Verifies an UpdateSecuritySettingsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTransitionRouteGroupsRequest.verify = function verify(message) { + UpdateSecuritySettingsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; + if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) { + var error = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.verify(message.securitySettings); + if (error) + return "securitySettings." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } return null; }; /** - * Creates a ListTransitionRouteGroupsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest} UpdateSecuritySettingsRequest */ - ListTransitionRouteGroupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest) + UpdateSecuritySettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); + var message = new $root.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest(); + if (object.securitySettings != null) { + if (typeof object.securitySettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest.securitySettings: object expected"); + message.securitySettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.fromObject(object.securitySettings); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; /** - * Creates a plain object from a ListTransitionRouteGroupsRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateSecuritySettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest} message ListTransitionRouteGroupsRequest + * @param {google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest} message UpdateSecuritySettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTransitionRouteGroupsRequest.toObject = function toObject(message, options) { + UpdateSecuritySettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.languageCode = ""; + object.securitySettings = null; + object.updateMask = null; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; + if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) + object.securitySettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.toObject(message.securitySettings, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this ListTransitionRouteGroupsRequest to JSON. + * Converts this UpdateSecuritySettingsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @instance * @returns {Object.} JSON object */ - ListTransitionRouteGroupsRequest.prototype.toJSON = function toJSON() { + UpdateSecuritySettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListTransitionRouteGroupsRequest; + return UpdateSecuritySettingsRequest; })(); - v3.ListTransitionRouteGroupsResponse = (function() { + v3.ListSecuritySettingsRequest = (function() { /** - * Properties of a ListTransitionRouteGroupsResponse. + * Properties of a ListSecuritySettingsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListTransitionRouteGroupsResponse - * @property {Array.|null} [transitionRouteGroups] ListTransitionRouteGroupsResponse transitionRouteGroups - * @property {string|null} [nextPageToken] ListTransitionRouteGroupsResponse nextPageToken + * @interface IListSecuritySettingsRequest + * @property {string|null} [parent] ListSecuritySettingsRequest parent + * @property {number|null} [pageSize] ListSecuritySettingsRequest pageSize + * @property {string|null} [pageToken] ListSecuritySettingsRequest pageToken */ /** - * Constructs a new ListTransitionRouteGroupsResponse. + * Constructs a new ListSecuritySettingsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListTransitionRouteGroupsResponse. - * @implements IListTransitionRouteGroupsResponse + * @classdesc Represents a ListSecuritySettingsRequest. + * @implements IListSecuritySettingsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest=} [properties] Properties to set */ - function ListTransitionRouteGroupsResponse(properties) { - this.transitionRouteGroups = []; + function ListSecuritySettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -48006,91 +47903,101 @@ } /** - * ListTransitionRouteGroupsResponse transitionRouteGroups. - * @member {Array.} transitionRouteGroups - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse + * ListSecuritySettingsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @instance */ - ListTransitionRouteGroupsResponse.prototype.transitionRouteGroups = $util.emptyArray; + ListSecuritySettingsRequest.prototype.parent = ""; /** - * ListTransitionRouteGroupsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse + * ListSecuritySettingsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @instance */ - ListTransitionRouteGroupsResponse.prototype.nextPageToken = ""; + ListSecuritySettingsRequest.prototype.pageSize = 0; /** - * Creates a new ListTransitionRouteGroupsResponse instance using the specified properties. + * ListSecuritySettingsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest + * @instance + */ + ListSecuritySettingsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListSecuritySettingsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse instance + * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest} ListSecuritySettingsRequest instance */ - ListTransitionRouteGroupsResponse.create = function create(properties) { - return new ListTransitionRouteGroupsResponse(properties); + ListSecuritySettingsRequest.create = function create(properties) { + return new ListSecuritySettingsRequest(properties); }; /** - * Encodes the specified ListTransitionRouteGroupsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse.verify|verify} messages. + * Encodes the specified ListSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse} message ListTransitionRouteGroupsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest} message ListSecuritySettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTransitionRouteGroupsResponse.encode = function encode(message, writer) { + ListSecuritySettingsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.transitionRouteGroups != null && message.transitionRouteGroups.length) - for (var i = 0; i < message.transitionRouteGroups.length; ++i) - $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.encode(message.transitionRouteGroups[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified ListTransitionRouteGroupsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse.verify|verify} messages. + * Encodes the specified ListSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse} message ListTransitionRouteGroupsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest} message ListSecuritySettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTransitionRouteGroupsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTransitionRouteGroupsResponse message from the specified reader or buffer. + * Decodes a ListSecuritySettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse + * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest} ListSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTransitionRouteGroupsResponse.decode = function decode(reader, length) { + ListSecuritySettingsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.transitionRouteGroups && message.transitionRouteGroups.length)) - message.transitionRouteGroups = []; - message.transitionRouteGroups.push($root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.decode(reader, reader.uint32())); + message.parent = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -48101,134 +48008,126 @@ }; /** - * Decodes a ListTransitionRouteGroupsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListSecuritySettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse + * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest} ListSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTransitionRouteGroupsResponse.decodeDelimited = function decodeDelimited(reader) { + ListSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTransitionRouteGroupsResponse message. + * Verifies a ListSecuritySettingsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTransitionRouteGroupsResponse.verify = function verify(message) { + ListSecuritySettingsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.transitionRouteGroups != null && message.hasOwnProperty("transitionRouteGroups")) { - if (!Array.isArray(message.transitionRouteGroups)) - return "transitionRouteGroups: array expected"; - for (var i = 0; i < message.transitionRouteGroups.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify(message.transitionRouteGroups[i]); - if (error) - return "transitionRouteGroups." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a ListTransitionRouteGroupsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse + * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest} ListSecuritySettingsRequest */ - ListTransitionRouteGroupsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse) + ListSecuritySettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse(); - if (object.transitionRouteGroups) { - if (!Array.isArray(object.transitionRouteGroups)) - throw TypeError(".google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse.transitionRouteGroups: array expected"); - message.transitionRouteGroups = []; - for (var i = 0; i < object.transitionRouteGroups.length; ++i) { - if (typeof object.transitionRouteGroups[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse.transitionRouteGroups: object expected"); - message.transitionRouteGroups[i] = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.fromObject(object.transitionRouteGroups[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a ListTransitionRouteGroupsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListSecuritySettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} message ListTransitionRouteGroupsResponse + * @param {google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest} message ListSecuritySettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTransitionRouteGroupsResponse.toObject = function toObject(message, options) { + ListSecuritySettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.transitionRouteGroups = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.transitionRouteGroups && message.transitionRouteGroups.length) { - object.transitionRouteGroups = []; - for (var j = 0; j < message.transitionRouteGroups.length; ++j) - object.transitionRouteGroups[j] = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.toObject(message.transitionRouteGroups[j], options); + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this ListTransitionRouteGroupsResponse to JSON. + * Converts this ListSecuritySettingsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @instance * @returns {Object.} JSON object */ - ListTransitionRouteGroupsResponse.prototype.toJSON = function toJSON() { + ListSecuritySettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListTransitionRouteGroupsResponse; + return ListSecuritySettingsRequest; })(); - v3.GetTransitionRouteGroupRequest = (function() { + v3.ListSecuritySettingsResponse = (function() { /** - * Properties of a GetTransitionRouteGroupRequest. + * Properties of a ListSecuritySettingsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IGetTransitionRouteGroupRequest - * @property {string|null} [name] GetTransitionRouteGroupRequest name - * @property {string|null} [languageCode] GetTransitionRouteGroupRequest languageCode + * @interface IListSecuritySettingsResponse + * @property {Array.|null} [securitySettings] ListSecuritySettingsResponse securitySettings + * @property {string|null} [nextPageToken] ListSecuritySettingsResponse nextPageToken */ /** - * Constructs a new GetTransitionRouteGroupRequest. + * Constructs a new ListSecuritySettingsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a GetTransitionRouteGroupRequest. - * @implements IGetTransitionRouteGroupRequest + * @classdesc Represents a ListSecuritySettingsResponse. + * @implements IListSecuritySettingsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse=} [properties] Properties to set */ - function GetTransitionRouteGroupRequest(properties) { + function ListSecuritySettingsResponse(properties) { + this.securitySettings = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -48236,88 +48135,91 @@ } /** - * GetTransitionRouteGroupRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest + * ListSecuritySettingsResponse securitySettings. + * @member {Array.} securitySettings + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse * @instance */ - GetTransitionRouteGroupRequest.prototype.name = ""; + ListSecuritySettingsResponse.prototype.securitySettings = $util.emptyArray; /** - * GetTransitionRouteGroupRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest + * ListSecuritySettingsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse * @instance */ - GetTransitionRouteGroupRequest.prototype.languageCode = ""; + ListSecuritySettingsResponse.prototype.nextPageToken = ""; /** - * Creates a new GetTransitionRouteGroupRequest instance using the specified properties. + * Creates a new ListSecuritySettingsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest instance + * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse} ListSecuritySettingsResponse instance */ - GetTransitionRouteGroupRequest.create = function create(properties) { - return new GetTransitionRouteGroupRequest(properties); + ListSecuritySettingsResponse.create = function create(properties) { + return new ListSecuritySettingsResponse(properties); }; /** - * Encodes the specified GetTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest.verify|verify} messages. + * Encodes the specified ListSecuritySettingsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest} message GetTransitionRouteGroupRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse} message ListSecuritySettingsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTransitionRouteGroupRequest.encode = function encode(message, writer) { + ListSecuritySettingsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); + if (message.securitySettings != null && message.securitySettings.length) + for (var i = 0; i < message.securitySettings.length; ++i) + $root.google.cloud.dialogflow.cx.v3.SecuritySettings.encode(message.securitySettings[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified GetTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest.verify|verify} messages. + * Encodes the specified ListSecuritySettingsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest} message GetTransitionRouteGroupRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse} message ListSecuritySettingsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListSecuritySettingsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer. + * Decodes a ListSecuritySettingsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse} ListSecuritySettingsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTransitionRouteGroupRequest.decode = function decode(reader, length) { + ListSecuritySettingsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.securitySettings && message.securitySettings.length)) + message.securitySettings = []; + message.securitySettings.push($root.google.cloud.dialogflow.cx.v3.SecuritySettings.decode(reader, reader.uint32())); break; case 2: - message.languageCode = reader.string(); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -48328,118 +48230,134 @@ }; /** - * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. + * Decodes a ListSecuritySettingsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse} ListSecuritySettingsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTransitionRouteGroupRequest.decodeDelimited = function decodeDelimited(reader) { + ListSecuritySettingsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetTransitionRouteGroupRequest message. + * Verifies a ListSecuritySettingsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetTransitionRouteGroupRequest.verify = function verify(message) { + ListSecuritySettingsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; + if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) { + if (!Array.isArray(message.securitySettings)) + return "securitySettings: array expected"; + for (var i = 0; i < message.securitySettings.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.verify(message.securitySettings[i]); + if (error) + return "securitySettings." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a GetTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListSecuritySettingsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse} ListSecuritySettingsResponse */ - GetTransitionRouteGroupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest) + ListSecuritySettingsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); + var message = new $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse(); + if (object.securitySettings) { + if (!Array.isArray(object.securitySettings)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse.securitySettings: array expected"); + message.securitySettings = []; + for (var i = 0; i < object.securitySettings.length; ++i) { + if (typeof object.securitySettings[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse.securitySettings: object expected"); + message.securitySettings[i] = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.fromObject(object.securitySettings[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a GetTransitionRouteGroupRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListSecuritySettingsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest} message GetTransitionRouteGroupRequest + * @param {google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse} message ListSecuritySettingsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTransitionRouteGroupRequest.toObject = function toObject(message, options) { + ListSecuritySettingsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.languageCode = ""; + if (options.arrays || options.defaults) + object.securitySettings = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.securitySettings && message.securitySettings.length) { + object.securitySettings = []; + for (var j = 0; j < message.securitySettings.length; ++j) + object.securitySettings[j] = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.toObject(message.securitySettings[j], options); } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this GetTransitionRouteGroupRequest to JSON. + * Converts this ListSecuritySettingsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse * @instance * @returns {Object.} JSON object */ - GetTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { + ListSecuritySettingsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetTransitionRouteGroupRequest; + return ListSecuritySettingsResponse; })(); - v3.CreateTransitionRouteGroupRequest = (function() { + v3.CreateSecuritySettingsRequest = (function() { /** - * Properties of a CreateTransitionRouteGroupRequest. + * Properties of a CreateSecuritySettingsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ICreateTransitionRouteGroupRequest - * @property {string|null} [parent] CreateTransitionRouteGroupRequest parent - * @property {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null} [transitionRouteGroup] CreateTransitionRouteGroupRequest transitionRouteGroup - * @property {string|null} [languageCode] CreateTransitionRouteGroupRequest languageCode + * @interface ICreateSecuritySettingsRequest + * @property {string|null} [parent] CreateSecuritySettingsRequest parent + * @property {google.cloud.dialogflow.cx.v3.ISecuritySettings|null} [securitySettings] CreateSecuritySettingsRequest securitySettings */ /** - * Constructs a new CreateTransitionRouteGroupRequest. + * Constructs a new CreateSecuritySettingsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CreateTransitionRouteGroupRequest. - * @implements ICreateTransitionRouteGroupRequest + * @classdesc Represents a CreateSecuritySettingsRequest. + * @implements ICreateSecuritySettingsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest=} [properties] Properties to set */ - function CreateTransitionRouteGroupRequest(properties) { + function CreateSecuritySettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -48447,90 +48365,80 @@ } /** - * CreateTransitionRouteGroupRequest parent. + * CreateSecuritySettingsRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest - * @instance - */ - CreateTransitionRouteGroupRequest.prototype.parent = ""; - - /** - * CreateTransitionRouteGroupRequest transitionRouteGroup. - * @member {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null|undefined} transitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest * @instance */ - CreateTransitionRouteGroupRequest.prototype.transitionRouteGroup = null; + CreateSecuritySettingsRequest.prototype.parent = ""; /** - * CreateTransitionRouteGroupRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest + * CreateSecuritySettingsRequest securitySettings. + * @member {google.cloud.dialogflow.cx.v3.ISecuritySettings|null|undefined} securitySettings + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest * @instance */ - CreateTransitionRouteGroupRequest.prototype.languageCode = ""; + CreateSecuritySettingsRequest.prototype.securitySettings = null; /** - * Creates a new CreateTransitionRouteGroupRequest instance using the specified properties. + * Creates a new CreateSecuritySettingsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest instance + * @param {google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest} CreateSecuritySettingsRequest instance */ - CreateTransitionRouteGroupRequest.create = function create(properties) { - return new CreateTransitionRouteGroupRequest(properties); + CreateSecuritySettingsRequest.create = function create(properties) { + return new CreateSecuritySettingsRequest(properties); }; /** - * Encodes the specified CreateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest.verify|verify} messages. + * Encodes the specified CreateSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest} message CreateTransitionRouteGroupRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest} message CreateSecuritySettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateTransitionRouteGroupRequest.encode = function encode(message, writer) { + CreateSecuritySettingsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.transitionRouteGroup != null && Object.hasOwnProperty.call(message, "transitionRouteGroup")) - $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.encode(message.transitionRouteGroup, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); + if (message.securitySettings != null && Object.hasOwnProperty.call(message, "securitySettings")) + $root.google.cloud.dialogflow.cx.v3.SecuritySettings.encode(message.securitySettings, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest.verify|verify} messages. + * Encodes the specified CreateSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest} message CreateTransitionRouteGroupRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest} message CreateSecuritySettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer. + * Decodes a CreateSecuritySettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest} CreateSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateTransitionRouteGroupRequest.decode = function decode(reader, length) { + CreateSecuritySettingsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -48538,10 +48446,7 @@ message.parent = reader.string(); break; case 2: - message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.decode(reader, reader.uint32()); - break; - case 3: - message.languageCode = reader.string(); + message.securitySettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -48552,131 +48457,121 @@ }; /** - * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateSecuritySettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest} CreateSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateTransitionRouteGroupRequest.decodeDelimited = function decodeDelimited(reader) { + CreateSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateTransitionRouteGroupRequest message. + * Verifies a CreateSecuritySettingsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateTransitionRouteGroupRequest.verify = function verify(message) { + CreateSecuritySettingsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) { - var error = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify(message.transitionRouteGroup); + if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) { + var error = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.verify(message.securitySettings); if (error) - return "transitionRouteGroup." + error; + return "securitySettings." + error; } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; return null; }; /** - * Creates a CreateTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest} CreateSecuritySettingsRequest */ - CreateTransitionRouteGroupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest) + CreateSecuritySettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.transitionRouteGroup != null) { - if (typeof object.transitionRouteGroup !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest.transitionRouteGroup: object expected"); - message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.fromObject(object.transitionRouteGroup); + if (object.securitySettings != null) { + if (typeof object.securitySettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest.securitySettings: object expected"); + message.securitySettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.fromObject(object.securitySettings); } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a CreateTransitionRouteGroupRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateSecuritySettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest} message CreateTransitionRouteGroupRequest + * @param {google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest} message CreateSecuritySettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateTransitionRouteGroupRequest.toObject = function toObject(message, options) { + CreateSecuritySettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.transitionRouteGroup = null; - object.languageCode = ""; + object.securitySettings = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) - object.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.toObject(message.transitionRouteGroup, options); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; + if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) + object.securitySettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.toObject(message.securitySettings, options); return object; }; /** - * Converts this CreateTransitionRouteGroupRequest to JSON. + * Converts this CreateSecuritySettingsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest * @instance * @returns {Object.} JSON object */ - CreateTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { + CreateSecuritySettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateTransitionRouteGroupRequest; + return CreateSecuritySettingsRequest; })(); - v3.UpdateTransitionRouteGroupRequest = (function() { + v3.DeleteSecuritySettingsRequest = (function() { /** - * Properties of an UpdateTransitionRouteGroupRequest. + * Properties of a DeleteSecuritySettingsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IUpdateTransitionRouteGroupRequest - * @property {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null} [transitionRouteGroup] UpdateTransitionRouteGroupRequest transitionRouteGroup - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateTransitionRouteGroupRequest updateMask - * @property {string|null} [languageCode] UpdateTransitionRouteGroupRequest languageCode + * @interface IDeleteSecuritySettingsRequest + * @property {string|null} [name] DeleteSecuritySettingsRequest name */ /** - * Constructs a new UpdateTransitionRouteGroupRequest. + * Constructs a new DeleteSecuritySettingsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an UpdateTransitionRouteGroupRequest. - * @implements IUpdateTransitionRouteGroupRequest + * @classdesc Represents a DeleteSecuritySettingsRequest. + * @implements IDeleteSecuritySettingsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest=} [properties] Properties to set */ - function UpdateTransitionRouteGroupRequest(properties) { + function DeleteSecuritySettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -48684,101 +48579,75 @@ } /** - * UpdateTransitionRouteGroupRequest transitionRouteGroup. - * @member {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null|undefined} transitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest - * @instance - */ - UpdateTransitionRouteGroupRequest.prototype.transitionRouteGroup = null; - - /** - * UpdateTransitionRouteGroupRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest - * @instance - */ - UpdateTransitionRouteGroupRequest.prototype.updateMask = null; - - /** - * UpdateTransitionRouteGroupRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest + * DeleteSecuritySettingsRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @instance */ - UpdateTransitionRouteGroupRequest.prototype.languageCode = ""; + DeleteSecuritySettingsRequest.prototype.name = ""; /** - * Creates a new UpdateTransitionRouteGroupRequest instance using the specified properties. + * Creates a new DeleteSecuritySettingsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest} DeleteSecuritySettingsRequest instance */ - UpdateTransitionRouteGroupRequest.create = function create(properties) { - return new UpdateTransitionRouteGroupRequest(properties); + DeleteSecuritySettingsRequest.create = function create(properties) { + return new DeleteSecuritySettingsRequest(properties); }; /** - * Encodes the specified UpdateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest.verify|verify} messages. + * Encodes the specified DeleteSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest} message UpdateTransitionRouteGroupRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest} message DeleteSecuritySettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateTransitionRouteGroupRequest.encode = function encode(message, writer) { + DeleteSecuritySettingsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.transitionRouteGroup != null && Object.hasOwnProperty.call(message, "transitionRouteGroup")) - $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.encode(message.transitionRouteGroup, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified UpdateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest.verify|verify} messages. + * Encodes the specified DeleteSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest} message UpdateTransitionRouteGroupRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest} message DeleteSecuritySettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateTransitionRouteGroupRequest message from the specified reader or buffer. + * Decodes a DeleteSecuritySettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest} DeleteSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateTransitionRouteGroupRequest.decode = function decode(reader, length) { + DeleteSecuritySettingsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - case 3: - message.languageCode = reader.string(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -48789,135 +48658,114 @@ }; /** - * Decodes an UpdateTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteSecuritySettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest} DeleteSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateTransitionRouteGroupRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateTransitionRouteGroupRequest message. + * Verifies a DeleteSecuritySettingsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateTransitionRouteGroupRequest.verify = function verify(message) { + DeleteSecuritySettingsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) { - var error = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify(message.transitionRouteGroup); - if (error) - return "transitionRouteGroup." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an UpdateTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest} DeleteSecuritySettingsRequest */ - UpdateTransitionRouteGroupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest) + DeleteSecuritySettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest(); - if (object.transitionRouteGroup != null) { - if (typeof object.transitionRouteGroup !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest.transitionRouteGroup: object expected"); - message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.fromObject(object.transitionRouteGroup); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); + var message = new $root.google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an UpdateTransitionRouteGroupRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteSecuritySettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest} message UpdateTransitionRouteGroupRequest + * @param {google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest} message DeleteSecuritySettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateTransitionRouteGroupRequest.toObject = function toObject(message, options) { + DeleteSecuritySettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.transitionRouteGroup = null; - object.updateMask = null; - object.languageCode = ""; - } - if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) - object.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.toObject(message.transitionRouteGroup, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this UpdateTransitionRouteGroupRequest to JSON. + * Converts this DeleteSecuritySettingsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @instance * @returns {Object.} JSON object */ - UpdateTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { + DeleteSecuritySettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateTransitionRouteGroupRequest; + return DeleteSecuritySettingsRequest; })(); - v3.DeleteTransitionRouteGroupRequest = (function() { + v3.SecuritySettings = (function() { /** - * Properties of a DeleteTransitionRouteGroupRequest. + * Properties of a SecuritySettings. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDeleteTransitionRouteGroupRequest - * @property {string|null} [name] DeleteTransitionRouteGroupRequest name - * @property {boolean|null} [force] DeleteTransitionRouteGroupRequest force + * @interface ISecuritySettings + * @property {string|null} [name] SecuritySettings name + * @property {string|null} [displayName] SecuritySettings displayName + * @property {google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy|null} [redactionStrategy] SecuritySettings redactionStrategy + * @property {google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope|null} [redactionScope] SecuritySettings redactionScope + * @property {string|null} [inspectTemplate] SecuritySettings inspectTemplate + * @property {number|null} [retentionWindowDays] SecuritySettings retentionWindowDays + * @property {Array.|null} [purgeDataTypes] SecuritySettings purgeDataTypes */ /** - * Constructs a new DeleteTransitionRouteGroupRequest. + * Constructs a new SecuritySettings. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DeleteTransitionRouteGroupRequest. - * @implements IDeleteTransitionRouteGroupRequest + * @classdesc Represents a SecuritySettings. + * @implements ISecuritySettings * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ISecuritySettings=} [properties] Properties to set */ - function DeleteTransitionRouteGroupRequest(properties) { + function SecuritySettings(properties) { + this.purgeDataTypes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -48925,80 +48773,148 @@ } /** - * DeleteTransitionRouteGroupRequest name. + * SecuritySettings name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings * @instance */ - DeleteTransitionRouteGroupRequest.prototype.name = ""; + SecuritySettings.prototype.name = ""; /** - * DeleteTransitionRouteGroupRequest force. - * @member {boolean} force - * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest + * SecuritySettings displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings * @instance */ - DeleteTransitionRouteGroupRequest.prototype.force = false; + SecuritySettings.prototype.displayName = ""; /** - * Creates a new DeleteTransitionRouteGroupRequest instance using the specified properties. + * SecuritySettings redactionStrategy. + * @member {google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy} redactionStrategy + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @instance + */ + SecuritySettings.prototype.redactionStrategy = 0; + + /** + * SecuritySettings redactionScope. + * @member {google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope} redactionScope + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @instance + */ + SecuritySettings.prototype.redactionScope = 0; + + /** + * SecuritySettings inspectTemplate. + * @member {string} inspectTemplate + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @instance + */ + SecuritySettings.prototype.inspectTemplate = ""; + + /** + * SecuritySettings retentionWindowDays. + * @member {number} retentionWindowDays + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @instance + */ + SecuritySettings.prototype.retentionWindowDays = 0; + + /** + * SecuritySettings purgeDataTypes. + * @member {Array.} purgeDataTypes + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @instance + */ + SecuritySettings.prototype.purgeDataTypes = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SecuritySettings dataRetention. + * @member {"retentionWindowDays"|undefined} dataRetention + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @instance + */ + Object.defineProperty(SecuritySettings.prototype, "dataRetention", { + get: $util.oneOfGetter($oneOfFields = ["retentionWindowDays"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SecuritySettings instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest instance + * @param {google.cloud.dialogflow.cx.v3.ISecuritySettings=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings} SecuritySettings instance */ - DeleteTransitionRouteGroupRequest.create = function create(properties) { - return new DeleteTransitionRouteGroupRequest(properties); + SecuritySettings.create = function create(properties) { + return new SecuritySettings(properties); }; /** - * Encodes the specified DeleteTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest.verify|verify} messages. + * Encodes the specified SecuritySettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest} message DeleteTransitionRouteGroupRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ISecuritySettings} message SecuritySettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteTransitionRouteGroupRequest.encode = function encode(message, writer) { + SecuritySettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.redactionStrategy != null && Object.hasOwnProperty.call(message, "redactionStrategy")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.redactionStrategy); + if (message.redactionScope != null && Object.hasOwnProperty.call(message, "redactionScope")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.redactionScope); + if (message.retentionWindowDays != null && Object.hasOwnProperty.call(message, "retentionWindowDays")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.retentionWindowDays); + if (message.purgeDataTypes != null && message.purgeDataTypes.length) { + writer.uint32(/* id 8, wireType 2 =*/66).fork(); + for (var i = 0; i < message.purgeDataTypes.length; ++i) + writer.int32(message.purgeDataTypes[i]); + writer.ldelim(); + } + if (message.inspectTemplate != null && Object.hasOwnProperty.call(message, "inspectTemplate")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.inspectTemplate); return writer; }; /** - * Encodes the specified DeleteTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest.verify|verify} messages. + * Encodes the specified SecuritySettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest} message DeleteTransitionRouteGroupRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ISecuritySettings} message SecuritySettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + SecuritySettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer. + * Decodes a SecuritySettings message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings} SecuritySettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteTransitionRouteGroupRequest.decode = function decode(reader, length) { + SecuritySettings.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.SecuritySettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -49006,7 +48922,29 @@ message.name = reader.string(); break; case 2: - message.force = reader.bool(); + message.displayName = reader.string(); + break; + case 3: + message.redactionStrategy = reader.int32(); + break; + case 4: + message.redactionScope = reader.int32(); + break; + case 9: + message.inspectTemplate = reader.string(); + break; + case 6: + message.retentionWindowDays = reader.int32(); + break; + case 8: + if (!(message.purgeDataTypes && message.purgeDataTypes.length)) + message.purgeDataTypes = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.purgeDataTypes.push(reader.int32()); + } else + message.purgeDataTypes.push(reader.int32()); break; default: reader.skipType(tag & 7); @@ -49017,96 +48955,237 @@ }; /** - * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. + * Decodes a SecuritySettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings} SecuritySettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteTransitionRouteGroupRequest.decodeDelimited = function decodeDelimited(reader) { + SecuritySettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteTransitionRouteGroupRequest message. + * Verifies a SecuritySettings message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteTransitionRouteGroupRequest.verify = function verify(message) { + SecuritySettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.redactionStrategy != null && message.hasOwnProperty("redactionStrategy")) + switch (message.redactionStrategy) { + default: + return "redactionStrategy: enum value expected"; + case 0: + case 1: + break; + } + if (message.redactionScope != null && message.hasOwnProperty("redactionScope")) + switch (message.redactionScope) { + default: + return "redactionScope: enum value expected"; + case 0: + case 2: + break; + } + if (message.inspectTemplate != null && message.hasOwnProperty("inspectTemplate")) + if (!$util.isString(message.inspectTemplate)) + return "inspectTemplate: string expected"; + if (message.retentionWindowDays != null && message.hasOwnProperty("retentionWindowDays")) { + properties.dataRetention = 1; + if (!$util.isInteger(message.retentionWindowDays)) + return "retentionWindowDays: integer expected"; + } + if (message.purgeDataTypes != null && message.hasOwnProperty("purgeDataTypes")) { + if (!Array.isArray(message.purgeDataTypes)) + return "purgeDataTypes: array expected"; + for (var i = 0; i < message.purgeDataTypes.length; ++i) + switch (message.purgeDataTypes[i]) { + default: + return "purgeDataTypes: enum value[] expected"; + case 0: + case 1: + break; + } + } return null; }; /** - * Creates a DeleteTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SecuritySettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings} SecuritySettings */ - DeleteTransitionRouteGroupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest) + SecuritySettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.SecuritySettings) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.SecuritySettings(); if (object.name != null) message.name = String(object.name); - if (object.force != null) - message.force = Boolean(object.force); + if (object.displayName != null) + message.displayName = String(object.displayName); + switch (object.redactionStrategy) { + case "REDACTION_STRATEGY_UNSPECIFIED": + case 0: + message.redactionStrategy = 0; + break; + case "REDACT_WITH_SERVICE": + case 1: + message.redactionStrategy = 1; + break; + } + switch (object.redactionScope) { + case "REDACTION_SCOPE_UNSPECIFIED": + case 0: + message.redactionScope = 0; + break; + case "REDACT_DISK_STORAGE": + case 2: + message.redactionScope = 2; + break; + } + if (object.inspectTemplate != null) + message.inspectTemplate = String(object.inspectTemplate); + if (object.retentionWindowDays != null) + message.retentionWindowDays = object.retentionWindowDays | 0; + if (object.purgeDataTypes) { + if (!Array.isArray(object.purgeDataTypes)) + throw TypeError(".google.cloud.dialogflow.cx.v3.SecuritySettings.purgeDataTypes: array expected"); + message.purgeDataTypes = []; + for (var i = 0; i < object.purgeDataTypes.length; ++i) + switch (object.purgeDataTypes[i]) { + default: + case "PURGE_DATA_TYPE_UNSPECIFIED": + case 0: + message.purgeDataTypes[i] = 0; + break; + case "DIALOGFLOW_HISTORY": + case 1: + message.purgeDataTypes[i] = 1; + break; + } + } return message; }; /** - * Creates a plain object from a DeleteTransitionRouteGroupRequest message. Also converts values to other types if specified. + * Creates a plain object from a SecuritySettings message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings * @static - * @param {google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest} message DeleteTransitionRouteGroupRequest + * @param {google.cloud.dialogflow.cx.v3.SecuritySettings} message SecuritySettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteTransitionRouteGroupRequest.toObject = function toObject(message, options) { + SecuritySettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.purgeDataTypes = []; if (options.defaults) { object.name = ""; - object.force = false; + object.displayName = ""; + object.redactionStrategy = options.enums === String ? "REDACTION_STRATEGY_UNSPECIFIED" : 0; + object.redactionScope = options.enums === String ? "REDACTION_SCOPE_UNSPECIFIED" : 0; + object.inspectTemplate = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.redactionStrategy != null && message.hasOwnProperty("redactionStrategy")) + object.redactionStrategy = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy[message.redactionStrategy] : message.redactionStrategy; + if (message.redactionScope != null && message.hasOwnProperty("redactionScope")) + object.redactionScope = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope[message.redactionScope] : message.redactionScope; + if (message.retentionWindowDays != null && message.hasOwnProperty("retentionWindowDays")) { + object.retentionWindowDays = message.retentionWindowDays; + if (options.oneofs) + object.dataRetention = "retentionWindowDays"; + } + if (message.purgeDataTypes && message.purgeDataTypes.length) { + object.purgeDataTypes = []; + for (var j = 0; j < message.purgeDataTypes.length; ++j) + object.purgeDataTypes[j] = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType[message.purgeDataTypes[j]] : message.purgeDataTypes[j]; + } + if (message.inspectTemplate != null && message.hasOwnProperty("inspectTemplate")) + object.inspectTemplate = message.inspectTemplate; return object; }; /** - * Converts this DeleteTransitionRouteGroupRequest to JSON. + * Converts this SecuritySettings to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings * @instance * @returns {Object.} JSON object */ - DeleteTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { + SecuritySettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteTransitionRouteGroupRequest; + /** + * RedactionStrategy enum. + * @name google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy + * @enum {number} + * @property {number} REDACTION_STRATEGY_UNSPECIFIED=0 REDACTION_STRATEGY_UNSPECIFIED value + * @property {number} REDACT_WITH_SERVICE=1 REDACT_WITH_SERVICE value + */ + SecuritySettings.RedactionStrategy = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "REDACTION_STRATEGY_UNSPECIFIED"] = 0; + values[valuesById[1] = "REDACT_WITH_SERVICE"] = 1; + return values; + })(); + + /** + * RedactionScope enum. + * @name google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope + * @enum {number} + * @property {number} REDACTION_SCOPE_UNSPECIFIED=0 REDACTION_SCOPE_UNSPECIFIED value + * @property {number} REDACT_DISK_STORAGE=2 REDACT_DISK_STORAGE value + */ + SecuritySettings.RedactionScope = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "REDACTION_SCOPE_UNSPECIFIED"] = 0; + values[valuesById[2] = "REDACT_DISK_STORAGE"] = 2; + return values; + })(); + + /** + * PurgeDataType enum. + * @name google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType + * @enum {number} + * @property {number} PURGE_DATA_TYPE_UNSPECIFIED=0 PURGE_DATA_TYPE_UNSPECIFIED value + * @property {number} DIALOGFLOW_HISTORY=1 DIALOGFLOW_HISTORY value + */ + SecuritySettings.PurgeDataType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PURGE_DATA_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "DIALOGFLOW_HISTORY"] = 1; + return values; + })(); + + return SecuritySettings; })(); v3.Versions = (function() { @@ -59030,6 +59109,7 @@ * @property {string|null} [name] RestoreAgentRequest name * @property {string|null} [agentUri] RestoreAgentRequest agentUri * @property {Uint8Array|null} [agentContent] RestoreAgentRequest agentContent + * @property {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.RestoreOption|null} [restoreOption] RestoreAgentRequest restoreOption */ /** @@ -59071,6 +59151,14 @@ */ RestoreAgentRequest.prototype.agentContent = $util.newBuffer([]); + /** + * RestoreAgentRequest restoreOption. + * @member {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.RestoreOption} restoreOption + * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest + * @instance + */ + RestoreAgentRequest.prototype.restoreOption = 0; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -59115,6 +59203,8 @@ writer.uint32(/* id 2, wireType 2 =*/18).string(message.agentUri); if (message.agentContent != null && Object.hasOwnProperty.call(message, "agentContent")) writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.agentContent); + if (message.restoreOption != null && Object.hasOwnProperty.call(message, "restoreOption")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.restoreOption); return writer; }; @@ -59158,6 +59248,9 @@ case 3: message.agentContent = reader.bytes(); break; + case 5: + message.restoreOption = reader.int32(); + break; default: reader.skipType(tag & 7); break; @@ -59209,6 +59302,15 @@ if (!(message.agentContent && typeof message.agentContent.length === "number" || $util.isString(message.agentContent))) return "agentContent: buffer expected"; } + if (message.restoreOption != null && message.hasOwnProperty("restoreOption")) + switch (message.restoreOption) { + default: + return "restoreOption: enum value expected"; + case 0: + case 1: + case 2: + break; + } return null; }; @@ -59233,6 +59335,20 @@ $util.base64.decode(object.agentContent, message.agentContent = $util.newBuffer($util.base64.length(object.agentContent)), 0); else if (object.agentContent.length) message.agentContent = object.agentContent; + switch (object.restoreOption) { + case "RESTORE_OPTION_UNSPECIFIED": + case 0: + message.restoreOption = 0; + break; + case "KEEP": + case 1: + message.restoreOption = 1; + break; + case "FALLBACK": + case 2: + message.restoreOption = 2; + break; + } return message; }; @@ -59249,8 +59365,10 @@ if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.name = ""; + object.restoreOption = options.enums === String ? "RESTORE_OPTION_UNSPECIFIED" : 0; + } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; if (message.agentUri != null && message.hasOwnProperty("agentUri")) { @@ -59263,6 +59381,8 @@ if (options.oneofs) object.agent = "agentContent"; } + if (message.restoreOption != null && message.hasOwnProperty("restoreOption")) + object.restoreOption = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.RestoreOption[message.restoreOption] : message.restoreOption; return object; }; @@ -59277,6 +59397,22 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * RestoreOption enum. + * @name google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.RestoreOption + * @enum {number} + * @property {number} RESTORE_OPTION_UNSPECIFIED=0 RESTORE_OPTION_UNSPECIFIED value + * @property {number} KEEP=1 KEEP value + * @property {number} FALLBACK=2 FALLBACK value + */ + RestoreAgentRequest.RestoreOption = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RESTORE_OPTION_UNSPECIFIED"] = 0; + values[valuesById[1] = "KEEP"] = 1; + values[valuesById[2] = "FALLBACK"] = 2; + return values; + })(); + return RestoreAgentRequest; })(); @@ -73726,39 +73862,556 @@ }; /** - * Converts this SynthesizeSpeechConfig to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * Converts this SynthesizeSpeechConfig to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @instance + * @returns {Object.} JSON object + */ + SynthesizeSpeechConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SynthesizeSpeechConfig; + })(); + + v3beta1.OutputAudioConfig = (function() { + + /** + * Properties of an OutputAudioConfig. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IOutputAudioConfig + * @property {google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding|null} [audioEncoding] OutputAudioConfig audioEncoding + * @property {number|null} [sampleRateHertz] OutputAudioConfig sampleRateHertz + * @property {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig|null} [synthesizeSpeechConfig] OutputAudioConfig synthesizeSpeechConfig + */ + + /** + * Constructs a new OutputAudioConfig. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents an OutputAudioConfig. + * @implements IOutputAudioConfig + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig=} [properties] Properties to set + */ + function OutputAudioConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * OutputAudioConfig audioEncoding. + * @member {google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding} audioEncoding + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @instance + */ + OutputAudioConfig.prototype.audioEncoding = 0; + + /** + * OutputAudioConfig sampleRateHertz. + * @member {number} sampleRateHertz + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @instance + */ + OutputAudioConfig.prototype.sampleRateHertz = 0; + + /** + * OutputAudioConfig synthesizeSpeechConfig. + * @member {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig|null|undefined} synthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @instance + */ + OutputAudioConfig.prototype.synthesizeSpeechConfig = null; + + /** + * Creates a new OutputAudioConfig instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} OutputAudioConfig instance + */ + OutputAudioConfig.create = function create(properties) { + return new OutputAudioConfig(properties); + }; + + /** + * Encodes the specified OutputAudioConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig} message OutputAudioConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OutputAudioConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.audioEncoding != null && Object.hasOwnProperty.call(message, "audioEncoding")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.audioEncoding); + if (message.sampleRateHertz != null && Object.hasOwnProperty.call(message, "sampleRateHertz")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.sampleRateHertz); + if (message.synthesizeSpeechConfig != null && Object.hasOwnProperty.call(message, "synthesizeSpeechConfig")) + $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.encode(message.synthesizeSpeechConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified OutputAudioConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig} message OutputAudioConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OutputAudioConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OutputAudioConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} OutputAudioConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OutputAudioConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.audioEncoding = reader.int32(); + break; + case 2: + message.sampleRateHertz = reader.int32(); + break; + case 3: + message.synthesizeSpeechConfig = $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OutputAudioConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} OutputAudioConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OutputAudioConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OutputAudioConfig message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OutputAudioConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.audioEncoding != null && message.hasOwnProperty("audioEncoding")) + switch (message.audioEncoding) { + default: + return "audioEncoding: enum value expected"; + case 0: + case 1: + case 2: + case 4: + case 3: + case 5: + break; + } + if (message.sampleRateHertz != null && message.hasOwnProperty("sampleRateHertz")) + if (!$util.isInteger(message.sampleRateHertz)) + return "sampleRateHertz: integer expected"; + if (message.synthesizeSpeechConfig != null && message.hasOwnProperty("synthesizeSpeechConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.verify(message.synthesizeSpeechConfig); + if (error) + return "synthesizeSpeechConfig." + error; + } + return null; + }; + + /** + * Creates an OutputAudioConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} OutputAudioConfig + */ + OutputAudioConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig(); + switch (object.audioEncoding) { + case "OUTPUT_AUDIO_ENCODING_UNSPECIFIED": + case 0: + message.audioEncoding = 0; + break; + case "OUTPUT_AUDIO_ENCODING_LINEAR_16": + case 1: + message.audioEncoding = 1; + break; + case "OUTPUT_AUDIO_ENCODING_MP3": + case 2: + message.audioEncoding = 2; + break; + case "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS": + case 4: + message.audioEncoding = 4; + break; + case "OUTPUT_AUDIO_ENCODING_OGG_OPUS": + case 3: + message.audioEncoding = 3; + break; + case "OUTPUT_AUDIO_ENCODING_MULAW": + case 5: + message.audioEncoding = 5; + break; + } + if (object.sampleRateHertz != null) + message.sampleRateHertz = object.sampleRateHertz | 0; + if (object.synthesizeSpeechConfig != null) { + if (typeof object.synthesizeSpeechConfig !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.synthesizeSpeechConfig: object expected"); + message.synthesizeSpeechConfig = $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.fromObject(object.synthesizeSpeechConfig); + } + return message; + }; + + /** + * Creates a plain object from an OutputAudioConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} message OutputAudioConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OutputAudioConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.audioEncoding = options.enums === String ? "OUTPUT_AUDIO_ENCODING_UNSPECIFIED" : 0; + object.sampleRateHertz = 0; + object.synthesizeSpeechConfig = null; + } + if (message.audioEncoding != null && message.hasOwnProperty("audioEncoding")) + object.audioEncoding = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding[message.audioEncoding] : message.audioEncoding; + if (message.sampleRateHertz != null && message.hasOwnProperty("sampleRateHertz")) + object.sampleRateHertz = message.sampleRateHertz; + if (message.synthesizeSpeechConfig != null && message.hasOwnProperty("synthesizeSpeechConfig")) + object.synthesizeSpeechConfig = $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.toObject(message.synthesizeSpeechConfig, options); + return object; + }; + + /** + * Converts this OutputAudioConfig to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @instance + * @returns {Object.} JSON object + */ + OutputAudioConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return OutputAudioConfig; + })(); + + /** + * SsmlVoiceGender enum. + * @name google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender + * @enum {number} + * @property {number} SSML_VOICE_GENDER_UNSPECIFIED=0 SSML_VOICE_GENDER_UNSPECIFIED value + * @property {number} SSML_VOICE_GENDER_MALE=1 SSML_VOICE_GENDER_MALE value + * @property {number} SSML_VOICE_GENDER_FEMALE=2 SSML_VOICE_GENDER_FEMALE value + * @property {number} SSML_VOICE_GENDER_NEUTRAL=3 SSML_VOICE_GENDER_NEUTRAL value + */ + v3beta1.SsmlVoiceGender = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SSML_VOICE_GENDER_UNSPECIFIED"] = 0; + values[valuesById[1] = "SSML_VOICE_GENDER_MALE"] = 1; + values[valuesById[2] = "SSML_VOICE_GENDER_FEMALE"] = 2; + values[valuesById[3] = "SSML_VOICE_GENDER_NEUTRAL"] = 3; + return values; + })(); + + /** + * OutputAudioEncoding enum. + * @name google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding + * @enum {number} + * @property {number} OUTPUT_AUDIO_ENCODING_UNSPECIFIED=0 OUTPUT_AUDIO_ENCODING_UNSPECIFIED value + * @property {number} OUTPUT_AUDIO_ENCODING_LINEAR_16=1 OUTPUT_AUDIO_ENCODING_LINEAR_16 value + * @property {number} OUTPUT_AUDIO_ENCODING_MP3=2 OUTPUT_AUDIO_ENCODING_MP3 value + * @property {number} OUTPUT_AUDIO_ENCODING_MP3_64_KBPS=4 OUTPUT_AUDIO_ENCODING_MP3_64_KBPS value + * @property {number} OUTPUT_AUDIO_ENCODING_OGG_OPUS=3 OUTPUT_AUDIO_ENCODING_OGG_OPUS value + * @property {number} OUTPUT_AUDIO_ENCODING_MULAW=5 OUTPUT_AUDIO_ENCODING_MULAW value + */ + v3beta1.OutputAudioEncoding = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "OUTPUT_AUDIO_ENCODING_UNSPECIFIED"] = 0; + values[valuesById[1] = "OUTPUT_AUDIO_ENCODING_LINEAR_16"] = 1; + values[valuesById[2] = "OUTPUT_AUDIO_ENCODING_MP3"] = 2; + values[valuesById[4] = "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS"] = 4; + values[valuesById[3] = "OUTPUT_AUDIO_ENCODING_OGG_OPUS"] = 3; + values[valuesById[5] = "OUTPUT_AUDIO_ENCODING_MULAW"] = 5; + return values; + })(); + + v3beta1.EntityTypes = (function() { + + /** + * Constructs a new EntityTypes service. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents an EntityTypes + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function EntityTypes(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (EntityTypes.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = EntityTypes; + + /** + * Creates new EntityTypes service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {EntityTypes} RPC service. Useful where requests and/or responses are streamed. + */ + EntityTypes.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#listEntityTypes}. + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @typedef ListEntityTypesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse} [response] ListEntityTypesResponse + */ + + /** + * Calls ListEntityTypes. + * @function listEntityTypes + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest} request ListEntityTypesRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.EntityTypes.ListEntityTypesCallback} callback Node-style callback called with the error, if any, and ListEntityTypesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(EntityTypes.prototype.listEntityTypes = function listEntityTypes(request, callback) { + return this.rpcCall(listEntityTypes, $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse, request, callback); + }, "name", { value: "ListEntityTypes" }); + + /** + * Calls ListEntityTypes. + * @function listEntityTypes + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest} request ListEntityTypesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#getEntityType}. + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @typedef GetEntityTypeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.EntityType} [response] EntityType + */ + + /** + * Calls GetEntityType. + * @function getEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest} request GetEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.EntityTypes.GetEntityTypeCallback} callback Node-style callback called with the error, if any, and EntityType + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(EntityTypes.prototype.getEntityType = function getEntityType(request, callback) { + return this.rpcCall(getEntityType, $root.google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3beta1.EntityType, request, callback); + }, "name", { value: "GetEntityType" }); + + /** + * Calls GetEntityType. + * @function getEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest} request GetEntityTypeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#createEntityType}. + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @typedef CreateEntityTypeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.EntityType} [response] EntityType + */ + + /** + * Calls CreateEntityType. + * @function createEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest} request CreateEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.EntityTypes.CreateEntityTypeCallback} callback Node-style callback called with the error, if any, and EntityType + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(EntityTypes.prototype.createEntityType = function createEntityType(request, callback) { + return this.rpcCall(createEntityType, $root.google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3beta1.EntityType, request, callback); + }, "name", { value: "CreateEntityType" }); + + /** + * Calls CreateEntityType. + * @function createEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest} request CreateEntityTypeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#updateEntityType}. + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @typedef UpdateEntityTypeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.EntityType} [response] EntityType + */ + + /** + * Calls UpdateEntityType. + * @function updateEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest} request UpdateEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.EntityTypes.UpdateEntityTypeCallback} callback Node-style callback called with the error, if any, and EntityType + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(EntityTypes.prototype.updateEntityType = function updateEntityType(request, callback) { + return this.rpcCall(updateEntityType, $root.google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3beta1.EntityType, request, callback); + }, "name", { value: "UpdateEntityType" }); + + /** + * Calls UpdateEntityType. + * @function updateEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest} request UpdateEntityTypeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#deleteEntityType}. + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @typedef DeleteEntityTypeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteEntityType. + * @function deleteEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes * @instance - * @returns {Object.} JSON object + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest} request DeleteEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.EntityTypes.DeleteEntityTypeCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - SynthesizeSpeechConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(EntityTypes.prototype.deleteEntityType = function deleteEntityType(request, callback) { + return this.rpcCall(deleteEntityType, $root.google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteEntityType" }); - return SynthesizeSpeechConfig; + /** + * Calls DeleteEntityType. + * @function deleteEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest} request DeleteEntityTypeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return EntityTypes; })(); - v3beta1.OutputAudioConfig = (function() { + v3beta1.EntityType = (function() { /** - * Properties of an OutputAudioConfig. + * Properties of an EntityType. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IOutputAudioConfig - * @property {google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding|null} [audioEncoding] OutputAudioConfig audioEncoding - * @property {number|null} [sampleRateHertz] OutputAudioConfig sampleRateHertz - * @property {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig|null} [synthesizeSpeechConfig] OutputAudioConfig synthesizeSpeechConfig + * @interface IEntityType + * @property {string|null} [name] EntityType name + * @property {string|null} [displayName] EntityType displayName + * @property {google.cloud.dialogflow.cx.v3beta1.EntityType.Kind|null} [kind] EntityType kind + * @property {google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode|null} [autoExpansionMode] EntityType autoExpansionMode + * @property {Array.|null} [entities] EntityType entities + * @property {Array.|null} [excludedPhrases] EntityType excludedPhrases + * @property {boolean|null} [enableFuzzyExtraction] EntityType enableFuzzyExtraction + * @property {boolean|null} [redact] EntityType redact */ /** - * Constructs a new OutputAudioConfig. + * Constructs a new EntityType. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an OutputAudioConfig. - * @implements IOutputAudioConfig + * @classdesc Represents an EntityType. + * @implements IEntityType * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IEntityType=} [properties] Properties to set */ - function OutputAudioConfig(properties) { + function EntityType(properties) { + this.entities = []; + this.excludedPhrases = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -73766,101 +74419,172 @@ } /** - * OutputAudioConfig audioEncoding. - * @member {google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding} audioEncoding - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * EntityType name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType * @instance */ - OutputAudioConfig.prototype.audioEncoding = 0; + EntityType.prototype.name = ""; /** - * OutputAudioConfig sampleRateHertz. - * @member {number} sampleRateHertz - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * EntityType displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType * @instance */ - OutputAudioConfig.prototype.sampleRateHertz = 0; + EntityType.prototype.displayName = ""; /** - * OutputAudioConfig synthesizeSpeechConfig. - * @member {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig|null|undefined} synthesizeSpeechConfig - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * EntityType kind. + * @member {google.cloud.dialogflow.cx.v3beta1.EntityType.Kind} kind + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType * @instance */ - OutputAudioConfig.prototype.synthesizeSpeechConfig = null; + EntityType.prototype.kind = 0; /** - * Creates a new OutputAudioConfig instance using the specified properties. + * EntityType autoExpansionMode. + * @member {google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode} autoExpansionMode + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @instance + */ + EntityType.prototype.autoExpansionMode = 0; + + /** + * EntityType entities. + * @member {Array.} entities + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @instance + */ + EntityType.prototype.entities = $util.emptyArray; + + /** + * EntityType excludedPhrases. + * @member {Array.} excludedPhrases + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @instance + */ + EntityType.prototype.excludedPhrases = $util.emptyArray; + + /** + * EntityType enableFuzzyExtraction. + * @member {boolean} enableFuzzyExtraction + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @instance + */ + EntityType.prototype.enableFuzzyExtraction = false; + + /** + * EntityType redact. + * @member {boolean} redact + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @instance + */ + EntityType.prototype.redact = false; + + /** + * Creates a new EntityType instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} OutputAudioConfig instance + * @param {google.cloud.dialogflow.cx.v3beta1.IEntityType=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType} EntityType instance */ - OutputAudioConfig.create = function create(properties) { - return new OutputAudioConfig(properties); + EntityType.create = function create(properties) { + return new EntityType(properties); }; /** - * Encodes the specified OutputAudioConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify|verify} messages. + * Encodes the specified EntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig} message OutputAudioConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IEntityType} message EntityType message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OutputAudioConfig.encode = function encode(message, writer) { + EntityType.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.audioEncoding != null && Object.hasOwnProperty.call(message, "audioEncoding")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.audioEncoding); - if (message.sampleRateHertz != null && Object.hasOwnProperty.call(message, "sampleRateHertz")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.sampleRateHertz); - if (message.synthesizeSpeechConfig != null && Object.hasOwnProperty.call(message, "synthesizeSpeechConfig")) - $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.encode(message.synthesizeSpeechConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.kind); + if (message.autoExpansionMode != null && Object.hasOwnProperty.call(message, "autoExpansionMode")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.autoExpansionMode); + if (message.entities != null && message.entities.length) + for (var i = 0; i < message.entities.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.encode(message.entities[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.excludedPhrases != null && message.excludedPhrases.length) + for (var i = 0; i < message.excludedPhrases.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.encode(message.excludedPhrases[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.enableFuzzyExtraction != null && Object.hasOwnProperty.call(message, "enableFuzzyExtraction")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.enableFuzzyExtraction); + if (message.redact != null && Object.hasOwnProperty.call(message, "redact")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.redact); return writer; }; /** - * Encodes the specified OutputAudioConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify|verify} messages. + * Encodes the specified EntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig} message OutputAudioConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IEntityType} message EntityType message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OutputAudioConfig.encodeDelimited = function encodeDelimited(message, writer) { + EntityType.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an OutputAudioConfig message from the specified reader or buffer. + * Decodes an EntityType message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} OutputAudioConfig + * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType} EntityType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OutputAudioConfig.decode = function decode(reader, length) { + EntityType.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.EntityType(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.audioEncoding = reader.int32(); + message.name = reader.string(); break; case 2: - message.sampleRateHertz = reader.int32(); + message.displayName = reader.string(); break; case 3: - message.synthesizeSpeechConfig = $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.decode(reader, reader.uint32()); + message.kind = reader.int32(); + break; + case 4: + message.autoExpansionMode = reader.int32(); + break; + case 5: + if (!(message.entities && message.entities.length)) + message.entities = []; + message.entities.push($root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.decode(reader, reader.uint32())); + break; + case 6: + if (!(message.excludedPhrases && message.excludedPhrases.length)) + message.excludedPhrases = []; + message.excludedPhrases.push($root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.decode(reader, reader.uint32())); + break; + case 7: + message.enableFuzzyExtraction = reader.bool(); + break; + case 9: + message.redact = reader.bool(); break; default: reader.skipType(tag & 7); @@ -73871,411 +74595,684 @@ }; /** - * Decodes an OutputAudioConfig message from the specified reader or buffer, length delimited. + * Decodes an EntityType message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} OutputAudioConfig + * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType} EntityType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OutputAudioConfig.decodeDelimited = function decodeDelimited(reader) { + EntityType.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an OutputAudioConfig message. + * Verifies an EntityType message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - OutputAudioConfig.verify = function verify(message) { + EntityType.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.audioEncoding != null && message.hasOwnProperty("audioEncoding")) - switch (message.audioEncoding) { + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.kind != null && message.hasOwnProperty("kind")) + switch (message.kind) { default: - return "audioEncoding: enum value expected"; + return "kind: enum value expected"; case 0: case 1: case 2: - case 4: case 3: - case 5: break; } - if (message.sampleRateHertz != null && message.hasOwnProperty("sampleRateHertz")) - if (!$util.isInteger(message.sampleRateHertz)) - return "sampleRateHertz: integer expected"; - if (message.synthesizeSpeechConfig != null && message.hasOwnProperty("synthesizeSpeechConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.verify(message.synthesizeSpeechConfig); - if (error) - return "synthesizeSpeechConfig." + error; + if (message.autoExpansionMode != null && message.hasOwnProperty("autoExpansionMode")) + switch (message.autoExpansionMode) { + default: + return "autoExpansionMode: enum value expected"; + case 0: + case 1: + break; + } + if (message.entities != null && message.hasOwnProperty("entities")) { + if (!Array.isArray(message.entities)) + return "entities: array expected"; + for (var i = 0; i < message.entities.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.verify(message.entities[i]); + if (error) + return "entities." + error; + } + } + if (message.excludedPhrases != null && message.hasOwnProperty("excludedPhrases")) { + if (!Array.isArray(message.excludedPhrases)) + return "excludedPhrases: array expected"; + for (var i = 0; i < message.excludedPhrases.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.verify(message.excludedPhrases[i]); + if (error) + return "excludedPhrases." + error; + } } + if (message.enableFuzzyExtraction != null && message.hasOwnProperty("enableFuzzyExtraction")) + if (typeof message.enableFuzzyExtraction !== "boolean") + return "enableFuzzyExtraction: boolean expected"; + if (message.redact != null && message.hasOwnProperty("redact")) + if (typeof message.redact !== "boolean") + return "redact: boolean expected"; return null; }; /** - * Creates an OutputAudioConfig message from a plain object. Also converts values to their respective internal types. + * Creates an EntityType message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} OutputAudioConfig + * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType} EntityType */ - OutputAudioConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig) + EntityType.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.EntityType) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig(); - switch (object.audioEncoding) { - case "OUTPUT_AUDIO_ENCODING_UNSPECIFIED": + var message = new $root.google.cloud.dialogflow.cx.v3beta1.EntityType(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + switch (object.kind) { + case "KIND_UNSPECIFIED": case 0: - message.audioEncoding = 0; + message.kind = 0; break; - case "OUTPUT_AUDIO_ENCODING_LINEAR_16": + case "KIND_MAP": case 1: - message.audioEncoding = 1; + message.kind = 1; break; - case "OUTPUT_AUDIO_ENCODING_MP3": + case "KIND_LIST": case 2: - message.audioEncoding = 2; - break; - case "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS": - case 4: - message.audioEncoding = 4; + message.kind = 2; break; - case "OUTPUT_AUDIO_ENCODING_OGG_OPUS": + case "KIND_REGEXP": case 3: - message.audioEncoding = 3; + message.kind = 3; break; - case "OUTPUT_AUDIO_ENCODING_MULAW": - case 5: - message.audioEncoding = 5; + } + switch (object.autoExpansionMode) { + case "AUTO_EXPANSION_MODE_UNSPECIFIED": + case 0: + message.autoExpansionMode = 0; + break; + case "AUTO_EXPANSION_MODE_DEFAULT": + case 1: + message.autoExpansionMode = 1; break; } - if (object.sampleRateHertz != null) - message.sampleRateHertz = object.sampleRateHertz | 0; - if (object.synthesizeSpeechConfig != null) { - if (typeof object.synthesizeSpeechConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.synthesizeSpeechConfig: object expected"); - message.synthesizeSpeechConfig = $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.fromObject(object.synthesizeSpeechConfig); + if (object.entities) { + if (!Array.isArray(object.entities)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.EntityType.entities: array expected"); + message.entities = []; + for (var i = 0; i < object.entities.length; ++i) { + if (typeof object.entities[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.EntityType.entities: object expected"); + message.entities[i] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.fromObject(object.entities[i]); + } + } + if (object.excludedPhrases) { + if (!Array.isArray(object.excludedPhrases)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.EntityType.excludedPhrases: array expected"); + message.excludedPhrases = []; + for (var i = 0; i < object.excludedPhrases.length; ++i) { + if (typeof object.excludedPhrases[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.EntityType.excludedPhrases: object expected"); + message.excludedPhrases[i] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.fromObject(object.excludedPhrases[i]); + } } + if (object.enableFuzzyExtraction != null) + message.enableFuzzyExtraction = Boolean(object.enableFuzzyExtraction); + if (object.redact != null) + message.redact = Boolean(object.redact); return message; }; /** - * Creates a plain object from an OutputAudioConfig message. Also converts values to other types if specified. + * Creates a plain object from an EntityType message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType * @static - * @param {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} message OutputAudioConfig + * @param {google.cloud.dialogflow.cx.v3beta1.EntityType} message EntityType * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - OutputAudioConfig.toObject = function toObject(message, options) { + EntityType.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.entities = []; + object.excludedPhrases = []; + } if (options.defaults) { - object.audioEncoding = options.enums === String ? "OUTPUT_AUDIO_ENCODING_UNSPECIFIED" : 0; - object.sampleRateHertz = 0; - object.synthesizeSpeechConfig = null; + object.name = ""; + object.displayName = ""; + object.kind = options.enums === String ? "KIND_UNSPECIFIED" : 0; + object.autoExpansionMode = options.enums === String ? "AUTO_EXPANSION_MODE_UNSPECIFIED" : 0; + object.enableFuzzyExtraction = false; + object.redact = false; } - if (message.audioEncoding != null && message.hasOwnProperty("audioEncoding")) - object.audioEncoding = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding[message.audioEncoding] : message.audioEncoding; - if (message.sampleRateHertz != null && message.hasOwnProperty("sampleRateHertz")) - object.sampleRateHertz = message.sampleRateHertz; - if (message.synthesizeSpeechConfig != null && message.hasOwnProperty("synthesizeSpeechConfig")) - object.synthesizeSpeechConfig = $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.toObject(message.synthesizeSpeechConfig, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.kind != null && message.hasOwnProperty("kind")) + object.kind = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Kind[message.kind] : message.kind; + if (message.autoExpansionMode != null && message.hasOwnProperty("autoExpansionMode")) + object.autoExpansionMode = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode[message.autoExpansionMode] : message.autoExpansionMode; + if (message.entities && message.entities.length) { + object.entities = []; + for (var j = 0; j < message.entities.length; ++j) + object.entities[j] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.toObject(message.entities[j], options); + } + if (message.excludedPhrases && message.excludedPhrases.length) { + object.excludedPhrases = []; + for (var j = 0; j < message.excludedPhrases.length; ++j) + object.excludedPhrases[j] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.toObject(message.excludedPhrases[j], options); + } + if (message.enableFuzzyExtraction != null && message.hasOwnProperty("enableFuzzyExtraction")) + object.enableFuzzyExtraction = message.enableFuzzyExtraction; + if (message.redact != null && message.hasOwnProperty("redact")) + object.redact = message.redact; return object; }; /** - * Converts this OutputAudioConfig to JSON. + * Converts this EntityType to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType * @instance * @returns {Object.} JSON object */ - OutputAudioConfig.prototype.toJSON = function toJSON() { + EntityType.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return OutputAudioConfig; - })(); + EntityType.Entity = (function() { + + /** + * Properties of an Entity. + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @interface IEntity + * @property {string|null} [value] Entity value + * @property {Array.|null} [synonyms] Entity synonyms + */ + + /** + * Constructs a new Entity. + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @classdesc Represents an Entity. + * @implements IEntity + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity=} [properties] Properties to set + */ + function Entity(properties) { + this.synonyms = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Entity value. + * @member {string} value + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity + * @instance + */ + Entity.prototype.value = ""; + + /** + * Entity synonyms. + * @member {Array.} synonyms + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity + * @instance + */ + Entity.prototype.synonyms = $util.emptyArray; + + /** + * Creates a new Entity instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.Entity} Entity instance + */ + Entity.create = function create(properties) { + return new Entity(properties); + }; + + /** + * Encodes the specified Entity message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity} message Entity message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Entity.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.value); + if (message.synonyms != null && message.synonyms.length) + for (var i = 0; i < message.synonyms.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.synonyms[i]); + return writer; + }; + + /** + * Encodes the specified Entity message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity} message Entity message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Entity.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Entity message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.Entity} Entity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Entity.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.string(); + break; + case 2: + if (!(message.synonyms && message.synonyms.length)) + message.synonyms = []; + message.synonyms.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Entity message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.Entity} Entity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Entity.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * SsmlVoiceGender enum. - * @name google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender - * @enum {number} - * @property {number} SSML_VOICE_GENDER_UNSPECIFIED=0 SSML_VOICE_GENDER_UNSPECIFIED value - * @property {number} SSML_VOICE_GENDER_MALE=1 SSML_VOICE_GENDER_MALE value - * @property {number} SSML_VOICE_GENDER_FEMALE=2 SSML_VOICE_GENDER_FEMALE value - * @property {number} SSML_VOICE_GENDER_NEUTRAL=3 SSML_VOICE_GENDER_NEUTRAL value - */ - v3beta1.SsmlVoiceGender = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "SSML_VOICE_GENDER_UNSPECIFIED"] = 0; - values[valuesById[1] = "SSML_VOICE_GENDER_MALE"] = 1; - values[valuesById[2] = "SSML_VOICE_GENDER_FEMALE"] = 2; - values[valuesById[3] = "SSML_VOICE_GENDER_NEUTRAL"] = 3; - return values; - })(); + /** + * Verifies an Entity message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Entity.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; + if (message.synonyms != null && message.hasOwnProperty("synonyms")) { + if (!Array.isArray(message.synonyms)) + return "synonyms: array expected"; + for (var i = 0; i < message.synonyms.length; ++i) + if (!$util.isString(message.synonyms[i])) + return "synonyms: string[] expected"; + } + return null; + }; - /** - * OutputAudioEncoding enum. - * @name google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding - * @enum {number} - * @property {number} OUTPUT_AUDIO_ENCODING_UNSPECIFIED=0 OUTPUT_AUDIO_ENCODING_UNSPECIFIED value - * @property {number} OUTPUT_AUDIO_ENCODING_LINEAR_16=1 OUTPUT_AUDIO_ENCODING_LINEAR_16 value - * @property {number} OUTPUT_AUDIO_ENCODING_MP3=2 OUTPUT_AUDIO_ENCODING_MP3 value - * @property {number} OUTPUT_AUDIO_ENCODING_MP3_64_KBPS=4 OUTPUT_AUDIO_ENCODING_MP3_64_KBPS value - * @property {number} OUTPUT_AUDIO_ENCODING_OGG_OPUS=3 OUTPUT_AUDIO_ENCODING_OGG_OPUS value - * @property {number} OUTPUT_AUDIO_ENCODING_MULAW=5 OUTPUT_AUDIO_ENCODING_MULAW value - */ - v3beta1.OutputAudioEncoding = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "OUTPUT_AUDIO_ENCODING_UNSPECIFIED"] = 0; - values[valuesById[1] = "OUTPUT_AUDIO_ENCODING_LINEAR_16"] = 1; - values[valuesById[2] = "OUTPUT_AUDIO_ENCODING_MP3"] = 2; - values[valuesById[4] = "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS"] = 4; - values[valuesById[3] = "OUTPUT_AUDIO_ENCODING_OGG_OPUS"] = 3; - values[valuesById[5] = "OUTPUT_AUDIO_ENCODING_MULAW"] = 5; - return values; - })(); + /** + * Creates an Entity message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.Entity} Entity + */ + Entity.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity(); + if (object.value != null) + message.value = String(object.value); + if (object.synonyms) { + if (!Array.isArray(object.synonyms)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.synonyms: array expected"); + message.synonyms = []; + for (var i = 0; i < object.synonyms.length; ++i) + message.synonyms[i] = String(object.synonyms[i]); + } + return message; + }; - v3beta1.EntityTypes = (function() { + /** + * Creates a plain object from an Entity message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.Entity} message Entity + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Entity.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.synonyms = []; + if (options.defaults) + object.value = ""; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; + if (message.synonyms && message.synonyms.length) { + object.synonyms = []; + for (var j = 0; j < message.synonyms.length; ++j) + object.synonyms[j] = message.synonyms[j]; + } + return object; + }; - /** - * Constructs a new EntityTypes service. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an EntityTypes - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function EntityTypes(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } + /** + * Converts this Entity to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity + * @instance + * @returns {Object.} JSON object + */ + Entity.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - (EntityTypes.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = EntityTypes; + return Entity; + })(); - /** - * Creates new EntityTypes service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {EntityTypes} RPC service. Useful where requests and/or responses are streamed. - */ - EntityTypes.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; + EntityType.ExcludedPhrase = (function() { - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#listEntityTypes}. - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes - * @typedef ListEntityTypesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse} [response] ListEntityTypesResponse - */ + /** + * Properties of an ExcludedPhrase. + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @interface IExcludedPhrase + * @property {string|null} [value] ExcludedPhrase value + */ - /** - * Calls ListEntityTypes. - * @function listEntityTypes - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest} request ListEntityTypesRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.EntityTypes.ListEntityTypesCallback} callback Node-style callback called with the error, if any, and ListEntityTypesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(EntityTypes.prototype.listEntityTypes = function listEntityTypes(request, callback) { - return this.rpcCall(listEntityTypes, $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse, request, callback); - }, "name", { value: "ListEntityTypes" }); + /** + * Constructs a new ExcludedPhrase. + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @classdesc Represents an ExcludedPhrase. + * @implements IExcludedPhrase + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase=} [properties] Properties to set + */ + function ExcludedPhrase(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Calls ListEntityTypes. - * @function listEntityTypes - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest} request ListEntityTypesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * ExcludedPhrase value. + * @member {string} value + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @instance + */ + ExcludedPhrase.prototype.value = ""; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#getEntityType}. - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes - * @typedef GetEntityTypeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType} [response] EntityType - */ + /** + * Creates a new ExcludedPhrase instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase} ExcludedPhrase instance + */ + ExcludedPhrase.create = function create(properties) { + return new ExcludedPhrase(properties); + }; - /** - * Calls GetEntityType. - * @function getEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest} request GetEntityTypeRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.EntityTypes.GetEntityTypeCallback} callback Node-style callback called with the error, if any, and EntityType - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(EntityTypes.prototype.getEntityType = function getEntityType(request, callback) { - return this.rpcCall(getEntityType, $root.google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3beta1.EntityType, request, callback); - }, "name", { value: "GetEntityType" }); + /** + * Encodes the specified ExcludedPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase} message ExcludedPhrase message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExcludedPhrase.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.value); + return writer; + }; - /** - * Calls GetEntityType. - * @function getEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest} request GetEntityTypeRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Encodes the specified ExcludedPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase} message ExcludedPhrase message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExcludedPhrase.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#createEntityType}. - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes - * @typedef CreateEntityTypeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType} [response] EntityType - */ + /** + * Decodes an ExcludedPhrase message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase} ExcludedPhrase + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExcludedPhrase.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Calls CreateEntityType. - * @function createEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest} request CreateEntityTypeRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.EntityTypes.CreateEntityTypeCallback} callback Node-style callback called with the error, if any, and EntityType - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(EntityTypes.prototype.createEntityType = function createEntityType(request, callback) { - return this.rpcCall(createEntityType, $root.google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3beta1.EntityType, request, callback); - }, "name", { value: "CreateEntityType" }); + /** + * Decodes an ExcludedPhrase message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase} ExcludedPhrase + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExcludedPhrase.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Calls CreateEntityType. - * @function createEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest} request CreateEntityTypeRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Verifies an ExcludedPhrase message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExcludedPhrase.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; + return null; + }; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#updateEntityType}. - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes - * @typedef UpdateEntityTypeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType} [response] EntityType - */ + /** + * Creates an ExcludedPhrase message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase} ExcludedPhrase + */ + ExcludedPhrase.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase(); + if (object.value != null) + message.value = String(object.value); + return message; + }; - /** - * Calls UpdateEntityType. - * @function updateEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest} request UpdateEntityTypeRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.EntityTypes.UpdateEntityTypeCallback} callback Node-style callback called with the error, if any, and EntityType - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(EntityTypes.prototype.updateEntityType = function updateEntityType(request, callback) { - return this.rpcCall(updateEntityType, $root.google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3beta1.EntityType, request, callback); - }, "name", { value: "UpdateEntityType" }); + /** + * Creates a plain object from an ExcludedPhrase message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase} message ExcludedPhrase + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExcludedPhrase.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.value = ""; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; + return object; + }; - /** - * Calls UpdateEntityType. - * @function updateEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest} request UpdateEntityTypeRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Converts this ExcludedPhrase to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @instance + * @returns {Object.} JSON object + */ + ExcludedPhrase.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#deleteEntityType}. - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes - * @typedef DeleteEntityTypeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty - */ + return ExcludedPhrase; + })(); /** - * Calls DeleteEntityType. - * @function deleteEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest} request DeleteEntityTypeRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.EntityTypes.DeleteEntityTypeCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * Kind enum. + * @name google.cloud.dialogflow.cx.v3beta1.EntityType.Kind + * @enum {number} + * @property {number} KIND_UNSPECIFIED=0 KIND_UNSPECIFIED value + * @property {number} KIND_MAP=1 KIND_MAP value + * @property {number} KIND_LIST=2 KIND_LIST value + * @property {number} KIND_REGEXP=3 KIND_REGEXP value */ - Object.defineProperty(EntityTypes.prototype.deleteEntityType = function deleteEntityType(request, callback) { - return this.rpcCall(deleteEntityType, $root.google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteEntityType" }); + EntityType.Kind = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "KIND_UNSPECIFIED"] = 0; + values[valuesById[1] = "KIND_MAP"] = 1; + values[valuesById[2] = "KIND_LIST"] = 2; + values[valuesById[3] = "KIND_REGEXP"] = 3; + return values; + })(); /** - * Calls DeleteEntityType. - * @function deleteEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest} request DeleteEntityTypeRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * AutoExpansionMode enum. + * @name google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode + * @enum {number} + * @property {number} AUTO_EXPANSION_MODE_UNSPECIFIED=0 AUTO_EXPANSION_MODE_UNSPECIFIED value + * @property {number} AUTO_EXPANSION_MODE_DEFAULT=1 AUTO_EXPANSION_MODE_DEFAULT value */ + EntityType.AutoExpansionMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "AUTO_EXPANSION_MODE_UNSPECIFIED"] = 0; + values[valuesById[1] = "AUTO_EXPANSION_MODE_DEFAULT"] = 1; + return values; + })(); - return EntityTypes; + return EntityType; })(); - v3beta1.EntityType = (function() { + v3beta1.ListEntityTypesRequest = (function() { /** - * Properties of an EntityType. + * Properties of a ListEntityTypesRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IEntityType - * @property {string|null} [name] EntityType name - * @property {string|null} [displayName] EntityType displayName - * @property {google.cloud.dialogflow.cx.v3beta1.EntityType.Kind|null} [kind] EntityType kind - * @property {google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode|null} [autoExpansionMode] EntityType autoExpansionMode - * @property {Array.|null} [entities] EntityType entities - * @property {Array.|null} [excludedPhrases] EntityType excludedPhrases - * @property {boolean|null} [enableFuzzyExtraction] EntityType enableFuzzyExtraction - * @property {boolean|null} [redact] EntityType redact + * @interface IListEntityTypesRequest + * @property {string|null} [parent] ListEntityTypesRequest parent + * @property {string|null} [languageCode] ListEntityTypesRequest languageCode + * @property {number|null} [pageSize] ListEntityTypesRequest pageSize + * @property {string|null} [pageToken] ListEntityTypesRequest pageToken */ /** - * Constructs a new EntityType. + * Constructs a new ListEntityTypesRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an EntityType. - * @implements IEntityType + * @classdesc Represents a ListEntityTypesRequest. + * @implements IListEntityTypesRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IEntityType=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest=} [properties] Properties to set */ - function EntityType(properties) { - this.entities = []; - this.excludedPhrases = []; + function ListEntityTypesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -74283,172 +75280,114 @@ } /** - * EntityType name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType - * @instance - */ - EntityType.prototype.name = ""; - - /** - * EntityType displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType - * @instance - */ - EntityType.prototype.displayName = ""; - - /** - * EntityType kind. - * @member {google.cloud.dialogflow.cx.v3beta1.EntityType.Kind} kind - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType - * @instance - */ - EntityType.prototype.kind = 0; - - /** - * EntityType autoExpansionMode. - * @member {google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode} autoExpansionMode - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType - * @instance - */ - EntityType.prototype.autoExpansionMode = 0; - - /** - * EntityType entities. - * @member {Array.} entities - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * ListEntityTypesRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest * @instance */ - EntityType.prototype.entities = $util.emptyArray; + ListEntityTypesRequest.prototype.parent = ""; /** - * EntityType excludedPhrases. - * @member {Array.} excludedPhrases - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * ListEntityTypesRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest * @instance */ - EntityType.prototype.excludedPhrases = $util.emptyArray; + ListEntityTypesRequest.prototype.languageCode = ""; /** - * EntityType enableFuzzyExtraction. - * @member {boolean} enableFuzzyExtraction - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * ListEntityTypesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest * @instance */ - EntityType.prototype.enableFuzzyExtraction = false; + ListEntityTypesRequest.prototype.pageSize = 0; /** - * EntityType redact. - * @member {boolean} redact - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * ListEntityTypesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest * @instance */ - EntityType.prototype.redact = false; + ListEntityTypesRequest.prototype.pageToken = ""; /** - * Creates a new EntityType instance using the specified properties. + * Creates a new ListEntityTypesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEntityType=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType} EntityType instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest} ListEntityTypesRequest instance */ - EntityType.create = function create(properties) { - return new EntityType(properties); + ListEntityTypesRequest.create = function create(properties) { + return new ListEntityTypesRequest(properties); }; /** - * Encodes the specified EntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.verify|verify} messages. + * Encodes the specified ListEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEntityType} message EntityType message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest} message ListEntityTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EntityType.encode = function encode(message, writer) { + ListEntityTypesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.kind); - if (message.autoExpansionMode != null && Object.hasOwnProperty.call(message, "autoExpansionMode")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.autoExpansionMode); - if (message.entities != null && message.entities.length) - for (var i = 0; i < message.entities.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.encode(message.entities[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.excludedPhrases != null && message.excludedPhrases.length) - for (var i = 0; i < message.excludedPhrases.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.encode(message.excludedPhrases[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.enableFuzzyExtraction != null && Object.hasOwnProperty.call(message, "enableFuzzyExtraction")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.enableFuzzyExtraction); - if (message.redact != null && Object.hasOwnProperty.call(message, "redact")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.redact); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); return writer; }; /** - * Encodes the specified EntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.verify|verify} messages. + * Encodes the specified ListEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEntityType} message EntityType message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest} message ListEntityTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EntityType.encodeDelimited = function encodeDelimited(message, writer) { + ListEntityTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EntityType message from the specified reader or buffer. + * Decodes a ListEntityTypesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType} EntityType + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest} ListEntityTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EntityType.decode = function decode(reader, length) { + ListEntityTypesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.EntityType(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); break; case 2: - message.displayName = reader.string(); + message.languageCode = reader.string(); break; case 3: - message.kind = reader.int32(); + message.pageSize = reader.int32(); break; case 4: - message.autoExpansionMode = reader.int32(); - break; - case 5: - if (!(message.entities && message.entities.length)) - message.entities = []; - message.entities.push($root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.decode(reader, reader.uint32())); - break; - case 6: - if (!(message.excludedPhrases && message.excludedPhrases.length)) - message.excludedPhrases = []; - message.excludedPhrases.push($root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.decode(reader, reader.uint32())); - break; - case 7: - message.enableFuzzyExtraction = reader.bool(); - break; - case 9: - message.redact = reader.bool(); + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -74459,684 +75398,575 @@ }; /** - * Decodes an EntityType message from the specified reader or buffer, length delimited. + * Decodes a ListEntityTypesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType} EntityType + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest} ListEntityTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EntityType.decodeDelimited = function decodeDelimited(reader) { + ListEntityTypesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EntityType message. + * Verifies a ListEntityTypesRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EntityType.verify = function verify(message) { + ListEntityTypesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.kind != null && message.hasOwnProperty("kind")) - switch (message.kind) { - default: - return "kind: enum value expected"; - case 0: + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + return null; + }; + + /** + * Creates a ListEntityTypesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest} ListEntityTypesRequest + */ + ListEntityTypesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + return message; + }; + + /** + * Creates a plain object from a ListEntityTypesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest} message ListEntityTypesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListEntityTypesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.languageCode = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + return object; + }; + + /** + * Converts this ListEntityTypesRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest + * @instance + * @returns {Object.} JSON object + */ + ListEntityTypesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListEntityTypesRequest; + })(); + + v3beta1.ListEntityTypesResponse = (function() { + + /** + * Properties of a ListEntityTypesResponse. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IListEntityTypesResponse + * @property {Array.|null} [entityTypes] ListEntityTypesResponse entityTypes + * @property {string|null} [nextPageToken] ListEntityTypesResponse nextPageToken + */ + + /** + * Constructs a new ListEntityTypesResponse. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a ListEntityTypesResponse. + * @implements IListEntityTypesResponse + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse=} [properties] Properties to set + */ + function ListEntityTypesResponse(properties) { + this.entityTypes = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListEntityTypesResponse entityTypes. + * @member {Array.} entityTypes + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @instance + */ + ListEntityTypesResponse.prototype.entityTypes = $util.emptyArray; + + /** + * ListEntityTypesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @instance + */ + ListEntityTypesResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListEntityTypesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse} ListEntityTypesResponse instance + */ + ListEntityTypesResponse.create = function create(properties) { + return new ListEntityTypesResponse(properties); + }; + + /** + * Encodes the specified ListEntityTypesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse} message ListEntityTypesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListEntityTypesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.entityTypes != null && message.entityTypes.length) + for (var i = 0; i < message.entityTypes.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.EntityType.encode(message.entityTypes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; + + /** + * Encodes the specified ListEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse} message ListEntityTypesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListEntityTypesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListEntityTypesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse} ListEntityTypesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListEntityTypesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { case 1: + if (!(message.entityTypes && message.entityTypes.length)) + message.entityTypes = []; + message.entityTypes.push($root.google.cloud.dialogflow.cx.v3beta1.EntityType.decode(reader, reader.uint32())); + break; case 2: - case 3: + message.nextPageToken = reader.string(); break; - } - if (message.autoExpansionMode != null && message.hasOwnProperty("autoExpansionMode")) - switch (message.autoExpansionMode) { default: - return "autoExpansionMode: enum value expected"; - case 0: - case 1: + reader.skipType(tag & 7); break; } - if (message.entities != null && message.hasOwnProperty("entities")) { - if (!Array.isArray(message.entities)) - return "entities: array expected"; - for (var i = 0; i < message.entities.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.verify(message.entities[i]); - if (error) - return "entities." + error; - } - } - if (message.excludedPhrases != null && message.hasOwnProperty("excludedPhrases")) { - if (!Array.isArray(message.excludedPhrases)) - return "excludedPhrases: array expected"; - for (var i = 0; i < message.excludedPhrases.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.verify(message.excludedPhrases[i]); - if (error) - return "excludedPhrases." + error; - } } - if (message.enableFuzzyExtraction != null && message.hasOwnProperty("enableFuzzyExtraction")) - if (typeof message.enableFuzzyExtraction !== "boolean") - return "enableFuzzyExtraction: boolean expected"; - if (message.redact != null && message.hasOwnProperty("redact")) - if (typeof message.redact !== "boolean") - return "redact: boolean expected"; - return null; + return message; }; /** - * Creates an EntityType message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * Decodes a ListEntityTypesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType} EntityType + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse} ListEntityTypesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EntityType.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.EntityType) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.EntityType(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - switch (object.kind) { - case "KIND_UNSPECIFIED": - case 0: - message.kind = 0; - break; - case "KIND_MAP": - case 1: - message.kind = 1; - break; - case "KIND_LIST": - case 2: - message.kind = 2; - break; - case "KIND_REGEXP": - case 3: - message.kind = 3; - break; - } - switch (object.autoExpansionMode) { - case "AUTO_EXPANSION_MODE_UNSPECIFIED": - case 0: - message.autoExpansionMode = 0; - break; - case "AUTO_EXPANSION_MODE_DEFAULT": - case 1: - message.autoExpansionMode = 1; - break; - } - if (object.entities) { - if (!Array.isArray(object.entities)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.EntityType.entities: array expected"); - message.entities = []; - for (var i = 0; i < object.entities.length; ++i) { - if (typeof object.entities[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.EntityType.entities: object expected"); - message.entities[i] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.fromObject(object.entities[i]); + ListEntityTypesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListEntityTypesResponse message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListEntityTypesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.entityTypes != null && message.hasOwnProperty("entityTypes")) { + if (!Array.isArray(message.entityTypes)) + return "entityTypes: array expected"; + for (var i = 0; i < message.entityTypes.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.verify(message.entityTypes[i]); + if (error) + return "entityTypes." + error; } } - if (object.excludedPhrases) { - if (!Array.isArray(object.excludedPhrases)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.EntityType.excludedPhrases: array expected"); - message.excludedPhrases = []; - for (var i = 0; i < object.excludedPhrases.length; ++i) { - if (typeof object.excludedPhrases[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.EntityType.excludedPhrases: object expected"); - message.excludedPhrases[i] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.fromObject(object.excludedPhrases[i]); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListEntityTypesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse} ListEntityTypesResponse + */ + ListEntityTypesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse(); + if (object.entityTypes) { + if (!Array.isArray(object.entityTypes)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse.entityTypes: array expected"); + message.entityTypes = []; + for (var i = 0; i < object.entityTypes.length; ++i) { + if (typeof object.entityTypes[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse.entityTypes: object expected"); + message.entityTypes[i] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.fromObject(object.entityTypes[i]); } } - if (object.enableFuzzyExtraction != null) - message.enableFuzzyExtraction = Boolean(object.enableFuzzyExtraction); - if (object.redact != null) - message.redact = Boolean(object.redact); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an EntityType message. Also converts values to other types if specified. + * Creates a plain object from a ListEntityTypesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType} message EntityType + * @param {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse} message ListEntityTypesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EntityType.toObject = function toObject(message, options) { + ListEntityTypesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.entities = []; - object.excludedPhrases = []; - } - if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.kind = options.enums === String ? "KIND_UNSPECIFIED" : 0; - object.autoExpansionMode = options.enums === String ? "AUTO_EXPANSION_MODE_UNSPECIFIED" : 0; - object.enableFuzzyExtraction = false; - object.redact = false; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.kind != null && message.hasOwnProperty("kind")) - object.kind = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Kind[message.kind] : message.kind; - if (message.autoExpansionMode != null && message.hasOwnProperty("autoExpansionMode")) - object.autoExpansionMode = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode[message.autoExpansionMode] : message.autoExpansionMode; - if (message.entities && message.entities.length) { - object.entities = []; - for (var j = 0; j < message.entities.length; ++j) - object.entities[j] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.toObject(message.entities[j], options); - } - if (message.excludedPhrases && message.excludedPhrases.length) { - object.excludedPhrases = []; - for (var j = 0; j < message.excludedPhrases.length; ++j) - object.excludedPhrases[j] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.toObject(message.excludedPhrases[j], options); + if (options.arrays || options.defaults) + object.entityTypes = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.entityTypes && message.entityTypes.length) { + object.entityTypes = []; + for (var j = 0; j < message.entityTypes.length; ++j) + object.entityTypes[j] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.toObject(message.entityTypes[j], options); } - if (message.enableFuzzyExtraction != null && message.hasOwnProperty("enableFuzzyExtraction")) - object.enableFuzzyExtraction = message.enableFuzzyExtraction; - if (message.redact != null && message.hasOwnProperty("redact")) - object.redact = message.redact; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this EntityType to JSON. + * Converts this ListEntityTypesResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse * @instance * @returns {Object.} JSON object */ - EntityType.prototype.toJSON = function toJSON() { + ListEntityTypesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - EntityType.Entity = (function() { - - /** - * Properties of an Entity. - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType - * @interface IEntity - * @property {string|null} [value] Entity value - * @property {Array.|null} [synonyms] Entity synonyms - */ - - /** - * Constructs a new Entity. - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType - * @classdesc Represents an Entity. - * @implements IEntity - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity=} [properties] Properties to set - */ - function Entity(properties) { - this.synonyms = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Entity value. - * @member {string} value - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity - * @instance - */ - Entity.prototype.value = ""; - - /** - * Entity synonyms. - * @member {Array.} synonyms - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity - * @instance - */ - Entity.prototype.synonyms = $util.emptyArray; - - /** - * Creates a new Entity instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.Entity} Entity instance - */ - Entity.create = function create(properties) { - return new Entity(properties); - }; - - /** - * Encodes the specified Entity message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity} message Entity message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Entity.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.value); - if (message.synonyms != null && message.synonyms.length) - for (var i = 0; i < message.synonyms.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.synonyms[i]); - return writer; - }; - - /** - * Encodes the specified Entity message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity} message Entity message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Entity.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an Entity message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.Entity} Entity - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Entity.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.value = reader.string(); - break; - case 2: - if (!(message.synonyms && message.synonyms.length)) - message.synonyms = []; - message.synonyms.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an Entity message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.Entity} Entity - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Entity.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an Entity message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Entity.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - if (message.synonyms != null && message.hasOwnProperty("synonyms")) { - if (!Array.isArray(message.synonyms)) - return "synonyms: array expected"; - for (var i = 0; i < message.synonyms.length; ++i) - if (!$util.isString(message.synonyms[i])) - return "synonyms: string[] expected"; - } - return null; - }; - - /** - * Creates an Entity message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.Entity} Entity - */ - Entity.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity(); - if (object.value != null) - message.value = String(object.value); - if (object.synonyms) { - if (!Array.isArray(object.synonyms)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.synonyms: array expected"); - message.synonyms = []; - for (var i = 0; i < object.synonyms.length; ++i) - message.synonyms[i] = String(object.synonyms[i]); - } - return message; - }; - - /** - * Creates a plain object from an Entity message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.Entity} message Entity - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Entity.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.synonyms = []; - if (options.defaults) - object.value = ""; - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; - if (message.synonyms && message.synonyms.length) { - object.synonyms = []; - for (var j = 0; j < message.synonyms.length; ++j) - object.synonyms[j] = message.synonyms[j]; - } - return object; - }; - - /** - * Converts this Entity to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity - * @instance - * @returns {Object.} JSON object - */ - Entity.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Entity; - })(); - - EntityType.ExcludedPhrase = (function() { - - /** - * Properties of an ExcludedPhrase. - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType - * @interface IExcludedPhrase - * @property {string|null} [value] ExcludedPhrase value - */ + return ListEntityTypesResponse; + })(); - /** - * Constructs a new ExcludedPhrase. - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType - * @classdesc Represents an ExcludedPhrase. - * @implements IExcludedPhrase - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase=} [properties] Properties to set - */ - function ExcludedPhrase(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v3beta1.GetEntityTypeRequest = (function() { - /** - * ExcludedPhrase value. - * @member {string} value - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase - * @instance - */ - ExcludedPhrase.prototype.value = ""; + /** + * Properties of a GetEntityTypeRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IGetEntityTypeRequest + * @property {string|null} [name] GetEntityTypeRequest name + * @property {string|null} [languageCode] GetEntityTypeRequest languageCode + */ - /** - * Creates a new ExcludedPhrase instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase} ExcludedPhrase instance - */ - ExcludedPhrase.create = function create(properties) { - return new ExcludedPhrase(properties); - }; + /** + * Constructs a new GetEntityTypeRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a GetEntityTypeRequest. + * @implements IGetEntityTypeRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest=} [properties] Properties to set + */ + function GetEntityTypeRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified ExcludedPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase} message ExcludedPhrase message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExcludedPhrase.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.value); - return writer; - }; + /** + * GetEntityTypeRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @instance + */ + GetEntityTypeRequest.prototype.name = ""; - /** - * Encodes the specified ExcludedPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase} message ExcludedPhrase message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExcludedPhrase.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * GetEntityTypeRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @instance + */ + GetEntityTypeRequest.prototype.languageCode = ""; - /** - * Decodes an ExcludedPhrase message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase} ExcludedPhrase - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExcludedPhrase.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.value = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a new GetEntityTypeRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest} GetEntityTypeRequest instance + */ + GetEntityTypeRequest.create = function create(properties) { + return new GetEntityTypeRequest(properties); + }; - /** - * Decodes an ExcludedPhrase message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase} ExcludedPhrase - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExcludedPhrase.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified GetEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest} message GetEntityTypeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetEntityTypeRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); + return writer; + }; - /** - * Verifies an ExcludedPhrase message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExcludedPhrase.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - return null; - }; + /** + * Encodes the specified GetEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest} message GetEntityTypeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates an ExcludedPhrase message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase} ExcludedPhrase - */ - ExcludedPhrase.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase(); - if (object.value != null) - message.value = String(object.value); - return message; - }; + /** + * Decodes a GetEntityTypeRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest} GetEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetEntityTypeRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.languageCode = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a plain object from an ExcludedPhrase message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase} message ExcludedPhrase - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ExcludedPhrase.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.value = ""; - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; - return object; - }; + /** + * Decodes a GetEntityTypeRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest} GetEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Converts this ExcludedPhrase to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase - * @instance - * @returns {Object.} JSON object - */ - ExcludedPhrase.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Verifies a GetEntityTypeRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetEntityTypeRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + return null; + }; - return ExcludedPhrase; - })(); + /** + * Creates a GetEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest} GetEntityTypeRequest + */ + GetEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + return message; + }; /** - * Kind enum. - * @name google.cloud.dialogflow.cx.v3beta1.EntityType.Kind - * @enum {number} - * @property {number} KIND_UNSPECIFIED=0 KIND_UNSPECIFIED value - * @property {number} KIND_MAP=1 KIND_MAP value - * @property {number} KIND_LIST=2 KIND_LIST value - * @property {number} KIND_REGEXP=3 KIND_REGEXP value + * Creates a plain object from a GetEntityTypeRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest} message GetEntityTypeRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - EntityType.Kind = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "KIND_UNSPECIFIED"] = 0; - values[valuesById[1] = "KIND_MAP"] = 1; - values[valuesById[2] = "KIND_LIST"] = 2; - values[valuesById[3] = "KIND_REGEXP"] = 3; - return values; - })(); + GetEntityTypeRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.languageCode = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + return object; + }; /** - * AutoExpansionMode enum. - * @name google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode - * @enum {number} - * @property {number} AUTO_EXPANSION_MODE_UNSPECIFIED=0 AUTO_EXPANSION_MODE_UNSPECIFIED value - * @property {number} AUTO_EXPANSION_MODE_DEFAULT=1 AUTO_EXPANSION_MODE_DEFAULT value + * Converts this GetEntityTypeRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @instance + * @returns {Object.} JSON object */ - EntityType.AutoExpansionMode = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "AUTO_EXPANSION_MODE_UNSPECIFIED"] = 0; - values[valuesById[1] = "AUTO_EXPANSION_MODE_DEFAULT"] = 1; - return values; - })(); + GetEntityTypeRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return EntityType; + return GetEntityTypeRequest; })(); - v3beta1.ListEntityTypesRequest = (function() { + v3beta1.CreateEntityTypeRequest = (function() { /** - * Properties of a ListEntityTypesRequest. + * Properties of a CreateEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListEntityTypesRequest - * @property {string|null} [parent] ListEntityTypesRequest parent - * @property {string|null} [languageCode] ListEntityTypesRequest languageCode - * @property {number|null} [pageSize] ListEntityTypesRequest pageSize - * @property {string|null} [pageToken] ListEntityTypesRequest pageToken + * @interface ICreateEntityTypeRequest + * @property {string|null} [parent] CreateEntityTypeRequest parent + * @property {google.cloud.dialogflow.cx.v3beta1.IEntityType|null} [entityType] CreateEntityTypeRequest entityType + * @property {string|null} [languageCode] CreateEntityTypeRequest languageCode */ /** - * Constructs a new ListEntityTypesRequest. + * Constructs a new CreateEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListEntityTypesRequest. - * @implements IListEntityTypesRequest + * @classdesc Represents a CreateEntityTypeRequest. + * @implements ICreateEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest=} [properties] Properties to set */ - function ListEntityTypesRequest(properties) { + function CreateEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -75144,100 +75974,90 @@ } /** - * ListEntityTypesRequest parent. + * CreateEntityTypeRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest - * @instance - */ - ListEntityTypesRequest.prototype.parent = ""; - - /** - * ListEntityTypesRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest * @instance */ - ListEntityTypesRequest.prototype.languageCode = ""; + CreateEntityTypeRequest.prototype.parent = ""; /** - * ListEntityTypesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest + * CreateEntityTypeRequest entityType. + * @member {google.cloud.dialogflow.cx.v3beta1.IEntityType|null|undefined} entityType + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest * @instance */ - ListEntityTypesRequest.prototype.pageSize = 0; + CreateEntityTypeRequest.prototype.entityType = null; /** - * ListEntityTypesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest + * CreateEntityTypeRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest * @instance */ - ListEntityTypesRequest.prototype.pageToken = ""; + CreateEntityTypeRequest.prototype.languageCode = ""; /** - * Creates a new ListEntityTypesRequest instance using the specified properties. + * Creates a new CreateEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest} ListEntityTypesRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest} CreateEntityTypeRequest instance */ - ListEntityTypesRequest.create = function create(properties) { - return new ListEntityTypesRequest(properties); + CreateEntityTypeRequest.create = function create(properties) { + return new CreateEntityTypeRequest(properties); }; /** - * Encodes the specified ListEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest.verify|verify} messages. + * Encodes the specified CreateEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest} message ListEntityTypesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest} message CreateEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListEntityTypesRequest.encode = function encode(message, writer) { + CreateEntityTypeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) + $root.google.cloud.dialogflow.cx.v3beta1.EntityType.encode(message.entityType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); return writer; }; /** - * Encodes the specified ListEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest.verify|verify} messages. + * Encodes the specified CreateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest} message ListEntityTypesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest} message CreateEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListEntityTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListEntityTypesRequest message from the specified reader or buffer. + * Decodes a CreateEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest} ListEntityTypesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest} CreateEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListEntityTypesRequest.decode = function decode(reader, length) { + CreateEntityTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -75245,13 +76065,10 @@ message.parent = reader.string(); break; case 2: - message.languageCode = reader.string(); + message.entityType = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.decode(reader, reader.uint32()); break; case 3: - message.pageSize = reader.int32(); - break; - case 4: - message.pageToken = reader.string(); + message.languageCode = reader.string(); break; default: reader.skipType(tag & 7); @@ -75262,134 +76079,131 @@ }; /** - * Decodes a ListEntityTypesRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateEntityTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest} ListEntityTypesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest} CreateEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListEntityTypesRequest.decodeDelimited = function decodeDelimited(reader) { + CreateEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListEntityTypesRequest message. + * Verifies a CreateEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListEntityTypesRequest.verify = function verify(message) { + CreateEntityTypeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; + if (message.entityType != null && message.hasOwnProperty("entityType")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.verify(message.entityType); + if (error) + return "entityType." + error; + } if (message.languageCode != null && message.hasOwnProperty("languageCode")) if (!$util.isString(message.languageCode)) return "languageCode: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; return null; }; /** - * Creates a ListEntityTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest} ListEntityTypesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest} CreateEntityTypeRequest */ - ListEntityTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest) + CreateEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest(); if (object.parent != null) message.parent = String(object.parent); + if (object.entityType != null) { + if (typeof object.entityType !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest.entityType: object expected"); + message.entityType = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.fromObject(object.entityType); + } if (object.languageCode != null) message.languageCode = String(object.languageCode); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a ListEntityTypesRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest} message ListEntityTypesRequest + * @param {google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest} message CreateEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListEntityTypesRequest.toObject = function toObject(message, options) { + CreateEntityTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; + object.entityType = null; object.languageCode = ""; - object.pageSize = 0; - object.pageToken = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; + if (message.entityType != null && message.hasOwnProperty("entityType")) + object.entityType = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.toObject(message.entityType, options); if (message.languageCode != null && message.hasOwnProperty("languageCode")) object.languageCode = message.languageCode; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; return object; }; /** - * Converts this ListEntityTypesRequest to JSON. + * Converts this CreateEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest * @instance * @returns {Object.} JSON object */ - ListEntityTypesRequest.prototype.toJSON = function toJSON() { + CreateEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListEntityTypesRequest; + return CreateEntityTypeRequest; })(); - v3beta1.ListEntityTypesResponse = (function() { + v3beta1.UpdateEntityTypeRequest = (function() { /** - * Properties of a ListEntityTypesResponse. + * Properties of an UpdateEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListEntityTypesResponse - * @property {Array.|null} [entityTypes] ListEntityTypesResponse entityTypes - * @property {string|null} [nextPageToken] ListEntityTypesResponse nextPageToken + * @interface IUpdateEntityTypeRequest + * @property {google.cloud.dialogflow.cx.v3beta1.IEntityType|null} [entityType] UpdateEntityTypeRequest entityType + * @property {string|null} [languageCode] UpdateEntityTypeRequest languageCode + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateEntityTypeRequest updateMask */ /** - * Constructs a new ListEntityTypesResponse. + * Constructs a new UpdateEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListEntityTypesResponse. - * @implements IListEntityTypesResponse + * @classdesc Represents an UpdateEntityTypeRequest. + * @implements IUpdateEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest=} [properties] Properties to set */ - function ListEntityTypesResponse(properties) { - this.entityTypes = []; + function UpdateEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -75397,91 +76211,101 @@ } /** - * ListEntityTypesResponse entityTypes. - * @member {Array.} entityTypes - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * UpdateEntityTypeRequest entityType. + * @member {google.cloud.dialogflow.cx.v3beta1.IEntityType|null|undefined} entityType + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest * @instance */ - ListEntityTypesResponse.prototype.entityTypes = $util.emptyArray; + UpdateEntityTypeRequest.prototype.entityType = null; /** - * ListEntityTypesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * UpdateEntityTypeRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest * @instance */ - ListEntityTypesResponse.prototype.nextPageToken = ""; + UpdateEntityTypeRequest.prototype.languageCode = ""; /** - * Creates a new ListEntityTypesResponse instance using the specified properties. + * UpdateEntityTypeRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * @instance + */ + UpdateEntityTypeRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse} ListEntityTypesResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest} UpdateEntityTypeRequest instance */ - ListEntityTypesResponse.create = function create(properties) { - return new ListEntityTypesResponse(properties); + UpdateEntityTypeRequest.create = function create(properties) { + return new UpdateEntityTypeRequest(properties); }; /** - * Encodes the specified ListEntityTypesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse.verify|verify} messages. + * Encodes the specified UpdateEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse} message ListEntityTypesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest} message UpdateEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListEntityTypesResponse.encode = function encode(message, writer) { + UpdateEntityTypeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.entityTypes != null && message.entityTypes.length) - for (var i = 0; i < message.entityTypes.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.EntityType.encode(message.entityTypes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) + $root.google.cloud.dialogflow.cx.v3beta1.EntityType.encode(message.entityType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse.verify|verify} messages. + * Encodes the specified UpdateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse} message ListEntityTypesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest} message UpdateEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListEntityTypesResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpdateEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListEntityTypesResponse message from the specified reader or buffer. + * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse} ListEntityTypesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest} UpdateEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListEntityTypesResponse.decode = function decode(reader, length) { + UpdateEntityTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.entityTypes && message.entityTypes.length)) - message.entityTypes = []; - message.entityTypes.push($root.google.cloud.dialogflow.cx.v3beta1.EntityType.decode(reader, reader.uint32())); + message.entityType = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.decode(reader, reader.uint32()); break; case 2: - message.nextPageToken = reader.string(); + message.languageCode = reader.string(); + break; + case 3: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -75492,134 +76316,135 @@ }; /** - * Decodes a ListEntityTypesResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse} ListEntityTypesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest} UpdateEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListEntityTypesResponse.decodeDelimited = function decodeDelimited(reader) { + UpdateEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListEntityTypesResponse message. + * Verifies an UpdateEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListEntityTypesResponse.verify = function verify(message) { + UpdateEntityTypeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.entityTypes != null && message.hasOwnProperty("entityTypes")) { - if (!Array.isArray(message.entityTypes)) - return "entityTypes: array expected"; - for (var i = 0; i < message.entityTypes.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.verify(message.entityTypes[i]); - if (error) - return "entityTypes." + error; - } + if (message.entityType != null && message.hasOwnProperty("entityType")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.verify(message.entityType); + if (error) + return "entityType." + error; + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListEntityTypesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse} ListEntityTypesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest} UpdateEntityTypeRequest */ - ListEntityTypesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse) + UpdateEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse(); - if (object.entityTypes) { - if (!Array.isArray(object.entityTypes)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse.entityTypes: array expected"); - message.entityTypes = []; - for (var i = 0; i < object.entityTypes.length; ++i) { - if (typeof object.entityTypes[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse.entityTypes: object expected"); - message.entityTypes[i] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.fromObject(object.entityTypes[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest(); + if (object.entityType != null) { + if (typeof object.entityType !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest.entityType: object expected"); + message.entityType = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.fromObject(object.entityType); + } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListEntityTypesResponse message. Also converts values to other types if specified. + * Creates a plain object from an UpdateEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse} message ListEntityTypesResponse + * @param {google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest} message UpdateEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListEntityTypesResponse.toObject = function toObject(message, options) { + UpdateEntityTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.entityTypes = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.entityTypes && message.entityTypes.length) { - object.entityTypes = []; - for (var j = 0; j < message.entityTypes.length; ++j) - object.entityTypes[j] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.toObject(message.entityTypes[j], options); + if (options.defaults) { + object.entityType = null; + object.languageCode = ""; + object.updateMask = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.entityType != null && message.hasOwnProperty("entityType")) + object.entityType = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.toObject(message.entityType, options); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this ListEntityTypesResponse to JSON. + * Converts this UpdateEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest * @instance * @returns {Object.} JSON object */ - ListEntityTypesResponse.prototype.toJSON = function toJSON() { + UpdateEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListEntityTypesResponse; + return UpdateEntityTypeRequest; })(); - v3beta1.GetEntityTypeRequest = (function() { + v3beta1.DeleteEntityTypeRequest = (function() { /** - * Properties of a GetEntityTypeRequest. + * Properties of a DeleteEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetEntityTypeRequest - * @property {string|null} [name] GetEntityTypeRequest name - * @property {string|null} [languageCode] GetEntityTypeRequest languageCode + * @interface IDeleteEntityTypeRequest + * @property {string|null} [name] DeleteEntityTypeRequest name + * @property {boolean|null} [force] DeleteEntityTypeRequest force */ /** - * Constructs a new GetEntityTypeRequest. + * Constructs a new DeleteEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GetEntityTypeRequest. - * @implements IGetEntityTypeRequest + * @classdesc Represents a DeleteEntityTypeRequest. + * @implements IDeleteEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest=} [properties] Properties to set */ - function GetEntityTypeRequest(properties) { + function DeleteEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -75627,80 +76452,80 @@ } /** - * GetEntityTypeRequest name. + * DeleteEntityTypeRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest * @instance */ - GetEntityTypeRequest.prototype.name = ""; + DeleteEntityTypeRequest.prototype.name = ""; /** - * GetEntityTypeRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * DeleteEntityTypeRequest force. + * @member {boolean} force + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest * @instance */ - GetEntityTypeRequest.prototype.languageCode = ""; + DeleteEntityTypeRequest.prototype.force = false; /** - * Creates a new GetEntityTypeRequest instance using the specified properties. + * Creates a new DeleteEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest} GetEntityTypeRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest} DeleteEntityTypeRequest instance */ - GetEntityTypeRequest.create = function create(properties) { - return new GetEntityTypeRequest(properties); + DeleteEntityTypeRequest.create = function create(properties) { + return new DeleteEntityTypeRequest(properties); }; /** - * Encodes the specified GetEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest.verify|verify} messages. + * Encodes the specified DeleteEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest} message GetEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest} message DeleteEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetEntityTypeRequest.encode = function encode(message, writer) { + DeleteEntityTypeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); return writer; }; /** - * Encodes the specified GetEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest.verify|verify} messages. + * Encodes the specified DeleteEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest} message GetEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest} message DeleteEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetEntityTypeRequest message from the specified reader or buffer. + * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest} GetEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest} DeleteEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetEntityTypeRequest.decode = function decode(reader, length) { + DeleteEntityTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -75708,7 +76533,7 @@ message.name = reader.string(); break; case 2: - message.languageCode = reader.string(); + message.force = reader.bool(); break; default: reader.skipType(tag & 7); @@ -75719,118 +76544,354 @@ }; /** - * Decodes a GetEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest} GetEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest} DeleteEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetEntityTypeRequest message. + * Verifies a DeleteEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetEntityTypeRequest.verify = function verify(message) { + DeleteEntityTypeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; return null; }; /** - * Creates a GetEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest} GetEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest} DeleteEntityTypeRequest */ - GetEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest) + DeleteEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest(); if (object.name != null) message.name = String(object.name); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); + if (object.force != null) + message.force = Boolean(object.force); return message; }; /** - * Creates a plain object from a GetEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest} message GetEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest} message DeleteEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetEntityTypeRequest.toObject = function toObject(message, options) { + DeleteEntityTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.name = ""; - object.languageCode = ""; + object.force = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; return object; }; /** - * Converts this GetEntityTypeRequest to JSON. + * Converts this DeleteEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest * @instance * @returns {Object.} JSON object */ - GetEntityTypeRequest.prototype.toJSON = function toJSON() { + DeleteEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetEntityTypeRequest; + return DeleteEntityTypeRequest; })(); - v3beta1.CreateEntityTypeRequest = (function() { + v3beta1.Environments = (function() { /** - * Properties of a CreateEntityTypeRequest. + * Constructs a new Environments service. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ICreateEntityTypeRequest - * @property {string|null} [parent] CreateEntityTypeRequest parent - * @property {google.cloud.dialogflow.cx.v3beta1.IEntityType|null} [entityType] CreateEntityTypeRequest entityType - * @property {string|null} [languageCode] CreateEntityTypeRequest languageCode + * @classdesc Represents an Environments + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function Environments(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Environments.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Environments; + + /** + * Creates new Environments service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {Environments} RPC service. Useful where requests and/or responses are streamed. + */ + Environments.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#listEnvironments}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @typedef ListEnvironmentsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse} [response] ListEnvironmentsResponse */ /** - * Constructs a new CreateEntityTypeRequest. + * Calls ListEnvironments. + * @function listEnvironments + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest} request ListEnvironmentsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Environments.ListEnvironmentsCallback} callback Node-style callback called with the error, if any, and ListEnvironmentsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.listEnvironments = function listEnvironments(request, callback) { + return this.rpcCall(listEnvironments, $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse, request, callback); + }, "name", { value: "ListEnvironments" }); + + /** + * Calls ListEnvironments. + * @function listEnvironments + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest} request ListEnvironmentsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#getEnvironment}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @typedef GetEnvironmentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Environment} [response] Environment + */ + + /** + * Calls GetEnvironment. + * @function getEnvironment + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest} request GetEnvironmentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Environments.GetEnvironmentCallback} callback Node-style callback called with the error, if any, and Environment + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.getEnvironment = function getEnvironment(request, callback) { + return this.rpcCall(getEnvironment, $root.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Environment, request, callback); + }, "name", { value: "GetEnvironment" }); + + /** + * Calls GetEnvironment. + * @function getEnvironment + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest} request GetEnvironmentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#createEnvironment}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @typedef CreateEnvironmentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls CreateEnvironment. + * @function createEnvironment + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest} request CreateEnvironmentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Environments.CreateEnvironmentCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.createEnvironment = function createEnvironment(request, callback) { + return this.rpcCall(createEnvironment, $root.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateEnvironment" }); + + /** + * Calls CreateEnvironment. + * @function createEnvironment + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest} request CreateEnvironmentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#updateEnvironment}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @typedef UpdateEnvironmentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls UpdateEnvironment. + * @function updateEnvironment + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest} request UpdateEnvironmentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Environments.UpdateEnvironmentCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.updateEnvironment = function updateEnvironment(request, callback) { + return this.rpcCall(updateEnvironment, $root.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdateEnvironment" }); + + /** + * Calls UpdateEnvironment. + * @function updateEnvironment + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest} request UpdateEnvironmentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#deleteEnvironment}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @typedef DeleteEnvironmentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteEnvironment. + * @function deleteEnvironment + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest} request DeleteEnvironmentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Environments.DeleteEnvironmentCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.deleteEnvironment = function deleteEnvironment(request, callback) { + return this.rpcCall(deleteEnvironment, $root.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteEnvironment" }); + + /** + * Calls DeleteEnvironment. + * @function deleteEnvironment + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest} request DeleteEnvironmentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#lookupEnvironmentHistory}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @typedef LookupEnvironmentHistoryCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse} [response] LookupEnvironmentHistoryResponse + */ + + /** + * Calls LookupEnvironmentHistory. + * @function lookupEnvironmentHistory + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest} request LookupEnvironmentHistoryRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Environments.LookupEnvironmentHistoryCallback} callback Node-style callback called with the error, if any, and LookupEnvironmentHistoryResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.lookupEnvironmentHistory = function lookupEnvironmentHistory(request, callback) { + return this.rpcCall(lookupEnvironmentHistory, $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest, $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse, request, callback); + }, "name", { value: "LookupEnvironmentHistory" }); + + /** + * Calls LookupEnvironmentHistory. + * @function lookupEnvironmentHistory + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest} request LookupEnvironmentHistoryRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Environments; + })(); + + v3beta1.Environment = (function() { + + /** + * Properties of an Environment. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a CreateEntityTypeRequest. - * @implements ICreateEntityTypeRequest + * @interface IEnvironment + * @property {string|null} [name] Environment name + * @property {string|null} [displayName] Environment displayName + * @property {string|null} [description] Environment description + * @property {Array.|null} [versionConfigs] Environment versionConfigs + * @property {google.protobuf.ITimestamp|null} [updateTime] Environment updateTime + */ + + /** + * Constructs a new Environment. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents an Environment. + * @implements IEnvironment * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IEnvironment=} [properties] Properties to set */ - function CreateEntityTypeRequest(properties) { + function Environment(properties) { + this.versionConfigs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -75838,101 +76899,130 @@ } /** - * CreateEntityTypeRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * Environment name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @instance + */ + Environment.prototype.name = ""; + + /** + * Environment displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @instance + */ + Environment.prototype.displayName = ""; + + /** + * Environment description. + * @member {string} description + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @instance */ - CreateEntityTypeRequest.prototype.parent = ""; + Environment.prototype.description = ""; /** - * CreateEntityTypeRequest entityType. - * @member {google.cloud.dialogflow.cx.v3beta1.IEntityType|null|undefined} entityType - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * Environment versionConfigs. + * @member {Array.} versionConfigs + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @instance */ - CreateEntityTypeRequest.prototype.entityType = null; + Environment.prototype.versionConfigs = $util.emptyArray; /** - * CreateEntityTypeRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * Environment updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @instance */ - CreateEntityTypeRequest.prototype.languageCode = ""; + Environment.prototype.updateTime = null; /** - * Creates a new CreateEntityTypeRequest instance using the specified properties. + * Creates a new Environment instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest} CreateEntityTypeRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IEnvironment=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Environment} Environment instance */ - CreateEntityTypeRequest.create = function create(properties) { - return new CreateEntityTypeRequest(properties); + Environment.create = function create(properties) { + return new Environment(properties); }; /** - * Encodes the specified CreateEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest.verify|verify} messages. + * Encodes the specified Environment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest} message CreateEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IEnvironment} message Environment message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateEntityTypeRequest.encode = function encode(message, writer) { + Environment.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) - $root.google.cloud.dialogflow.cx.v3beta1.EntityType.encode(message.entityType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.versionConfigs != null && message.versionConfigs.length) + for (var i = 0; i < message.versionConfigs.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.encode(message.versionConfigs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest.verify|verify} messages. + * Encodes the specified Environment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest} message CreateEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IEnvironment} message Environment message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + Environment.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateEntityTypeRequest message from the specified reader or buffer. + * Decodes an Environment message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest} CreateEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.Environment} Environment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateEntityTypeRequest.decode = function decode(reader, length) { + Environment.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Environment(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.name = reader.string(); break; case 2: - message.entityType = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.decode(reader, reader.uint32()); + message.displayName = reader.string(); break; case 3: - message.languageCode = reader.string(); + message.description = reader.string(); + break; + case 6: + if (!(message.versionConfigs && message.versionConfigs.length)) + message.versionConfigs = []; + message.versionConfigs.push($root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.decode(reader, reader.uint32())); + break; + case 5: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -75943,131 +77033,352 @@ }; /** - * Decodes a CreateEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes an Environment message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest} CreateEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.Environment} Environment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + Environment.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateEntityTypeRequest message. + * Verifies an Environment message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateEntityTypeRequest.verify = function verify(message) { + Environment.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.entityType != null && message.hasOwnProperty("entityType")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.verify(message.entityType); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.versionConfigs != null && message.hasOwnProperty("versionConfigs")) { + if (!Array.isArray(message.versionConfigs)) + return "versionConfigs: array expected"; + for (var i = 0; i < message.versionConfigs.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.verify(message.versionConfigs[i]); + if (error) + return "versionConfigs." + error; + } + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); if (error) - return "entityType." + error; + return "updateTime." + error; } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; return null; }; /** - * Creates a CreateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates an Environment message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest} CreateEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.Environment} Environment */ - CreateEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest) + Environment.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Environment) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.entityType != null) { - if (typeof object.entityType !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest.entityType: object expected"); - message.entityType = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.fromObject(object.entityType); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Environment(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.description != null) + message.description = String(object.description); + if (object.versionConfigs) { + if (!Array.isArray(object.versionConfigs)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Environment.versionConfigs: array expected"); + message.versionConfigs = []; + for (var i = 0; i < object.versionConfigs.length; ++i) { + if (typeof object.versionConfigs[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Environment.versionConfigs: object expected"); + message.versionConfigs[i] = $root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.fromObject(object.versionConfigs[i]); + } + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Environment.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a CreateEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from an Environment message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest} message CreateEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3beta1.Environment} message Environment * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateEntityTypeRequest.toObject = function toObject(message, options) { + Environment.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.versionConfigs = []; if (options.defaults) { - object.parent = ""; - object.entityType = null; - object.languageCode = ""; + object.name = ""; + object.displayName = ""; + object.description = ""; + object.updateTime = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.versionConfigs && message.versionConfigs.length) { + object.versionConfigs = []; + for (var j = 0; j < message.versionConfigs.length; ++j) + object.versionConfigs[j] = $root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.toObject(message.versionConfigs[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.entityType != null && message.hasOwnProperty("entityType")) - object.entityType = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.toObject(message.entityType, options); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; return object; }; /** - * Converts this CreateEntityTypeRequest to JSON. + * Converts this Environment to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @instance * @returns {Object.} JSON object */ - CreateEntityTypeRequest.prototype.toJSON = function toJSON() { + Environment.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateEntityTypeRequest; + Environment.VersionConfig = (function() { + + /** + * Properties of a VersionConfig. + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @interface IVersionConfig + * @property {string|null} [version] VersionConfig version + */ + + /** + * Constructs a new VersionConfig. + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @classdesc Represents a VersionConfig. + * @implements IVersionConfig + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig=} [properties] Properties to set + */ + function VersionConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * VersionConfig version. + * @member {string} version + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig + * @instance + */ + VersionConfig.prototype.version = ""; + + /** + * Creates a new VersionConfig instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig} VersionConfig instance + */ + VersionConfig.create = function create(properties) { + return new VersionConfig(properties); + }; + + /** + * Encodes the specified VersionConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig} message VersionConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VersionConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); + return writer; + }; + + /** + * Encodes the specified VersionConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig} message VersionConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VersionConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VersionConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig} VersionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VersionConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.version = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VersionConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig} VersionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VersionConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VersionConfig message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VersionConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + return null; + }; + + /** + * Creates a VersionConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig} VersionConfig + */ + VersionConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig(); + if (object.version != null) + message.version = String(object.version); + return message; + }; + + /** + * Creates a plain object from a VersionConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig} message VersionConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VersionConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.version = ""; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + return object; + }; + + /** + * Converts this VersionConfig to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig + * @instance + * @returns {Object.} JSON object + */ + VersionConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return VersionConfig; + })(); + + return Environment; })(); - v3beta1.UpdateEntityTypeRequest = (function() { + v3beta1.ListEnvironmentsRequest = (function() { /** - * Properties of an UpdateEntityTypeRequest. + * Properties of a ListEnvironmentsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IUpdateEntityTypeRequest - * @property {google.cloud.dialogflow.cx.v3beta1.IEntityType|null} [entityType] UpdateEntityTypeRequest entityType - * @property {string|null} [languageCode] UpdateEntityTypeRequest languageCode - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateEntityTypeRequest updateMask + * @interface IListEnvironmentsRequest + * @property {string|null} [parent] ListEnvironmentsRequest parent + * @property {number|null} [pageSize] ListEnvironmentsRequest pageSize + * @property {string|null} [pageToken] ListEnvironmentsRequest pageToken */ /** - * Constructs a new UpdateEntityTypeRequest. + * Constructs a new ListEnvironmentsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an UpdateEntityTypeRequest. - * @implements IUpdateEntityTypeRequest + * @classdesc Represents a ListEnvironmentsRequest. + * @implements IListEnvironmentsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest=} [properties] Properties to set */ - function UpdateEntityTypeRequest(properties) { + function ListEnvironmentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -76075,101 +77386,101 @@ } /** - * UpdateEntityTypeRequest entityType. - * @member {google.cloud.dialogflow.cx.v3beta1.IEntityType|null|undefined} entityType - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * ListEnvironmentsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest * @instance */ - UpdateEntityTypeRequest.prototype.entityType = null; + ListEnvironmentsRequest.prototype.parent = ""; /** - * UpdateEntityTypeRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * ListEnvironmentsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest * @instance */ - UpdateEntityTypeRequest.prototype.languageCode = ""; + ListEnvironmentsRequest.prototype.pageSize = 0; /** - * UpdateEntityTypeRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * ListEnvironmentsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest * @instance */ - UpdateEntityTypeRequest.prototype.updateMask = null; + ListEnvironmentsRequest.prototype.pageToken = ""; /** - * Creates a new UpdateEntityTypeRequest instance using the specified properties. + * Creates a new ListEnvironmentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest} UpdateEntityTypeRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest} ListEnvironmentsRequest instance */ - UpdateEntityTypeRequest.create = function create(properties) { - return new UpdateEntityTypeRequest(properties); + ListEnvironmentsRequest.create = function create(properties) { + return new ListEnvironmentsRequest(properties); }; /** - * Encodes the specified UpdateEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest.verify|verify} messages. + * Encodes the specified ListEnvironmentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest} message UpdateEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest} message ListEnvironmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateEntityTypeRequest.encode = function encode(message, writer) { + ListEnvironmentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) - $root.google.cloud.dialogflow.cx.v3beta1.EntityType.encode(message.entityType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified UpdateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest.verify|verify} messages. + * Encodes the specified ListEnvironmentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest} message UpdateEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest} message ListEnvironmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListEnvironmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer. + * Decodes a ListEnvironmentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest} UpdateEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest} ListEnvironmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateEntityTypeRequest.decode = function decode(reader, length) { + ListEnvironmentsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.entityType = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.decode(reader, reader.uint32()); + message.parent = reader.string(); break; case 2: - message.languageCode = reader.string(); + message.pageSize = reader.int32(); break; case 3: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -76180,135 +77491,126 @@ }; /** - * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a ListEnvironmentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest} UpdateEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest} ListEnvironmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + ListEnvironmentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateEntityTypeRequest message. + * Verifies a ListEnvironmentsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateEntityTypeRequest.verify = function verify(message) { + ListEnvironmentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.entityType != null && message.hasOwnProperty("entityType")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.verify(message.entityType); - if (error) - return "entityType." + error; - } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates an UpdateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListEnvironmentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest} UpdateEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest} ListEnvironmentsRequest */ - UpdateEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest) + ListEnvironmentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest(); - if (object.entityType != null) { - if (typeof object.entityType !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest.entityType: object expected"); - message.entityType = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.fromObject(object.entityType); - } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from an UpdateEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListEnvironmentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest} message UpdateEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest} message ListEnvironmentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateEntityTypeRequest.toObject = function toObject(message, options) { + ListEnvironmentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.entityType = null; - object.languageCode = ""; - object.updateMask = null; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.entityType != null && message.hasOwnProperty("entityType")) - object.entityType = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.toObject(message.entityType, options); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this UpdateEntityTypeRequest to JSON. + * Converts this ListEnvironmentsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest * @instance * @returns {Object.} JSON object */ - UpdateEntityTypeRequest.prototype.toJSON = function toJSON() { + ListEnvironmentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateEntityTypeRequest; + return ListEnvironmentsRequest; })(); - v3beta1.DeleteEntityTypeRequest = (function() { + v3beta1.ListEnvironmentsResponse = (function() { /** - * Properties of a DeleteEntityTypeRequest. + * Properties of a ListEnvironmentsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDeleteEntityTypeRequest - * @property {string|null} [name] DeleteEntityTypeRequest name - * @property {boolean|null} [force] DeleteEntityTypeRequest force + * @interface IListEnvironmentsResponse + * @property {Array.|null} [environments] ListEnvironmentsResponse environments + * @property {string|null} [nextPageToken] ListEnvironmentsResponse nextPageToken */ /** - * Constructs a new DeleteEntityTypeRequest. + * Constructs a new ListEnvironmentsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DeleteEntityTypeRequest. - * @implements IDeleteEntityTypeRequest + * @classdesc Represents a ListEnvironmentsResponse. + * @implements IListEnvironmentsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse=} [properties] Properties to set */ - function DeleteEntityTypeRequest(properties) { + function ListEnvironmentsResponse(properties) { + this.environments = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -76316,88 +77618,91 @@ } /** - * DeleteEntityTypeRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * ListEnvironmentsResponse environments. + * @member {Array.} environments + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse * @instance */ - DeleteEntityTypeRequest.prototype.name = ""; + ListEnvironmentsResponse.prototype.environments = $util.emptyArray; /** - * DeleteEntityTypeRequest force. - * @member {boolean} force - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * ListEnvironmentsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse * @instance */ - DeleteEntityTypeRequest.prototype.force = false; + ListEnvironmentsResponse.prototype.nextPageToken = ""; /** - * Creates a new DeleteEntityTypeRequest instance using the specified properties. + * Creates a new ListEnvironmentsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest} DeleteEntityTypeRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse} ListEnvironmentsResponse instance */ - DeleteEntityTypeRequest.create = function create(properties) { - return new DeleteEntityTypeRequest(properties); + ListEnvironmentsResponse.create = function create(properties) { + return new ListEnvironmentsResponse(properties); }; /** - * Encodes the specified DeleteEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest.verify|verify} messages. + * Encodes the specified ListEnvironmentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest} message DeleteEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse} message ListEnvironmentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteEntityTypeRequest.encode = function encode(message, writer) { + ListEnvironmentsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); + if (message.environments != null && message.environments.length) + for (var i = 0; i < message.environments.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Environment.encode(message.environments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified DeleteEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest.verify|verify} messages. + * Encodes the specified ListEnvironmentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest} message DeleteEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse} message ListEnvironmentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListEnvironmentsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer. + * Decodes a ListEnvironmentsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest} DeleteEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse} ListEnvironmentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteEntityTypeRequest.decode = function decode(reader, length) { + ListEnvironmentsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.environments && message.environments.length)) + message.environments = []; + message.environments.push($root.google.cloud.dialogflow.cx.v3beta1.Environment.decode(reader, reader.uint32())); break; case 2: - message.force = reader.bool(); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -76408,354 +77713,133 @@ }; /** - * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a ListEnvironmentsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest} DeleteEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse} ListEnvironmentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + ListEnvironmentsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteEntityTypeRequest message. + * Verifies a ListEnvironmentsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteEntityTypeRequest.verify = function verify(message) { + ListEnvironmentsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; + if (message.environments != null && message.hasOwnProperty("environments")) { + if (!Array.isArray(message.environments)) + return "environments: array expected"; + for (var i = 0; i < message.environments.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Environment.verify(message.environments[i]); + if (error) + return "environments." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a DeleteEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListEnvironmentsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest} DeleteEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse} ListEnvironmentsResponse */ - DeleteEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest) + ListEnvironmentsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.force != null) - message.force = Boolean(object.force); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse(); + if (object.environments) { + if (!Array.isArray(object.environments)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse.environments: array expected"); + message.environments = []; + for (var i = 0; i < object.environments.length; ++i) { + if (typeof object.environments[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse.environments: object expected"); + message.environments[i] = $root.google.cloud.dialogflow.cx.v3beta1.Environment.fromObject(object.environments[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a DeleteEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListEnvironmentsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest} message DeleteEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse} message ListEnvironmentsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteEntityTypeRequest.toObject = function toObject(message, options) { + ListEnvironmentsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.force = false; + if (options.arrays || options.defaults) + object.environments = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.environments && message.environments.length) { + object.environments = []; + for (var j = 0; j < message.environments.length; ++j) + object.environments[j] = $root.google.cloud.dialogflow.cx.v3beta1.Environment.toObject(message.environments[j], options); } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this DeleteEntityTypeRequest to JSON. + * Converts this ListEnvironmentsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest - * @instance - * @returns {Object.} JSON object - */ - DeleteEntityTypeRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return DeleteEntityTypeRequest; - })(); - - v3beta1.Environments = (function() { - - /** - * Constructs a new Environments service. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an Environments - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Environments(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Environments.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Environments; - - /** - * Creates new Environments service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {Environments} RPC service. Useful where requests and/or responses are streamed. - */ - Environments.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#listEnvironments}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @typedef ListEnvironmentsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse} [response] ListEnvironmentsResponse - */ - - /** - * Calls ListEnvironments. - * @function listEnvironments - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest} request ListEnvironmentsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Environments.ListEnvironmentsCallback} callback Node-style callback called with the error, if any, and ListEnvironmentsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Environments.prototype.listEnvironments = function listEnvironments(request, callback) { - return this.rpcCall(listEnvironments, $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse, request, callback); - }, "name", { value: "ListEnvironments" }); - - /** - * Calls ListEnvironments. - * @function listEnvironments - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest} request ListEnvironmentsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#getEnvironment}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @typedef GetEnvironmentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Environment} [response] Environment - */ - - /** - * Calls GetEnvironment. - * @function getEnvironment - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest} request GetEnvironmentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Environments.GetEnvironmentCallback} callback Node-style callback called with the error, if any, and Environment - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Environments.prototype.getEnvironment = function getEnvironment(request, callback) { - return this.rpcCall(getEnvironment, $root.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Environment, request, callback); - }, "name", { value: "GetEnvironment" }); - - /** - * Calls GetEnvironment. - * @function getEnvironment - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest} request GetEnvironmentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#createEnvironment}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @typedef CreateEnvironmentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls CreateEnvironment. - * @function createEnvironment - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest} request CreateEnvironmentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Environments.CreateEnvironmentCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Environments.prototype.createEnvironment = function createEnvironment(request, callback) { - return this.rpcCall(createEnvironment, $root.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreateEnvironment" }); - - /** - * Calls CreateEnvironment. - * @function createEnvironment - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest} request CreateEnvironmentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#updateEnvironment}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @typedef UpdateEnvironmentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls UpdateEnvironment. - * @function updateEnvironment - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest} request UpdateEnvironmentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Environments.UpdateEnvironmentCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Environments.prototype.updateEnvironment = function updateEnvironment(request, callback) { - return this.rpcCall(updateEnvironment, $root.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "UpdateEnvironment" }); - - /** - * Calls UpdateEnvironment. - * @function updateEnvironment - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest} request UpdateEnvironmentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#deleteEnvironment}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @typedef DeleteEnvironmentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty - */ - - /** - * Calls DeleteEnvironment. - * @function deleteEnvironment - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest} request DeleteEnvironmentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Environments.DeleteEnvironmentCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Environments.prototype.deleteEnvironment = function deleteEnvironment(request, callback) { - return this.rpcCall(deleteEnvironment, $root.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteEnvironment" }); - - /** - * Calls DeleteEnvironment. - * @function deleteEnvironment - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest} request DeleteEnvironmentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#lookupEnvironmentHistory}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @typedef LookupEnvironmentHistoryCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse} [response] LookupEnvironmentHistoryResponse - */ - - /** - * Calls LookupEnvironmentHistory. - * @function lookupEnvironmentHistory - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest} request LookupEnvironmentHistoryRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Environments.LookupEnvironmentHistoryCallback} callback Node-style callback called with the error, if any, and LookupEnvironmentHistoryResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Environments.prototype.lookupEnvironmentHistory = function lookupEnvironmentHistory(request, callback) { - return this.rpcCall(lookupEnvironmentHistory, $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest, $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse, request, callback); - }, "name", { value: "LookupEnvironmentHistory" }); - - /** - * Calls LookupEnvironmentHistory. - * @function lookupEnvironmentHistory - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest} request LookupEnvironmentHistoryRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + ListEnvironmentsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Environments; + return ListEnvironmentsResponse; })(); - v3beta1.Environment = (function() { + v3beta1.GetEnvironmentRequest = (function() { /** - * Properties of an Environment. + * Properties of a GetEnvironmentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IEnvironment - * @property {string|null} [name] Environment name - * @property {string|null} [displayName] Environment displayName - * @property {string|null} [description] Environment description - * @property {Array.|null} [versionConfigs] Environment versionConfigs - * @property {google.protobuf.ITimestamp|null} [updateTime] Environment updateTime + * @interface IGetEnvironmentRequest + * @property {string|null} [name] GetEnvironmentRequest name */ /** - * Constructs a new Environment. + * Constructs a new GetEnvironmentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an Environment. - * @implements IEnvironment + * @classdesc Represents a GetEnvironmentRequest. + * @implements IGetEnvironmentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IEnvironment=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest=} [properties] Properties to set */ - function Environment(properties) { - this.versionConfigs = []; + function GetEnvironmentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -76763,131 +77847,76 @@ } /** - * Environment name. + * GetEnvironmentRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment - * @instance - */ - Environment.prototype.name = ""; - - /** - * Environment displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment - * @instance - */ - Environment.prototype.displayName = ""; - - /** - * Environment description. - * @member {string} description - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment - * @instance - */ - Environment.prototype.description = ""; - - /** - * Environment versionConfigs. - * @member {Array.} versionConfigs - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment - * @instance - */ - Environment.prototype.versionConfigs = $util.emptyArray; - - /** - * Environment updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest * @instance */ - Environment.prototype.updateTime = null; + GetEnvironmentRequest.prototype.name = ""; /** - * Creates a new Environment instance using the specified properties. + * Creates a new GetEnvironmentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEnvironment=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Environment} Environment instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest} GetEnvironmentRequest instance */ - Environment.create = function create(properties) { - return new Environment(properties); + GetEnvironmentRequest.create = function create(properties) { + return new GetEnvironmentRequest(properties); }; /** - * Encodes the specified Environment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.verify|verify} messages. + * Encodes the specified GetEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEnvironment} message Environment message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest} message GetEnvironmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Environment.encode = function encode(message, writer) { + GetEnvironmentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.versionConfigs != null && message.versionConfigs.length) - for (var i = 0; i < message.versionConfigs.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.encode(message.versionConfigs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; /** - * Encodes the specified Environment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.verify|verify} messages. + * Encodes the specified GetEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEnvironment} message Environment message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest} message GetEnvironmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Environment.encodeDelimited = function encodeDelimited(message, writer) { + GetEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Environment message from the specified reader or buffer. + * Decodes a GetEnvironmentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Environment} Environment + * @returns {google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest} GetEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Environment.decode = function decode(reader, length) { + GetEnvironmentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Environment(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; - case 2: - message.displayName = reader.string(); - break; - case 3: - message.description = reader.string(); - break; - case 6: - if (!(message.versionConfigs && message.versionConfigs.length)) - message.versionConfigs = []; - message.versionConfigs.push($root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.decode(reader, reader.uint32())); - break; - case 5: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -76897,352 +77926,108 @@ }; /** - * Decodes an Environment message from the specified reader or buffer, length delimited. + * Decodes a GetEnvironmentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Environment} Environment + * @returns {google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest} GetEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Environment.decodeDelimited = function decodeDelimited(reader) { + GetEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Environment message. + * Verifies a GetEnvironmentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Environment.verify = function verify(message) { + GetEnvironmentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.versionConfigs != null && message.hasOwnProperty("versionConfigs")) { - if (!Array.isArray(message.versionConfigs)) - return "versionConfigs: array expected"; - for (var i = 0; i < message.versionConfigs.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.verify(message.versionConfigs[i]); - if (error) - return "versionConfigs." + error; - } - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } return null; }; /** - * Creates an Environment message from a plain object. Also converts values to their respective internal types. + * Creates a GetEnvironmentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Environment} Environment + * @returns {google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest} GetEnvironmentRequest */ - Environment.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Environment) + GetEnvironmentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Environment(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest(); if (object.name != null) message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.description != null) - message.description = String(object.description); - if (object.versionConfigs) { - if (!Array.isArray(object.versionConfigs)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Environment.versionConfigs: array expected"); - message.versionConfigs = []; - for (var i = 0; i < object.versionConfigs.length; ++i) { - if (typeof object.versionConfigs[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Environment.versionConfigs: object expected"); - message.versionConfigs[i] = $root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.fromObject(object.versionConfigs[i]); - } - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Environment.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } return message; }; /** - * Creates a plain object from an Environment message. Also converts values to other types if specified. + * Creates a plain object from a GetEnvironmentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Environment} message Environment + * @param {google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest} message GetEnvironmentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Environment.toObject = function toObject(message, options) { + GetEnvironmentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.versionConfigs = []; - if (options.defaults) { + if (options.defaults) object.name = ""; - object.displayName = ""; - object.description = ""; - object.updateTime = null; - } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.versionConfigs && message.versionConfigs.length) { - object.versionConfigs = []; - for (var j = 0; j < message.versionConfigs.length; ++j) - object.versionConfigs[j] = $root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.toObject(message.versionConfigs[j], options); - } return object; }; /** - * Converts this Environment to JSON. + * Converts this GetEnvironmentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest * @instance * @returns {Object.} JSON object */ - Environment.prototype.toJSON = function toJSON() { + GetEnvironmentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - Environment.VersionConfig = (function() { - - /** - * Properties of a VersionConfig. - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment - * @interface IVersionConfig - * @property {string|null} [version] VersionConfig version - */ - - /** - * Constructs a new VersionConfig. - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment - * @classdesc Represents a VersionConfig. - * @implements IVersionConfig - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig=} [properties] Properties to set - */ - function VersionConfig(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * VersionConfig version. - * @member {string} version - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig - * @instance - */ - VersionConfig.prototype.version = ""; - - /** - * Creates a new VersionConfig instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig} VersionConfig instance - */ - VersionConfig.create = function create(properties) { - return new VersionConfig(properties); - }; - - /** - * Encodes the specified VersionConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig} message VersionConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VersionConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); - return writer; - }; - - /** - * Encodes the specified VersionConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig} message VersionConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VersionConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a VersionConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig} VersionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VersionConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.version = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a VersionConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig} VersionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VersionConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a VersionConfig message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - VersionConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - return null; - }; - - /** - * Creates a VersionConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig} VersionConfig - */ - VersionConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig(); - if (object.version != null) - message.version = String(object.version); - return message; - }; - - /** - * Creates a plain object from a VersionConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig} message VersionConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - VersionConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.version = ""; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - return object; - }; - - /** - * Converts this VersionConfig to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig - * @instance - * @returns {Object.} JSON object - */ - VersionConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return VersionConfig; - })(); - - return Environment; + return GetEnvironmentRequest; })(); - v3beta1.ListEnvironmentsRequest = (function() { + v3beta1.CreateEnvironmentRequest = (function() { /** - * Properties of a ListEnvironmentsRequest. + * Properties of a CreateEnvironmentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListEnvironmentsRequest - * @property {string|null} [parent] ListEnvironmentsRequest parent - * @property {number|null} [pageSize] ListEnvironmentsRequest pageSize - * @property {string|null} [pageToken] ListEnvironmentsRequest pageToken + * @interface ICreateEnvironmentRequest + * @property {string|null} [parent] CreateEnvironmentRequest parent + * @property {google.cloud.dialogflow.cx.v3beta1.IEnvironment|null} [environment] CreateEnvironmentRequest environment */ /** - * Constructs a new ListEnvironmentsRequest. + * Constructs a new CreateEnvironmentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListEnvironmentsRequest. - * @implements IListEnvironmentsRequest + * @classdesc Represents a CreateEnvironmentRequest. + * @implements ICreateEnvironmentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest=} [properties] Properties to set */ - function ListEnvironmentsRequest(properties) { + function CreateEnvironmentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -77250,90 +78035,80 @@ } /** - * ListEnvironmentsRequest parent. + * CreateEnvironmentRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest - * @instance - */ - ListEnvironmentsRequest.prototype.parent = ""; - - /** - * ListEnvironmentsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest * @instance */ - ListEnvironmentsRequest.prototype.pageSize = 0; + CreateEnvironmentRequest.prototype.parent = ""; /** - * ListEnvironmentsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * CreateEnvironmentRequest environment. + * @member {google.cloud.dialogflow.cx.v3beta1.IEnvironment|null|undefined} environment + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest * @instance */ - ListEnvironmentsRequest.prototype.pageToken = ""; + CreateEnvironmentRequest.prototype.environment = null; /** - * Creates a new ListEnvironmentsRequest instance using the specified properties. + * Creates a new CreateEnvironmentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest} ListEnvironmentsRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest} CreateEnvironmentRequest instance */ - ListEnvironmentsRequest.create = function create(properties) { - return new ListEnvironmentsRequest(properties); + CreateEnvironmentRequest.create = function create(properties) { + return new CreateEnvironmentRequest(properties); }; /** - * Encodes the specified ListEnvironmentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest.verify|verify} messages. + * Encodes the specified CreateEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest} message ListEnvironmentsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest} message CreateEnvironmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListEnvironmentsRequest.encode = function encode(message, writer) { + CreateEnvironmentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) + $root.google.cloud.dialogflow.cx.v3beta1.Environment.encode(message.environment, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListEnvironmentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest.verify|verify} messages. + * Encodes the specified CreateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest} message ListEnvironmentsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest} message CreateEnvironmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListEnvironmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListEnvironmentsRequest message from the specified reader or buffer. + * Decodes a CreateEnvironmentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest} ListEnvironmentsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest} CreateEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListEnvironmentsRequest.decode = function decode(reader, length) { + CreateEnvironmentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -77341,10 +78116,7 @@ message.parent = reader.string(); break; case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); + message.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -77355,126 +78127,122 @@ }; /** - * Decodes a ListEnvironmentsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateEnvironmentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest} ListEnvironmentsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest} CreateEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListEnvironmentsRequest.decodeDelimited = function decodeDelimited(reader) { + CreateEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListEnvironmentsRequest message. + * Verifies a CreateEnvironmentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListEnvironmentsRequest.verify = function verify(message) { + CreateEnvironmentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.environment != null && message.hasOwnProperty("environment")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Environment.verify(message.environment); + if (error) + return "environment." + error; + } return null; }; /** - * Creates a ListEnvironmentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest} ListEnvironmentsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest} CreateEnvironmentRequest */ - ListEnvironmentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest) + CreateEnvironmentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + if (object.environment != null) { + if (typeof object.environment !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest.environment: object expected"); + message.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.fromObject(object.environment); + } return message; }; /** - * Creates a plain object from a ListEnvironmentsRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateEnvironmentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest} message ListEnvironmentsRequest + * @param {google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest} message CreateEnvironmentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListEnvironmentsRequest.toObject = function toObject(message, options) { + CreateEnvironmentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + object.environment = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.toObject(message.environment, options); return object; }; /** - * Converts this ListEnvironmentsRequest to JSON. + * Converts this CreateEnvironmentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest * @instance * @returns {Object.} JSON object */ - ListEnvironmentsRequest.prototype.toJSON = function toJSON() { + CreateEnvironmentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListEnvironmentsRequest; + return CreateEnvironmentRequest; })(); - v3beta1.ListEnvironmentsResponse = (function() { + v3beta1.UpdateEnvironmentRequest = (function() { /** - * Properties of a ListEnvironmentsResponse. + * Properties of an UpdateEnvironmentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListEnvironmentsResponse - * @property {Array.|null} [environments] ListEnvironmentsResponse environments - * @property {string|null} [nextPageToken] ListEnvironmentsResponse nextPageToken + * @interface IUpdateEnvironmentRequest + * @property {google.cloud.dialogflow.cx.v3beta1.IEnvironment|null} [environment] UpdateEnvironmentRequest environment + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateEnvironmentRequest updateMask */ /** - * Constructs a new ListEnvironmentsResponse. + * Constructs a new UpdateEnvironmentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListEnvironmentsResponse. - * @implements IListEnvironmentsResponse + * @classdesc Represents an UpdateEnvironmentRequest. + * @implements IUpdateEnvironmentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest=} [properties] Properties to set */ - function ListEnvironmentsResponse(properties) { - this.environments = []; + function UpdateEnvironmentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -77482,91 +78250,88 @@ } /** - * ListEnvironmentsResponse environments. - * @member {Array.} environments - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * UpdateEnvironmentRequest environment. + * @member {google.cloud.dialogflow.cx.v3beta1.IEnvironment|null|undefined} environment + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest * @instance */ - ListEnvironmentsResponse.prototype.environments = $util.emptyArray; + UpdateEnvironmentRequest.prototype.environment = null; /** - * ListEnvironmentsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * UpdateEnvironmentRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest * @instance */ - ListEnvironmentsResponse.prototype.nextPageToken = ""; + UpdateEnvironmentRequest.prototype.updateMask = null; /** - * Creates a new ListEnvironmentsResponse instance using the specified properties. + * Creates a new UpdateEnvironmentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse} ListEnvironmentsResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest} UpdateEnvironmentRequest instance */ - ListEnvironmentsResponse.create = function create(properties) { - return new ListEnvironmentsResponse(properties); + UpdateEnvironmentRequest.create = function create(properties) { + return new UpdateEnvironmentRequest(properties); }; /** - * Encodes the specified ListEnvironmentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse.verify|verify} messages. + * Encodes the specified UpdateEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse} message ListEnvironmentsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest} message UpdateEnvironmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListEnvironmentsResponse.encode = function encode(message, writer) { + UpdateEnvironmentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.environments != null && message.environments.length) - for (var i = 0; i < message.environments.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Environment.encode(message.environments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) + $root.google.cloud.dialogflow.cx.v3beta1.Environment.encode(message.environment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListEnvironmentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse.verify|verify} messages. + * Encodes the specified UpdateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse} message ListEnvironmentsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest} message UpdateEnvironmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListEnvironmentsResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpdateEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListEnvironmentsResponse message from the specified reader or buffer. + * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse} ListEnvironmentsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest} UpdateEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListEnvironmentsResponse.decode = function decode(reader, length) { + UpdateEnvironmentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.environments && message.environments.length)) - message.environments = []; - message.environments.push($root.google.cloud.dialogflow.cx.v3beta1.Environment.decode(reader, reader.uint32())); + message.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.decode(reader, reader.uint32()); break; case 2: - message.nextPageToken = reader.string(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -77577,133 +78342,126 @@ }; /** - * Decodes a ListEnvironmentsResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse} ListEnvironmentsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest} UpdateEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListEnvironmentsResponse.decodeDelimited = function decodeDelimited(reader) { + UpdateEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListEnvironmentsResponse message. + * Verifies an UpdateEnvironmentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListEnvironmentsResponse.verify = function verify(message) { + UpdateEnvironmentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.environments != null && message.hasOwnProperty("environments")) { - if (!Array.isArray(message.environments)) - return "environments: array expected"; - for (var i = 0; i < message.environments.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Environment.verify(message.environments[i]); - if (error) - return "environments." + error; - } + if (message.environment != null && message.hasOwnProperty("environment")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Environment.verify(message.environment); + if (error) + return "environment." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListEnvironmentsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse} ListEnvironmentsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest} UpdateEnvironmentRequest */ - ListEnvironmentsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse) + UpdateEnvironmentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse(); - if (object.environments) { - if (!Array.isArray(object.environments)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse.environments: array expected"); - message.environments = []; - for (var i = 0; i < object.environments.length; ++i) { - if (typeof object.environments[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse.environments: object expected"); - message.environments[i] = $root.google.cloud.dialogflow.cx.v3beta1.Environment.fromObject(object.environments[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest(); + if (object.environment != null) { + if (typeof object.environment !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest.environment: object expected"); + message.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.fromObject(object.environment); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListEnvironmentsResponse message. Also converts values to other types if specified. + * Creates a plain object from an UpdateEnvironmentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse} message ListEnvironmentsResponse + * @param {google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest} message UpdateEnvironmentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListEnvironmentsResponse.toObject = function toObject(message, options) { + UpdateEnvironmentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.environments = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.environments && message.environments.length) { - object.environments = []; - for (var j = 0; j < message.environments.length; ++j) - object.environments[j] = $root.google.cloud.dialogflow.cx.v3beta1.Environment.toObject(message.environments[j], options); + if (options.defaults) { + object.environment = null; + object.updateMask = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.toObject(message.environment, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this ListEnvironmentsResponse to JSON. + * Converts this UpdateEnvironmentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest * @instance * @returns {Object.} JSON object */ - ListEnvironmentsResponse.prototype.toJSON = function toJSON() { + UpdateEnvironmentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListEnvironmentsResponse; + return UpdateEnvironmentRequest; })(); - v3beta1.GetEnvironmentRequest = (function() { + v3beta1.DeleteEnvironmentRequest = (function() { /** - * Properties of a GetEnvironmentRequest. + * Properties of a DeleteEnvironmentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetEnvironmentRequest - * @property {string|null} [name] GetEnvironmentRequest name + * @interface IDeleteEnvironmentRequest + * @property {string|null} [name] DeleteEnvironmentRequest name */ /** - * Constructs a new GetEnvironmentRequest. + * Constructs a new DeleteEnvironmentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GetEnvironmentRequest. - * @implements IGetEnvironmentRequest + * @classdesc Represents a DeleteEnvironmentRequest. + * @implements IDeleteEnvironmentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest=} [properties] Properties to set */ - function GetEnvironmentRequest(properties) { + function DeleteEnvironmentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -77711,35 +78469,35 @@ } /** - * GetEnvironmentRequest name. + * DeleteEnvironmentRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest * @instance */ - GetEnvironmentRequest.prototype.name = ""; + DeleteEnvironmentRequest.prototype.name = ""; /** - * Creates a new GetEnvironmentRequest instance using the specified properties. + * Creates a new DeleteEnvironmentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest} GetEnvironmentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest} DeleteEnvironmentRequest instance */ - GetEnvironmentRequest.create = function create(properties) { - return new GetEnvironmentRequest(properties); + DeleteEnvironmentRequest.create = function create(properties) { + return new DeleteEnvironmentRequest(properties); }; /** - * Encodes the specified GetEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest.verify|verify} messages. + * Encodes the specified DeleteEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest} message GetEnvironmentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest} message DeleteEnvironmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetEnvironmentRequest.encode = function encode(message, writer) { + DeleteEnvironmentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -77748,33 +78506,33 @@ }; /** - * Encodes the specified GetEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest.verify|verify} messages. + * Encodes the specified DeleteEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest} message GetEnvironmentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest} message DeleteEnvironmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetEnvironmentRequest message from the specified reader or buffer. + * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest} GetEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest} DeleteEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetEnvironmentRequest.decode = function decode(reader, length) { + DeleteEnvironmentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -77790,30 +78548,30 @@ }; /** - * Decodes a GetEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest} GetEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest} DeleteEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetEnvironmentRequest message. + * Verifies a DeleteEnvironmentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetEnvironmentRequest.verify = function verify(message) { + DeleteEnvironmentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -77823,32 +78581,32 @@ }; /** - * Creates a GetEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteEnvironmentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest} GetEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest} DeleteEnvironmentRequest */ - GetEnvironmentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest) + DeleteEnvironmentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetEnvironmentRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteEnvironmentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest} message GetEnvironmentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest} message DeleteEnvironmentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetEnvironmentRequest.toObject = function toObject(message, options) { + DeleteEnvironmentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -77860,38 +78618,39 @@ }; /** - * Converts this GetEnvironmentRequest to JSON. + * Converts this DeleteEnvironmentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest * @instance * @returns {Object.} JSON object */ - GetEnvironmentRequest.prototype.toJSON = function toJSON() { + DeleteEnvironmentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetEnvironmentRequest; + return DeleteEnvironmentRequest; })(); - v3beta1.CreateEnvironmentRequest = (function() { + v3beta1.LookupEnvironmentHistoryRequest = (function() { /** - * Properties of a CreateEnvironmentRequest. + * Properties of a LookupEnvironmentHistoryRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ICreateEnvironmentRequest - * @property {string|null} [parent] CreateEnvironmentRequest parent - * @property {google.cloud.dialogflow.cx.v3beta1.IEnvironment|null} [environment] CreateEnvironmentRequest environment + * @interface ILookupEnvironmentHistoryRequest + * @property {string|null} [name] LookupEnvironmentHistoryRequest name + * @property {number|null} [pageSize] LookupEnvironmentHistoryRequest pageSize + * @property {string|null} [pageToken] LookupEnvironmentHistoryRequest pageToken */ /** - * Constructs a new CreateEnvironmentRequest. + * Constructs a new LookupEnvironmentHistoryRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a CreateEnvironmentRequest. - * @implements ICreateEnvironmentRequest + * @classdesc Represents a LookupEnvironmentHistoryRequest. + * @implements ILookupEnvironmentHistoryRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest=} [properties] Properties to set */ - function CreateEnvironmentRequest(properties) { + function LookupEnvironmentHistoryRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -77899,88 +78658,101 @@ } /** - * CreateEnvironmentRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * LookupEnvironmentHistoryRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest * @instance */ - CreateEnvironmentRequest.prototype.parent = ""; + LookupEnvironmentHistoryRequest.prototype.name = ""; /** - * CreateEnvironmentRequest environment. - * @member {google.cloud.dialogflow.cx.v3beta1.IEnvironment|null|undefined} environment - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * LookupEnvironmentHistoryRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest * @instance */ - CreateEnvironmentRequest.prototype.environment = null; + LookupEnvironmentHistoryRequest.prototype.pageSize = 0; /** - * Creates a new CreateEnvironmentRequest instance using the specified properties. + * LookupEnvironmentHistoryRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @instance + */ + LookupEnvironmentHistoryRequest.prototype.pageToken = ""; + + /** + * Creates a new LookupEnvironmentHistoryRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest} CreateEnvironmentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest} LookupEnvironmentHistoryRequest instance */ - CreateEnvironmentRequest.create = function create(properties) { - return new CreateEnvironmentRequest(properties); + LookupEnvironmentHistoryRequest.create = function create(properties) { + return new LookupEnvironmentHistoryRequest(properties); }; /** - * Encodes the specified CreateEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest.verify|verify} messages. + * Encodes the specified LookupEnvironmentHistoryRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest} message CreateEnvironmentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest} message LookupEnvironmentHistoryRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateEnvironmentRequest.encode = function encode(message, writer) { + LookupEnvironmentHistoryRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - $root.google.cloud.dialogflow.cx.v3beta1.Environment.encode(message.environment, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified CreateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest.verify|verify} messages. + * Encodes the specified LookupEnvironmentHistoryRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest} message CreateEnvironmentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest} message LookupEnvironmentHistoryRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + LookupEnvironmentHistoryRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateEnvironmentRequest message from the specified reader or buffer. + * Decodes a LookupEnvironmentHistoryRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest} CreateEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest} LookupEnvironmentHistoryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateEnvironmentRequest.decode = function decode(reader, length) { + LookupEnvironmentHistoryRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.name = reader.string(); break; case 2: - message.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -77991,122 +78763,126 @@ }; /** - * Decodes a CreateEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes a LookupEnvironmentHistoryRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest} CreateEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest} LookupEnvironmentHistoryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { + LookupEnvironmentHistoryRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateEnvironmentRequest message. + * Verifies a LookupEnvironmentHistoryRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateEnvironmentRequest.verify = function verify(message) { + LookupEnvironmentHistoryRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.environment != null && message.hasOwnProperty("environment")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Environment.verify(message.environment); - if (error) - return "environment." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a CreateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a LookupEnvironmentHistoryRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest} CreateEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest} LookupEnvironmentHistoryRequest */ - CreateEnvironmentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest) + LookupEnvironmentHistoryRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.environment != null) { - if (typeof object.environment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest.environment: object expected"); - message.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.fromObject(object.environment); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a CreateEnvironmentRequest message. Also converts values to other types if specified. + * Creates a plain object from a LookupEnvironmentHistoryRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest} message CreateEnvironmentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest} message LookupEnvironmentHistoryRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateEnvironmentRequest.toObject = function toObject(message, options) { + LookupEnvironmentHistoryRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.environment = null; + object.name = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.toObject(message.environment, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this CreateEnvironmentRequest to JSON. + * Converts this LookupEnvironmentHistoryRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest * @instance * @returns {Object.} JSON object */ - CreateEnvironmentRequest.prototype.toJSON = function toJSON() { + LookupEnvironmentHistoryRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateEnvironmentRequest; + return LookupEnvironmentHistoryRequest; })(); - v3beta1.UpdateEnvironmentRequest = (function() { + v3beta1.LookupEnvironmentHistoryResponse = (function() { /** - * Properties of an UpdateEnvironmentRequest. + * Properties of a LookupEnvironmentHistoryResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IUpdateEnvironmentRequest - * @property {google.cloud.dialogflow.cx.v3beta1.IEnvironment|null} [environment] UpdateEnvironmentRequest environment - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateEnvironmentRequest updateMask + * @interface ILookupEnvironmentHistoryResponse + * @property {Array.|null} [environments] LookupEnvironmentHistoryResponse environments + * @property {string|null} [nextPageToken] LookupEnvironmentHistoryResponse nextPageToken */ /** - * Constructs a new UpdateEnvironmentRequest. + * Constructs a new LookupEnvironmentHistoryResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an UpdateEnvironmentRequest. - * @implements IUpdateEnvironmentRequest + * @classdesc Represents a LookupEnvironmentHistoryResponse. + * @implements ILookupEnvironmentHistoryResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse=} [properties] Properties to set */ - function UpdateEnvironmentRequest(properties) { + function LookupEnvironmentHistoryResponse(properties) { + this.environments = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -78114,88 +78890,91 @@ } /** - * UpdateEnvironmentRequest environment. - * @member {google.cloud.dialogflow.cx.v3beta1.IEnvironment|null|undefined} environment - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * LookupEnvironmentHistoryResponse environments. + * @member {Array.} environments + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse * @instance */ - UpdateEnvironmentRequest.prototype.environment = null; + LookupEnvironmentHistoryResponse.prototype.environments = $util.emptyArray; /** - * UpdateEnvironmentRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * LookupEnvironmentHistoryResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse * @instance */ - UpdateEnvironmentRequest.prototype.updateMask = null; + LookupEnvironmentHistoryResponse.prototype.nextPageToken = ""; /** - * Creates a new UpdateEnvironmentRequest instance using the specified properties. + * Creates a new LookupEnvironmentHistoryResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest} UpdateEnvironmentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse} LookupEnvironmentHistoryResponse instance */ - UpdateEnvironmentRequest.create = function create(properties) { - return new UpdateEnvironmentRequest(properties); + LookupEnvironmentHistoryResponse.create = function create(properties) { + return new LookupEnvironmentHistoryResponse(properties); }; /** - * Encodes the specified UpdateEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest.verify|verify} messages. + * Encodes the specified LookupEnvironmentHistoryResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest} message UpdateEnvironmentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse} message LookupEnvironmentHistoryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateEnvironmentRequest.encode = function encode(message, writer) { + LookupEnvironmentHistoryResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - $root.google.cloud.dialogflow.cx.v3beta1.Environment.encode(message.environment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.environments != null && message.environments.length) + for (var i = 0; i < message.environments.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Environment.encode(message.environments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified UpdateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest.verify|verify} messages. + * Encodes the specified LookupEnvironmentHistoryResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest} message UpdateEnvironmentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse} message LookupEnvironmentHistoryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + LookupEnvironmentHistoryResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer. + * Decodes a LookupEnvironmentHistoryResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest} UpdateEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse} LookupEnvironmentHistoryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateEnvironmentRequest.decode = function decode(reader, length) { + LookupEnvironmentHistoryResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.decode(reader, reader.uint32()); + if (!(message.environments && message.environments.length)) + message.environments = []; + message.environments.push($root.google.cloud.dialogflow.cx.v3beta1.Environment.decode(reader, reader.uint32())); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -78206,315 +78985,540 @@ }; /** - * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes a LookupEnvironmentHistoryResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest} UpdateEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse} LookupEnvironmentHistoryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { + LookupEnvironmentHistoryResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateEnvironmentRequest message. + * Verifies a LookupEnvironmentHistoryResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateEnvironmentRequest.verify = function verify(message) { + LookupEnvironmentHistoryResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.environment != null && message.hasOwnProperty("environment")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Environment.verify(message.environment); - if (error) - return "environment." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; + if (message.environments != null && message.hasOwnProperty("environments")) { + if (!Array.isArray(message.environments)) + return "environments: array expected"; + for (var i = 0; i < message.environments.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Environment.verify(message.environments[i]); + if (error) + return "environments." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an UpdateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a LookupEnvironmentHistoryResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest} UpdateEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse} LookupEnvironmentHistoryResponse */ - UpdateEnvironmentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest) + LookupEnvironmentHistoryResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest(); - if (object.environment != null) { - if (typeof object.environment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest.environment: object expected"); - message.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.fromObject(object.environment); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse(); + if (object.environments) { + if (!Array.isArray(object.environments)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse.environments: array expected"); + message.environments = []; + for (var i = 0; i < object.environments.length; ++i) { + if (typeof object.environments[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse.environments: object expected"); + message.environments[i] = $root.google.cloud.dialogflow.cx.v3beta1.Environment.fromObject(object.environments[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an UpdateEnvironmentRequest message. Also converts values to other types if specified. + * Creates a plain object from a LookupEnvironmentHistoryResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest} message UpdateEnvironmentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse} message LookupEnvironmentHistoryResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateEnvironmentRequest.toObject = function toObject(message, options) { + LookupEnvironmentHistoryResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.environment = null; - object.updateMask = null; + if (options.arrays || options.defaults) + object.environments = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.environments && message.environments.length) { + object.environments = []; + for (var j = 0; j < message.environments.length; ++j) + object.environments[j] = $root.google.cloud.dialogflow.cx.v3beta1.Environment.toObject(message.environments[j], options); } - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.toObject(message.environment, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this UpdateEnvironmentRequest to JSON. + * Converts this LookupEnvironmentHistoryResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse * @instance * @returns {Object.} JSON object */ - UpdateEnvironmentRequest.prototype.toJSON = function toJSON() { + LookupEnvironmentHistoryResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateEnvironmentRequest; + return LookupEnvironmentHistoryResponse; })(); - v3beta1.DeleteEnvironmentRequest = (function() { + v3beta1.TestCases = (function() { /** - * Properties of a DeleteEnvironmentRequest. + * Constructs a new TestCases service. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDeleteEnvironmentRequest - * @property {string|null} [name] DeleteEnvironmentRequest name + * @classdesc Represents a TestCases + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ + function TestCases(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (TestCases.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = TestCases; /** - * Constructs a new DeleteEnvironmentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DeleteEnvironmentRequest. - * @implements IDeleteEnvironmentRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest=} [properties] Properties to set + * Creates new TestCases service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {TestCases} RPC service. Useful where requests and/or responses are streamed. */ - function DeleteEnvironmentRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + TestCases.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#listTestCases}. + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @typedef ListTestCasesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse} [response] ListTestCasesResponse + */ + + /** + * Calls ListTestCases. + * @function listTestCases + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest} request ListTestCasesRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.ListTestCasesCallback} callback Node-style callback called with the error, if any, and ListTestCasesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(TestCases.prototype.listTestCases = function listTestCases(request, callback) { + return this.rpcCall(listTestCases, $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse, request, callback); + }, "name", { value: "ListTestCases" }); + + /** + * Calls ListTestCases. + * @function listTestCases + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest} request ListTestCasesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#batchDeleteTestCases}. + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @typedef BatchDeleteTestCasesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls BatchDeleteTestCases. + * @function batchDeleteTestCases + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest} request BatchDeleteTestCasesRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.BatchDeleteTestCasesCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(TestCases.prototype.batchDeleteTestCases = function batchDeleteTestCases(request, callback) { + return this.rpcCall(batchDeleteTestCases, $root.google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "BatchDeleteTestCases" }); + + /** + * Calls BatchDeleteTestCases. + * @function batchDeleteTestCases + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest} request BatchDeleteTestCasesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#getTestCase}. + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @typedef GetTestCaseCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.TestCase} [response] TestCase + */ + + /** + * Calls GetTestCase. + * @function getTestCase + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest} request GetTestCaseRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.GetTestCaseCallback} callback Node-style callback called with the error, if any, and TestCase + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(TestCases.prototype.getTestCase = function getTestCase(request, callback) { + return this.rpcCall(getTestCase, $root.google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest, $root.google.cloud.dialogflow.cx.v3beta1.TestCase, request, callback); + }, "name", { value: "GetTestCase" }); + + /** + * Calls GetTestCase. + * @function getTestCase + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest} request GetTestCaseRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#createTestCase}. + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @typedef CreateTestCaseCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.TestCase} [response] TestCase + */ + + /** + * Calls CreateTestCase. + * @function createTestCase + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest} request CreateTestCaseRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.CreateTestCaseCallback} callback Node-style callback called with the error, if any, and TestCase + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(TestCases.prototype.createTestCase = function createTestCase(request, callback) { + return this.rpcCall(createTestCase, $root.google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest, $root.google.cloud.dialogflow.cx.v3beta1.TestCase, request, callback); + }, "name", { value: "CreateTestCase" }); + + /** + * Calls CreateTestCase. + * @function createTestCase + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest} request CreateTestCaseRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#updateTestCase}. + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @typedef UpdateTestCaseCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.TestCase} [response] TestCase + */ + + /** + * Calls UpdateTestCase. + * @function updateTestCase + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest} request UpdateTestCaseRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.UpdateTestCaseCallback} callback Node-style callback called with the error, if any, and TestCase + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(TestCases.prototype.updateTestCase = function updateTestCase(request, callback) { + return this.rpcCall(updateTestCase, $root.google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest, $root.google.cloud.dialogflow.cx.v3beta1.TestCase, request, callback); + }, "name", { value: "UpdateTestCase" }); + + /** + * Calls UpdateTestCase. + * @function updateTestCase + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest} request UpdateTestCaseRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#runTestCase}. + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @typedef RunTestCaseCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls RunTestCase. + * @function runTestCase + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest} request RunTestCaseRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.RunTestCaseCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(TestCases.prototype.runTestCase = function runTestCase(request, callback) { + return this.rpcCall(runTestCase, $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "RunTestCase" }); + + /** + * Calls RunTestCase. + * @function runTestCase + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest} request RunTestCaseRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#batchRunTestCases}. + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @typedef BatchRunTestCasesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls BatchRunTestCases. + * @function batchRunTestCases + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest} request BatchRunTestCasesRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.BatchRunTestCasesCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(TestCases.prototype.batchRunTestCases = function batchRunTestCases(request, callback) { + return this.rpcCall(batchRunTestCases, $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "BatchRunTestCases" }); + + /** + * Calls BatchRunTestCases. + * @function batchRunTestCases + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest} request BatchRunTestCasesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#calculateCoverage}. + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @typedef CalculateCoverageCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse} [response] CalculateCoverageResponse + */ + + /** + * Calls CalculateCoverage. + * @function calculateCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest} request CalculateCoverageRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.CalculateCoverageCallback} callback Node-style callback called with the error, if any, and CalculateCoverageResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(TestCases.prototype.calculateCoverage = function calculateCoverage(request, callback) { + return this.rpcCall(calculateCoverage, $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest, $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse, request, callback); + }, "name", { value: "CalculateCoverage" }); /** - * DeleteEnvironmentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * Calls CalculateCoverage. + * @function calculateCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest} request CalculateCoverageRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteEnvironmentRequest.prototype.name = ""; /** - * Creates a new DeleteEnvironmentRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest} DeleteEnvironmentRequest instance + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#importTestCases}. + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @typedef ImportTestCasesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - DeleteEnvironmentRequest.create = function create(properties) { - return new DeleteEnvironmentRequest(properties); - }; /** - * Encodes the specified DeleteEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest} message DeleteEnvironmentRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ImportTestCases. + * @function importTestCases + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest} request ImportTestCasesRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.ImportTestCasesCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - DeleteEnvironmentRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; + Object.defineProperty(TestCases.prototype.importTestCases = function importTestCases(request, callback) { + return this.rpcCall(importTestCases, $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "ImportTestCases" }); /** - * Encodes the specified DeleteEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest} message DeleteEnvironmentRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ImportTestCases. + * @function importTestCases + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest} request ImportTestCasesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest} DeleteEnvironmentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#exportTestCases}. + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @typedef ExportTestCasesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - DeleteEnvironmentRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest} DeleteEnvironmentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ExportTestCases. + * @function exportTestCases + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest} request ExportTestCasesRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.ExportTestCasesCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - DeleteEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(TestCases.prototype.exportTestCases = function exportTestCases(request, callback) { + return this.rpcCall(exportTestCases, $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "ExportTestCases" }); /** - * Verifies a DeleteEnvironmentRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls ExportTestCases. + * @function exportTestCases + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest} request ExportTestCasesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteEnvironmentRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; /** - * Creates a DeleteEnvironmentRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest} DeleteEnvironmentRequest + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#listTestCaseResults}. + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @typedef ListTestCaseResultsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse} [response] ListTestCaseResultsResponse */ - DeleteEnvironmentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; /** - * Creates a plain object from a DeleteEnvironmentRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest} message DeleteEnvironmentRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls ListTestCaseResults. + * @function listTestCaseResults + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest} request ListTestCaseResultsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.ListTestCaseResultsCallback} callback Node-style callback called with the error, if any, and ListTestCaseResultsResponse + * @returns {undefined} + * @variation 1 */ - DeleteEnvironmentRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + Object.defineProperty(TestCases.prototype.listTestCaseResults = function listTestCaseResults(request, callback) { + return this.rpcCall(listTestCaseResults, $root.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse, request, callback); + }, "name", { value: "ListTestCaseResults" }); /** - * Converts this DeleteEnvironmentRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * Calls ListTestCaseResults. + * @function listTestCaseResults + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases * @instance - * @returns {Object.} JSON object + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest} request ListTestCaseResultsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteEnvironmentRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - return DeleteEnvironmentRequest; + return TestCases; })(); - v3beta1.LookupEnvironmentHistoryRequest = (function() { + v3beta1.TestCase = (function() { /** - * Properties of a LookupEnvironmentHistoryRequest. + * Properties of a TestCase. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ILookupEnvironmentHistoryRequest - * @property {string|null} [name] LookupEnvironmentHistoryRequest name - * @property {number|null} [pageSize] LookupEnvironmentHistoryRequest pageSize - * @property {string|null} [pageToken] LookupEnvironmentHistoryRequest pageToken + * @interface ITestCase + * @property {string|null} [name] TestCase name + * @property {Array.|null} [tags] TestCase tags + * @property {string|null} [displayName] TestCase displayName + * @property {string|null} [notes] TestCase notes + * @property {google.cloud.dialogflow.cx.v3beta1.ITestConfig|null} [testConfig] TestCase testConfig + * @property {Array.|null} [testCaseConversationTurns] TestCase testCaseConversationTurns + * @property {google.protobuf.ITimestamp|null} [creationTime] TestCase creationTime + * @property {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null} [lastTestResult] TestCase lastTestResult */ /** - * Constructs a new LookupEnvironmentHistoryRequest. + * Constructs a new TestCase. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a LookupEnvironmentHistoryRequest. - * @implements ILookupEnvironmentHistoryRequest + * @classdesc Represents a TestCase. + * @implements ITestCase * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ITestCase=} [properties] Properties to set */ - function LookupEnvironmentHistoryRequest(properties) { + function TestCase(properties) { + this.tags = []; + this.testCaseConversationTurns = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -78522,90 +79526,142 @@ } /** - * LookupEnvironmentHistoryRequest name. + * TestCase name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase * @instance */ - LookupEnvironmentHistoryRequest.prototype.name = ""; + TestCase.prototype.name = ""; /** - * LookupEnvironmentHistoryRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * TestCase tags. + * @member {Array.} tags + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase * @instance */ - LookupEnvironmentHistoryRequest.prototype.pageSize = 0; + TestCase.prototype.tags = $util.emptyArray; /** - * LookupEnvironmentHistoryRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * TestCase displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase * @instance */ - LookupEnvironmentHistoryRequest.prototype.pageToken = ""; + TestCase.prototype.displayName = ""; /** - * Creates a new LookupEnvironmentHistoryRequest instance using the specified properties. + * TestCase notes. + * @member {string} notes + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase + * @instance + */ + TestCase.prototype.notes = ""; + + /** + * TestCase testConfig. + * @member {google.cloud.dialogflow.cx.v3beta1.ITestConfig|null|undefined} testConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase + * @instance + */ + TestCase.prototype.testConfig = null; + + /** + * TestCase testCaseConversationTurns. + * @member {Array.} testCaseConversationTurns + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase + * @instance + */ + TestCase.prototype.testCaseConversationTurns = $util.emptyArray; + + /** + * TestCase creationTime. + * @member {google.protobuf.ITimestamp|null|undefined} creationTime + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase + * @instance + */ + TestCase.prototype.creationTime = null; + + /** + * TestCase lastTestResult. + * @member {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null|undefined} lastTestResult + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase + * @instance + */ + TestCase.prototype.lastTestResult = null; + + /** + * Creates a new TestCase instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest} LookupEnvironmentHistoryRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.ITestCase=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TestCase} TestCase instance */ - LookupEnvironmentHistoryRequest.create = function create(properties) { - return new LookupEnvironmentHistoryRequest(properties); + TestCase.create = function create(properties) { + return new TestCase(properties); }; /** - * Encodes the specified LookupEnvironmentHistoryRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest.verify|verify} messages. + * Encodes the specified TestCase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCase.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest} message LookupEnvironmentHistoryRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITestCase} message TestCase message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LookupEnvironmentHistoryRequest.encode = function encode(message, writer) { + TestCase.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.tags != null && message.tags.length) + for (var i = 0; i < message.tags.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.tags[i]); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); + if (message.notes != null && Object.hasOwnProperty.call(message, "notes")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.notes); + if (message.testCaseConversationTurns != null && message.testCaseConversationTurns.length) + for (var i = 0; i < message.testCaseConversationTurns.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.encode(message.testCaseConversationTurns[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.creationTime != null && Object.hasOwnProperty.call(message, "creationTime")) + $root.google.protobuf.Timestamp.encode(message.creationTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.lastTestResult != null && Object.hasOwnProperty.call(message, "lastTestResult")) + $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.encode(message.lastTestResult, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.testConfig != null && Object.hasOwnProperty.call(message, "testConfig")) + $root.google.cloud.dialogflow.cx.v3beta1.TestConfig.encode(message.testConfig, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); return writer; }; /** - * Encodes the specified LookupEnvironmentHistoryRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest.verify|verify} messages. + * Encodes the specified TestCase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCase.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest} message LookupEnvironmentHistoryRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITestCase} message TestCase message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LookupEnvironmentHistoryRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestCase.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LookupEnvironmentHistoryRequest message from the specified reader or buffer. + * Decodes a TestCase message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest} LookupEnvironmentHistoryRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.TestCase} TestCase * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LookupEnvironmentHistoryRequest.decode = function decode(reader, length) { + TestCase.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TestCase(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -78613,10 +79669,29 @@ message.name = reader.string(); break; case 2: - message.pageSize = reader.int32(); + if (!(message.tags && message.tags.length)) + message.tags = []; + message.tags.push(reader.string()); break; case 3: - message.pageToken = reader.string(); + message.displayName = reader.string(); + break; + case 4: + message.notes = reader.string(); + break; + case 13: + message.testConfig = $root.google.cloud.dialogflow.cx.v3beta1.TestConfig.decode(reader, reader.uint32()); + break; + case 5: + if (!(message.testCaseConversationTurns && message.testCaseConversationTurns.length)) + message.testCaseConversationTurns = []; + message.testCaseConversationTurns.push($root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.decode(reader, reader.uint32())); + break; + case 10: + message.creationTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 12: + message.lastTestResult = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -78627,126 +79702,215 @@ }; /** - * Decodes a LookupEnvironmentHistoryRequest message from the specified reader or buffer, length delimited. + * Decodes a TestCase message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest} LookupEnvironmentHistoryRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.TestCase} TestCase * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LookupEnvironmentHistoryRequest.decodeDelimited = function decodeDelimited(reader) { + TestCase.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LookupEnvironmentHistoryRequest message. + * Verifies a TestCase message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LookupEnvironmentHistoryRequest.verify = function verify(message) { + TestCase.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!Array.isArray(message.tags)) + return "tags: array expected"; + for (var i = 0; i < message.tags.length; ++i) + if (!$util.isString(message.tags[i])) + return "tags: string[] expected"; + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.notes != null && message.hasOwnProperty("notes")) + if (!$util.isString(message.notes)) + return "notes: string expected"; + if (message.testConfig != null && message.hasOwnProperty("testConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TestConfig.verify(message.testConfig); + if (error) + return "testConfig." + error; + } + if (message.testCaseConversationTurns != null && message.hasOwnProperty("testCaseConversationTurns")) { + if (!Array.isArray(message.testCaseConversationTurns)) + return "testCaseConversationTurns: array expected"; + for (var i = 0; i < message.testCaseConversationTurns.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.verify(message.testCaseConversationTurns[i]); + if (error) + return "testCaseConversationTurns." + error; + } + } + if (message.creationTime != null && message.hasOwnProperty("creationTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.creationTime); + if (error) + return "creationTime." + error; + } + if (message.lastTestResult != null && message.hasOwnProperty("lastTestResult")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.verify(message.lastTestResult); + if (error) + return "lastTestResult." + error; + } return null; }; /** - * Creates a LookupEnvironmentHistoryRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestCase message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest} LookupEnvironmentHistoryRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.TestCase} TestCase */ - LookupEnvironmentHistoryRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest) + TestCase.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TestCase) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.TestCase(); if (object.name != null) message.name = String(object.name); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + if (object.tags) { + if (!Array.isArray(object.tags)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCase.tags: array expected"); + message.tags = []; + for (var i = 0; i < object.tags.length; ++i) + message.tags[i] = String(object.tags[i]); + } + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.notes != null) + message.notes = String(object.notes); + if (object.testConfig != null) { + if (typeof object.testConfig !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCase.testConfig: object expected"); + message.testConfig = $root.google.cloud.dialogflow.cx.v3beta1.TestConfig.fromObject(object.testConfig); + } + if (object.testCaseConversationTurns) { + if (!Array.isArray(object.testCaseConversationTurns)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCase.testCaseConversationTurns: array expected"); + message.testCaseConversationTurns = []; + for (var i = 0; i < object.testCaseConversationTurns.length; ++i) { + if (typeof object.testCaseConversationTurns[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCase.testCaseConversationTurns: object expected"); + message.testCaseConversationTurns[i] = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.fromObject(object.testCaseConversationTurns[i]); + } + } + if (object.creationTime != null) { + if (typeof object.creationTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCase.creationTime: object expected"); + message.creationTime = $root.google.protobuf.Timestamp.fromObject(object.creationTime); + } + if (object.lastTestResult != null) { + if (typeof object.lastTestResult !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCase.lastTestResult: object expected"); + message.lastTestResult = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.fromObject(object.lastTestResult); + } return message; }; /** - * Creates a plain object from a LookupEnvironmentHistoryRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestCase message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase * @static - * @param {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest} message LookupEnvironmentHistoryRequest + * @param {google.cloud.dialogflow.cx.v3beta1.TestCase} message TestCase * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LookupEnvironmentHistoryRequest.toObject = function toObject(message, options) { + TestCase.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.tags = []; + object.testCaseConversationTurns = []; + } if (options.defaults) { object.name = ""; - object.pageSize = 0; - object.pageToken = ""; + object.displayName = ""; + object.notes = ""; + object.creationTime = null; + object.lastTestResult = null; + object.testConfig = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (message.tags && message.tags.length) { + object.tags = []; + for (var j = 0; j < message.tags.length; ++j) + object.tags[j] = message.tags[j]; + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.notes != null && message.hasOwnProperty("notes")) + object.notes = message.notes; + if (message.testCaseConversationTurns && message.testCaseConversationTurns.length) { + object.testCaseConversationTurns = []; + for (var j = 0; j < message.testCaseConversationTurns.length; ++j) + object.testCaseConversationTurns[j] = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.toObject(message.testCaseConversationTurns[j], options); + } + if (message.creationTime != null && message.hasOwnProperty("creationTime")) + object.creationTime = $root.google.protobuf.Timestamp.toObject(message.creationTime, options); + if (message.lastTestResult != null && message.hasOwnProperty("lastTestResult")) + object.lastTestResult = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.toObject(message.lastTestResult, options); + if (message.testConfig != null && message.hasOwnProperty("testConfig")) + object.testConfig = $root.google.cloud.dialogflow.cx.v3beta1.TestConfig.toObject(message.testConfig, options); return object; }; /** - * Converts this LookupEnvironmentHistoryRequest to JSON. + * Converts this TestCase to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase * @instance * @returns {Object.} JSON object */ - LookupEnvironmentHistoryRequest.prototype.toJSON = function toJSON() { + TestCase.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return LookupEnvironmentHistoryRequest; + return TestCase; })(); - v3beta1.LookupEnvironmentHistoryResponse = (function() { + v3beta1.TestCaseResult = (function() { /** - * Properties of a LookupEnvironmentHistoryResponse. + * Properties of a TestCaseResult. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ILookupEnvironmentHistoryResponse - * @property {Array.|null} [environments] LookupEnvironmentHistoryResponse environments - * @property {string|null} [nextPageToken] LookupEnvironmentHistoryResponse nextPageToken + * @interface ITestCaseResult + * @property {string|null} [name] TestCaseResult name + * @property {string|null} [environment] TestCaseResult environment + * @property {Array.|null} [conversationTurns] TestCaseResult conversationTurns + * @property {google.cloud.dialogflow.cx.v3beta1.TestResult|null} [testResult] TestCaseResult testResult + * @property {google.protobuf.ITimestamp|null} [testTime] TestCaseResult testTime */ /** - * Constructs a new LookupEnvironmentHistoryResponse. + * Constructs a new TestCaseResult. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a LookupEnvironmentHistoryResponse. - * @implements ILookupEnvironmentHistoryResponse + * @classdesc Represents a TestCaseResult. + * @implements ITestCaseResult * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult=} [properties] Properties to set */ - function LookupEnvironmentHistoryResponse(properties) { - this.environments = []; + function TestCaseResult(properties) { + this.conversationTurns = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -78754,91 +79918,130 @@ } /** - * LookupEnvironmentHistoryResponse environments. - * @member {Array.} environments - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * TestCaseResult name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult * @instance */ - LookupEnvironmentHistoryResponse.prototype.environments = $util.emptyArray; + TestCaseResult.prototype.name = ""; /** - * LookupEnvironmentHistoryResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * TestCaseResult environment. + * @member {string} environment + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult * @instance */ - LookupEnvironmentHistoryResponse.prototype.nextPageToken = ""; + TestCaseResult.prototype.environment = ""; /** - * Creates a new LookupEnvironmentHistoryResponse instance using the specified properties. + * TestCaseResult conversationTurns. + * @member {Array.} conversationTurns + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult + * @instance + */ + TestCaseResult.prototype.conversationTurns = $util.emptyArray; + + /** + * TestCaseResult testResult. + * @member {google.cloud.dialogflow.cx.v3beta1.TestResult} testResult + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult + * @instance + */ + TestCaseResult.prototype.testResult = 0; + + /** + * TestCaseResult testTime. + * @member {google.protobuf.ITimestamp|null|undefined} testTime + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult + * @instance + */ + TestCaseResult.prototype.testTime = null; + + /** + * Creates a new TestCaseResult instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse} LookupEnvironmentHistoryResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseResult} TestCaseResult instance */ - LookupEnvironmentHistoryResponse.create = function create(properties) { - return new LookupEnvironmentHistoryResponse(properties); + TestCaseResult.create = function create(properties) { + return new TestCaseResult(properties); }; /** - * Encodes the specified LookupEnvironmentHistoryResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse.verify|verify} messages. + * Encodes the specified TestCaseResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCaseResult.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse} message LookupEnvironmentHistoryResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult} message TestCaseResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LookupEnvironmentHistoryResponse.encode = function encode(message, writer) { + TestCaseResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.environments != null && message.environments.length) - for (var i = 0; i < message.environments.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Environment.encode(message.environments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.environment); + if (message.conversationTurns != null && message.conversationTurns.length) + for (var i = 0; i < message.conversationTurns.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.encode(message.conversationTurns[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.testResult != null && Object.hasOwnProperty.call(message, "testResult")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.testResult); + if (message.testTime != null && Object.hasOwnProperty.call(message, "testTime")) + $root.google.protobuf.Timestamp.encode(message.testTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified LookupEnvironmentHistoryResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse.verify|verify} messages. + * Encodes the specified TestCaseResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCaseResult.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse} message LookupEnvironmentHistoryResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult} message TestCaseResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LookupEnvironmentHistoryResponse.encodeDelimited = function encodeDelimited(message, writer) { + TestCaseResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LookupEnvironmentHistoryResponse message from the specified reader or buffer. + * Decodes a TestCaseResult message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse} LookupEnvironmentHistoryResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseResult} TestCaseResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LookupEnvironmentHistoryResponse.decode = function decode(reader, length) { + TestCaseResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.environments && message.environments.length)) - message.environments = []; - message.environments.push($root.google.cloud.dialogflow.cx.v3beta1.Environment.decode(reader, reader.uint32())); + message.name = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + message.environment = reader.string(); + break; + case 3: + if (!(message.conversationTurns && message.conversationTurns.length)) + message.conversationTurns = []; + message.conversationTurns.push($root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.decode(reader, reader.uint32())); + break; + case 4: + message.testResult = reader.int32(); + break; + case 5: + message.testTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -78849,411 +80052,183 @@ }; /** - * Decodes a LookupEnvironmentHistoryResponse message from the specified reader or buffer, length delimited. + * Decodes a TestCaseResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse} LookupEnvironmentHistoryResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseResult} TestCaseResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LookupEnvironmentHistoryResponse.decodeDelimited = function decodeDelimited(reader) { + TestCaseResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LookupEnvironmentHistoryResponse message. + * Verifies a TestCaseResult message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LookupEnvironmentHistoryResponse.verify = function verify(message) { + TestCaseResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.environments != null && message.hasOwnProperty("environments")) { - if (!Array.isArray(message.environments)) - return "environments: array expected"; - for (var i = 0; i < message.environments.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Environment.verify(message.environments[i]); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.environment != null && message.hasOwnProperty("environment")) + if (!$util.isString(message.environment)) + return "environment: string expected"; + if (message.conversationTurns != null && message.hasOwnProperty("conversationTurns")) { + if (!Array.isArray(message.conversationTurns)) + return "conversationTurns: array expected"; + for (var i = 0; i < message.conversationTurns.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.verify(message.conversationTurns[i]); if (error) - return "environments." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; - - /** - * Creates a LookupEnvironmentHistoryResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse} LookupEnvironmentHistoryResponse - */ - LookupEnvironmentHistoryResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse(); - if (object.environments) { - if (!Array.isArray(object.environments)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse.environments: array expected"); - message.environments = []; - for (var i = 0; i < object.environments.length; ++i) { - if (typeof object.environments[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse.environments: object expected"); - message.environments[i] = $root.google.cloud.dialogflow.cx.v3beta1.Environment.fromObject(object.environments[i]); + return "conversationTurns." + error; } } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; - - /** - * Creates a plain object from a LookupEnvironmentHistoryResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse} message LookupEnvironmentHistoryResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - LookupEnvironmentHistoryResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.environments = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.environments && message.environments.length) { - object.environments = []; - for (var j = 0; j < message.environments.length; ++j) - object.environments[j] = $root.google.cloud.dialogflow.cx.v3beta1.Environment.toObject(message.environments[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; - - /** - * Converts this LookupEnvironmentHistoryResponse to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse - * @instance - * @returns {Object.} JSON object - */ - LookupEnvironmentHistoryResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return LookupEnvironmentHistoryResponse; - })(); - - v3beta1.Experiments = (function() { - - /** - * Constructs a new Experiments service. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an Experiments - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Experiments(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Experiments.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Experiments; - - /** - * Creates new Experiments service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {Experiments} RPC service. Useful where requests and/or responses are streamed. - */ - Experiments.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#listExperiments}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @typedef ListExperimentsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse} [response] ListExperimentsResponse - */ - - /** - * Calls ListExperiments. - * @function listExperiments - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest} request ListExperimentsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Experiments.ListExperimentsCallback} callback Node-style callback called with the error, if any, and ListExperimentsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Experiments.prototype.listExperiments = function listExperiments(request, callback) { - return this.rpcCall(listExperiments, $root.google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse, request, callback); - }, "name", { value: "ListExperiments" }); - - /** - * Calls ListExperiments. - * @function listExperiments - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest} request ListExperimentsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#getExperiment}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @typedef GetExperimentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment} [response] Experiment - */ - - /** - * Calls GetExperiment. - * @function getExperiment - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest} request GetExperimentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Experiments.GetExperimentCallback} callback Node-style callback called with the error, if any, and Experiment - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Experiments.prototype.getExperiment = function getExperiment(request, callback) { - return this.rpcCall(getExperiment, $root.google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Experiment, request, callback); - }, "name", { value: "GetExperiment" }); - - /** - * Calls GetExperiment. - * @function getExperiment - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest} request GetExperimentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#createExperiment}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @typedef CreateExperimentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment} [response] Experiment - */ - - /** - * Calls CreateExperiment. - * @function createExperiment - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest} request CreateExperimentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Experiments.CreateExperimentCallback} callback Node-style callback called with the error, if any, and Experiment - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Experiments.prototype.createExperiment = function createExperiment(request, callback) { - return this.rpcCall(createExperiment, $root.google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Experiment, request, callback); - }, "name", { value: "CreateExperiment" }); - - /** - * Calls CreateExperiment. - * @function createExperiment - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest} request CreateExperimentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#updateExperiment}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @typedef UpdateExperimentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment} [response] Experiment - */ - - /** - * Calls UpdateExperiment. - * @function updateExperiment - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest} request UpdateExperimentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Experiments.UpdateExperimentCallback} callback Node-style callback called with the error, if any, and Experiment - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Experiments.prototype.updateExperiment = function updateExperiment(request, callback) { - return this.rpcCall(updateExperiment, $root.google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Experiment, request, callback); - }, "name", { value: "UpdateExperiment" }); - - /** - * Calls UpdateExperiment. - * @function updateExperiment - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest} request UpdateExperimentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#deleteExperiment}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @typedef DeleteExperimentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty - */ - - /** - * Calls DeleteExperiment. - * @function deleteExperiment - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest} request DeleteExperimentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Experiments.DeleteExperimentCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Experiments.prototype.deleteExperiment = function deleteExperiment(request, callback) { - return this.rpcCall(deleteExperiment, $root.google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteExperiment" }); - - /** - * Calls DeleteExperiment. - * @function deleteExperiment - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest} request DeleteExperimentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#startExperiment}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @typedef StartExperimentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment} [response] Experiment - */ - - /** - * Calls StartExperiment. - * @function startExperiment - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest} request StartExperimentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Experiments.StartExperimentCallback} callback Node-style callback called with the error, if any, and Experiment - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Experiments.prototype.startExperiment = function startExperiment(request, callback) { - return this.rpcCall(startExperiment, $root.google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Experiment, request, callback); - }, "name", { value: "StartExperiment" }); - - /** - * Calls StartExperiment. - * @function startExperiment - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest} request StartExperimentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + if (message.testResult != null && message.hasOwnProperty("testResult")) + switch (message.testResult) { + default: + return "testResult: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.testTime != null && message.hasOwnProperty("testTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.testTime); + if (error) + return "testTime." + error; + } + return null; + }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#stopExperiment}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @typedef StopExperimentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment} [response] Experiment + * Creates a TestCaseResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseResult} TestCaseResult */ + TestCaseResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult(); + if (object.name != null) + message.name = String(object.name); + if (object.environment != null) + message.environment = String(object.environment); + if (object.conversationTurns) { + if (!Array.isArray(object.conversationTurns)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCaseResult.conversationTurns: array expected"); + message.conversationTurns = []; + for (var i = 0; i < object.conversationTurns.length; ++i) { + if (typeof object.conversationTurns[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCaseResult.conversationTurns: object expected"); + message.conversationTurns[i] = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.fromObject(object.conversationTurns[i]); + } + } + switch (object.testResult) { + case "TEST_RESULT_UNSPECIFIED": + case 0: + message.testResult = 0; + break; + case "PASSED": + case 1: + message.testResult = 1; + break; + case "FAILED": + case 2: + message.testResult = 2; + break; + } + if (object.testTime != null) { + if (typeof object.testTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCaseResult.testTime: object expected"); + message.testTime = $root.google.protobuf.Timestamp.fromObject(object.testTime); + } + return message; + }; /** - * Calls StopExperiment. - * @function stopExperiment - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest} request StopExperimentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Experiments.StopExperimentCallback} callback Node-style callback called with the error, if any, and Experiment - * @returns {undefined} - * @variation 1 + * Creates a plain object from a TestCaseResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TestCaseResult} message TestCaseResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(Experiments.prototype.stopExperiment = function stopExperiment(request, callback) { - return this.rpcCall(stopExperiment, $root.google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Experiment, request, callback); - }, "name", { value: "StopExperiment" }); + TestCaseResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.conversationTurns = []; + if (options.defaults) { + object.name = ""; + object.environment = ""; + object.testResult = options.enums === String ? "TEST_RESULT_UNSPECIFIED" : 0; + object.testTime = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = message.environment; + if (message.conversationTurns && message.conversationTurns.length) { + object.conversationTurns = []; + for (var j = 0; j < message.conversationTurns.length; ++j) + object.conversationTurns[j] = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.toObject(message.conversationTurns[j], options); + } + if (message.testResult != null && message.hasOwnProperty("testResult")) + object.testResult = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.TestResult[message.testResult] : message.testResult; + if (message.testTime != null && message.hasOwnProperty("testTime")) + object.testTime = $root.google.protobuf.Timestamp.toObject(message.testTime, options); + return object; + }; /** - * Calls StopExperiment. - * @function stopExperiment - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * Converts this TestCaseResult to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest} request StopExperimentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + TestCaseResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Experiments; + return TestCaseResult; })(); - v3beta1.Experiment = (function() { + v3beta1.TestConfig = (function() { /** - * Properties of an Experiment. + * Properties of a TestConfig. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IExperiment - * @property {string|null} [name] Experiment name - * @property {string|null} [displayName] Experiment displayName - * @property {string|null} [description] Experiment description - * @property {google.cloud.dialogflow.cx.v3beta1.Experiment.State|null} [state] Experiment state - * @property {google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition|null} [definition] Experiment definition - * @property {google.cloud.dialogflow.cx.v3beta1.Experiment.IResult|null} [result] Experiment result - * @property {google.protobuf.ITimestamp|null} [createTime] Experiment createTime - * @property {google.protobuf.ITimestamp|null} [startTime] Experiment startTime - * @property {google.protobuf.ITimestamp|null} [endTime] Experiment endTime - * @property {google.protobuf.ITimestamp|null} [lastUpdateTime] Experiment lastUpdateTime - * @property {google.protobuf.IDuration|null} [experimentLength] Experiment experimentLength - * @property {Array.|null} [variantsHistory] Experiment variantsHistory + * @interface ITestConfig + * @property {Array.|null} [trackingParameters] TestConfig trackingParameters + * @property {string|null} [flow] TestConfig flow */ /** - * Constructs a new Experiment. + * Constructs a new TestConfig. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an Experiment. - * @implements IExperiment + * @classdesc Represents a TestConfig. + * @implements ITestConfig * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IExperiment=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ITestConfig=} [properties] Properties to set */ - function Experiment(properties) { - this.variantsHistory = []; + function TestConfig(properties) { + this.trackingParameters = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -79261,221 +80236,313 @@ } /** - * Experiment name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * TestConfig trackingParameters. + * @member {Array.} trackingParameters + * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig * @instance */ - Experiment.prototype.name = ""; + TestConfig.prototype.trackingParameters = $util.emptyArray; /** - * Experiment displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * TestConfig flow. + * @member {string} flow + * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig * @instance */ - Experiment.prototype.displayName = ""; + TestConfig.prototype.flow = ""; /** - * Experiment description. - * @member {string} description - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment - * @instance + * Creates a new TestConfig instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ITestConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TestConfig} TestConfig instance */ - Experiment.prototype.description = ""; + TestConfig.create = function create(properties) { + return new TestConfig(properties); + }; /** - * Experiment state. - * @member {google.cloud.dialogflow.cx.v3beta1.Experiment.State} state - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment - * @instance + * Encodes the specified TestConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ITestConfig} message TestConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Experiment.prototype.state = 0; + TestConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.trackingParameters != null && message.trackingParameters.length) + for (var i = 0; i < message.trackingParameters.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.trackingParameters[i]); + if (message.flow != null && Object.hasOwnProperty.call(message, "flow")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.flow); + return writer; + }; /** - * Experiment definition. - * @member {google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition|null|undefined} definition - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment - * @instance + * Encodes the specified TestConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ITestConfig} message TestConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Experiment.prototype.definition = null; + TestConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Experiment result. - * @member {google.cloud.dialogflow.cx.v3beta1.Experiment.IResult|null|undefined} result - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment - * @instance + * Decodes a TestConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.TestConfig} TestConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Experiment.prototype.result = null; + TestConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TestConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.trackingParameters && message.trackingParameters.length)) + message.trackingParameters = []; + message.trackingParameters.push(reader.string()); + break; + case 2: + message.flow = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Experiment createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment - * @instance + * Decodes a TestConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.TestConfig} TestConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Experiment.prototype.createTime = null; + TestConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Experiment startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment - * @instance + * Verifies a TestConfig message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Experiment.prototype.startTime = null; + TestConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.trackingParameters != null && message.hasOwnProperty("trackingParameters")) { + if (!Array.isArray(message.trackingParameters)) + return "trackingParameters: array expected"; + for (var i = 0; i < message.trackingParameters.length; ++i) + if (!$util.isString(message.trackingParameters[i])) + return "trackingParameters: string[] expected"; + } + if (message.flow != null && message.hasOwnProperty("flow")) + if (!$util.isString(message.flow)) + return "flow: string expected"; + return null; + }; /** - * Experiment endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment - * @instance + * Creates a TestConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.TestConfig} TestConfig */ - Experiment.prototype.endTime = null; + TestConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TestConfig) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.TestConfig(); + if (object.trackingParameters) { + if (!Array.isArray(object.trackingParameters)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestConfig.trackingParameters: array expected"); + message.trackingParameters = []; + for (var i = 0; i < object.trackingParameters.length; ++i) + message.trackingParameters[i] = String(object.trackingParameters[i]); + } + if (object.flow != null) + message.flow = String(object.flow); + return message; + }; /** - * Experiment lastUpdateTime. - * @member {google.protobuf.ITimestamp|null|undefined} lastUpdateTime - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * Creates a plain object from a TestConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TestConfig} message TestConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TestConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.trackingParameters = []; + if (options.defaults) + object.flow = ""; + if (message.trackingParameters && message.trackingParameters.length) { + object.trackingParameters = []; + for (var j = 0; j < message.trackingParameters.length; ++j) + object.trackingParameters[j] = message.trackingParameters[j]; + } + if (message.flow != null && message.hasOwnProperty("flow")) + object.flow = message.flow; + return object; + }; + + /** + * Converts this TestConfig to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig * @instance + * @returns {Object.} JSON object */ - Experiment.prototype.lastUpdateTime = null; + TestConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return TestConfig; + })(); + + v3beta1.ConversationTurn = (function() { /** - * Experiment experimentLength. - * @member {google.protobuf.IDuration|null|undefined} experimentLength - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * Properties of a ConversationTurn. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IConversationTurn + * @property {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput|null} [userInput] ConversationTurn userInput + * @property {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput|null} [virtualAgentOutput] ConversationTurn virtualAgentOutput + */ + + /** + * Constructs a new ConversationTurn. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a ConversationTurn. + * @implements IConversationTurn + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IConversationTurn=} [properties] Properties to set + */ + function ConversationTurn(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ConversationTurn userInput. + * @member {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput|null|undefined} userInput + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn * @instance */ - Experiment.prototype.experimentLength = null; + ConversationTurn.prototype.userInput = null; /** - * Experiment variantsHistory. - * @member {Array.} variantsHistory - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * ConversationTurn virtualAgentOutput. + * @member {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput|null|undefined} virtualAgentOutput + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn * @instance */ - Experiment.prototype.variantsHistory = $util.emptyArray; + ConversationTurn.prototype.virtualAgentOutput = null; /** - * Creates a new Experiment instance using the specified properties. + * Creates a new ConversationTurn instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExperiment=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment} Experiment instance + * @param {google.cloud.dialogflow.cx.v3beta1.IConversationTurn=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn} ConversationTurn instance */ - Experiment.create = function create(properties) { - return new Experiment(properties); + ConversationTurn.create = function create(properties) { + return new ConversationTurn(properties); }; /** - * Encodes the specified Experiment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.verify|verify} messages. + * Encodes the specified ConversationTurn message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExperiment} message Experiment message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IConversationTurn} message ConversationTurn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Experiment.encode = function encode(message, writer) { + ConversationTurn.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state); - if (message.definition != null && Object.hasOwnProperty.call(message, "definition")) - $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.encode(message.definition, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.encode(message.result, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.lastUpdateTime != null && Object.hasOwnProperty.call(message, "lastUpdateTime")) - $root.google.protobuf.Timestamp.encode(message.lastUpdateTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.experimentLength != null && Object.hasOwnProperty.call(message, "experimentLength")) - $root.google.protobuf.Duration.encode(message.experimentLength, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.variantsHistory != null && message.variantsHistory.length) - for (var i = 0; i < message.variantsHistory.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.VariantsHistory.encode(message.variantsHistory[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.userInput != null && Object.hasOwnProperty.call(message, "userInput")) + $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.encode(message.userInput, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.virtualAgentOutput != null && Object.hasOwnProperty.call(message, "virtualAgentOutput")) + $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.encode(message.virtualAgentOutput, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified Experiment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.verify|verify} messages. + * Encodes the specified ConversationTurn message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExperiment} message Experiment message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IConversationTurn} message ConversationTurn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Experiment.encodeDelimited = function encodeDelimited(message, writer) { + ConversationTurn.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Experiment message from the specified reader or buffer. + * Decodes a ConversationTurn message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment} Experiment + * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn} ConversationTurn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Experiment.decode = function decode(reader, length) { + ConversationTurn.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.userInput = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.decode(reader, reader.uint32()); break; case 2: - message.displayName = reader.string(); - break; - case 3: - message.description = reader.string(); - break; - case 4: - message.state = reader.int32(); - break; - case 5: - message.definition = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.decode(reader, reader.uint32()); - break; - case 6: - message.result = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.decode(reader, reader.uint32()); - break; - case 7: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 8: - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 9: - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 10: - message.lastUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 11: - message.experimentLength = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - case 12: - if (!(message.variantsHistory && message.variantsHistory.length)) - message.variantsHistory = []; - message.variantsHistory.push($root.google.cloud.dialogflow.cx.v3beta1.VariantsHistory.decode(reader, reader.uint32())); + message.virtualAgentOutput = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -79486,270 +80553,125 @@ }; /** - * Decodes an Experiment message from the specified reader or buffer, length delimited. + * Decodes a ConversationTurn message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment} Experiment + * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn} ConversationTurn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Experiment.decodeDelimited = function decodeDelimited(reader) { + ConversationTurn.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Experiment message. + * Verifies a ConversationTurn message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Experiment.verify = function verify(message) { + ConversationTurn.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.definition != null && message.hasOwnProperty("definition")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.verify(message.definition); - if (error) - return "definition." + error; - } - if (message.result != null && message.hasOwnProperty("result")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.verify(message.result); - if (error) - return "result." + error; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; - } - if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.lastUpdateTime); + if (message.userInput != null && message.hasOwnProperty("userInput")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.verify(message.userInput); if (error) - return "lastUpdateTime." + error; + return "userInput." + error; } - if (message.experimentLength != null && message.hasOwnProperty("experimentLength")) { - var error = $root.google.protobuf.Duration.verify(message.experimentLength); + if (message.virtualAgentOutput != null && message.hasOwnProperty("virtualAgentOutput")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.verify(message.virtualAgentOutput); if (error) - return "experimentLength." + error; - } - if (message.variantsHistory != null && message.hasOwnProperty("variantsHistory")) { - if (!Array.isArray(message.variantsHistory)) - return "variantsHistory: array expected"; - for (var i = 0; i < message.variantsHistory.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.VariantsHistory.verify(message.variantsHistory[i]); - if (error) - return "variantsHistory." + error; - } + return "virtualAgentOutput." + error; } return null; }; /** - * Creates an Experiment message from a plain object. Also converts values to their respective internal types. + * Creates a ConversationTurn message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment} Experiment + * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn} ConversationTurn */ - Experiment.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Experiment) + ConversationTurn.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.description != null) - message.description = String(object.description); - switch (object.state) { - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "DRAFT": - case 1: - message.state = 1; - break; - case "RUNNING": - case 2: - message.state = 2; - break; - case "DONE": - case 3: - message.state = 3; - break; - } - if (object.definition != null) { - if (typeof object.definition !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.definition: object expected"); - message.definition = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.fromObject(object.definition); - } - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.result: object expected"); - message.result = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.fromObject(object.result); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); - } - if (object.lastUpdateTime != null) { - if (typeof object.lastUpdateTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.lastUpdateTime: object expected"); - message.lastUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.lastUpdateTime); - } - if (object.experimentLength != null) { - if (typeof object.experimentLength !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.experimentLength: object expected"); - message.experimentLength = $root.google.protobuf.Duration.fromObject(object.experimentLength); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn(); + if (object.userInput != null) { + if (typeof object.userInput !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.userInput: object expected"); + message.userInput = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.fromObject(object.userInput); } - if (object.variantsHistory) { - if (!Array.isArray(object.variantsHistory)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.variantsHistory: array expected"); - message.variantsHistory = []; - for (var i = 0; i < object.variantsHistory.length; ++i) { - if (typeof object.variantsHistory[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.variantsHistory: object expected"); - message.variantsHistory[i] = $root.google.cloud.dialogflow.cx.v3beta1.VariantsHistory.fromObject(object.variantsHistory[i]); - } + if (object.virtualAgentOutput != null) { + if (typeof object.virtualAgentOutput !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.virtualAgentOutput: object expected"); + message.virtualAgentOutput = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.fromObject(object.virtualAgentOutput); } return message; }; /** - * Creates a plain object from an Experiment message. Also converts values to other types if specified. + * Creates a plain object from a ConversationTurn message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment} message Experiment + * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn} message ConversationTurn * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Experiment.toObject = function toObject(message, options) { + ConversationTurn.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.variantsHistory = []; if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.description = ""; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.definition = null; - object.result = null; - object.createTime = null; - object.startTime = null; - object.endTime = null; - object.lastUpdateTime = null; - object.experimentLength = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.Experiment.State[message.state] : message.state; - if (message.definition != null && message.hasOwnProperty("definition")) - object.definition = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.toObject(message.definition, options); - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.toObject(message.result, options); - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) - object.lastUpdateTime = $root.google.protobuf.Timestamp.toObject(message.lastUpdateTime, options); - if (message.experimentLength != null && message.hasOwnProperty("experimentLength")) - object.experimentLength = $root.google.protobuf.Duration.toObject(message.experimentLength, options); - if (message.variantsHistory && message.variantsHistory.length) { - object.variantsHistory = []; - for (var j = 0; j < message.variantsHistory.length; ++j) - object.variantsHistory[j] = $root.google.cloud.dialogflow.cx.v3beta1.VariantsHistory.toObject(message.variantsHistory[j], options); + object.userInput = null; + object.virtualAgentOutput = null; } + if (message.userInput != null && message.hasOwnProperty("userInput")) + object.userInput = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.toObject(message.userInput, options); + if (message.virtualAgentOutput != null && message.hasOwnProperty("virtualAgentOutput")) + object.virtualAgentOutput = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.toObject(message.virtualAgentOutput, options); return object; }; /** - * Converts this Experiment to JSON. + * Converts this ConversationTurn to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn * @instance * @returns {Object.} JSON object */ - Experiment.prototype.toJSON = function toJSON() { + ConversationTurn.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - Experiment.Definition = (function() { + ConversationTurn.UserInput = (function() { /** - * Properties of a Definition. - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment - * @interface IDefinition - * @property {string|null} [condition] Definition condition - * @property {google.cloud.dialogflow.cx.v3beta1.IVersionVariants|null} [versionVariants] Definition versionVariants + * Properties of a UserInput. + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn + * @interface IUserInput + * @property {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null} [input] UserInput input + * @property {google.protobuf.IStruct|null} [injectedParameters] UserInput injectedParameters + * @property {boolean|null} [isWebhookEnabled] UserInput isWebhookEnabled */ /** - * Constructs a new Definition. - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment - * @classdesc Represents a Definition. - * @implements IDefinition + * Constructs a new UserInput. + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn + * @classdesc Represents a UserInput. + * @implements IUserInput * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput=} [properties] Properties to set */ - function Definition(properties) { + function UserInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -79757,326 +80679,101 @@ } /** - * Definition condition. - * @member {string} condition - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition - * @instance - */ - Definition.prototype.condition = ""; - - /** - * Definition versionVariants. - * @member {google.cloud.dialogflow.cx.v3beta1.IVersionVariants|null|undefined} versionVariants - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition - * @instance - */ - Definition.prototype.versionVariants = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Definition variants. - * @member {"versionVariants"|undefined} variants - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition - * @instance - */ - Object.defineProperty(Definition.prototype, "variants", { - get: $util.oneOfGetter($oneOfFields = ["versionVariants"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new Definition instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Definition} Definition instance - */ - Definition.create = function create(properties) { - return new Definition(properties); - }; - - /** - * Encodes the specified Definition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition} message Definition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Definition.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.condition != null && Object.hasOwnProperty.call(message, "condition")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.condition); - if (message.versionVariants != null && Object.hasOwnProperty.call(message, "versionVariants")) - $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.encode(message.versionVariants, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified Definition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition} message Definition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Definition.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Definition message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Definition} Definition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Definition.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.condition = reader.string(); - break; - case 2: - message.versionVariants = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Definition message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Definition} Definition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Definition.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Definition message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Definition.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.condition != null && message.hasOwnProperty("condition")) - if (!$util.isString(message.condition)) - return "condition: string expected"; - if (message.versionVariants != null && message.hasOwnProperty("versionVariants")) { - properties.variants = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.verify(message.versionVariants); - if (error) - return "versionVariants." + error; - } - } - return null; - }; - - /** - * Creates a Definition message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Definition} Definition - */ - Definition.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition(); - if (object.condition != null) - message.condition = String(object.condition); - if (object.versionVariants != null) { - if (typeof object.versionVariants !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.versionVariants: object expected"); - message.versionVariants = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.fromObject(object.versionVariants); - } - return message; - }; - - /** - * Creates a plain object from a Definition message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Definition} message Definition - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Definition.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.condition = ""; - if (message.condition != null && message.hasOwnProperty("condition")) - object.condition = message.condition; - if (message.versionVariants != null && message.hasOwnProperty("versionVariants")) { - object.versionVariants = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.toObject(message.versionVariants, options); - if (options.oneofs) - object.variants = "versionVariants"; - } - return object; - }; - - /** - * Converts this Definition to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition + * UserInput input. + * @member {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null|undefined} input + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput * @instance - * @returns {Object.} JSON object - */ - Definition.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Definition; - })(); - - Experiment.Result = (function() { - - /** - * Properties of a Result. - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment - * @interface IResult - * @property {Array.|null} [versionMetrics] Result versionMetrics - * @property {google.protobuf.ITimestamp|null} [lastUpdateTime] Result lastUpdateTime - */ - - /** - * Constructs a new Result. - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment - * @classdesc Represents a Result. - * @implements IResult - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.IResult=} [properties] Properties to set */ - function Result(properties) { - this.versionMetrics = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + UserInput.prototype.input = null; /** - * Result versionMetrics. - * @member {Array.} versionMetrics - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * UserInput injectedParameters. + * @member {google.protobuf.IStruct|null|undefined} injectedParameters + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput * @instance */ - Result.prototype.versionMetrics = $util.emptyArray; + UserInput.prototype.injectedParameters = null; /** - * Result lastUpdateTime. - * @member {google.protobuf.ITimestamp|null|undefined} lastUpdateTime - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * UserInput isWebhookEnabled. + * @member {boolean} isWebhookEnabled + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput * @instance */ - Result.prototype.lastUpdateTime = null; + UserInput.prototype.isWebhookEnabled = false; /** - * Creates a new Result instance using the specified properties. + * Creates a new UserInput instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.IResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result} Result instance + * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput} UserInput instance */ - Result.create = function create(properties) { - return new Result(properties); + UserInput.create = function create(properties) { + return new UserInput(properties); }; /** - * Encodes the specified Result message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.verify|verify} messages. + * Encodes the specified UserInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.IResult} message Result message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput} message UserInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Result.encode = function encode(message, writer) { + UserInput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.versionMetrics != null && message.versionMetrics.length) - for (var i = 0; i < message.versionMetrics.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.encode(message.versionMetrics[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.lastUpdateTime != null && Object.hasOwnProperty.call(message, "lastUpdateTime")) - $root.google.protobuf.Timestamp.encode(message.lastUpdateTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.injectedParameters != null && Object.hasOwnProperty.call(message, "injectedParameters")) + $root.google.protobuf.Struct.encode(message.injectedParameters, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.isWebhookEnabled != null && Object.hasOwnProperty.call(message, "isWebhookEnabled")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isWebhookEnabled); + if (message.input != null && Object.hasOwnProperty.call(message, "input")) + $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.encode(message.input, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified Result message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.verify|verify} messages. + * Encodes the specified UserInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.IResult} message Result message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput} message UserInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Result.encodeDelimited = function encodeDelimited(message, writer) { + UserInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Result message from the specified reader or buffer. + * Decodes a UserInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result} Result + * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput} UserInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Result.decode = function decode(reader, length) { + UserInput.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.versionMetrics && message.versionMetrics.length)) - message.versionMetrics = []; - message.versionMetrics.push($root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.decode(reader, reader.uint32())); + case 5: + message.input = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.decode(reader, reader.uint32()); break; case 2: - message.lastUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.injectedParameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 3: + message.isWebhookEnabled = reader.bool(); break; default: reader.skipType(tag & 7); @@ -80087,1070 +80784,786 @@ }; /** - * Decodes a Result message from the specified reader or buffer, length delimited. + * Decodes a UserInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result} Result + * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput} UserInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Result.decodeDelimited = function decodeDelimited(reader) { + UserInput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Result message. + * Verifies a UserInput message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Result.verify = function verify(message) { + UserInput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.versionMetrics != null && message.hasOwnProperty("versionMetrics")) { - if (!Array.isArray(message.versionMetrics)) - return "versionMetrics: array expected"; - for (var i = 0; i < message.versionMetrics.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.verify(message.versionMetrics[i]); - if (error) - return "versionMetrics." + error; - } + if (message.input != null && message.hasOwnProperty("input")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.verify(message.input); + if (error) + return "input." + error; } - if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.lastUpdateTime); + if (message.injectedParameters != null && message.hasOwnProperty("injectedParameters")) { + var error = $root.google.protobuf.Struct.verify(message.injectedParameters); if (error) - return "lastUpdateTime." + error; + return "injectedParameters." + error; } + if (message.isWebhookEnabled != null && message.hasOwnProperty("isWebhookEnabled")) + if (typeof message.isWebhookEnabled !== "boolean") + return "isWebhookEnabled: boolean expected"; return null; }; /** - * Creates a Result message from a plain object. Also converts values to their respective internal types. + * Creates a UserInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result} Result + * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput} UserInput */ - Result.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result) + UserInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result(); - if (object.versionMetrics) { - if (!Array.isArray(object.versionMetrics)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.Result.versionMetrics: array expected"); - message.versionMetrics = []; - for (var i = 0; i < object.versionMetrics.length; ++i) { - if (typeof object.versionMetrics[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.Result.versionMetrics: object expected"); - message.versionMetrics[i] = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.fromObject(object.versionMetrics[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput(); + if (object.input != null) { + if (typeof object.input !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.input: object expected"); + message.input = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.fromObject(object.input); } - if (object.lastUpdateTime != null) { - if (typeof object.lastUpdateTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.Result.lastUpdateTime: object expected"); - message.lastUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.lastUpdateTime); + if (object.injectedParameters != null) { + if (typeof object.injectedParameters !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.injectedParameters: object expected"); + message.injectedParameters = $root.google.protobuf.Struct.fromObject(object.injectedParameters); } + if (object.isWebhookEnabled != null) + message.isWebhookEnabled = Boolean(object.isWebhookEnabled); return message; }; /** - * Creates a plain object from a Result message. Also converts values to other types if specified. + * Creates a plain object from a UserInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result} message Result + * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput} message UserInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Result.toObject = function toObject(message, options) { + UserInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.versionMetrics = []; - if (options.defaults) - object.lastUpdateTime = null; - if (message.versionMetrics && message.versionMetrics.length) { - object.versionMetrics = []; - for (var j = 0; j < message.versionMetrics.length; ++j) - object.versionMetrics[j] = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.toObject(message.versionMetrics[j], options); + if (options.defaults) { + object.injectedParameters = null; + object.isWebhookEnabled = false; + object.input = null; } - if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) - object.lastUpdateTime = $root.google.protobuf.Timestamp.toObject(message.lastUpdateTime, options); + if (message.injectedParameters != null && message.hasOwnProperty("injectedParameters")) + object.injectedParameters = $root.google.protobuf.Struct.toObject(message.injectedParameters, options); + if (message.isWebhookEnabled != null && message.hasOwnProperty("isWebhookEnabled")) + object.isWebhookEnabled = message.isWebhookEnabled; + if (message.input != null && message.hasOwnProperty("input")) + object.input = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.toObject(message.input, options); return object; }; /** - * Converts this Result to JSON. + * Converts this UserInput to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput * @instance * @returns {Object.} JSON object */ - Result.prototype.toJSON = function toJSON() { + UserInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - Result.ConfidenceInterval = (function() { - - /** - * Properties of a ConfidenceInterval. - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result - * @interface IConfidenceInterval - * @property {number|null} [confidenceLevel] ConfidenceInterval confidenceLevel - * @property {number|null} [ratio] ConfidenceInterval ratio - * @property {number|null} [lowerBound] ConfidenceInterval lowerBound - * @property {number|null} [upperBound] ConfidenceInterval upperBound - */ - - /** - * Constructs a new ConfidenceInterval. - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result - * @classdesc Represents a ConfidenceInterval. - * @implements IConfidenceInterval - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval=} [properties] Properties to set - */ - function ConfidenceInterval(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ConfidenceInterval confidenceLevel. - * @member {number} confidenceLevel - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval - * @instance - */ - ConfidenceInterval.prototype.confidenceLevel = 0; - - /** - * ConfidenceInterval ratio. - * @member {number} ratio - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval - * @instance - */ - ConfidenceInterval.prototype.ratio = 0; - - /** - * ConfidenceInterval lowerBound. - * @member {number} lowerBound - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval - * @instance - */ - ConfidenceInterval.prototype.lowerBound = 0; - - /** - * ConfidenceInterval upperBound. - * @member {number} upperBound - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval - * @instance - */ - ConfidenceInterval.prototype.upperBound = 0; - - /** - * Creates a new ConfidenceInterval instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval} ConfidenceInterval instance - */ - ConfidenceInterval.create = function create(properties) { - return new ConfidenceInterval(properties); - }; - - /** - * Encodes the specified ConfidenceInterval message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval} message ConfidenceInterval message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConfidenceInterval.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.confidenceLevel != null && Object.hasOwnProperty.call(message, "confidenceLevel")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.confidenceLevel); - if (message.ratio != null && Object.hasOwnProperty.call(message, "ratio")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.ratio); - if (message.lowerBound != null && Object.hasOwnProperty.call(message, "lowerBound")) - writer.uint32(/* id 3, wireType 1 =*/25).double(message.lowerBound); - if (message.upperBound != null && Object.hasOwnProperty.call(message, "upperBound")) - writer.uint32(/* id 4, wireType 1 =*/33).double(message.upperBound); - return writer; - }; - - /** - * Encodes the specified ConfidenceInterval message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval} message ConfidenceInterval message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConfidenceInterval.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ConfidenceInterval message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval} ConfidenceInterval - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConfidenceInterval.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.confidenceLevel = reader.double(); - break; - case 2: - message.ratio = reader.double(); - break; - case 3: - message.lowerBound = reader.double(); - break; - case 4: - message.upperBound = reader.double(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ConfidenceInterval message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval} ConfidenceInterval - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConfidenceInterval.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ConfidenceInterval message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ConfidenceInterval.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.confidenceLevel != null && message.hasOwnProperty("confidenceLevel")) - if (typeof message.confidenceLevel !== "number") - return "confidenceLevel: number expected"; - if (message.ratio != null && message.hasOwnProperty("ratio")) - if (typeof message.ratio !== "number") - return "ratio: number expected"; - if (message.lowerBound != null && message.hasOwnProperty("lowerBound")) - if (typeof message.lowerBound !== "number") - return "lowerBound: number expected"; - if (message.upperBound != null && message.hasOwnProperty("upperBound")) - if (typeof message.upperBound !== "number") - return "upperBound: number expected"; - return null; - }; - - /** - * Creates a ConfidenceInterval message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval} ConfidenceInterval - */ - ConfidenceInterval.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval(); - if (object.confidenceLevel != null) - message.confidenceLevel = Number(object.confidenceLevel); - if (object.ratio != null) - message.ratio = Number(object.ratio); - if (object.lowerBound != null) - message.lowerBound = Number(object.lowerBound); - if (object.upperBound != null) - message.upperBound = Number(object.upperBound); - return message; - }; - - /** - * Creates a plain object from a ConfidenceInterval message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval} message ConfidenceInterval - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ConfidenceInterval.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.confidenceLevel = 0; - object.ratio = 0; - object.lowerBound = 0; - object.upperBound = 0; - } - if (message.confidenceLevel != null && message.hasOwnProperty("confidenceLevel")) - object.confidenceLevel = options.json && !isFinite(message.confidenceLevel) ? String(message.confidenceLevel) : message.confidenceLevel; - if (message.ratio != null && message.hasOwnProperty("ratio")) - object.ratio = options.json && !isFinite(message.ratio) ? String(message.ratio) : message.ratio; - if (message.lowerBound != null && message.hasOwnProperty("lowerBound")) - object.lowerBound = options.json && !isFinite(message.lowerBound) ? String(message.lowerBound) : message.lowerBound; - if (message.upperBound != null && message.hasOwnProperty("upperBound")) - object.upperBound = options.json && !isFinite(message.upperBound) ? String(message.upperBound) : message.upperBound; - return object; - }; - - /** - * Converts this ConfidenceInterval to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval - * @instance - * @returns {Object.} JSON object - */ - ConfidenceInterval.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ConfidenceInterval; - })(); - - Result.Metric = (function() { - - /** - * Properties of a Metric. - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result - * @interface IMetric - * @property {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType|null} [type] Metric type - * @property {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType|null} [countType] Metric countType - * @property {number|null} [ratio] Metric ratio - * @property {number|null} [count] Metric count - * @property {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval|null} [confidenceInterval] Metric confidenceInterval - */ - - /** - * Constructs a new Metric. - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result - * @classdesc Represents a Metric. - * @implements IMetric - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric=} [properties] Properties to set - */ - function Metric(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + return UserInput; + })(); - /** - * Metric type. - * @member {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType} type - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric - * @instance - */ - Metric.prototype.type = 0; + ConversationTurn.VirtualAgentOutput = (function() { - /** - * Metric countType. - * @member {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType} countType - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric - * @instance - */ - Metric.prototype.countType = 0; + /** + * Properties of a VirtualAgentOutput. + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn + * @interface IVirtualAgentOutput + * @property {google.protobuf.IStruct|null} [sessionParameters] VirtualAgentOutput sessionParameters + * @property {Array.|null} [differences] VirtualAgentOutput differences + * @property {google.protobuf.IStruct|null} [diagnosticInfo] VirtualAgentOutput diagnosticInfo + * @property {google.cloud.dialogflow.cx.v3beta1.IIntent|null} [triggeredIntent] VirtualAgentOutput triggeredIntent + * @property {google.cloud.dialogflow.cx.v3beta1.IPage|null} [currentPage] VirtualAgentOutput currentPage + * @property {Array.|null} [textResponses] VirtualAgentOutput textResponses + * @property {google.rpc.IStatus|null} [status] VirtualAgentOutput status + */ - /** - * Metric ratio. - * @member {number} ratio - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric - * @instance - */ - Metric.prototype.ratio = 0; + /** + * Constructs a new VirtualAgentOutput. + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn + * @classdesc Represents a VirtualAgentOutput. + * @implements IVirtualAgentOutput + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput=} [properties] Properties to set + */ + function VirtualAgentOutput(properties) { + this.differences = []; + this.textResponses = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Metric count. - * @member {number} count - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric - * @instance - */ - Metric.prototype.count = 0; + /** + * VirtualAgentOutput sessionParameters. + * @member {google.protobuf.IStruct|null|undefined} sessionParameters + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @instance + */ + VirtualAgentOutput.prototype.sessionParameters = null; - /** - * Metric confidenceInterval. - * @member {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval|null|undefined} confidenceInterval - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric - * @instance - */ - Metric.prototype.confidenceInterval = null; + /** + * VirtualAgentOutput differences. + * @member {Array.} differences + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @instance + */ + VirtualAgentOutput.prototype.differences = $util.emptyArray; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * VirtualAgentOutput diagnosticInfo. + * @member {google.protobuf.IStruct|null|undefined} diagnosticInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @instance + */ + VirtualAgentOutput.prototype.diagnosticInfo = null; - /** - * Metric value. - * @member {"ratio"|"count"|undefined} value - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric - * @instance - */ - Object.defineProperty(Metric.prototype, "value", { - get: $util.oneOfGetter($oneOfFields = ["ratio", "count"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * VirtualAgentOutput triggeredIntent. + * @member {google.cloud.dialogflow.cx.v3beta1.IIntent|null|undefined} triggeredIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @instance + */ + VirtualAgentOutput.prototype.triggeredIntent = null; - /** - * Creates a new Metric instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric} Metric instance - */ - Metric.create = function create(properties) { - return new Metric(properties); - }; + /** + * VirtualAgentOutput currentPage. + * @member {google.cloud.dialogflow.cx.v3beta1.IPage|null|undefined} currentPage + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @instance + */ + VirtualAgentOutput.prototype.currentPage = null; - /** - * Encodes the specified Metric message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric} message Metric message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Metric.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.ratio != null && Object.hasOwnProperty.call(message, "ratio")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.ratio); - if (message.confidenceInterval != null && Object.hasOwnProperty.call(message, "confidenceInterval")) - $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.encode(message.confidenceInterval, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.count != null && Object.hasOwnProperty.call(message, "count")) - writer.uint32(/* id 4, wireType 1 =*/33).double(message.count); - if (message.countType != null && Object.hasOwnProperty.call(message, "countType")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.countType); - return writer; - }; + /** + * VirtualAgentOutput textResponses. + * @member {Array.} textResponses + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @instance + */ + VirtualAgentOutput.prototype.textResponses = $util.emptyArray; - /** - * Encodes the specified Metric message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric} message Metric message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Metric.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * VirtualAgentOutput status. + * @member {google.rpc.IStatus|null|undefined} status + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @instance + */ + VirtualAgentOutput.prototype.status = null; - /** - * Decodes a Metric message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric} Metric - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Metric.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = reader.int32(); - break; - case 5: - message.countType = reader.int32(); - break; - case 2: - message.ratio = reader.double(); - break; - case 4: - message.count = reader.double(); - break; - case 3: - message.confidenceInterval = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a new VirtualAgentOutput instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput} VirtualAgentOutput instance + */ + VirtualAgentOutput.create = function create(properties) { + return new VirtualAgentOutput(properties); + }; - /** - * Decodes a Metric message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric} Metric - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Metric.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified VirtualAgentOutput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput} message VirtualAgentOutput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VirtualAgentOutput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sessionParameters != null && Object.hasOwnProperty.call(message, "sessionParameters")) + $root.google.protobuf.Struct.encode(message.sessionParameters, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.differences != null && message.differences.length) + for (var i = 0; i < message.differences.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.encode(message.differences[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.diagnosticInfo != null && Object.hasOwnProperty.call(message, "diagnosticInfo")) + $root.google.protobuf.Struct.encode(message.diagnosticInfo, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.triggeredIntent != null && Object.hasOwnProperty.call(message, "triggeredIntent")) + $root.google.cloud.dialogflow.cx.v3beta1.Intent.encode(message.triggeredIntent, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) + $root.google.cloud.dialogflow.cx.v3beta1.Page.encode(message.currentPage, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.textResponses != null && message.textResponses.length) + for (var i = 0; i < message.textResponses.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.encode(message.textResponses[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + return writer; + }; - /** - * Verifies a Metric message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Metric.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.countType != null && message.hasOwnProperty("countType")) - switch (message.countType) { - default: - return "countType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.ratio != null && message.hasOwnProperty("ratio")) { - properties.value = 1; - if (typeof message.ratio !== "number") - return "ratio: number expected"; - } - if (message.count != null && message.hasOwnProperty("count")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - if (typeof message.count !== "number") - return "count: number expected"; - } - if (message.confidenceInterval != null && message.hasOwnProperty("confidenceInterval")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.verify(message.confidenceInterval); - if (error) - return "confidenceInterval." + error; - } - return null; - }; + /** + * Encodes the specified VirtualAgentOutput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput} message VirtualAgentOutput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VirtualAgentOutput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a Metric message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric} Metric - */ - Metric.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric(); - switch (object.type) { - case "METRIC_UNSPECIFIED": - case 0: - message.type = 0; - break; - case "CONTAINED_SESSION_NO_CALLBACK_RATE": - case 1: - message.type = 1; - break; - case "LIVE_AGENT_HANDOFF_RATE": - case 2: - message.type = 2; - break; - case "CALLBACK_SESSION_RATE": - case 3: - message.type = 3; - break; - case "ABANDONED_SESSION_RATE": + /** + * Decodes a VirtualAgentOutput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput} VirtualAgentOutput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VirtualAgentOutput.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { case 4: - message.type = 4; + message.sessionParameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); break; - case "SESSION_END_RATE": case 5: - message.type = 5; + if (!(message.differences && message.differences.length)) + message.differences = []; + message.differences.push($root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.decode(reader, reader.uint32())); break; - } - switch (object.countType) { - case "COUNT_TYPE_UNSPECIFIED": - case 0: - message.countType = 0; + case 6: + message.diagnosticInfo = $root.google.protobuf.Struct.decode(reader, reader.uint32()); break; - case "TOTAL_NO_MATCH_COUNT": - case 1: - message.countType = 1; + case 7: + message.triggeredIntent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.decode(reader, reader.uint32()); break; - case "TOTAL_TURN_COUNT": - case 2: - message.countType = 2; + case 8: + message.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.decode(reader, reader.uint32()); break; - case "AVERAGE_TURN_COUNT": - case 3: - message.countType = 3; + case 9: + if (!(message.textResponses && message.textResponses.length)) + message.textResponses = []; + message.textResponses.push($root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.decode(reader, reader.uint32())); + break; + case 10: + message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); break; } - if (object.ratio != null) - message.ratio = Number(object.ratio); - if (object.count != null) - message.count = Number(object.count); - if (object.confidenceInterval != null) { - if (typeof object.confidenceInterval !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.confidenceInterval: object expected"); - message.confidenceInterval = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.fromObject(object.confidenceInterval); - } - return message; - }; + } + return message; + }; - /** - * Creates a plain object from a Metric message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric} message Metric - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Metric.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.type = options.enums === String ? "METRIC_UNSPECIFIED" : 0; - object.confidenceInterval = null; - object.countType = options.enums === String ? "COUNT_TYPE_UNSPECIFIED" : 0; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType[message.type] : message.type; - if (message.ratio != null && message.hasOwnProperty("ratio")) { - object.ratio = options.json && !isFinite(message.ratio) ? String(message.ratio) : message.ratio; - if (options.oneofs) - object.value = "ratio"; + /** + * Decodes a VirtualAgentOutput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput} VirtualAgentOutput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VirtualAgentOutput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VirtualAgentOutput message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VirtualAgentOutput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.sessionParameters != null && message.hasOwnProperty("sessionParameters")) { + var error = $root.google.protobuf.Struct.verify(message.sessionParameters); + if (error) + return "sessionParameters." + error; + } + if (message.differences != null && message.hasOwnProperty("differences")) { + if (!Array.isArray(message.differences)) + return "differences: array expected"; + for (var i = 0; i < message.differences.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.verify(message.differences[i]); + if (error) + return "differences." + error; } - if (message.confidenceInterval != null && message.hasOwnProperty("confidenceInterval")) - object.confidenceInterval = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.toObject(message.confidenceInterval, options); - if (message.count != null && message.hasOwnProperty("count")) { - object.count = options.json && !isFinite(message.count) ? String(message.count) : message.count; - if (options.oneofs) - object.value = "count"; + } + if (message.diagnosticInfo != null && message.hasOwnProperty("diagnosticInfo")) { + var error = $root.google.protobuf.Struct.verify(message.diagnosticInfo); + if (error) + return "diagnosticInfo." + error; + } + if (message.triggeredIntent != null && message.hasOwnProperty("triggeredIntent")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.verify(message.triggeredIntent); + if (error) + return "triggeredIntent." + error; + } + if (message.currentPage != null && message.hasOwnProperty("currentPage")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Page.verify(message.currentPage); + if (error) + return "currentPage." + error; + } + if (message.textResponses != null && message.hasOwnProperty("textResponses")) { + if (!Array.isArray(message.textResponses)) + return "textResponses: array expected"; + for (var i = 0; i < message.textResponses.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.verify(message.textResponses[i]); + if (error) + return "textResponses." + error; } - if (message.countType != null && message.hasOwnProperty("countType")) - object.countType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType[message.countType] : message.countType; - return object; - }; - - /** - * Converts this Metric to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric - * @instance - * @returns {Object.} JSON object - */ - Metric.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Metric; - })(); - - Result.VersionMetrics = (function() { + } + if (message.status != null && message.hasOwnProperty("status")) { + var error = $root.google.rpc.Status.verify(message.status); + if (error) + return "status." + error; + } + return null; + }; - /** - * Properties of a VersionMetrics. - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result - * @interface IVersionMetrics - * @property {string|null} [version] VersionMetrics version - * @property {Array.|null} [metrics] VersionMetrics metrics - * @property {number|null} [sessionCount] VersionMetrics sessionCount - */ + /** + * Creates a VirtualAgentOutput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput} VirtualAgentOutput + */ + VirtualAgentOutput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput(); + if (object.sessionParameters != null) { + if (typeof object.sessionParameters !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.sessionParameters: object expected"); + message.sessionParameters = $root.google.protobuf.Struct.fromObject(object.sessionParameters); + } + if (object.differences) { + if (!Array.isArray(object.differences)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.differences: array expected"); + message.differences = []; + for (var i = 0; i < object.differences.length; ++i) { + if (typeof object.differences[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.differences: object expected"); + message.differences[i] = $root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.fromObject(object.differences[i]); + } + } + if (object.diagnosticInfo != null) { + if (typeof object.diagnosticInfo !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.diagnosticInfo: object expected"); + message.diagnosticInfo = $root.google.protobuf.Struct.fromObject(object.diagnosticInfo); + } + if (object.triggeredIntent != null) { + if (typeof object.triggeredIntent !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.triggeredIntent: object expected"); + message.triggeredIntent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.fromObject(object.triggeredIntent); + } + if (object.currentPage != null) { + if (typeof object.currentPage !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.currentPage: object expected"); + message.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.fromObject(object.currentPage); + } + if (object.textResponses) { + if (!Array.isArray(object.textResponses)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.textResponses: array expected"); + message.textResponses = []; + for (var i = 0; i < object.textResponses.length; ++i) { + if (typeof object.textResponses[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.textResponses: object expected"); + message.textResponses[i] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.fromObject(object.textResponses[i]); + } + } + if (object.status != null) { + if (typeof object.status !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.status: object expected"); + message.status = $root.google.rpc.Status.fromObject(object.status); + } + return message; + }; - /** - * Constructs a new VersionMetrics. - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result - * @classdesc Represents a VersionMetrics. - * @implements IVersionMetrics - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics=} [properties] Properties to set - */ - function VersionMetrics(properties) { - this.metrics = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Creates a plain object from a VirtualAgentOutput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput} message VirtualAgentOutput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VirtualAgentOutput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.differences = []; + object.textResponses = []; + } + if (options.defaults) { + object.sessionParameters = null; + object.diagnosticInfo = null; + object.triggeredIntent = null; + object.currentPage = null; + object.status = null; + } + if (message.sessionParameters != null && message.hasOwnProperty("sessionParameters")) + object.sessionParameters = $root.google.protobuf.Struct.toObject(message.sessionParameters, options); + if (message.differences && message.differences.length) { + object.differences = []; + for (var j = 0; j < message.differences.length; ++j) + object.differences[j] = $root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.toObject(message.differences[j], options); + } + if (message.diagnosticInfo != null && message.hasOwnProperty("diagnosticInfo")) + object.diagnosticInfo = $root.google.protobuf.Struct.toObject(message.diagnosticInfo, options); + if (message.triggeredIntent != null && message.hasOwnProperty("triggeredIntent")) + object.triggeredIntent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.toObject(message.triggeredIntent, options); + if (message.currentPage != null && message.hasOwnProperty("currentPage")) + object.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.toObject(message.currentPage, options); + if (message.textResponses && message.textResponses.length) { + object.textResponses = []; + for (var j = 0; j < message.textResponses.length; ++j) + object.textResponses[j] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.toObject(message.textResponses[j], options); } + if (message.status != null && message.hasOwnProperty("status")) + object.status = $root.google.rpc.Status.toObject(message.status, options); + return object; + }; - /** - * VersionMetrics version. - * @member {string} version - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics - * @instance - */ - VersionMetrics.prototype.version = ""; + /** + * Converts this VirtualAgentOutput to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @instance + * @returns {Object.} JSON object + */ + VirtualAgentOutput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * VersionMetrics metrics. - * @member {Array.} metrics - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics - * @instance - */ - VersionMetrics.prototype.metrics = $util.emptyArray; + return VirtualAgentOutput; + })(); - /** - * VersionMetrics sessionCount. - * @member {number} sessionCount - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics - * @instance - */ - VersionMetrics.prototype.sessionCount = 0; + return ConversationTurn; + })(); - /** - * Creates a new VersionMetrics instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics} VersionMetrics instance - */ - VersionMetrics.create = function create(properties) { - return new VersionMetrics(properties); - }; + v3beta1.TestRunDifference = (function() { - /** - * Encodes the specified VersionMetrics message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics} message VersionMetrics message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VersionMetrics.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); - if (message.metrics != null && message.metrics.length) - for (var i = 0; i < message.metrics.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.encode(message.metrics[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.sessionCount != null && Object.hasOwnProperty.call(message, "sessionCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.sessionCount); - return writer; - }; + /** + * Properties of a TestRunDifference. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface ITestRunDifference + * @property {google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType|null} [type] TestRunDifference type + * @property {string|null} [description] TestRunDifference description + */ - /** - * Encodes the specified VersionMetrics message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics} message VersionMetrics message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VersionMetrics.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Constructs a new TestRunDifference. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a TestRunDifference. + * @implements ITestRunDifference + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.ITestRunDifference=} [properties] Properties to set + */ + function TestRunDifference(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Decodes a VersionMetrics message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics} VersionMetrics - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VersionMetrics.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.version = reader.string(); - break; - case 2: - if (!(message.metrics && message.metrics.length)) - message.metrics = []; - message.metrics.push($root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.decode(reader, reader.uint32())); - break; - case 3: - message.sessionCount = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * TestRunDifference type. + * @member {google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType} type + * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @instance + */ + TestRunDifference.prototype.type = 0; - /** - * Decodes a VersionMetrics message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics} VersionMetrics - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VersionMetrics.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * TestRunDifference description. + * @member {string} description + * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @instance + */ + TestRunDifference.prototype.description = ""; - /** - * Verifies a VersionMetrics message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - VersionMetrics.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - if (message.metrics != null && message.hasOwnProperty("metrics")) { - if (!Array.isArray(message.metrics)) - return "metrics: array expected"; - for (var i = 0; i < message.metrics.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.verify(message.metrics[i]); - if (error) - return "metrics." + error; - } - } - if (message.sessionCount != null && message.hasOwnProperty("sessionCount")) - if (!$util.isInteger(message.sessionCount)) - return "sessionCount: integer expected"; - return null; - }; + /** + * Creates a new TestRunDifference instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ITestRunDifference=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TestRunDifference} TestRunDifference instance + */ + TestRunDifference.create = function create(properties) { + return new TestRunDifference(properties); + }; - /** - * Creates a VersionMetrics message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics} VersionMetrics - */ - VersionMetrics.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics(); - if (object.version != null) - message.version = String(object.version); - if (object.metrics) { - if (!Array.isArray(object.metrics)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.metrics: array expected"); - message.metrics = []; - for (var i = 0; i < object.metrics.length; ++i) { - if (typeof object.metrics[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.metrics: object expected"); - message.metrics[i] = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.fromObject(object.metrics[i]); - } - } - if (object.sessionCount != null) - message.sessionCount = object.sessionCount | 0; - return message; - }; + /** + * Encodes the specified TestRunDifference message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestRunDifference.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ITestRunDifference} message TestRunDifference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestRunDifference.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + return writer; + }; - /** - * Creates a plain object from a VersionMetrics message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics} message VersionMetrics - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - VersionMetrics.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.metrics = []; - if (options.defaults) { - object.version = ""; - object.sessionCount = 0; - } - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.metrics && message.metrics.length) { - object.metrics = []; - for (var j = 0; j < message.metrics.length; ++j) - object.metrics[j] = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.toObject(message.metrics[j], options); - } - if (message.sessionCount != null && message.hasOwnProperty("sessionCount")) - object.sessionCount = message.sessionCount; - return object; - }; + /** + * Encodes the specified TestRunDifference message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestRunDifference.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ITestRunDifference} message TestRunDifference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestRunDifference.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Converts this VersionMetrics to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics - * @instance - * @returns {Object.} JSON object - */ - VersionMetrics.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a TestRunDifference message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.TestRunDifference} TestRunDifference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestRunDifference.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = reader.int32(); + break; + case 2: + message.description = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - return VersionMetrics; - })(); + /** + * Decodes a TestRunDifference message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.TestRunDifference} TestRunDifference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestRunDifference.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * MetricType enum. - * @name google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType - * @enum {number} - * @property {number} METRIC_UNSPECIFIED=0 METRIC_UNSPECIFIED value - * @property {number} CONTAINED_SESSION_NO_CALLBACK_RATE=1 CONTAINED_SESSION_NO_CALLBACK_RATE value - * @property {number} LIVE_AGENT_HANDOFF_RATE=2 LIVE_AGENT_HANDOFF_RATE value - * @property {number} CALLBACK_SESSION_RATE=3 CALLBACK_SESSION_RATE value - * @property {number} ABANDONED_SESSION_RATE=4 ABANDONED_SESSION_RATE value - * @property {number} SESSION_END_RATE=5 SESSION_END_RATE value - */ - Result.MetricType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "METRIC_UNSPECIFIED"] = 0; - values[valuesById[1] = "CONTAINED_SESSION_NO_CALLBACK_RATE"] = 1; - values[valuesById[2] = "LIVE_AGENT_HANDOFF_RATE"] = 2; - values[valuesById[3] = "CALLBACK_SESSION_RATE"] = 3; - values[valuesById[4] = "ABANDONED_SESSION_RATE"] = 4; - values[valuesById[5] = "SESSION_END_RATE"] = 5; - return values; - })(); + /** + * Verifies a TestRunDifference message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TestRunDifference.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + return null; + }; + + /** + * Creates a TestRunDifference message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.TestRunDifference} TestRunDifference + */ + TestRunDifference.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference(); + switch (object.type) { + case "DIFF_TYPE_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "INTENT": + case 1: + message.type = 1; + break; + case "PAGE": + case 2: + message.type = 2; + break; + case "PARAMETERS": + case 3: + message.type = 3; + break; + case "UTTERANCE": + case 4: + message.type = 4; + break; + } + if (object.description != null) + message.description = String(object.description); + return message; + }; - /** - * CountType enum. - * @name google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType - * @enum {number} - * @property {number} COUNT_TYPE_UNSPECIFIED=0 COUNT_TYPE_UNSPECIFIED value - * @property {number} TOTAL_NO_MATCH_COUNT=1 TOTAL_NO_MATCH_COUNT value - * @property {number} TOTAL_TURN_COUNT=2 TOTAL_TURN_COUNT value - * @property {number} AVERAGE_TURN_COUNT=3 AVERAGE_TURN_COUNT value - */ - Result.CountType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "COUNT_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "TOTAL_NO_MATCH_COUNT"] = 1; - values[valuesById[2] = "TOTAL_TURN_COUNT"] = 2; - values[valuesById[3] = "AVERAGE_TURN_COUNT"] = 3; - return values; - })(); + /** + * Creates a plain object from a TestRunDifference message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TestRunDifference} message TestRunDifference + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TestRunDifference.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.type = options.enums === String ? "DIFF_TYPE_UNSPECIFIED" : 0; + object.description = ""; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType[message.type] : message.type; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + return object; + }; - return Result; - })(); + /** + * Converts this TestRunDifference to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @instance + * @returns {Object.} JSON object + */ + TestRunDifference.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * State enum. - * @name google.cloud.dialogflow.cx.v3beta1.Experiment.State + * DiffType enum. + * @name google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} DRAFT=1 DRAFT value - * @property {number} RUNNING=2 RUNNING value - * @property {number} DONE=3 DONE value + * @property {number} DIFF_TYPE_UNSPECIFIED=0 DIFF_TYPE_UNSPECIFIED value + * @property {number} INTENT=1 INTENT value + * @property {number} PAGE=2 PAGE value + * @property {number} PARAMETERS=3 PARAMETERS value + * @property {number} UTTERANCE=4 UTTERANCE value */ - Experiment.State = (function() { + TestRunDifference.DiffType = (function() { var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "DRAFT"] = 1; - values[valuesById[2] = "RUNNING"] = 2; - values[valuesById[3] = "DONE"] = 3; + values[valuesById[0] = "DIFF_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "INTENT"] = 1; + values[valuesById[2] = "PAGE"] = 2; + values[valuesById[3] = "PARAMETERS"] = 3; + values[valuesById[4] = "UTTERANCE"] = 4; return values; })(); - return Experiment; + return TestRunDifference; })(); - v3beta1.VersionVariants = (function() { + v3beta1.TransitionCoverage = (function() { /** - * Properties of a VersionVariants. + * Properties of a TransitionCoverage. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IVersionVariants - * @property {Array.|null} [variants] VersionVariants variants + * @interface ITransitionCoverage + * @property {Array.|null} [transitions] TransitionCoverage transitions + * @property {number|null} [coverageScore] TransitionCoverage coverageScore */ /** - * Constructs a new VersionVariants. + * Constructs a new TransitionCoverage. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a VersionVariants. - * @implements IVersionVariants + * @classdesc Represents a TransitionCoverage. + * @implements ITransitionCoverage * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IVersionVariants=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage=} [properties] Properties to set */ - function VersionVariants(properties) { - this.variants = []; + function TransitionCoverage(properties) { + this.transitions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -81158,78 +81571,91 @@ } /** - * VersionVariants variants. - * @member {Array.} variants - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants + * TransitionCoverage transitions. + * @member {Array.} transitions + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage * @instance */ - VersionVariants.prototype.variants = $util.emptyArray; + TransitionCoverage.prototype.transitions = $util.emptyArray; /** - * Creates a new VersionVariants instance using the specified properties. + * TransitionCoverage coverageScore. + * @member {number} coverageScore + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * @instance + */ + TransitionCoverage.prototype.coverageScore = 0; + + /** + * Creates a new TransitionCoverage instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IVersionVariants=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.VersionVariants} VersionVariants instance + * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage} TransitionCoverage instance */ - VersionVariants.create = function create(properties) { - return new VersionVariants(properties); + TransitionCoverage.create = function create(properties) { + return new TransitionCoverage(properties); }; /** - * Encodes the specified VersionVariants message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VersionVariants.verify|verify} messages. + * Encodes the specified TransitionCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IVersionVariants} message VersionVariants message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage} message TransitionCoverage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VersionVariants.encode = function encode(message, writer) { + TransitionCoverage.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.variants != null && message.variants.length) - for (var i = 0; i < message.variants.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant.encode(message.variants[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.transitions != null && message.transitions.length) + for (var i = 0; i < message.transitions.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.encode(message.transitions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.coverageScore != null && Object.hasOwnProperty.call(message, "coverageScore")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.coverageScore); return writer; }; /** - * Encodes the specified VersionVariants message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VersionVariants.verify|verify} messages. + * Encodes the specified TransitionCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IVersionVariants} message VersionVariants message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage} message TransitionCoverage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VersionVariants.encodeDelimited = function encodeDelimited(message, writer) { + TransitionCoverage.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VersionVariants message from the specified reader or buffer. + * Decodes a TransitionCoverage message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.VersionVariants} VersionVariants + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage} TransitionCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VersionVariants.decode = function decode(reader, length) { + TransitionCoverage.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.variants && message.variants.length)) - message.variants = []; - message.variants.push($root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant.decode(reader, reader.uint32())); + if (!(message.transitions && message.transitions.length)) + message.transitions = []; + message.transitions.push($root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.decode(reader, reader.uint32())); + break; + case 2: + message.coverageScore = reader.float(); break; default: reader.skipType(tag & 7); @@ -81240,123 +81666,380 @@ }; /** - * Decodes a VersionVariants message from the specified reader or buffer, length delimited. + * Decodes a TransitionCoverage message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.VersionVariants} VersionVariants + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage} TransitionCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VersionVariants.decodeDelimited = function decodeDelimited(reader) { + TransitionCoverage.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VersionVariants message. + * Verifies a TransitionCoverage message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VersionVariants.verify = function verify(message) { + TransitionCoverage.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.variants != null && message.hasOwnProperty("variants")) { - if (!Array.isArray(message.variants)) - return "variants: array expected"; - for (var i = 0; i < message.variants.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant.verify(message.variants[i]); + if (message.transitions != null && message.hasOwnProperty("transitions")) { + if (!Array.isArray(message.transitions)) + return "transitions: array expected"; + for (var i = 0; i < message.transitions.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.verify(message.transitions[i]); if (error) - return "variants." + error; + return "transitions." + error; } } + if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) + if (typeof message.coverageScore !== "number") + return "coverageScore: number expected"; return null; }; /** - * Creates a VersionVariants message from a plain object. Also converts values to their respective internal types. + * Creates a TransitionCoverage message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.VersionVariants} VersionVariants + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage} TransitionCoverage */ - VersionVariants.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants) + TransitionCoverage.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants(); - if (object.variants) { - if (!Array.isArray(object.variants)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.VersionVariants.variants: array expected"); - message.variants = []; - for (var i = 0; i < object.variants.length; ++i) { - if (typeof object.variants[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.VersionVariants.variants: object expected"); - message.variants[i] = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant.fromObject(object.variants[i]); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage(); + if (object.transitions) { + if (!Array.isArray(object.transitions)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.transitions: array expected"); + message.transitions = []; + for (var i = 0; i < object.transitions.length; ++i) { + if (typeof object.transitions[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.transitions: object expected"); + message.transitions[i] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.fromObject(object.transitions[i]); } } + if (object.coverageScore != null) + message.coverageScore = Number(object.coverageScore); return message; }; - /** - * Creates a plain object from a VersionVariants message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.VersionVariants} message VersionVariants - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - VersionVariants.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.variants = []; - if (message.variants && message.variants.length) { - object.variants = []; - for (var j = 0; j < message.variants.length; ++j) - object.variants[j] = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant.toObject(message.variants[j], options); - } - return object; - }; + /** + * Creates a plain object from a TransitionCoverage message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage} message TransitionCoverage + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TransitionCoverage.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.transitions = []; + if (options.defaults) + object.coverageScore = 0; + if (message.transitions && message.transitions.length) { + object.transitions = []; + for (var j = 0; j < message.transitions.length; ++j) + object.transitions[j] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.toObject(message.transitions[j], options); + } + if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) + object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; + return object; + }; + + /** + * Converts this TransitionCoverage to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * @instance + * @returns {Object.} JSON object + */ + TransitionCoverage.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + TransitionCoverage.TransitionNode = (function() { + + /** + * Properties of a TransitionNode. + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * @interface ITransitionNode + * @property {google.cloud.dialogflow.cx.v3beta1.IPage|null} [page] TransitionNode page + * @property {google.cloud.dialogflow.cx.v3beta1.IFlow|null} [flow] TransitionNode flow + */ + + /** + * Constructs a new TransitionNode. + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * @classdesc Represents a TransitionNode. + * @implements ITransitionNode + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode=} [properties] Properties to set + */ + function TransitionNode(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TransitionNode page. + * @member {google.cloud.dialogflow.cx.v3beta1.IPage|null|undefined} page + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode + * @instance + */ + TransitionNode.prototype.page = null; + + /** + * TransitionNode flow. + * @member {google.cloud.dialogflow.cx.v3beta1.IFlow|null|undefined} flow + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode + * @instance + */ + TransitionNode.prototype.flow = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * TransitionNode kind. + * @member {"page"|"flow"|undefined} kind + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode + * @instance + */ + Object.defineProperty(TransitionNode.prototype, "kind", { + get: $util.oneOfGetter($oneOfFields = ["page", "flow"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new TransitionNode instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode} TransitionNode instance + */ + TransitionNode.create = function create(properties) { + return new TransitionNode(properties); + }; + + /** + * Encodes the specified TransitionNode message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode} message TransitionNode message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TransitionNode.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.page != null && Object.hasOwnProperty.call(message, "page")) + $root.google.cloud.dialogflow.cx.v3beta1.Page.encode(message.page, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.flow != null && Object.hasOwnProperty.call(message, "flow")) + $root.google.cloud.dialogflow.cx.v3beta1.Flow.encode(message.flow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified TransitionNode message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode} message TransitionNode message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TransitionNode.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TransitionNode message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode} TransitionNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TransitionNode.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.decode(reader, reader.uint32()); + break; + case 2: + message.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TransitionNode message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode} TransitionNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TransitionNode.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TransitionNode message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TransitionNode.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.page != null && message.hasOwnProperty("page")) { + properties.kind = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Page.verify(message.page); + if (error) + return "page." + error; + } + } + if (message.flow != null && message.hasOwnProperty("flow")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Flow.verify(message.flow); + if (error) + return "flow." + error; + } + } + return null; + }; + + /** + * Creates a TransitionNode message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode} TransitionNode + */ + TransitionNode.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode(); + if (object.page != null) { + if (typeof object.page !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.page: object expected"); + message.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.fromObject(object.page); + } + if (object.flow != null) { + if (typeof object.flow !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.flow: object expected"); + message.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.fromObject(object.flow); + } + return message; + }; + + /** + * Creates a plain object from a TransitionNode message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode} message TransitionNode + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TransitionNode.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.page != null && message.hasOwnProperty("page")) { + object.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.toObject(message.page, options); + if (options.oneofs) + object.kind = "page"; + } + if (message.flow != null && message.hasOwnProperty("flow")) { + object.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.toObject(message.flow, options); + if (options.oneofs) + object.kind = "flow"; + } + return object; + }; + + /** + * Converts this TransitionNode to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode + * @instance + * @returns {Object.} JSON object + */ + TransitionNode.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this VersionVariants to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants - * @instance - * @returns {Object.} JSON object - */ - VersionVariants.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return TransitionNode; + })(); - VersionVariants.Variant = (function() { + TransitionCoverage.Transition = (function() { /** - * Properties of a Variant. - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants - * @interface IVariant - * @property {string|null} [version] Variant version - * @property {number|null} [trafficAllocation] Variant trafficAllocation - * @property {boolean|null} [isControlGroup] Variant isControlGroup + * Properties of a Transition. + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * @interface ITransition + * @property {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null} [source] Transition source + * @property {number|null} [index] Transition index + * @property {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null} [target] Transition target + * @property {boolean|null} [covered] Transition covered + * @property {google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null} [transitionRoute] Transition transitionRoute + * @property {google.cloud.dialogflow.cx.v3beta1.IEventHandler|null} [eventHandler] Transition eventHandler */ /** - * Constructs a new Variant. - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants - * @classdesc Represents a Variant. - * @implements IVariant + * Constructs a new Transition. + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * @classdesc Represents a Transition. + * @implements ITransition * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition=} [properties] Properties to set */ - function Variant(properties) { + function Transition(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -81364,101 +82047,154 @@ } /** - * Variant version. - * @member {string} version - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant + * Transition source. + * @member {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null|undefined} source + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition * @instance */ - Variant.prototype.version = ""; + Transition.prototype.source = null; /** - * Variant trafficAllocation. - * @member {number} trafficAllocation - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant + * Transition index. + * @member {number} index + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition * @instance */ - Variant.prototype.trafficAllocation = 0; + Transition.prototype.index = 0; /** - * Variant isControlGroup. - * @member {boolean} isControlGroup - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant + * Transition target. + * @member {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null|undefined} target + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition * @instance */ - Variant.prototype.isControlGroup = false; + Transition.prototype.target = null; /** - * Creates a new Variant instance using the specified properties. + * Transition covered. + * @member {boolean} covered + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition + * @instance + */ + Transition.prototype.covered = false; + + /** + * Transition transitionRoute. + * @member {google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null|undefined} transitionRoute + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition + * @instance + */ + Transition.prototype.transitionRoute = null; + + /** + * Transition eventHandler. + * @member {google.cloud.dialogflow.cx.v3beta1.IEventHandler|null|undefined} eventHandler + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition + * @instance + */ + Transition.prototype.eventHandler = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Transition detail. + * @member {"transitionRoute"|"eventHandler"|undefined} detail + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition + * @instance + */ + Object.defineProperty(Transition.prototype, "detail", { + get: $util.oneOfGetter($oneOfFields = ["transitionRoute", "eventHandler"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Transition instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition * @static - * @param {google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant} Variant instance + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition} Transition instance */ - Variant.create = function create(properties) { - return new Variant(properties); + Transition.create = function create(properties) { + return new Transition(properties); }; /** - * Encodes the specified Variant message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant.verify|verify} messages. + * Encodes the specified Transition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition * @static - * @param {google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant} message Variant message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition} message Transition message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Variant.encode = function encode(message, writer) { + Transition.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); - if (message.trafficAllocation != null && Object.hasOwnProperty.call(message, "trafficAllocation")) - writer.uint32(/* id 2, wireType 5 =*/21).float(message.trafficAllocation); - if (message.isControlGroup != null && Object.hasOwnProperty.call(message, "isControlGroup")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isControlGroup); + if (message.source != null && Object.hasOwnProperty.call(message, "source")) + $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.encode(message.source, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.encode(message.target, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.covered != null && Object.hasOwnProperty.call(message, "covered")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.covered); + if (message.index != null && Object.hasOwnProperty.call(message, "index")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.index); + if (message.transitionRoute != null && Object.hasOwnProperty.call(message, "transitionRoute")) + $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.encode(message.transitionRoute, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.eventHandler != null && Object.hasOwnProperty.call(message, "eventHandler")) + $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.encode(message.eventHandler, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; /** - * Encodes the specified Variant message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant.verify|verify} messages. + * Encodes the specified Transition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition * @static - * @param {google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant} message Variant message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition} message Transition message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Variant.encodeDelimited = function encodeDelimited(message, writer) { + Transition.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Variant message from the specified reader or buffer. + * Decodes a Transition message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant} Variant + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition} Transition * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Variant.decode = function decode(reader, length) { + Transition.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.version = reader.string(); + message.source = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.decode(reader, reader.uint32()); + break; + case 4: + message.index = reader.int32(); break; case 2: - message.trafficAllocation = reader.float(); + message.target = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.decode(reader, reader.uint32()); break; case 3: - message.isControlGroup = reader.bool(); + message.covered = reader.bool(); + break; + case 5: + message.transitionRoute = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.decode(reader, reader.uint32()); + break; + case 6: + message.eventHandler = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -81469,368 +82205,186 @@ }; /** - * Decodes a Variant message from the specified reader or buffer, length delimited. + * Decodes a Transition message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant} Variant + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition} Transition * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Variant.decodeDelimited = function decodeDelimited(reader) { + Transition.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Variant message. + * Verifies a Transition message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Variant.verify = function verify(message) { + Transition.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - if (message.trafficAllocation != null && message.hasOwnProperty("trafficAllocation")) - if (typeof message.trafficAllocation !== "number") - return "trafficAllocation: number expected"; - if (message.isControlGroup != null && message.hasOwnProperty("isControlGroup")) - if (typeof message.isControlGroup !== "boolean") - return "isControlGroup: boolean expected"; + var properties = {}; + if (message.source != null && message.hasOwnProperty("source")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.verify(message.source); + if (error) + return "source." + error; + } + if (message.index != null && message.hasOwnProperty("index")) + if (!$util.isInteger(message.index)) + return "index: integer expected"; + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.verify(message.target); + if (error) + return "target." + error; + } + if (message.covered != null && message.hasOwnProperty("covered")) + if (typeof message.covered !== "boolean") + return "covered: boolean expected"; + if (message.transitionRoute != null && message.hasOwnProperty("transitionRoute")) { + properties.detail = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.verify(message.transitionRoute); + if (error) + return "transitionRoute." + error; + } + } + if (message.eventHandler != null && message.hasOwnProperty("eventHandler")) { + if (properties.detail === 1) + return "detail: multiple values"; + properties.detail = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.verify(message.eventHandler); + if (error) + return "eventHandler." + error; + } + } return null; }; /** - * Creates a Variant message from a plain object. Also converts values to their respective internal types. + * Creates a Transition message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant} Variant + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition} Transition */ - Variant.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant) + Transition.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant(); - if (object.version != null) - message.version = String(object.version); - if (object.trafficAllocation != null) - message.trafficAllocation = Number(object.trafficAllocation); - if (object.isControlGroup != null) - message.isControlGroup = Boolean(object.isControlGroup); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition(); + if (object.source != null) { + if (typeof object.source !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.source: object expected"); + message.source = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.fromObject(object.source); + } + if (object.index != null) + message.index = object.index | 0; + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.target: object expected"); + message.target = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.fromObject(object.target); + } + if (object.covered != null) + message.covered = Boolean(object.covered); + if (object.transitionRoute != null) { + if (typeof object.transitionRoute !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.transitionRoute: object expected"); + message.transitionRoute = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.fromObject(object.transitionRoute); + } + if (object.eventHandler != null) { + if (typeof object.eventHandler !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.eventHandler: object expected"); + message.eventHandler = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.fromObject(object.eventHandler); + } return message; }; /** - * Creates a plain object from a Variant message. Also converts values to other types if specified. + * Creates a plain object from a Transition message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition * @static - * @param {google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant} message Variant + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition} message Transition * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Variant.toObject = function toObject(message, options) { + Transition.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.version = ""; - object.trafficAllocation = 0; - object.isControlGroup = false; - } - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.trafficAllocation != null && message.hasOwnProperty("trafficAllocation")) - object.trafficAllocation = options.json && !isFinite(message.trafficAllocation) ? String(message.trafficAllocation) : message.trafficAllocation; - if (message.isControlGroup != null && message.hasOwnProperty("isControlGroup")) - object.isControlGroup = message.isControlGroup; - return object; - }; - - /** - * Converts this Variant to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant - * @instance - * @returns {Object.} JSON object - */ - Variant.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Variant; - })(); - - return VersionVariants; - })(); - - v3beta1.VariantsHistory = (function() { - - /** - * Properties of a VariantsHistory. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IVariantsHistory - * @property {google.cloud.dialogflow.cx.v3beta1.IVersionVariants|null} [versionVariants] VariantsHistory versionVariants - * @property {google.protobuf.ITimestamp|null} [updateTime] VariantsHistory updateTime - */ - - /** - * Constructs a new VariantsHistory. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a VariantsHistory. - * @implements IVariantsHistory - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IVariantsHistory=} [properties] Properties to set - */ - function VariantsHistory(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * VariantsHistory versionVariants. - * @member {google.cloud.dialogflow.cx.v3beta1.IVersionVariants|null|undefined} versionVariants - * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory - * @instance - */ - VariantsHistory.prototype.versionVariants = null; - - /** - * VariantsHistory updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory - * @instance - */ - VariantsHistory.prototype.updateTime = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * VariantsHistory variants. - * @member {"versionVariants"|undefined} variants - * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory - * @instance - */ - Object.defineProperty(VariantsHistory.prototype, "variants", { - get: $util.oneOfGetter($oneOfFields = ["versionVariants"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new VariantsHistory instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IVariantsHistory=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.VariantsHistory} VariantsHistory instance - */ - VariantsHistory.create = function create(properties) { - return new VariantsHistory(properties); - }; - - /** - * Encodes the specified VariantsHistory message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VariantsHistory.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IVariantsHistory} message VariantsHistory message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VariantsHistory.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.versionVariants != null && Object.hasOwnProperty.call(message, "versionVariants")) - $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.encode(message.versionVariants, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified VariantsHistory message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VariantsHistory.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IVariantsHistory} message VariantsHistory message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VariantsHistory.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a VariantsHistory message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.VariantsHistory} VariantsHistory - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VariantsHistory.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.VariantsHistory(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.versionVariants = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.decode(reader, reader.uint32()); - break; - case 2: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a VariantsHistory message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.VariantsHistory} VariantsHistory - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VariantsHistory.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a VariantsHistory message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - VariantsHistory.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.versionVariants != null && message.hasOwnProperty("versionVariants")) { - properties.variants = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.verify(message.versionVariants); - if (error) - return "versionVariants." + error; + if (options.defaults) { + object.source = null; + object.target = null; + object.covered = false; + object.index = 0; + } + if (message.source != null && message.hasOwnProperty("source")) + object.source = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.toObject(message.source, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.toObject(message.target, options); + if (message.covered != null && message.hasOwnProperty("covered")) + object.covered = message.covered; + if (message.index != null && message.hasOwnProperty("index")) + object.index = message.index; + if (message.transitionRoute != null && message.hasOwnProperty("transitionRoute")) { + object.transitionRoute = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.toObject(message.transitionRoute, options); + if (options.oneofs) + object.detail = "transitionRoute"; + } + if (message.eventHandler != null && message.hasOwnProperty("eventHandler")) { + object.eventHandler = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.toObject(message.eventHandler, options); + if (options.oneofs) + object.detail = "eventHandler"; } - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - return null; - }; - - /** - * Creates a VariantsHistory message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.VariantsHistory} VariantsHistory - */ - VariantsHistory.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.VariantsHistory) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.VariantsHistory(); - if (object.versionVariants != null) { - if (typeof object.versionVariants !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.VariantsHistory.versionVariants: object expected"); - message.versionVariants = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.fromObject(object.versionVariants); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.VariantsHistory.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - return message; - }; + }; - /** - * Creates a plain object from a VariantsHistory message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.VariantsHistory} message VariantsHistory - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - VariantsHistory.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.updateTime = null; - if (message.versionVariants != null && message.hasOwnProperty("versionVariants")) { - object.versionVariants = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.toObject(message.versionVariants, options); - if (options.oneofs) - object.variants = "versionVariants"; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - return object; - }; + /** + * Converts this Transition to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition + * @instance + * @returns {Object.} JSON object + */ + Transition.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this VariantsHistory to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory - * @instance - * @returns {Object.} JSON object - */ - VariantsHistory.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return Transition; + })(); - return VariantsHistory; + return TransitionCoverage; })(); - v3beta1.ListExperimentsRequest = (function() { + v3beta1.TransitionRouteGroupCoverage = (function() { /** - * Properties of a ListExperimentsRequest. + * Properties of a TransitionRouteGroupCoverage. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListExperimentsRequest - * @property {string|null} [parent] ListExperimentsRequest parent - * @property {number|null} [pageSize] ListExperimentsRequest pageSize - * @property {string|null} [pageToken] ListExperimentsRequest pageToken + * @interface ITransitionRouteGroupCoverage + * @property {Array.|null} [coverages] TransitionRouteGroupCoverage coverages + * @property {number|null} [coverageScore] TransitionRouteGroupCoverage coverageScore */ /** - * Constructs a new ListExperimentsRequest. + * Constructs a new TransitionRouteGroupCoverage. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListExperimentsRequest. - * @implements IListExperimentsRequest + * @classdesc Represents a TransitionRouteGroupCoverage. + * @implements ITransitionRouteGroupCoverage * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage=} [properties] Properties to set */ - function ListExperimentsRequest(properties) { + function TransitionRouteGroupCoverage(properties) { + this.coverages = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -81838,101 +82392,91 @@ } /** - * ListExperimentsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest - * @instance - */ - ListExperimentsRequest.prototype.parent = ""; - - /** - * ListExperimentsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest + * TransitionRouteGroupCoverage coverages. + * @member {Array.} coverages + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage * @instance */ - ListExperimentsRequest.prototype.pageSize = 0; + TransitionRouteGroupCoverage.prototype.coverages = $util.emptyArray; /** - * ListExperimentsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest + * TransitionRouteGroupCoverage coverageScore. + * @member {number} coverageScore + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage * @instance */ - ListExperimentsRequest.prototype.pageToken = ""; + TransitionRouteGroupCoverage.prototype.coverageScore = 0; /** - * Creates a new ListExperimentsRequest instance using the specified properties. + * Creates a new TransitionRouteGroupCoverage instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest} ListExperimentsRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage instance */ - ListExperimentsRequest.create = function create(properties) { - return new ListExperimentsRequest(properties); + TransitionRouteGroupCoverage.create = function create(properties) { + return new TransitionRouteGroupCoverage(properties); }; /** - * Encodes the specified ListExperimentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest.verify|verify} messages. + * Encodes the specified TransitionRouteGroupCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest} message ListExperimentsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage} message TransitionRouteGroupCoverage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListExperimentsRequest.encode = function encode(message, writer) { + TransitionRouteGroupCoverage.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.coverages != null && message.coverages.length) + for (var i = 0; i < message.coverages.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.encode(message.coverages[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.coverageScore != null && Object.hasOwnProperty.call(message, "coverageScore")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.coverageScore); return writer; }; /** - * Encodes the specified ListExperimentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest.verify|verify} messages. + * Encodes the specified TransitionRouteGroupCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest} message ListExperimentsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage} message TransitionRouteGroupCoverage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListExperimentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + TransitionRouteGroupCoverage.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListExperimentsRequest message from the specified reader or buffer. + * Decodes a TransitionRouteGroupCoverage message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest} ListExperimentsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListExperimentsRequest.decode = function decode(reader, length) { + TransitionRouteGroupCoverage.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + if (!(message.coverages && message.coverages.length)) + message.coverages = []; + message.coverages.push($root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.decode(reader, reader.uint32())); break; case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); + message.coverageScore = reader.float(); break; default: reader.skipType(tag & 7); @@ -81943,543 +82487,609 @@ }; /** - * Decodes a ListExperimentsRequest message from the specified reader or buffer, length delimited. + * Decodes a TransitionRouteGroupCoverage message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest} ListExperimentsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListExperimentsRequest.decodeDelimited = function decodeDelimited(reader) { + TransitionRouteGroupCoverage.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListExperimentsRequest message. + * Verifies a TransitionRouteGroupCoverage message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListExperimentsRequest.verify = function verify(message) { + TransitionRouteGroupCoverage.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.coverages != null && message.hasOwnProperty("coverages")) { + if (!Array.isArray(message.coverages)) + return "coverages: array expected"; + for (var i = 0; i < message.coverages.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.verify(message.coverages[i]); + if (error) + return "coverages." + error; + } + } + if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) + if (typeof message.coverageScore !== "number") + return "coverageScore: number expected"; return null; }; /** - * Creates a ListExperimentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TransitionRouteGroupCoverage message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest} ListExperimentsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage */ - ListExperimentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest) + TransitionRouteGroupCoverage.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage(); + if (object.coverages) { + if (!Array.isArray(object.coverages)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.coverages: array expected"); + message.coverages = []; + for (var i = 0; i < object.coverages.length; ++i) { + if (typeof object.coverages[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.coverages: object expected"); + message.coverages[i] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.fromObject(object.coverages[i]); + } + } + if (object.coverageScore != null) + message.coverageScore = Number(object.coverageScore); return message; }; /** - * Creates a plain object from a ListExperimentsRequest message. Also converts values to other types if specified. + * Creates a plain object from a TransitionRouteGroupCoverage message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest} message ListExperimentsRequest + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage} message TransitionRouteGroupCoverage * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListExperimentsRequest.toObject = function toObject(message, options) { + TransitionRouteGroupCoverage.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + if (options.arrays || options.defaults) + object.coverages = []; + if (options.defaults) + object.coverageScore = 0; + if (message.coverages && message.coverages.length) { + object.coverages = []; + for (var j = 0; j < message.coverages.length; ++j) + object.coverages[j] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.toObject(message.coverages[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) + object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; return object; }; /** - * Converts this ListExperimentsRequest to JSON. + * Converts this TransitionRouteGroupCoverage to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage * @instance * @returns {Object.} JSON object */ - ListExperimentsRequest.prototype.toJSON = function toJSON() { + TransitionRouteGroupCoverage.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListExperimentsRequest; - })(); + TransitionRouteGroupCoverage.Coverage = (function() { - v3beta1.ListExperimentsResponse = (function() { + /** + * Properties of a Coverage. + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * @interface ICoverage + * @property {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null} [routeGroup] Coverage routeGroup + * @property {Array.|null} [transitions] Coverage transitions + * @property {number|null} [coverageScore] Coverage coverageScore + */ - /** - * Properties of a ListExperimentsResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListExperimentsResponse - * @property {Array.|null} [experiments] ListExperimentsResponse experiments - * @property {string|null} [nextPageToken] ListExperimentsResponse nextPageToken - */ + /** + * Constructs a new Coverage. + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * @classdesc Represents a Coverage. + * @implements ICoverage + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage=} [properties] Properties to set + */ + function Coverage(properties) { + this.transitions = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new ListExperimentsResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListExperimentsResponse. - * @implements IListExperimentsResponse - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsResponse=} [properties] Properties to set - */ - function ListExperimentsResponse(properties) { - this.experiments = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Coverage routeGroup. + * @member {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null|undefined} routeGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage + * @instance + */ + Coverage.prototype.routeGroup = null; - /** - * ListExperimentsResponse experiments. - * @member {Array.} experiments - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse - * @instance - */ - ListExperimentsResponse.prototype.experiments = $util.emptyArray; + /** + * Coverage transitions. + * @member {Array.} transitions + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage + * @instance + */ + Coverage.prototype.transitions = $util.emptyArray; - /** - * ListExperimentsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse - * @instance - */ - ListExperimentsResponse.prototype.nextPageToken = ""; + /** + * Coverage coverageScore. + * @member {number} coverageScore + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage + * @instance + */ + Coverage.prototype.coverageScore = 0; - /** - * Creates a new ListExperimentsResponse instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse} ListExperimentsResponse instance - */ - ListExperimentsResponse.create = function create(properties) { - return new ListExperimentsResponse(properties); - }; + /** + * Creates a new Coverage instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage} Coverage instance + */ + Coverage.create = function create(properties) { + return new Coverage(properties); + }; - /** - * Encodes the specified ListExperimentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsResponse} message ListExperimentsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListExperimentsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.experiments != null && message.experiments.length) - for (var i = 0; i < message.experiments.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Experiment.encode(message.experiments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - return writer; - }; + /** + * Encodes the specified Coverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage} message Coverage message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Coverage.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.routeGroup != null && Object.hasOwnProperty.call(message, "routeGroup")) + $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.encode(message.routeGroup, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.transitions != null && message.transitions.length) + for (var i = 0; i < message.transitions.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.encode(message.transitions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.coverageScore != null && Object.hasOwnProperty.call(message, "coverageScore")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.coverageScore); + return writer; + }; - /** - * Encodes the specified ListExperimentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsResponse} message ListExperimentsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListExperimentsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Coverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage} message Coverage message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Coverage.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a ListExperimentsResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse} ListExperimentsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListExperimentsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.experiments && message.experiments.length)) - message.experiments = []; - message.experiments.push($root.google.cloud.dialogflow.cx.v3beta1.Experiment.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Decodes a Coverage message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage} Coverage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Coverage.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.routeGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.decode(reader, reader.uint32()); + break; + case 2: + if (!(message.transitions && message.transitions.length)) + message.transitions = []; + message.transitions.push($root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.decode(reader, reader.uint32())); + break; + case 3: + message.coverageScore = reader.float(); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a ListExperimentsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse} ListExperimentsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListExperimentsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a Coverage message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage} Coverage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Coverage.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a ListExperimentsResponse message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListExperimentsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.experiments != null && message.hasOwnProperty("experiments")) { - if (!Array.isArray(message.experiments)) - return "experiments: array expected"; - for (var i = 0; i < message.experiments.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.verify(message.experiments[i]); + /** + * Verifies a Coverage message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Coverage.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.routeGroup != null && message.hasOwnProperty("routeGroup")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify(message.routeGroup); if (error) - return "experiments." + error; + return "routeGroup." + error; } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; + if (message.transitions != null && message.hasOwnProperty("transitions")) { + if (!Array.isArray(message.transitions)) + return "transitions: array expected"; + for (var i = 0; i < message.transitions.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.verify(message.transitions[i]); + if (error) + return "transitions." + error; + } + } + if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) + if (typeof message.coverageScore !== "number") + return "coverageScore: number expected"; + return null; + }; - /** - * Creates a ListExperimentsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse} ListExperimentsResponse - */ - ListExperimentsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse(); - if (object.experiments) { - if (!Array.isArray(object.experiments)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse.experiments: array expected"); - message.experiments = []; - for (var i = 0; i < object.experiments.length; ++i) { - if (typeof object.experiments[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse.experiments: object expected"); - message.experiments[i] = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.fromObject(object.experiments[i]); + /** + * Creates a Coverage message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage} Coverage + */ + Coverage.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage(); + if (object.routeGroup != null) { + if (typeof object.routeGroup !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.routeGroup: object expected"); + message.routeGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.fromObject(object.routeGroup); } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; + if (object.transitions) { + if (!Array.isArray(object.transitions)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.transitions: array expected"); + message.transitions = []; + for (var i = 0; i < object.transitions.length; ++i) { + if (typeof object.transitions[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.transitions: object expected"); + message.transitions[i] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.fromObject(object.transitions[i]); + } + } + if (object.coverageScore != null) + message.coverageScore = Number(object.coverageScore); + return message; + }; - /** - * Creates a plain object from a ListExperimentsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse} message ListExperimentsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListExperimentsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.experiments = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.experiments && message.experiments.length) { - object.experiments = []; - for (var j = 0; j < message.experiments.length; ++j) - object.experiments[j] = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.toObject(message.experiments[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; + /** + * Creates a plain object from a Coverage message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage} message Coverage + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Coverage.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.transitions = []; + if (options.defaults) { + object.routeGroup = null; + object.coverageScore = 0; + } + if (message.routeGroup != null && message.hasOwnProperty("routeGroup")) + object.routeGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.toObject(message.routeGroup, options); + if (message.transitions && message.transitions.length) { + object.transitions = []; + for (var j = 0; j < message.transitions.length; ++j) + object.transitions[j] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.toObject(message.transitions[j], options); + } + if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) + object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; + return object; + }; - /** - * Converts this ListExperimentsResponse to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse - * @instance - * @returns {Object.} JSON object - */ - ListExperimentsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this Coverage to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage + * @instance + * @returns {Object.} JSON object + */ + Coverage.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return ListExperimentsResponse; - })(); + Coverage.Transition = (function() { - v3beta1.GetExperimentRequest = (function() { + /** + * Properties of a Transition. + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage + * @interface ITransition + * @property {google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null} [transitionRoute] Transition transitionRoute + * @property {boolean|null} [covered] Transition covered + */ - /** - * Properties of a GetExperimentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetExperimentRequest - * @property {string|null} [name] GetExperimentRequest name - */ + /** + * Constructs a new Transition. + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage + * @classdesc Represents a Transition. + * @implements ITransition + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition=} [properties] Properties to set + */ + function Transition(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new GetExperimentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GetExperimentRequest. - * @implements IGetExperimentRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest=} [properties] Properties to set - */ - function GetExperimentRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Transition transitionRoute. + * @member {google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null|undefined} transitionRoute + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition + * @instance + */ + Transition.prototype.transitionRoute = null; - /** - * GetExperimentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest - * @instance - */ - GetExperimentRequest.prototype.name = ""; + /** + * Transition covered. + * @member {boolean} covered + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition + * @instance + */ + Transition.prototype.covered = false; - /** - * Creates a new GetExperimentRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest} GetExperimentRequest instance - */ - GetExperimentRequest.create = function create(properties) { - return new GetExperimentRequest(properties); - }; + /** + * Creates a new Transition instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition} Transition instance + */ + Transition.create = function create(properties) { + return new Transition(properties); + }; - /** - * Encodes the specified GetExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest} message GetExperimentRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetExperimentRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; + /** + * Encodes the specified Transition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition} message Transition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Transition.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.transitionRoute != null && Object.hasOwnProperty.call(message, "transitionRoute")) + $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.encode(message.transitionRoute, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.covered != null && Object.hasOwnProperty.call(message, "covered")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.covered); + return writer; + }; - /** - * Encodes the specified GetExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest} message GetExperimentRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Transition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition} message Transition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Transition.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a GetExperimentRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest} GetExperimentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetExperimentRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Decodes a Transition message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition} Transition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Transition.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.transitionRoute = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.decode(reader, reader.uint32()); + break; + case 2: + message.covered = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Decodes a GetExperimentRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest} GetExperimentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetExperimentRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a Transition message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition} Transition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Transition.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Transition message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Transition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.transitionRoute != null && message.hasOwnProperty("transitionRoute")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.verify(message.transitionRoute); + if (error) + return "transitionRoute." + error; + } + if (message.covered != null && message.hasOwnProperty("covered")) + if (typeof message.covered !== "boolean") + return "covered: boolean expected"; + return null; + }; + + /** + * Creates a Transition message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition} Transition + */ + Transition.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition(); + if (object.transitionRoute != null) { + if (typeof object.transitionRoute !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.transitionRoute: object expected"); + message.transitionRoute = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.fromObject(object.transitionRoute); + } + if (object.covered != null) + message.covered = Boolean(object.covered); + return message; + }; - /** - * Verifies a GetExperimentRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetExperimentRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; + /** + * Creates a plain object from a Transition message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition} message Transition + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Transition.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.transitionRoute = null; + object.covered = false; + } + if (message.transitionRoute != null && message.hasOwnProperty("transitionRoute")) + object.transitionRoute = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.toObject(message.transitionRoute, options); + if (message.covered != null && message.hasOwnProperty("covered")) + object.covered = message.covered; + return object; + }; - /** - * Creates a GetExperimentRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest} GetExperimentRequest - */ - GetExperimentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + /** + * Converts this Transition to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition + * @instance + * @returns {Object.} JSON object + */ + Transition.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a plain object from a GetExperimentRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest} message GetExperimentRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetExperimentRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + return Transition; + })(); - /** - * Converts this GetExperimentRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest - * @instance - * @returns {Object.} JSON object - */ - GetExperimentRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return Coverage; + })(); - return GetExperimentRequest; + return TransitionRouteGroupCoverage; })(); - v3beta1.CreateExperimentRequest = (function() { + v3beta1.IntentCoverage = (function() { /** - * Properties of a CreateExperimentRequest. + * Properties of an IntentCoverage. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ICreateExperimentRequest - * @property {string|null} [parent] CreateExperimentRequest parent - * @property {google.cloud.dialogflow.cx.v3beta1.IExperiment|null} [experiment] CreateExperimentRequest experiment + * @interface IIntentCoverage + * @property {Array.|null} [intents] IntentCoverage intents + * @property {number|null} [coverageScore] IntentCoverage coverageScore */ /** - * Constructs a new CreateExperimentRequest. + * Constructs a new IntentCoverage. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a CreateExperimentRequest. - * @implements ICreateExperimentRequest + * @classdesc Represents an IntentCoverage. + * @implements IIntentCoverage * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IIntentCoverage=} [properties] Properties to set */ - function CreateExperimentRequest(properties) { + function IntentCoverage(properties) { + this.intents = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -82487,88 +83097,91 @@ } /** - * CreateExperimentRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest + * IntentCoverage intents. + * @member {Array.} intents + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage * @instance */ - CreateExperimentRequest.prototype.parent = ""; + IntentCoverage.prototype.intents = $util.emptyArray; /** - * CreateExperimentRequest experiment. - * @member {google.cloud.dialogflow.cx.v3beta1.IExperiment|null|undefined} experiment - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest + * IntentCoverage coverageScore. + * @member {number} coverageScore + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage * @instance */ - CreateExperimentRequest.prototype.experiment = null; + IntentCoverage.prototype.coverageScore = 0; /** - * Creates a new CreateExperimentRequest instance using the specified properties. + * Creates a new IntentCoverage instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest} CreateExperimentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IIntentCoverage=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.IntentCoverage} IntentCoverage instance */ - CreateExperimentRequest.create = function create(properties) { - return new CreateExperimentRequest(properties); + IntentCoverage.create = function create(properties) { + return new IntentCoverage(properties); }; /** - * Encodes the specified CreateExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest.verify|verify} messages. + * Encodes the specified IntentCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentCoverage.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest} message CreateExperimentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IIntentCoverage} message IntentCoverage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateExperimentRequest.encode = function encode(message, writer) { + IntentCoverage.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.experiment != null && Object.hasOwnProperty.call(message, "experiment")) - $root.google.cloud.dialogflow.cx.v3beta1.Experiment.encode(message.experiment, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.intents != null && message.intents.length) + for (var i = 0; i < message.intents.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent.encode(message.intents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.coverageScore != null && Object.hasOwnProperty.call(message, "coverageScore")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.coverageScore); return writer; }; /** - * Encodes the specified CreateExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest.verify|verify} messages. + * Encodes the specified IntentCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentCoverage.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest} message CreateExperimentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IIntentCoverage} message IntentCoverage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { + IntentCoverage.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateExperimentRequest message from the specified reader or buffer. + * Decodes an IntentCoverage message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest} CreateExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.IntentCoverage} IntentCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateExperimentRequest.decode = function decode(reader, length) { + IntentCoverage.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + if (!(message.intents && message.intents.length)) + message.intents = []; + message.intents.push($root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent.decode(reader, reader.uint32())); break; case 2: - message.experiment = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.decode(reader, reader.uint32()); + message.coverageScore = reader.float(); break; default: reader.skipType(tag & 7); @@ -82579,122 +83192,344 @@ }; /** - * Decodes a CreateExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes an IntentCoverage message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest} CreateExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.IntentCoverage} IntentCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateExperimentRequest.decodeDelimited = function decodeDelimited(reader) { + IntentCoverage.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateExperimentRequest message. + * Verifies an IntentCoverage message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateExperimentRequest.verify = function verify(message) { + IntentCoverage.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.experiment != null && message.hasOwnProperty("experiment")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.verify(message.experiment); - if (error) - return "experiment." + error; + if (message.intents != null && message.hasOwnProperty("intents")) { + if (!Array.isArray(message.intents)) + return "intents: array expected"; + for (var i = 0; i < message.intents.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent.verify(message.intents[i]); + if (error) + return "intents." + error; + } } + if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) + if (typeof message.coverageScore !== "number") + return "coverageScore: number expected"; return null; }; /** - * Creates a CreateExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates an IntentCoverage message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest} CreateExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.IntentCoverage} IntentCoverage */ - CreateExperimentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest) + IntentCoverage.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.experiment != null) { - if (typeof object.experiment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest.experiment: object expected"); - message.experiment = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.fromObject(object.experiment); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage(); + if (object.intents) { + if (!Array.isArray(object.intents)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.IntentCoverage.intents: array expected"); + message.intents = []; + for (var i = 0; i < object.intents.length; ++i) { + if (typeof object.intents[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.IntentCoverage.intents: object expected"); + message.intents[i] = $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent.fromObject(object.intents[i]); + } } + if (object.coverageScore != null) + message.coverageScore = Number(object.coverageScore); return message; }; /** - * Creates a plain object from a CreateExperimentRequest message. Also converts values to other types if specified. + * Creates a plain object from an IntentCoverage message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest} message CreateExperimentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.IntentCoverage} message IntentCoverage * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateExperimentRequest.toObject = function toObject(message, options) { + IntentCoverage.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.experiment = null; + if (options.arrays || options.defaults) + object.intents = []; + if (options.defaults) + object.coverageScore = 0; + if (message.intents && message.intents.length) { + object.intents = []; + for (var j = 0; j < message.intents.length; ++j) + object.intents[j] = $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent.toObject(message.intents[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.experiment != null && message.hasOwnProperty("experiment")) - object.experiment = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.toObject(message.experiment, options); + if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) + object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; return object; }; /** - * Converts this CreateExperimentRequest to JSON. + * Converts this IntentCoverage to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage * @instance * @returns {Object.} JSON object */ - CreateExperimentRequest.prototype.toJSON = function toJSON() { + IntentCoverage.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateExperimentRequest; + IntentCoverage.Intent = (function() { + + /** + * Properties of an Intent. + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage + * @interface IIntent + * @property {string|null} [intent] Intent intent + * @property {boolean|null} [covered] Intent covered + */ + + /** + * Constructs a new Intent. + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage + * @classdesc Represents an Intent. + * @implements IIntent + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent=} [properties] Properties to set + */ + function Intent(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Intent intent. + * @member {string} intent + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent + * @instance + */ + Intent.prototype.intent = ""; + + /** + * Intent covered. + * @member {boolean} covered + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent + * @instance + */ + Intent.prototype.covered = false; + + /** + * Creates a new Intent instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent} Intent instance + */ + Intent.create = function create(properties) { + return new Intent(properties); + }; + + /** + * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent} message Intent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Intent.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.intent); + if (message.covered != null && Object.hasOwnProperty.call(message, "covered")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.covered); + return writer; + }; + + /** + * Encodes the specified Intent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent} message Intent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Intent.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Intent message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent} Intent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Intent.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.intent = reader.string(); + break; + case 2: + message.covered = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Intent message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent} Intent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Intent.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Intent message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Intent.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.intent != null && message.hasOwnProperty("intent")) + if (!$util.isString(message.intent)) + return "intent: string expected"; + if (message.covered != null && message.hasOwnProperty("covered")) + if (typeof message.covered !== "boolean") + return "covered: boolean expected"; + return null; + }; + + /** + * Creates an Intent message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent} Intent + */ + Intent.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent(); + if (object.intent != null) + message.intent = String(object.intent); + if (object.covered != null) + message.covered = Boolean(object.covered); + return message; + }; + + /** + * Creates a plain object from an Intent message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent} message Intent + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Intent.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.intent = ""; + object.covered = false; + } + if (message.intent != null && message.hasOwnProperty("intent")) + object.intent = message.intent; + if (message.covered != null && message.hasOwnProperty("covered")) + object.covered = message.covered; + return object; + }; + + /** + * Converts this Intent to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent + * @instance + * @returns {Object.} JSON object + */ + Intent.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Intent; + })(); + + return IntentCoverage; })(); - v3beta1.UpdateExperimentRequest = (function() { + v3beta1.CalculateCoverageRequest = (function() { /** - * Properties of an UpdateExperimentRequest. + * Properties of a CalculateCoverageRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IUpdateExperimentRequest - * @property {google.cloud.dialogflow.cx.v3beta1.IExperiment|null} [experiment] UpdateExperimentRequest experiment - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateExperimentRequest updateMask + * @interface ICalculateCoverageRequest + * @property {string|null} [agent] CalculateCoverageRequest agent + * @property {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType|null} [type] CalculateCoverageRequest type */ /** - * Constructs a new UpdateExperimentRequest. + * Constructs a new CalculateCoverageRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an UpdateExperimentRequest. - * @implements IUpdateExperimentRequest + * @classdesc Represents a CalculateCoverageRequest. + * @implements ICalculateCoverageRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest=} [properties] Properties to set */ - function UpdateExperimentRequest(properties) { + function CalculateCoverageRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -82702,88 +83537,88 @@ } /** - * UpdateExperimentRequest experiment. - * @member {google.cloud.dialogflow.cx.v3beta1.IExperiment|null|undefined} experiment - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest + * CalculateCoverageRequest agent. + * @member {string} agent + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest * @instance */ - UpdateExperimentRequest.prototype.experiment = null; + CalculateCoverageRequest.prototype.agent = ""; /** - * UpdateExperimentRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest + * CalculateCoverageRequest type. + * @member {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType} type + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest * @instance */ - UpdateExperimentRequest.prototype.updateMask = null; + CalculateCoverageRequest.prototype.type = 0; /** - * Creates a new UpdateExperimentRequest instance using the specified properties. + * Creates a new CalculateCoverageRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest} UpdateExperimentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest} CalculateCoverageRequest instance */ - UpdateExperimentRequest.create = function create(properties) { - return new UpdateExperimentRequest(properties); + CalculateCoverageRequest.create = function create(properties) { + return new CalculateCoverageRequest(properties); }; /** - * Encodes the specified UpdateExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest.verify|verify} messages. + * Encodes the specified CalculateCoverageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest} message UpdateExperimentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest} message CalculateCoverageRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateExperimentRequest.encode = function encode(message, writer) { + CalculateCoverageRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.experiment != null && Object.hasOwnProperty.call(message, "experiment")) - $root.google.cloud.dialogflow.cx.v3beta1.Experiment.encode(message.experiment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); + if (message.agent != null && Object.hasOwnProperty.call(message, "agent")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.agent); return writer; }; /** - * Encodes the specified UpdateExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest.verify|verify} messages. + * Encodes the specified CalculateCoverageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest} message UpdateExperimentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest} message CalculateCoverageRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { + CalculateCoverageRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateExperimentRequest message from the specified reader or buffer. + * Decodes a CalculateCoverageRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest} UpdateExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest} CalculateCoverageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateExperimentRequest.decode = function decode(reader, length) { + CalculateCoverageRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.experiment = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.decode(reader, reader.uint32()); + case 3: + message.agent = reader.string(); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.type = reader.int32(); break; default: reader.skipType(tag & 7); @@ -82794,126 +83629,160 @@ }; /** - * Decodes an UpdateExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a CalculateCoverageRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest} UpdateExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest} CalculateCoverageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateExperimentRequest.decodeDelimited = function decodeDelimited(reader) { + CalculateCoverageRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateExperimentRequest message. + * Verifies a CalculateCoverageRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateExperimentRequest.verify = function verify(message) { + CalculateCoverageRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.experiment != null && message.hasOwnProperty("experiment")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.verify(message.experiment); - if (error) - return "experiment." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + if (message.agent != null && message.hasOwnProperty("agent")) + if (!$util.isString(message.agent)) + return "agent: string expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } return null; }; /** - * Creates an UpdateExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CalculateCoverageRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest} UpdateExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest} CalculateCoverageRequest */ - UpdateExperimentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest) + CalculateCoverageRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest(); - if (object.experiment != null) { - if (typeof object.experiment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest.experiment: object expected"); - message.experiment = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.fromObject(object.experiment); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest(); + if (object.agent != null) + message.agent = String(object.agent); + switch (object.type) { + case "COVERAGE_TYPE_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "INTENT": + case 1: + message.type = 1; + break; + case "PAGE_TRANSITION": + case 2: + message.type = 2; + break; + case "TRANSITION_ROUTE_GROUP": + case 3: + message.type = 3; + break; } return message; }; /** - * Creates a plain object from an UpdateExperimentRequest message. Also converts values to other types if specified. + * Creates a plain object from a CalculateCoverageRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest} message UpdateExperimentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest} message CalculateCoverageRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateExperimentRequest.toObject = function toObject(message, options) { + CalculateCoverageRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.experiment = null; - object.updateMask = null; + object.type = options.enums === String ? "COVERAGE_TYPE_UNSPECIFIED" : 0; + object.agent = ""; } - if (message.experiment != null && message.hasOwnProperty("experiment")) - object.experiment = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.toObject(message.experiment, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType[message.type] : message.type; + if (message.agent != null && message.hasOwnProperty("agent")) + object.agent = message.agent; return object; }; /** - * Converts this UpdateExperimentRequest to JSON. + * Converts this CalculateCoverageRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest * @instance * @returns {Object.} JSON object */ - UpdateExperimentRequest.prototype.toJSON = function toJSON() { + CalculateCoverageRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateExperimentRequest; + /** + * CoverageType enum. + * @name google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType + * @enum {number} + * @property {number} COVERAGE_TYPE_UNSPECIFIED=0 COVERAGE_TYPE_UNSPECIFIED value + * @property {number} INTENT=1 INTENT value + * @property {number} PAGE_TRANSITION=2 PAGE_TRANSITION value + * @property {number} TRANSITION_ROUTE_GROUP=3 TRANSITION_ROUTE_GROUP value + */ + CalculateCoverageRequest.CoverageType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "COVERAGE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "INTENT"] = 1; + values[valuesById[2] = "PAGE_TRANSITION"] = 2; + values[valuesById[3] = "TRANSITION_ROUTE_GROUP"] = 3; + return values; + })(); + + return CalculateCoverageRequest; })(); - v3beta1.DeleteExperimentRequest = (function() { + v3beta1.CalculateCoverageResponse = (function() { /** - * Properties of a DeleteExperimentRequest. + * Properties of a CalculateCoverageResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDeleteExperimentRequest - * @property {string|null} [name] DeleteExperimentRequest name + * @interface ICalculateCoverageResponse + * @property {string|null} [agent] CalculateCoverageResponse agent + * @property {google.cloud.dialogflow.cx.v3beta1.IIntentCoverage|null} [intentCoverage] CalculateCoverageResponse intentCoverage + * @property {google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage|null} [transitionCoverage] CalculateCoverageResponse transitionCoverage + * @property {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage|null} [routeGroupCoverage] CalculateCoverageResponse routeGroupCoverage */ /** - * Constructs a new DeleteExperimentRequest. + * Constructs a new CalculateCoverageResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DeleteExperimentRequest. - * @implements IDeleteExperimentRequest + * @classdesc Represents a CalculateCoverageResponse. + * @implements ICalculateCoverageResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse=} [properties] Properties to set */ - function DeleteExperimentRequest(properties) { + function CalculateCoverageResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -82921,262 +83790,128 @@ } /** - * DeleteExperimentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest + * CalculateCoverageResponse agent. + * @member {string} agent + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse * @instance */ - DeleteExperimentRequest.prototype.name = ""; - - /** - * Creates a new DeleteExperimentRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest} DeleteExperimentRequest instance - */ - DeleteExperimentRequest.create = function create(properties) { - return new DeleteExperimentRequest(properties); - }; - - /** - * Encodes the specified DeleteExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest} message DeleteExperimentRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteExperimentRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; - - /** - * Encodes the specified DeleteExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest} message DeleteExperimentRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a DeleteExperimentRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest} DeleteExperimentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteExperimentRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a DeleteExperimentRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest} DeleteExperimentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteExperimentRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeleteExperimentRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DeleteExperimentRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; - - /** - * Creates a DeleteExperimentRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest} DeleteExperimentRequest - */ - DeleteExperimentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + CalculateCoverageResponse.prototype.agent = ""; /** - * Creates a plain object from a DeleteExperimentRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest} message DeleteExperimentRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * CalculateCoverageResponse intentCoverage. + * @member {google.cloud.dialogflow.cx.v3beta1.IIntentCoverage|null|undefined} intentCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * @instance */ - DeleteExperimentRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + CalculateCoverageResponse.prototype.intentCoverage = null; /** - * Converts this DeleteExperimentRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest + * CalculateCoverageResponse transitionCoverage. + * @member {google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage|null|undefined} transitionCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse * @instance - * @returns {Object.} JSON object */ - DeleteExperimentRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return DeleteExperimentRequest; - })(); - - v3beta1.StartExperimentRequest = (function() { + CalculateCoverageResponse.prototype.transitionCoverage = null; /** - * Properties of a StartExperimentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IStartExperimentRequest - * @property {string|null} [name] StartExperimentRequest name + * CalculateCoverageResponse routeGroupCoverage. + * @member {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage|null|undefined} routeGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * @instance */ + CalculateCoverageResponse.prototype.routeGroupCoverage = null; - /** - * Constructs a new StartExperimentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a StartExperimentRequest. - * @implements IStartExperimentRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest=} [properties] Properties to set - */ - function StartExperimentRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * StartExperimentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest + * CalculateCoverageResponse coverageType. + * @member {"intentCoverage"|"transitionCoverage"|"routeGroupCoverage"|undefined} coverageType + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse * @instance */ - StartExperimentRequest.prototype.name = ""; + Object.defineProperty(CalculateCoverageResponse.prototype, "coverageType", { + get: $util.oneOfGetter($oneOfFields = ["intentCoverage", "transitionCoverage", "routeGroupCoverage"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new StartExperimentRequest instance using the specified properties. + * Creates a new CalculateCoverageResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest} StartExperimentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse} CalculateCoverageResponse instance */ - StartExperimentRequest.create = function create(properties) { - return new StartExperimentRequest(properties); + CalculateCoverageResponse.create = function create(properties) { + return new CalculateCoverageResponse(properties); }; /** - * Encodes the specified StartExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest.verify|verify} messages. + * Encodes the specified CalculateCoverageResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest} message StartExperimentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse} message CalculateCoverageResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartExperimentRequest.encode = function encode(message, writer) { + CalculateCoverageResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.intentCoverage != null && Object.hasOwnProperty.call(message, "intentCoverage")) + $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.encode(message.intentCoverage, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.transitionCoverage != null && Object.hasOwnProperty.call(message, "transitionCoverage")) + $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.encode(message.transitionCoverage, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.agent != null && Object.hasOwnProperty.call(message, "agent")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.agent); + if (message.routeGroupCoverage != null && Object.hasOwnProperty.call(message, "routeGroupCoverage")) + $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.encode(message.routeGroupCoverage, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; /** - * Encodes the specified StartExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest.verify|verify} messages. + * Encodes the specified CalculateCoverageResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest} message StartExperimentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse} message CalculateCoverageResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { + CalculateCoverageResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StartExperimentRequest message from the specified reader or buffer. + * Decodes a CalculateCoverageResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest} StartExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse} CalculateCoverageResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartExperimentRequest.decode = function decode(reader, length) { + CalculateCoverageResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); + case 5: + message.agent = reader.string(); + break; + case 2: + message.intentCoverage = $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.decode(reader, reader.uint32()); + break; + case 4: + message.transitionCoverage = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.decode(reader, reader.uint32()); + break; + case 6: + message.routeGroupCoverage = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -83187,107 +83922,169 @@ }; /** - * Decodes a StartExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a CalculateCoverageResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest} StartExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse} CalculateCoverageResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartExperimentRequest.decodeDelimited = function decodeDelimited(reader) { + CalculateCoverageResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StartExperimentRequest message. + * Verifies a CalculateCoverageResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StartExperimentRequest.verify = function verify(message) { + CalculateCoverageResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + var properties = {}; + if (message.agent != null && message.hasOwnProperty("agent")) + if (!$util.isString(message.agent)) + return "agent: string expected"; + if (message.intentCoverage != null && message.hasOwnProperty("intentCoverage")) { + properties.coverageType = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.verify(message.intentCoverage); + if (error) + return "intentCoverage." + error; + } + } + if (message.transitionCoverage != null && message.hasOwnProperty("transitionCoverage")) { + if (properties.coverageType === 1) + return "coverageType: multiple values"; + properties.coverageType = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.verify(message.transitionCoverage); + if (error) + return "transitionCoverage." + error; + } + } + if (message.routeGroupCoverage != null && message.hasOwnProperty("routeGroupCoverage")) { + if (properties.coverageType === 1) + return "coverageType: multiple values"; + properties.coverageType = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.verify(message.routeGroupCoverage); + if (error) + return "routeGroupCoverage." + error; + } + } return null; }; /** - * Creates a StartExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CalculateCoverageResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest} StartExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse} CalculateCoverageResponse */ - StartExperimentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest) + CalculateCoverageResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse(); + if (object.agent != null) + message.agent = String(object.agent); + if (object.intentCoverage != null) { + if (typeof object.intentCoverage !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse.intentCoverage: object expected"); + message.intentCoverage = $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.fromObject(object.intentCoverage); + } + if (object.transitionCoverage != null) { + if (typeof object.transitionCoverage !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse.transitionCoverage: object expected"); + message.transitionCoverage = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.fromObject(object.transitionCoverage); + } + if (object.routeGroupCoverage != null) { + if (typeof object.routeGroupCoverage !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse.routeGroupCoverage: object expected"); + message.routeGroupCoverage = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.fromObject(object.routeGroupCoverage); + } return message; }; /** - * Creates a plain object from a StartExperimentRequest message. Also converts values to other types if specified. + * Creates a plain object from a CalculateCoverageResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest} message StartExperimentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse} message CalculateCoverageResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StartExperimentRequest.toObject = function toObject(message, options) { + CalculateCoverageResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.agent = ""; + if (message.intentCoverage != null && message.hasOwnProperty("intentCoverage")) { + object.intentCoverage = $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.toObject(message.intentCoverage, options); + if (options.oneofs) + object.coverageType = "intentCoverage"; + } + if (message.transitionCoverage != null && message.hasOwnProperty("transitionCoverage")) { + object.transitionCoverage = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.toObject(message.transitionCoverage, options); + if (options.oneofs) + object.coverageType = "transitionCoverage"; + } + if (message.agent != null && message.hasOwnProperty("agent")) + object.agent = message.agent; + if (message.routeGroupCoverage != null && message.hasOwnProperty("routeGroupCoverage")) { + object.routeGroupCoverage = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.toObject(message.routeGroupCoverage, options); + if (options.oneofs) + object.coverageType = "routeGroupCoverage"; + } return object; }; /** - * Converts this StartExperimentRequest to JSON. + * Converts this CalculateCoverageResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse * @instance * @returns {Object.} JSON object */ - StartExperimentRequest.prototype.toJSON = function toJSON() { + CalculateCoverageResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StartExperimentRequest; + return CalculateCoverageResponse; })(); - v3beta1.StopExperimentRequest = (function() { + v3beta1.ListTestCasesRequest = (function() { /** - * Properties of a StopExperimentRequest. + * Properties of a ListTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IStopExperimentRequest - * @property {string|null} [name] StopExperimentRequest name + * @interface IListTestCasesRequest + * @property {string|null} [parent] ListTestCasesRequest parent + * @property {number|null} [pageSize] ListTestCasesRequest pageSize + * @property {string|null} [pageToken] ListTestCasesRequest pageToken + * @property {google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView|null} [view] ListTestCasesRequest view */ /** - * Constructs a new StopExperimentRequest. + * Constructs a new ListTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a StopExperimentRequest. - * @implements IStopExperimentRequest + * @classdesc Represents a ListTestCasesRequest. + * @implements IListTestCasesRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest=} [properties] Properties to set */ - function StopExperimentRequest(properties) { + function ListTestCasesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -83295,75 +84092,114 @@ } /** - * StopExperimentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest + * ListTestCasesRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest * @instance */ - StopExperimentRequest.prototype.name = ""; + ListTestCasesRequest.prototype.parent = ""; /** - * Creates a new StopExperimentRequest instance using the specified properties. + * ListTestCasesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @instance + */ + ListTestCasesRequest.prototype.pageSize = 0; + + /** + * ListTestCasesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @instance + */ + ListTestCasesRequest.prototype.pageToken = ""; + + /** + * ListTestCasesRequest view. + * @member {google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView} view + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @instance + */ + ListTestCasesRequest.prototype.view = 0; + + /** + * Creates a new ListTestCasesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest} StopExperimentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest} ListTestCasesRequest instance */ - StopExperimentRequest.create = function create(properties) { - return new StopExperimentRequest(properties); + ListTestCasesRequest.create = function create(properties) { + return new ListTestCasesRequest(properties); }; /** - * Encodes the specified StopExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest.verify|verify} messages. + * Encodes the specified ListTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest} message StopExperimentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest} message ListTestCasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StopExperimentRequest.encode = function encode(message, writer) { + ListTestCasesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.view != null && Object.hasOwnProperty.call(message, "view")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.view); return writer; }; /** - * Encodes the specified StopExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest.verify|verify} messages. + * Encodes the specified ListTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest} message StopExperimentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest} message ListTestCasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StopExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StopExperimentRequest message from the specified reader or buffer. + * Decodes a ListTestCasesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest} StopExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest} ListTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopExperimentRequest.decode = function decode(reader, length) { + ListTestCasesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); + break; + case 2: + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); + break; + case 4: + message.view = reader.int32(); break; default: reader.skipType(tag & 7); @@ -83374,317 +84210,399 @@ }; /** - * Decodes a StopExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a ListTestCasesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest} StopExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest} ListTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopExperimentRequest.decodeDelimited = function decodeDelimited(reader) { + ListTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StopExperimentRequest message. + * Verifies a ListTestCasesRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StopExperimentRequest.verify = function verify(message) { + ListTestCasesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.view != null && message.hasOwnProperty("view")) + switch (message.view) { + default: + return "view: enum value expected"; + case 0: + case 1: + case 2: + break; + } return null; }; /** - * Creates a StopExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListTestCasesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest} StopExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest} ListTestCasesRequest */ - StopExperimentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest) + ListTestCasesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + switch (object.view) { + case "TEST_CASE_VIEW_UNSPECIFIED": + case 0: + message.view = 0; + break; + case "BASIC": + case 1: + message.view = 1; + break; + case "FULL": + case 2: + message.view = 2; + break; + } return message; }; /** - * Creates a plain object from a StopExperimentRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListTestCasesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest} message StopExperimentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest} message ListTestCasesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StopExperimentRequest.toObject = function toObject(message, options) { + ListTestCasesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.view = options.enums === String ? "TEST_CASE_VIEW_UNSPECIFIED" : 0; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.view != null && message.hasOwnProperty("view")) + object.view = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView[message.view] : message.view; return object; }; /** - * Converts this StopExperimentRequest to JSON. + * Converts this ListTestCasesRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest * @instance * @returns {Object.} JSON object */ - StopExperimentRequest.prototype.toJSON = function toJSON() { + ListTestCasesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StopExperimentRequest; - })(); - - v3beta1.Intents = (function() { - - /** - * Constructs a new Intents service. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an Intents - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Intents(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Intents.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Intents; - /** - * Creates new Intents service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {Intents} RPC service. Useful where requests and/or responses are streamed. + * TestCaseView enum. + * @name google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView + * @enum {number} + * @property {number} TEST_CASE_VIEW_UNSPECIFIED=0 TEST_CASE_VIEW_UNSPECIFIED value + * @property {number} BASIC=1 BASIC value + * @property {number} FULL=2 FULL value */ - Intents.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; + ListTestCasesRequest.TestCaseView = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TEST_CASE_VIEW_UNSPECIFIED"] = 0; + values[valuesById[1] = "BASIC"] = 1; + values[valuesById[2] = "FULL"] = 2; + return values; + })(); - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#listIntents}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @typedef ListIntentsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse} [response] ListIntentsResponse - */ + return ListTestCasesRequest; + })(); - /** - * Calls ListIntents. - * @function listIntents - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest} request ListIntentsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Intents.ListIntentsCallback} callback Node-style callback called with the error, if any, and ListIntentsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Intents.prototype.listIntents = function listIntents(request, callback) { - return this.rpcCall(listIntents, $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse, request, callback); - }, "name", { value: "ListIntents" }); + v3beta1.ListTestCasesResponse = (function() { /** - * Calls ListIntents. - * @function listIntents - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest} request ListIntentsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of a ListTestCasesResponse. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IListTestCasesResponse + * @property {Array.|null} [testCases] ListTestCasesResponse testCases + * @property {string|null} [nextPageToken] ListTestCasesResponse nextPageToken */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#getIntent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @typedef GetIntentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Intent} [response] Intent + * Constructs a new ListTestCasesResponse. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a ListTestCasesResponse. + * @implements IListTestCasesResponse + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse=} [properties] Properties to set */ + function ListTestCasesResponse(properties) { + this.testCases = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls GetIntent. - * @function getIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * ListTestCasesResponse testCases. + * @member {Array.} testCases + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest} request GetIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Intents.GetIntentCallback} callback Node-style callback called with the error, if any, and Intent - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(Intents.prototype.getIntent = function getIntent(request, callback) { - return this.rpcCall(getIntent, $root.google.cloud.dialogflow.cx.v3beta1.GetIntentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Intent, request, callback); - }, "name", { value: "GetIntent" }); + ListTestCasesResponse.prototype.testCases = $util.emptyArray; /** - * Calls GetIntent. - * @function getIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * ListTestCasesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest} request GetIntentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + ListTestCasesResponse.prototype.nextPageToken = ""; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#createIntent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @typedef CreateIntentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Intent} [response] Intent + * Creates a new ListTestCasesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse} ListTestCasesResponse instance */ + ListTestCasesResponse.create = function create(properties) { + return new ListTestCasesResponse(properties); + }; /** - * Calls CreateIntent. - * @function createIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest} request CreateIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Intents.CreateIntentCallback} callback Node-style callback called with the error, if any, and Intent - * @returns {undefined} - * @variation 1 + * Encodes the specified ListTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse} message ListTestCasesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(Intents.prototype.createIntent = function createIntent(request, callback) { - return this.rpcCall(createIntent, $root.google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Intent, request, callback); - }, "name", { value: "CreateIntent" }); + ListTestCasesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.testCases != null && message.testCases.length) + for (var i = 0; i < message.testCases.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.TestCase.encode(message.testCases[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; /** - * Calls CreateIntent. - * @function createIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest} request CreateIntentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified ListTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse} message ListTestCasesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + ListTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#updateIntent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @typedef UpdateIntentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Intent} [response] Intent + * Decodes a ListTestCasesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse} ListTestCasesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + ListTestCasesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.testCases && message.testCases.length)) + message.testCases = []; + message.testCases.push($root.google.cloud.dialogflow.cx.v3beta1.TestCase.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls UpdateIntent. - * @function updateIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest} request UpdateIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Intents.UpdateIntentCallback} callback Node-style callback called with the error, if any, and Intent - * @returns {undefined} - * @variation 1 + * Decodes a ListTestCasesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse} ListTestCasesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(Intents.prototype.updateIntent = function updateIntent(request, callback) { - return this.rpcCall(updateIntent, $root.google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Intent, request, callback); - }, "name", { value: "UpdateIntent" }); + ListTestCasesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls UpdateIntent. - * @function updateIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest} request UpdateIntentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a ListTestCasesResponse message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + ListTestCasesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.testCases != null && message.hasOwnProperty("testCases")) { + if (!Array.isArray(message.testCases)) + return "testCases: array expected"; + for (var i = 0; i < message.testCases.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.verify(message.testCases[i]); + if (error) + return "testCases." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#deleteIntent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @typedef DeleteIntentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Creates a ListTestCasesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse} ListTestCasesResponse */ + ListTestCasesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse(); + if (object.testCases) { + if (!Array.isArray(object.testCases)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse.testCases: array expected"); + message.testCases = []; + for (var i = 0; i < object.testCases.length; ++i) { + if (typeof object.testCases[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse.testCases: object expected"); + message.testCases[i] = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.fromObject(object.testCases[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; /** - * Calls DeleteIntent. - * @function deleteIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest} request DeleteIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Intents.DeleteIntentCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * Creates a plain object from a ListTestCasesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse} message ListTestCasesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(Intents.prototype.deleteIntent = function deleteIntent(request, callback) { - return this.rpcCall(deleteIntent, $root.google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteIntent" }); + ListTestCasesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.testCases = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.testCases && message.testCases.length) { + object.testCases = []; + for (var j = 0; j < message.testCases.length; ++j) + object.testCases[j] = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.toObject(message.testCases[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; /** - * Calls DeleteIntent. - * @function deleteIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * Converts this ListTestCasesResponse to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest} request DeleteIntentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + ListTestCasesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Intents; + return ListTestCasesResponse; })(); - v3beta1.Intent = (function() { + v3beta1.BatchDeleteTestCasesRequest = (function() { /** - * Properties of an Intent. + * Properties of a BatchDeleteTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IIntent - * @property {string|null} [name] Intent name - * @property {string|null} [displayName] Intent displayName - * @property {Array.|null} [trainingPhrases] Intent trainingPhrases - * @property {Array.|null} [parameters] Intent parameters - * @property {number|null} [priority] Intent priority - * @property {boolean|null} [isFallback] Intent isFallback - * @property {Object.|null} [labels] Intent labels - * @property {string|null} [description] Intent description + * @interface IBatchDeleteTestCasesRequest + * @property {string|null} [parent] BatchDeleteTestCasesRequest parent + * @property {Array.|null} [names] BatchDeleteTestCasesRequest names */ /** - * Constructs a new Intent. + * Constructs a new BatchDeleteTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an Intent. - * @implements IIntent + * @classdesc Represents a BatchDeleteTestCasesRequest. + * @implements IBatchDeleteTestCasesRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IIntent=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest=} [properties] Properties to set */ - function Intent(properties) { - this.trainingPhrases = []; - this.parameters = []; - this.labels = {}; + function BatchDeleteTestCasesRequest(properties) { + this.names = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -83692,192 +84610,91 @@ } /** - * Intent name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent - * @instance - */ - Intent.prototype.name = ""; - - /** - * Intent displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent - * @instance - */ - Intent.prototype.displayName = ""; - - /** - * Intent trainingPhrases. - * @member {Array.} trainingPhrases - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent - * @instance - */ - Intent.prototype.trainingPhrases = $util.emptyArray; - - /** - * Intent parameters. - * @member {Array.} parameters - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent - * @instance - */ - Intent.prototype.parameters = $util.emptyArray; - - /** - * Intent priority. - * @member {number} priority - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent - * @instance - */ - Intent.prototype.priority = 0; - - /** - * Intent isFallback. - * @member {boolean} isFallback - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent - * @instance - */ - Intent.prototype.isFallback = false; - - /** - * Intent labels. - * @member {Object.} labels - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * BatchDeleteTestCasesRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest * @instance */ - Intent.prototype.labels = $util.emptyObject; + BatchDeleteTestCasesRequest.prototype.parent = ""; /** - * Intent description. - * @member {string} description - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * BatchDeleteTestCasesRequest names. + * @member {Array.} names + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest * @instance */ - Intent.prototype.description = ""; + BatchDeleteTestCasesRequest.prototype.names = $util.emptyArray; /** - * Creates a new Intent instance using the specified properties. + * Creates a new BatchDeleteTestCasesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IIntent=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent} Intent instance + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest instance */ - Intent.create = function create(properties) { - return new Intent(properties); + BatchDeleteTestCasesRequest.create = function create(properties) { + return new BatchDeleteTestCasesRequest(properties); }; /** - * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.verify|verify} messages. + * Encodes the specified BatchDeleteTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IIntent} message Intent message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest} message BatchDeleteTestCasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Intent.encode = function encode(message, writer) { + BatchDeleteTestCasesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.trainingPhrases != null && message.trainingPhrases.length) - for (var i = 0; i < message.trainingPhrases.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.encode(message.trainingPhrases[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.parameters != null && message.parameters.length) - for (var i = 0; i < message.parameters.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.encode(message.parameters[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.priority != null && Object.hasOwnProperty.call(message, "priority")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.priority); - if (message.isFallback != null && Object.hasOwnProperty.call(message, "isFallback")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isFallback); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.description); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.names != null && message.names.length) + for (var i = 0; i < message.names.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.names[i]); return writer; }; /** - * Encodes the specified Intent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.verify|verify} messages. + * Encodes the specified BatchDeleteTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IIntent} message Intent message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest} message BatchDeleteTestCasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Intent.encodeDelimited = function encodeDelimited(message, writer) { + BatchDeleteTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Intent message from the specified reader or buffer. + * Decodes a BatchDeleteTestCasesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent} Intent + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Intent.decode = function decode(reader, length) { + BatchDeleteTestCasesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); - break; - case 2: - message.displayName = reader.string(); + message.parent = reader.string(); break; case 3: - if (!(message.trainingPhrases && message.trainingPhrases.length)) - message.trainingPhrases = []; - message.trainingPhrases.push($root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.decode(reader, reader.uint32())); - break; - case 4: - if (!(message.parameters && message.parameters.length)) - message.parameters = []; - message.parameters.push($root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.decode(reader, reader.uint32())); - break; - case 5: - message.priority = reader.int32(); - break; - case 6: - message.isFallback = reader.bool(); - break; - case 7: - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - case 8: - message.description = reader.string(); + if (!(message.names && message.names.length)) + message.names = []; + message.names.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -83888,937 +84705,563 @@ }; /** - * Decodes an Intent message from the specified reader or buffer, length delimited. + * Decodes a BatchDeleteTestCasesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent} Intent + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Intent.decodeDelimited = function decodeDelimited(reader) { + BatchDeleteTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Intent message. + * Verifies a BatchDeleteTestCasesRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Intent.verify = function verify(message) { + BatchDeleteTestCasesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.trainingPhrases != null && message.hasOwnProperty("trainingPhrases")) { - if (!Array.isArray(message.trainingPhrases)) - return "trainingPhrases: array expected"; - for (var i = 0; i < message.trainingPhrases.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.verify(message.trainingPhrases[i]); - if (error) - return "trainingPhrases." + error; - } - } - if (message.parameters != null && message.hasOwnProperty("parameters")) { - if (!Array.isArray(message.parameters)) - return "parameters: array expected"; - for (var i = 0; i < message.parameters.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.verify(message.parameters[i]); - if (error) - return "parameters." + error; - } - } - if (message.priority != null && message.hasOwnProperty("priority")) - if (!$util.isInteger(message.priority)) - return "priority: integer expected"; - if (message.isFallback != null && message.hasOwnProperty("isFallback")) - if (typeof message.isFallback !== "boolean") - return "isFallback: boolean expected"; - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.names != null && message.hasOwnProperty("names")) { + if (!Array.isArray(message.names)) + return "names: array expected"; + for (var i = 0; i < message.names.length; ++i) + if (!$util.isString(message.names[i])) + return "names: string[] expected"; } - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; return null; }; /** - * Creates an Intent message from a plain object. Also converts values to their respective internal types. + * Creates a BatchDeleteTestCasesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent} Intent + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest */ - Intent.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Intent) + BatchDeleteTestCasesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.trainingPhrases) { - if (!Array.isArray(object.trainingPhrases)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Intent.trainingPhrases: array expected"); - message.trainingPhrases = []; - for (var i = 0; i < object.trainingPhrases.length; ++i) { - if (typeof object.trainingPhrases[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Intent.trainingPhrases: object expected"); - message.trainingPhrases[i] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.fromObject(object.trainingPhrases[i]); - } - } - if (object.parameters) { - if (!Array.isArray(object.parameters)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Intent.parameters: array expected"); - message.parameters = []; - for (var i = 0; i < object.parameters.length; ++i) { - if (typeof object.parameters[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Intent.parameters: object expected"); - message.parameters[i] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.fromObject(object.parameters[i]); - } - } - if (object.priority != null) - message.priority = object.priority | 0; - if (object.isFallback != null) - message.isFallback = Boolean(object.isFallback); - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Intent.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); - } - if (object.description != null) - message.description = String(object.description); - return message; - }; - - /** - * Creates a plain object from an Intent message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent} message Intent - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Intent.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.trainingPhrases = []; - object.parameters = []; - } - if (options.objects || options.defaults) - object.labels = {}; - if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.priority = 0; - object.isFallback = false; - object.description = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.trainingPhrases && message.trainingPhrases.length) { - object.trainingPhrases = []; - for (var j = 0; j < message.trainingPhrases.length; ++j) - object.trainingPhrases[j] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.toObject(message.trainingPhrases[j], options); - } - if (message.parameters && message.parameters.length) { - object.parameters = []; - for (var j = 0; j < message.parameters.length; ++j) - object.parameters[j] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.toObject(message.parameters[j], options); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.names) { + if (!Array.isArray(object.names)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest.names: array expected"); + message.names = []; + for (var i = 0; i < object.names.length; ++i) + message.names[i] = String(object.names[i]); } - if (message.priority != null && message.hasOwnProperty("priority")) - object.priority = message.priority; - if (message.isFallback != null && message.hasOwnProperty("isFallback")) - object.isFallback = message.isFallback; - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; + return message; + }; + + /** + * Creates a plain object from a BatchDeleteTestCasesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest} message BatchDeleteTestCasesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BatchDeleteTestCasesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.names = []; + if (options.defaults) + object.parent = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.names && message.names.length) { + object.names = []; + for (var j = 0; j < message.names.length; ++j) + object.names[j] = message.names[j]; } - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; return object; }; /** - * Converts this Intent to JSON. + * Converts this BatchDeleteTestCasesRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest * @instance * @returns {Object.} JSON object */ - Intent.prototype.toJSON = function toJSON() { + BatchDeleteTestCasesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - Intent.TrainingPhrase = (function() { - - /** - * Properties of a TrainingPhrase. - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent - * @interface ITrainingPhrase - * @property {string|null} [id] TrainingPhrase id - * @property {Array.|null} [parts] TrainingPhrase parts - * @property {number|null} [repeatCount] TrainingPhrase repeatCount - */ - - /** - * Constructs a new TrainingPhrase. - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent - * @classdesc Represents a TrainingPhrase. - * @implements ITrainingPhrase - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase=} [properties] Properties to set - */ - function TrainingPhrase(properties) { - this.parts = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TrainingPhrase id. - * @member {string} id - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @instance - */ - TrainingPhrase.prototype.id = ""; - - /** - * TrainingPhrase parts. - * @member {Array.} parts - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @instance - */ - TrainingPhrase.prototype.parts = $util.emptyArray; - - /** - * TrainingPhrase repeatCount. - * @member {number} repeatCount - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @instance - */ - TrainingPhrase.prototype.repeatCount = 0; - - /** - * Creates a new TrainingPhrase instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase} TrainingPhrase instance - */ - TrainingPhrase.create = function create(properties) { - return new TrainingPhrase(properties); - }; - - /** - * Encodes the specified TrainingPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase} message TrainingPhrase message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TrainingPhrase.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.parts != null && message.parts.length) - for (var i = 0; i < message.parts.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.encode(message.parts[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.repeatCount != null && Object.hasOwnProperty.call(message, "repeatCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.repeatCount); - return writer; - }; - - /** - * Encodes the specified TrainingPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase} message TrainingPhrase message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TrainingPhrase.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a TrainingPhrase message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase} TrainingPhrase - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TrainingPhrase.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - if (!(message.parts && message.parts.length)) - message.parts = []; - message.parts.push($root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.decode(reader, reader.uint32())); - break; - case 3: - message.repeatCount = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a TrainingPhrase message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase} TrainingPhrase - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TrainingPhrase.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TrainingPhrase message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TrainingPhrase.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.parts != null && message.hasOwnProperty("parts")) { - if (!Array.isArray(message.parts)) - return "parts: array expected"; - for (var i = 0; i < message.parts.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.verify(message.parts[i]); - if (error) - return "parts." + error; - } - } - if (message.repeatCount != null && message.hasOwnProperty("repeatCount")) - if (!$util.isInteger(message.repeatCount)) - return "repeatCount: integer expected"; - return null; - }; - - /** - * Creates a TrainingPhrase message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase} TrainingPhrase - */ - TrainingPhrase.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase(); - if (object.id != null) - message.id = String(object.id); - if (object.parts) { - if (!Array.isArray(object.parts)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.parts: array expected"); - message.parts = []; - for (var i = 0; i < object.parts.length; ++i) { - if (typeof object.parts[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.parts: object expected"); - message.parts[i] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.fromObject(object.parts[i]); - } - } - if (object.repeatCount != null) - message.repeatCount = object.repeatCount | 0; - return message; - }; - - /** - * Creates a plain object from a TrainingPhrase message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase} message TrainingPhrase - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TrainingPhrase.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.parts = []; - if (options.defaults) { - object.id = ""; - object.repeatCount = 0; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.parts && message.parts.length) { - object.parts = []; - for (var j = 0; j < message.parts.length; ++j) - object.parts[j] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.toObject(message.parts[j], options); - } - if (message.repeatCount != null && message.hasOwnProperty("repeatCount")) - object.repeatCount = message.repeatCount; - return object; - }; - - /** - * Converts this TrainingPhrase to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @instance - * @returns {Object.} JSON object - */ - TrainingPhrase.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - TrainingPhrase.Part = (function() { - - /** - * Properties of a Part. - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @interface IPart - * @property {string|null} [text] Part text - * @property {string|null} [parameterId] Part parameterId - */ - - /** - * Constructs a new Part. - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @classdesc Represents a Part. - * @implements IPart - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart=} [properties] Properties to set - */ - function Part(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + return BatchDeleteTestCasesRequest; + })(); - /** - * Part text. - * @member {string} text - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part - * @instance - */ - Part.prototype.text = ""; + v3beta1.CreateTestCaseRequest = (function() { - /** - * Part parameterId. - * @member {string} parameterId - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part - * @instance - */ - Part.prototype.parameterId = ""; + /** + * Properties of a CreateTestCaseRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface ICreateTestCaseRequest + * @property {string|null} [parent] CreateTestCaseRequest parent + * @property {google.cloud.dialogflow.cx.v3beta1.ITestCase|null} [testCase] CreateTestCaseRequest testCase + */ - /** - * Creates a new Part instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part} Part instance - */ - Part.create = function create(properties) { - return new Part(properties); - }; + /** + * Constructs a new CreateTestCaseRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a CreateTestCaseRequest. + * @implements ICreateTestCaseRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest=} [properties] Properties to set + */ + function CreateTestCaseRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified Part message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart} message Part message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Part.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.text != null && Object.hasOwnProperty.call(message, "text")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); - if (message.parameterId != null && Object.hasOwnProperty.call(message, "parameterId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.parameterId); - return writer; - }; + /** + * CreateTestCaseRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest + * @instance + */ + CreateTestCaseRequest.prototype.parent = ""; - /** - * Encodes the specified Part message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart} message Part message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Part.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * CreateTestCaseRequest testCase. + * @member {google.cloud.dialogflow.cx.v3beta1.ITestCase|null|undefined} testCase + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest + * @instance + */ + CreateTestCaseRequest.prototype.testCase = null; - /** - * Decodes a Part message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part} Part - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Part.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.text = reader.string(); - break; - case 2: - message.parameterId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a new CreateTestCaseRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest} CreateTestCaseRequest instance + */ + CreateTestCaseRequest.create = function create(properties) { + return new CreateTestCaseRequest(properties); + }; - /** - * Decodes a Part message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part} Part - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Part.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified CreateTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest} message CreateTestCaseRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateTestCaseRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.testCase != null && Object.hasOwnProperty.call(message, "testCase")) + $root.google.cloud.dialogflow.cx.v3beta1.TestCase.encode(message.testCase, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Verifies a Part message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Part.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.text != null && message.hasOwnProperty("text")) - if (!$util.isString(message.text)) - return "text: string expected"; - if (message.parameterId != null && message.hasOwnProperty("parameterId")) - if (!$util.isString(message.parameterId)) - return "parameterId: string expected"; - return null; - }; + /** + * Encodes the specified CreateTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest} message CreateTestCaseRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a Part message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part} Part - */ - Part.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part(); - if (object.text != null) - message.text = String(object.text); - if (object.parameterId != null) - message.parameterId = String(object.parameterId); - return message; - }; + /** + * Decodes a CreateTestCaseRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest} CreateTestCaseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateTestCaseRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a plain object from a Part message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part} message Part - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Part.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.text = ""; - object.parameterId = ""; - } - if (message.text != null && message.hasOwnProperty("text")) - object.text = message.text; - if (message.parameterId != null && message.hasOwnProperty("parameterId")) - object.parameterId = message.parameterId; - return object; - }; + /** + * Decodes a CreateTestCaseRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest} CreateTestCaseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateTestCaseRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Converts this Part to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part - * @instance - * @returns {Object.} JSON object - */ - Part.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Verifies a CreateTestCaseRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateTestCaseRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.testCase != null && message.hasOwnProperty("testCase")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.verify(message.testCase); + if (error) + return "testCase." + error; + } + return null; + }; - return Part; - })(); + /** + * Creates a CreateTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest} CreateTestCaseRequest + */ + CreateTestCaseRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.testCase != null) { + if (typeof object.testCase !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest.testCase: object expected"); + message.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.fromObject(object.testCase); + } + return message; + }; - return TrainingPhrase; - })(); + /** + * Creates a plain object from a CreateTestCaseRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest} message CreateTestCaseRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateTestCaseRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.testCase = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.testCase != null && message.hasOwnProperty("testCase")) + object.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.toObject(message.testCase, options); + return object; + }; - Intent.Parameter = (function() { + /** + * Converts this CreateTestCaseRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest + * @instance + * @returns {Object.} JSON object + */ + CreateTestCaseRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Properties of a Parameter. - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent - * @interface IParameter - * @property {string|null} [id] Parameter id - * @property {string|null} [entityType] Parameter entityType - * @property {boolean|null} [isList] Parameter isList - * @property {boolean|null} [redact] Parameter redact - */ + return CreateTestCaseRequest; + })(); - /** - * Constructs a new Parameter. - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent - * @classdesc Represents a Parameter. - * @implements IParameter - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.IParameter=} [properties] Properties to set - */ - function Parameter(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v3beta1.UpdateTestCaseRequest = (function() { - /** - * Parameter id. - * @member {string} id - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @instance - */ - Parameter.prototype.id = ""; + /** + * Properties of an UpdateTestCaseRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IUpdateTestCaseRequest + * @property {google.cloud.dialogflow.cx.v3beta1.ITestCase|null} [testCase] UpdateTestCaseRequest testCase + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateTestCaseRequest updateMask + */ - /** - * Parameter entityType. - * @member {string} entityType - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @instance - */ - Parameter.prototype.entityType = ""; + /** + * Constructs a new UpdateTestCaseRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents an UpdateTestCaseRequest. + * @implements IUpdateTestCaseRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest=} [properties] Properties to set + */ + function UpdateTestCaseRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Parameter isList. - * @member {boolean} isList - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @instance - */ - Parameter.prototype.isList = false; + /** + * UpdateTestCaseRequest testCase. + * @member {google.cloud.dialogflow.cx.v3beta1.ITestCase|null|undefined} testCase + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest + * @instance + */ + UpdateTestCaseRequest.prototype.testCase = null; - /** - * Parameter redact. - * @member {boolean} redact - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @instance - */ - Parameter.prototype.redact = false; + /** + * UpdateTestCaseRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest + * @instance + */ + UpdateTestCaseRequest.prototype.updateMask = null; - /** - * Creates a new Parameter instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.IParameter=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.Parameter} Parameter instance - */ - Parameter.create = function create(properties) { - return new Parameter(properties); - }; + /** + * Creates a new UpdateTestCaseRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest} UpdateTestCaseRequest instance + */ + UpdateTestCaseRequest.create = function create(properties) { + return new UpdateTestCaseRequest(properties); + }; - /** - * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.IParameter} message Parameter message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Parameter.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityType); - if (message.isList != null && Object.hasOwnProperty.call(message, "isList")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isList); - if (message.redact != null && Object.hasOwnProperty.call(message, "redact")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.redact); - return writer; - }; + /** + * Encodes the specified UpdateTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest} message UpdateTestCaseRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateTestCaseRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.testCase != null && Object.hasOwnProperty.call(message, "testCase")) + $root.google.cloud.dialogflow.cx.v3beta1.TestCase.encode(message.testCase, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.IParameter} message Parameter message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Parameter.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified UpdateTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest} message UpdateTestCaseRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a Parameter message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.Parameter} Parameter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Parameter.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.entityType = reader.string(); - break; - case 3: - message.isList = reader.bool(); - break; - case 4: - message.redact = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } + /** + * Decodes an UpdateTestCaseRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest} UpdateTestCaseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateTestCaseRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.decode(reader, reader.uint32()); + break; + case 2: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a Parameter message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.Parameter} Parameter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Parameter.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a Parameter message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Parameter.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.entityType != null && message.hasOwnProperty("entityType")) - if (!$util.isString(message.entityType)) - return "entityType: string expected"; - if (message.isList != null && message.hasOwnProperty("isList")) - if (typeof message.isList !== "boolean") - return "isList: boolean expected"; - if (message.redact != null && message.hasOwnProperty("redact")) - if (typeof message.redact !== "boolean") - return "redact: boolean expected"; - return null; - }; + /** + * Decodes an UpdateTestCaseRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest} UpdateTestCaseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateTestCaseRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a Parameter message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.Parameter} Parameter - */ - Parameter.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter(); - if (object.id != null) - message.id = String(object.id); - if (object.entityType != null) - message.entityType = String(object.entityType); - if (object.isList != null) - message.isList = Boolean(object.isList); - if (object.redact != null) - message.redact = Boolean(object.redact); - return message; - }; + /** + * Verifies an UpdateTestCaseRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateTestCaseRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.testCase != null && message.hasOwnProperty("testCase")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.verify(message.testCase); + if (error) + return "testCase." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + return null; + }; - /** - * Creates a plain object from a Parameter message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.Parameter} message Parameter - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Parameter.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.id = ""; - object.entityType = ""; - object.isList = false; - object.redact = false; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.entityType != null && message.hasOwnProperty("entityType")) - object.entityType = message.entityType; - if (message.isList != null && message.hasOwnProperty("isList")) - object.isList = message.isList; - if (message.redact != null && message.hasOwnProperty("redact")) - object.redact = message.redact; + /** + * Creates an UpdateTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest} UpdateTestCaseRequest + */ + UpdateTestCaseRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest) return object; - }; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest(); + if (object.testCase != null) { + if (typeof object.testCase !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest.testCase: object expected"); + message.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.fromObject(object.testCase); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; - /** - * Converts this Parameter to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @instance - * @returns {Object.} JSON object - */ - Parameter.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from an UpdateTestCaseRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest} message UpdateTestCaseRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateTestCaseRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.testCase = null; + object.updateMask = null; + } + if (message.testCase != null && message.hasOwnProperty("testCase")) + object.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.toObject(message.testCase, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; - return Parameter; - })(); + /** + * Converts this UpdateTestCaseRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateTestCaseRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Intent; + return UpdateTestCaseRequest; })(); - v3beta1.ListIntentsRequest = (function() { + v3beta1.GetTestCaseRequest = (function() { /** - * Properties of a ListIntentsRequest. + * Properties of a GetTestCaseRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListIntentsRequest - * @property {string|null} [parent] ListIntentsRequest parent - * @property {string|null} [languageCode] ListIntentsRequest languageCode - * @property {google.cloud.dialogflow.cx.v3beta1.IntentView|null} [intentView] ListIntentsRequest intentView - * @property {number|null} [pageSize] ListIntentsRequest pageSize - * @property {string|null} [pageToken] ListIntentsRequest pageToken + * @interface IGetTestCaseRequest + * @property {string|null} [name] GetTestCaseRequest name */ /** - * Constructs a new ListIntentsRequest. + * Constructs a new GetTestCaseRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListIntentsRequest. - * @implements IListIntentsRequest + * @classdesc Represents a GetTestCaseRequest. + * @implements IGetTestCaseRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest=} [properties] Properties to set */ - function ListIntentsRequest(properties) { + function GetTestCaseRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -84826,127 +85269,276 @@ } /** - * ListIntentsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * GetTestCaseRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest * @instance */ - ListIntentsRequest.prototype.parent = ""; + GetTestCaseRequest.prototype.name = ""; /** - * ListIntentsRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest - * @instance + * Creates a new GetTestCaseRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest} GetTestCaseRequest instance */ - ListIntentsRequest.prototype.languageCode = ""; + GetTestCaseRequest.create = function create(properties) { + return new GetTestCaseRequest(properties); + }; /** - * ListIntentsRequest intentView. - * @member {google.cloud.dialogflow.cx.v3beta1.IntentView} intentView - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * Encodes the specified GetTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest} message GetTestCaseRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetTestCaseRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest} message GetTestCaseRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetTestCaseRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest} GetTestCaseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetTestCaseRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetTestCaseRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest} GetTestCaseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetTestCaseRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetTestCaseRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetTestCaseRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest} GetTestCaseRequest + */ + GetTestCaseRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetTestCaseRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest} message GetTestCaseRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetTestCaseRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetTestCaseRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest * @instance + * @returns {Object.} JSON object */ - ListIntentsRequest.prototype.intentView = 0; + GetTestCaseRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetTestCaseRequest; + })(); + + v3beta1.RunTestCaseRequest = (function() { /** - * ListIntentsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * Properties of a RunTestCaseRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IRunTestCaseRequest + * @property {string|null} [name] RunTestCaseRequest name + * @property {string|null} [environment] RunTestCaseRequest environment + */ + + /** + * Constructs a new RunTestCaseRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a RunTestCaseRequest. + * @implements IRunTestCaseRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest=} [properties] Properties to set + */ + function RunTestCaseRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RunTestCaseRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest * @instance */ - ListIntentsRequest.prototype.pageSize = 0; + RunTestCaseRequest.prototype.name = ""; /** - * ListIntentsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * RunTestCaseRequest environment. + * @member {string} environment + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest * @instance */ - ListIntentsRequest.prototype.pageToken = ""; + RunTestCaseRequest.prototype.environment = ""; /** - * Creates a new ListIntentsRequest instance using the specified properties. + * Creates a new RunTestCaseRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest} ListIntentsRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest} RunTestCaseRequest instance */ - ListIntentsRequest.create = function create(properties) { - return new ListIntentsRequest(properties); + RunTestCaseRequest.create = function create(properties) { + return new RunTestCaseRequest(properties); }; /** - * Encodes the specified ListIntentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest.verify|verify} messages. + * Encodes the specified RunTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest} message ListIntentsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest} message RunTestCaseRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIntentsRequest.encode = function encode(message, writer) { + RunTestCaseRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.intentView != null && Object.hasOwnProperty.call(message, "intentView")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.intentView); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.environment); return writer; }; /** - * Encodes the specified ListIntentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest.verify|verify} messages. + * Encodes the specified RunTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest} message ListIntentsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest} message RunTestCaseRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIntentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + RunTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListIntentsRequest message from the specified reader or buffer. + * Decodes a RunTestCaseRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest} ListIntentsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest} RunTestCaseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIntentsRequest.decode = function decode(reader, length) { + RunTestCaseRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.name = reader.string(); break; case 2: - message.languageCode = reader.string(); - break; - case 5: - message.intentView = reader.int32(); - break; - case 3: - message.pageSize = reader.int32(); - break; - case 4: - message.pageToken = reader.string(); + message.environment = reader.string(); break; default: reader.skipType(tag & 7); @@ -84957,160 +85549,116 @@ }; /** - * Decodes a ListIntentsRequest message from the specified reader or buffer, length delimited. + * Decodes a RunTestCaseRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest} ListIntentsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest} RunTestCaseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIntentsRequest.decodeDelimited = function decodeDelimited(reader) { + RunTestCaseRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListIntentsRequest message. + * Verifies a RunTestCaseRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListIntentsRequest.verify = function verify(message) { + RunTestCaseRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; - if (message.intentView != null && message.hasOwnProperty("intentView")) - switch (message.intentView) { - default: - return "intentView: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.environment != null && message.hasOwnProperty("environment")) + if (!$util.isString(message.environment)) + return "environment: string expected"; return null; }; /** - * Creates a ListIntentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RunTestCaseRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest} ListIntentsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest} RunTestCaseRequest */ - ListIntentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest) + RunTestCaseRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); - switch (object.intentView) { - case "INTENT_VIEW_UNSPECIFIED": - case 0: - message.intentView = 0; - break; - case "INTENT_VIEW_PARTIAL": - case 1: - message.intentView = 1; - break; - case "INTENT_VIEW_FULL": - case 2: - message.intentView = 2; - break; - } - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.environment != null) + message.environment = String(object.environment); return message; }; /** - * Creates a plain object from a ListIntentsRequest message. Also converts values to other types if specified. + * Creates a plain object from a RunTestCaseRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest} message ListIntentsRequest + * @param {google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest} message RunTestCaseRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListIntentsRequest.toObject = function toObject(message, options) { + RunTestCaseRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.languageCode = ""; - object.pageSize = 0; - object.pageToken = ""; - object.intentView = options.enums === String ? "INTENT_VIEW_UNSPECIFIED" : 0; + object.name = ""; + object.environment = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.intentView != null && message.hasOwnProperty("intentView")) - object.intentView = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.IntentView[message.intentView] : message.intentView; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = message.environment; return object; }; /** - * Converts this ListIntentsRequest to JSON. + * Converts this RunTestCaseRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest * @instance * @returns {Object.} JSON object */ - ListIntentsRequest.prototype.toJSON = function toJSON() { + RunTestCaseRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListIntentsRequest; + return RunTestCaseRequest; })(); - v3beta1.ListIntentsResponse = (function() { + v3beta1.RunTestCaseResponse = (function() { /** - * Properties of a ListIntentsResponse. + * Properties of a RunTestCaseResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListIntentsResponse - * @property {Array.|null} [intents] ListIntentsResponse intents - * @property {string|null} [nextPageToken] ListIntentsResponse nextPageToken + * @interface IRunTestCaseResponse + * @property {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null} [result] RunTestCaseResponse result */ /** - * Constructs a new ListIntentsResponse. + * Constructs a new RunTestCaseResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListIntentsResponse. - * @implements IListIntentsResponse + * @classdesc Represents a RunTestCaseResponse. + * @implements IRunTestCaseResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse=} [properties] Properties to set */ - function ListIntentsResponse(properties) { - this.intents = []; + function RunTestCaseResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -85118,91 +85666,75 @@ } /** - * ListIntentsResponse intents. - * @member {Array.} intents - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse - * @instance - */ - ListIntentsResponse.prototype.intents = $util.emptyArray; - - /** - * ListIntentsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * RunTestCaseResponse result. + * @member {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null|undefined} result + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse * @instance */ - ListIntentsResponse.prototype.nextPageToken = ""; + RunTestCaseResponse.prototype.result = null; /** - * Creates a new ListIntentsResponse instance using the specified properties. + * Creates a new RunTestCaseResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse} ListIntentsResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse} RunTestCaseResponse instance */ - ListIntentsResponse.create = function create(properties) { - return new ListIntentsResponse(properties); + RunTestCaseResponse.create = function create(properties) { + return new RunTestCaseResponse(properties); }; /** - * Encodes the specified ListIntentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse.verify|verify} messages. + * Encodes the specified RunTestCaseResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse} message ListIntentsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse} message RunTestCaseResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIntentsResponse.encode = function encode(message, writer) { + RunTestCaseResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.intents != null && message.intents.length) - for (var i = 0; i < message.intents.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Intent.encode(message.intents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListIntentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse.verify|verify} messages. + * Encodes the specified RunTestCaseResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse} message ListIntentsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse} message RunTestCaseResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIntentsResponse.encodeDelimited = function encodeDelimited(message, writer) { + RunTestCaseResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListIntentsResponse message from the specified reader or buffer. + * Decodes a RunTestCaseResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse} ListIntentsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse} RunTestCaseResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIntentsResponse.decode = function decode(reader, length) { + RunTestCaseResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.intents && message.intents.length)) - message.intents = []; - message.intents.push($root.google.cloud.dialogflow.cx.v3beta1.Intent.decode(reader, reader.uint32())); - break; case 2: - message.nextPageToken = reader.string(); + message.result = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -85213,134 +85745,111 @@ }; /** - * Decodes a ListIntentsResponse message from the specified reader or buffer, length delimited. + * Decodes a RunTestCaseResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse} ListIntentsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse} RunTestCaseResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIntentsResponse.decodeDelimited = function decodeDelimited(reader) { + RunTestCaseResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListIntentsResponse message. + * Verifies a RunTestCaseResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListIntentsResponse.verify = function verify(message) { + RunTestCaseResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.intents != null && message.hasOwnProperty("intents")) { - if (!Array.isArray(message.intents)) - return "intents: array expected"; - for (var i = 0; i < message.intents.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.verify(message.intents[i]); - if (error) - return "intents." + error; - } + if (message.result != null && message.hasOwnProperty("result")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.verify(message.result); + if (error) + return "result." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListIntentsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RunTestCaseResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse} ListIntentsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse} RunTestCaseResponse */ - ListIntentsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse) + RunTestCaseResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse(); - if (object.intents) { - if (!Array.isArray(object.intents)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse.intents: array expected"); - message.intents = []; - for (var i = 0; i < object.intents.length; ++i) { - if (typeof object.intents[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse.intents: object expected"); - message.intents[i] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.fromObject(object.intents[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse(); + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse.result: object expected"); + message.result = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.fromObject(object.result); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListIntentsResponse message. Also converts values to other types if specified. + * Creates a plain object from a RunTestCaseResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse} message ListIntentsResponse + * @param {google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse} message RunTestCaseResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListIntentsResponse.toObject = function toObject(message, options) { + RunTestCaseResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.intents = []; if (options.defaults) - object.nextPageToken = ""; - if (message.intents && message.intents.length) { - object.intents = []; - for (var j = 0; j < message.intents.length; ++j) - object.intents[j] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.toObject(message.intents[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.result = null; + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.toObject(message.result, options); return object; }; /** - * Converts this ListIntentsResponse to JSON. + * Converts this RunTestCaseResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse * @instance * @returns {Object.} JSON object */ - ListIntentsResponse.prototype.toJSON = function toJSON() { + RunTestCaseResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListIntentsResponse; + return RunTestCaseResponse; })(); - v3beta1.GetIntentRequest = (function() { + v3beta1.RunTestCaseMetadata = (function() { /** - * Properties of a GetIntentRequest. + * Properties of a RunTestCaseMetadata. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetIntentRequest - * @property {string|null} [name] GetIntentRequest name - * @property {string|null} [languageCode] GetIntentRequest languageCode + * @interface IRunTestCaseMetadata */ /** - * Constructs a new GetIntentRequest. + * Constructs a new RunTestCaseMetadata. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GetIntentRequest. - * @implements IGetIntentRequest + * @classdesc Represents a RunTestCaseMetadata. + * @implements IRunTestCaseMetadata * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata=} [properties] Properties to set */ - function GetIntentRequest(properties) { + function RunTestCaseMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -85348,89 +85857,63 @@ } /** - * GetIntentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest - * @instance - */ - GetIntentRequest.prototype.name = ""; - - /** - * GetIntentRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest - * @instance - */ - GetIntentRequest.prototype.languageCode = ""; - - /** - * Creates a new GetIntentRequest instance using the specified properties. + * Creates a new RunTestCaseMetadata instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetIntentRequest} GetIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata} RunTestCaseMetadata instance */ - GetIntentRequest.create = function create(properties) { - return new GetIntentRequest(properties); + RunTestCaseMetadata.create = function create(properties) { + return new RunTestCaseMetadata(properties); }; /** - * Encodes the specified GetIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetIntentRequest.verify|verify} messages. + * Encodes the specified RunTestCaseMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest} message GetIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata} message RunTestCaseMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIntentRequest.encode = function encode(message, writer) { + RunTestCaseMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); return writer; }; /** - * Encodes the specified GetIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetIntentRequest.verify|verify} messages. + * Encodes the specified RunTestCaseMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest} message GetIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata} message RunTestCaseMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + RunTestCaseMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetIntentRequest message from the specified reader or buffer. + * Decodes a RunTestCaseMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.GetIntentRequest} GetIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata} RunTestCaseMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIntentRequest.decode = function decode(reader, length) { + RunTestCaseMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.languageCode = reader.string(); - break; default: reader.skipType(tag & 7); break; @@ -85440,118 +85923,97 @@ }; /** - * Decodes a GetIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a RunTestCaseMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetIntentRequest} GetIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata} RunTestCaseMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIntentRequest.decodeDelimited = function decodeDelimited(reader) { + RunTestCaseMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetIntentRequest message. + * Verifies a RunTestCaseMetadata message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetIntentRequest.verify = function verify(message) { + RunTestCaseMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; return null; }; /** - * Creates a GetIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RunTestCaseMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetIntentRequest} GetIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata} RunTestCaseMetadata */ - GetIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetIntentRequest) + RunTestCaseMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetIntentRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); - return message; + return new $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata(); }; /** - * Creates a plain object from a GetIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from a RunTestCaseMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetIntentRequest} message GetIntentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata} message RunTestCaseMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetIntentRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.languageCode = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; - return object; + RunTestCaseMetadata.toObject = function toObject() { + return {}; }; /** - * Converts this GetIntentRequest to JSON. + * Converts this RunTestCaseMetadata to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata * @instance * @returns {Object.} JSON object */ - GetIntentRequest.prototype.toJSON = function toJSON() { + RunTestCaseMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetIntentRequest; + return RunTestCaseMetadata; })(); - v3beta1.CreateIntentRequest = (function() { + v3beta1.BatchRunTestCasesRequest = (function() { /** - * Properties of a CreateIntentRequest. + * Properties of a BatchRunTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ICreateIntentRequest - * @property {string|null} [parent] CreateIntentRequest parent - * @property {google.cloud.dialogflow.cx.v3beta1.IIntent|null} [intent] CreateIntentRequest intent - * @property {string|null} [languageCode] CreateIntentRequest languageCode + * @interface IBatchRunTestCasesRequest + * @property {string|null} [parent] BatchRunTestCasesRequest parent + * @property {string|null} [environment] BatchRunTestCasesRequest environment + * @property {Array.|null} [testCases] BatchRunTestCasesRequest testCases */ /** - * Constructs a new CreateIntentRequest. + * Constructs a new BatchRunTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a CreateIntentRequest. - * @implements ICreateIntentRequest + * @classdesc Represents a BatchRunTestCasesRequest. + * @implements IBatchRunTestCasesRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest=} [properties] Properties to set */ - function CreateIntentRequest(properties) { + function BatchRunTestCasesRequest(properties) { + this.testCases = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -85559,90 +86021,91 @@ } /** - * CreateIntentRequest parent. + * BatchRunTestCasesRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest * @instance */ - CreateIntentRequest.prototype.parent = ""; + BatchRunTestCasesRequest.prototype.parent = ""; /** - * CreateIntentRequest intent. - * @member {google.cloud.dialogflow.cx.v3beta1.IIntent|null|undefined} intent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * BatchRunTestCasesRequest environment. + * @member {string} environment + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest * @instance */ - CreateIntentRequest.prototype.intent = null; + BatchRunTestCasesRequest.prototype.environment = ""; /** - * CreateIntentRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * BatchRunTestCasesRequest testCases. + * @member {Array.} testCases + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest * @instance */ - CreateIntentRequest.prototype.languageCode = ""; + BatchRunTestCasesRequest.prototype.testCases = $util.emptyArray; /** - * Creates a new CreateIntentRequest instance using the specified properties. + * Creates a new BatchRunTestCasesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest} CreateIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest} BatchRunTestCasesRequest instance */ - CreateIntentRequest.create = function create(properties) { - return new CreateIntentRequest(properties); + BatchRunTestCasesRequest.create = function create(properties) { + return new BatchRunTestCasesRequest(properties); }; /** - * Encodes the specified CreateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest.verify|verify} messages. + * Encodes the specified BatchRunTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest} message CreateIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest} message BatchRunTestCasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateIntentRequest.encode = function encode(message, writer) { + BatchRunTestCasesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) - $root.google.cloud.dialogflow.cx.v3beta1.Intent.encode(message.intent, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); + if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.environment); + if (message.testCases != null && message.testCases.length) + for (var i = 0; i < message.testCases.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.testCases[i]); return writer; }; /** - * Encodes the specified CreateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest.verify|verify} messages. + * Encodes the specified BatchRunTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest} message CreateIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest} message BatchRunTestCasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchRunTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateIntentRequest message from the specified reader or buffer. + * Decodes a BatchRunTestCasesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest} CreateIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest} BatchRunTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateIntentRequest.decode = function decode(reader, length) { + BatchRunTestCasesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -85650,10 +86113,12 @@ message.parent = reader.string(); break; case 2: - message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.decode(reader, reader.uint32()); + message.environment = reader.string(); break; case 3: - message.languageCode = reader.string(); + if (!(message.testCases && message.testCases.length)) + message.testCases = []; + message.testCases.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -85664,131 +86129,138 @@ }; /** - * Decodes a CreateIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchRunTestCasesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest} CreateIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest} BatchRunTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateIntentRequest.decodeDelimited = function decodeDelimited(reader) { + BatchRunTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateIntentRequest message. + * Verifies a BatchRunTestCasesRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateIntentRequest.verify = function verify(message) { + BatchRunTestCasesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.intent != null && message.hasOwnProperty("intent")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.verify(message.intent); - if (error) - return "intent." + error; + if (message.environment != null && message.hasOwnProperty("environment")) + if (!$util.isString(message.environment)) + return "environment: string expected"; + if (message.testCases != null && message.hasOwnProperty("testCases")) { + if (!Array.isArray(message.testCases)) + return "testCases: array expected"; + for (var i = 0; i < message.testCases.length; ++i) + if (!$util.isString(message.testCases[i])) + return "testCases: string[] expected"; } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; return null; }; /** - * Creates a CreateIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchRunTestCasesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest} CreateIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest} BatchRunTestCasesRequest */ - CreateIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest) + BatchRunTestCasesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.intent != null) { - if (typeof object.intent !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest.intent: object expected"); - message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.fromObject(object.intent); + if (object.environment != null) + message.environment = String(object.environment); + if (object.testCases) { + if (!Array.isArray(object.testCases)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest.testCases: array expected"); + message.testCases = []; + for (var i = 0; i < object.testCases.length; ++i) + message.testCases[i] = String(object.testCases[i]); } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a CreateIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from a BatchRunTestCasesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest} message CreateIntentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest} message BatchRunTestCasesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateIntentRequest.toObject = function toObject(message, options) { + BatchRunTestCasesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.testCases = []; if (options.defaults) { object.parent = ""; - object.intent = null; - object.languageCode = ""; + object.environment = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.intent != null && message.hasOwnProperty("intent")) - object.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.toObject(message.intent, options); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = message.environment; + if (message.testCases && message.testCases.length) { + object.testCases = []; + for (var j = 0; j < message.testCases.length; ++j) + object.testCases[j] = message.testCases[j]; + } return object; }; /** - * Converts this CreateIntentRequest to JSON. + * Converts this BatchRunTestCasesRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest * @instance * @returns {Object.} JSON object */ - CreateIntentRequest.prototype.toJSON = function toJSON() { + BatchRunTestCasesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateIntentRequest; + return BatchRunTestCasesRequest; })(); - v3beta1.UpdateIntentRequest = (function() { + v3beta1.BatchRunTestCasesResponse = (function() { /** - * Properties of an UpdateIntentRequest. + * Properties of a BatchRunTestCasesResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IUpdateIntentRequest - * @property {google.cloud.dialogflow.cx.v3beta1.IIntent|null} [intent] UpdateIntentRequest intent - * @property {string|null} [languageCode] UpdateIntentRequest languageCode - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateIntentRequest updateMask + * @interface IBatchRunTestCasesResponse + * @property {Array.|null} [results] BatchRunTestCasesResponse results */ /** - * Constructs a new UpdateIntentRequest. + * Constructs a new BatchRunTestCasesResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an UpdateIntentRequest. - * @implements IUpdateIntentRequest + * @classdesc Represents a BatchRunTestCasesResponse. + * @implements IBatchRunTestCasesResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse=} [properties] Properties to set */ - function UpdateIntentRequest(properties) { + function BatchRunTestCasesResponse(properties) { + this.results = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -85796,101 +86268,78 @@ } /** - * UpdateIntentRequest intent. - * @member {google.cloud.dialogflow.cx.v3beta1.IIntent|null|undefined} intent - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest - * @instance - */ - UpdateIntentRequest.prototype.intent = null; - - /** - * UpdateIntentRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest - * @instance - */ - UpdateIntentRequest.prototype.languageCode = ""; - - /** - * UpdateIntentRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * BatchRunTestCasesResponse results. + * @member {Array.} results + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse * @instance */ - UpdateIntentRequest.prototype.updateMask = null; + BatchRunTestCasesResponse.prototype.results = $util.emptyArray; /** - * Creates a new UpdateIntentRequest instance using the specified properties. + * Creates a new BatchRunTestCasesResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest} UpdateIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse} BatchRunTestCasesResponse instance */ - UpdateIntentRequest.create = function create(properties) { - return new UpdateIntentRequest(properties); + BatchRunTestCasesResponse.create = function create(properties) { + return new BatchRunTestCasesResponse(properties); }; /** - * Encodes the specified UpdateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest.verify|verify} messages. + * Encodes the specified BatchRunTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest} message UpdateIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse} message BatchRunTestCasesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIntentRequest.encode = function encode(message, writer) { + BatchRunTestCasesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) - $root.google.cloud.dialogflow.cx.v3beta1.Intent.encode(message.intent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.results != null && message.results.length) + for (var i = 0; i < message.results.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.encode(message.results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest.verify|verify} messages. + * Encodes the specified BatchRunTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest} message UpdateIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse} message BatchRunTestCasesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchRunTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateIntentRequest message from the specified reader or buffer. + * Decodes a BatchRunTestCasesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest} UpdateIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse} BatchRunTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateIntentRequest.decode = function decode(reader, length) { + BatchRunTestCasesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.decode(reader, reader.uint32()); - break; - case 2: - message.languageCode = reader.string(); - break; - case 3: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + if (!(message.results && message.results.length)) + message.results = []; + message.results.push($root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -85901,134 +86350,125 @@ }; /** - * Decodes an UpdateIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchRunTestCasesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest} UpdateIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse} BatchRunTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateIntentRequest.decodeDelimited = function decodeDelimited(reader) { + BatchRunTestCasesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateIntentRequest message. + * Verifies a BatchRunTestCasesResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateIntentRequest.verify = function verify(message) { + BatchRunTestCasesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.intent != null && message.hasOwnProperty("intent")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.verify(message.intent); - if (error) - return "intent." + error; - } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; + if (message.results != null && message.hasOwnProperty("results")) { + if (!Array.isArray(message.results)) + return "results: array expected"; + for (var i = 0; i < message.results.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.verify(message.results[i]); + if (error) + return "results." + error; + } } return null; }; /** - * Creates an UpdateIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchRunTestCasesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest} UpdateIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse} BatchRunTestCasesResponse */ - UpdateIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest) + BatchRunTestCasesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest(); - if (object.intent != null) { - if (typeof object.intent !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest.intent: object expected"); - message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.fromObject(object.intent); - } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse(); + if (object.results) { + if (!Array.isArray(object.results)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse.results: array expected"); + message.results = []; + for (var i = 0; i < object.results.length; ++i) { + if (typeof object.results[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse.results: object expected"); + message.results[i] = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.fromObject(object.results[i]); + } } return message; }; /** - * Creates a plain object from an UpdateIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from a BatchRunTestCasesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest} message UpdateIntentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse} message BatchRunTestCasesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateIntentRequest.toObject = function toObject(message, options) { + BatchRunTestCasesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.intent = null; - object.languageCode = ""; - object.updateMask = null; + if (options.arrays || options.defaults) + object.results = []; + if (message.results && message.results.length) { + object.results = []; + for (var j = 0; j < message.results.length; ++j) + object.results[j] = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.toObject(message.results[j], options); } - if (message.intent != null && message.hasOwnProperty("intent")) - object.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.toObject(message.intent, options); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this UpdateIntentRequest to JSON. + * Converts this BatchRunTestCasesResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse * @instance * @returns {Object.} JSON object */ - UpdateIntentRequest.prototype.toJSON = function toJSON() { + BatchRunTestCasesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateIntentRequest; + return BatchRunTestCasesResponse; })(); - v3beta1.DeleteIntentRequest = (function() { + v3beta1.BatchRunTestCasesMetadata = (function() { /** - * Properties of a DeleteIntentRequest. + * Properties of a BatchRunTestCasesMetadata. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDeleteIntentRequest - * @property {string|null} [name] DeleteIntentRequest name + * @interface IBatchRunTestCasesMetadata + * @property {Array.|null} [errors] BatchRunTestCasesMetadata errors */ /** - * Constructs a new DeleteIntentRequest. + * Constructs a new BatchRunTestCasesMetadata. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DeleteIntentRequest. - * @implements IDeleteIntentRequest + * @classdesc Represents a BatchRunTestCasesMetadata. + * @implements IBatchRunTestCasesMetadata * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata=} [properties] Properties to set */ - function DeleteIntentRequest(properties) { + function BatchRunTestCasesMetadata(properties) { + this.errors = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -86036,75 +86476,78 @@ } /** - * DeleteIntentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * BatchRunTestCasesMetadata errors. + * @member {Array.} errors + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata * @instance */ - DeleteIntentRequest.prototype.name = ""; + BatchRunTestCasesMetadata.prototype.errors = $util.emptyArray; /** - * Creates a new DeleteIntentRequest instance using the specified properties. + * Creates a new BatchRunTestCasesMetadata instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest} DeleteIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata instance */ - DeleteIntentRequest.create = function create(properties) { - return new DeleteIntentRequest(properties); + BatchRunTestCasesMetadata.create = function create(properties) { + return new BatchRunTestCasesMetadata(properties); }; /** - * Encodes the specified DeleteIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest.verify|verify} messages. + * Encodes the specified BatchRunTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest} message DeleteIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata} message BatchRunTestCasesMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteIntentRequest.encode = function encode(message, writer) { + BatchRunTestCasesMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.errors != null && message.errors.length) + for (var i = 0; i < message.errors.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.TestError.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest.verify|verify} messages. + * Encodes the specified BatchRunTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest} message DeleteIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata} message BatchRunTestCasesMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchRunTestCasesMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteIntentRequest message from the specified reader or buffer. + * Decodes a BatchRunTestCasesMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest} DeleteIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteIntentRequest.decode = function decode(reader, length) { + BatchRunTestCasesMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.errors && message.errors.length)) + message.errors = []; + message.errors.push($root.google.cloud.dialogflow.cx.v3beta1.TestError.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -86115,293 +86558,126 @@ }; /** - * Decodes a DeleteIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchRunTestCasesMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest} DeleteIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteIntentRequest.decodeDelimited = function decodeDelimited(reader) { + BatchRunTestCasesMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteIntentRequest message. + * Verifies a BatchRunTestCasesMetadata message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteIntentRequest.verify = function verify(message) { + BatchRunTestCasesMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.errors != null && message.hasOwnProperty("errors")) { + if (!Array.isArray(message.errors)) + return "errors: array expected"; + for (var i = 0; i < message.errors.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TestError.verify(message.errors[i]); + if (error) + return "errors." + error; + } + } return null; }; /** - * Creates a DeleteIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchRunTestCasesMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest} DeleteIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata */ - DeleteIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest) + BatchRunTestCasesMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; - - /** - * Creates a plain object from a DeleteIntentRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest} message DeleteIntentRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeleteIntentRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; - - /** - * Converts this DeleteIntentRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest - * @instance - * @returns {Object.} JSON object - */ - DeleteIntentRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return DeleteIntentRequest; - })(); - - /** - * IntentView enum. - * @name google.cloud.dialogflow.cx.v3beta1.IntentView - * @enum {number} - * @property {number} INTENT_VIEW_UNSPECIFIED=0 INTENT_VIEW_UNSPECIFIED value - * @property {number} INTENT_VIEW_PARTIAL=1 INTENT_VIEW_PARTIAL value - * @property {number} INTENT_VIEW_FULL=2 INTENT_VIEW_FULL value - */ - v3beta1.IntentView = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "INTENT_VIEW_UNSPECIFIED"] = 0; - values[valuesById[1] = "INTENT_VIEW_PARTIAL"] = 1; - values[valuesById[2] = "INTENT_VIEW_FULL"] = 2; - return values; - })(); - - v3beta1.Sessions = (function() { - - /** - * Constructs a new Sessions service. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a Sessions - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Sessions(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Sessions.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Sessions; - - /** - * Creates new Sessions service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {Sessions} RPC service. Useful where requests and/or responses are streamed. - */ - Sessions.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#detectIntent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions - * @typedef DetectIntentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse} [response] DetectIntentResponse - */ - - /** - * Calls DetectIntent. - * @function detectIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest} request DetectIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Sessions.DetectIntentCallback} callback Node-style callback called with the error, if any, and DetectIntentResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Sessions.prototype.detectIntent = function detectIntent(request, callback) { - return this.rpcCall(detectIntent, $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest, $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse, request, callback); - }, "name", { value: "DetectIntent" }); - - /** - * Calls DetectIntent. - * @function detectIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest} request DetectIntentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#streamingDetectIntent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions - * @typedef StreamingDetectIntentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse} [response] StreamingDetectIntentResponse - */ - - /** - * Calls StreamingDetectIntent. - * @function streamingDetectIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest} request StreamingDetectIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Sessions.StreamingDetectIntentCallback} callback Node-style callback called with the error, if any, and StreamingDetectIntentResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Sessions.prototype.streamingDetectIntent = function streamingDetectIntent(request, callback) { - return this.rpcCall(streamingDetectIntent, $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest, $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse, request, callback); - }, "name", { value: "StreamingDetectIntent" }); - - /** - * Calls StreamingDetectIntent. - * @function streamingDetectIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest} request StreamingDetectIntentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#matchIntent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions - * @typedef MatchIntentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse} [response] MatchIntentResponse - */ - - /** - * Calls MatchIntent. - * @function matchIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest} request MatchIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntentCallback} callback Node-style callback called with the error, if any, and MatchIntentResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Sessions.prototype.matchIntent = function matchIntent(request, callback) { - return this.rpcCall(matchIntent, $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest, $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse, request, callback); - }, "name", { value: "MatchIntent" }); - - /** - * Calls MatchIntent. - * @function matchIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest} request MatchIntentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#fulfillIntent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions - * @typedef FulfillIntentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse} [response] FulfillIntentResponse - */ + var message = new $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata(); + if (object.errors) { + if (!Array.isArray(object.errors)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata.errors: array expected"); + message.errors = []; + for (var i = 0; i < object.errors.length; ++i) { + if (typeof object.errors[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata.errors: object expected"); + message.errors[i] = $root.google.cloud.dialogflow.cx.v3beta1.TestError.fromObject(object.errors[i]); + } + } + return message; + }; /** - * Calls FulfillIntent. - * @function fulfillIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest} request FulfillIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Sessions.FulfillIntentCallback} callback Node-style callback called with the error, if any, and FulfillIntentResponse - * @returns {undefined} - * @variation 1 + * Creates a plain object from a BatchRunTestCasesMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata} message BatchRunTestCasesMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(Sessions.prototype.fulfillIntent = function fulfillIntent(request, callback) { - return this.rpcCall(fulfillIntent, $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest, $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse, request, callback); - }, "name", { value: "FulfillIntent" }); + BatchRunTestCasesMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.errors = []; + if (message.errors && message.errors.length) { + object.errors = []; + for (var j = 0; j < message.errors.length; ++j) + object.errors[j] = $root.google.cloud.dialogflow.cx.v3beta1.TestError.toObject(message.errors[j], options); + } + return object; + }; /** - * Calls FulfillIntent. - * @function fulfillIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions + * Converts this BatchRunTestCasesMetadata to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest} request FulfillIntentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + BatchRunTestCasesMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Sessions; + return BatchRunTestCasesMetadata; })(); - v3beta1.DetectIntentRequest = (function() { + v3beta1.TestError = (function() { /** - * Properties of a DetectIntentRequest. + * Properties of a TestError. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDetectIntentRequest - * @property {string|null} [session] DetectIntentRequest session - * @property {google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null} [queryParams] DetectIntentRequest queryParams - * @property {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null} [queryInput] DetectIntentRequest queryInput - * @property {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null} [outputAudioConfig] DetectIntentRequest outputAudioConfig + * @interface ITestError + * @property {string|null} [testCase] TestError testCase + * @property {google.rpc.IStatus|null} [status] TestError status + * @property {google.protobuf.ITimestamp|null} [testTime] TestError testTime */ /** - * Constructs a new DetectIntentRequest. + * Constructs a new TestError. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DetectIntentRequest. - * @implements IDetectIntentRequest + * @classdesc Represents a TestError. + * @implements ITestError * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ITestError=} [properties] Properties to set */ - function DetectIntentRequest(properties) { + function TestError(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -86409,114 +86685,101 @@ } /** - * DetectIntentRequest session. - * @member {string} session - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest - * @instance - */ - DetectIntentRequest.prototype.session = ""; - - /** - * DetectIntentRequest queryParams. - * @member {google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null|undefined} queryParams - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * TestError testCase. + * @member {string} testCase + * @memberof google.cloud.dialogflow.cx.v3beta1.TestError * @instance */ - DetectIntentRequest.prototype.queryParams = null; + TestError.prototype.testCase = ""; /** - * DetectIntentRequest queryInput. - * @member {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null|undefined} queryInput - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * TestError status. + * @member {google.rpc.IStatus|null|undefined} status + * @memberof google.cloud.dialogflow.cx.v3beta1.TestError * @instance */ - DetectIntentRequest.prototype.queryInput = null; + TestError.prototype.status = null; /** - * DetectIntentRequest outputAudioConfig. - * @member {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null|undefined} outputAudioConfig - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * TestError testTime. + * @member {google.protobuf.ITimestamp|null|undefined} testTime + * @memberof google.cloud.dialogflow.cx.v3beta1.TestError * @instance */ - DetectIntentRequest.prototype.outputAudioConfig = null; + TestError.prototype.testTime = null; /** - * Creates a new DetectIntentRequest instance using the specified properties. + * Creates a new TestError instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestError * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest} DetectIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.ITestError=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TestError} TestError instance */ - DetectIntentRequest.create = function create(properties) { - return new DetectIntentRequest(properties); + TestError.create = function create(properties) { + return new TestError(properties); }; /** - * Encodes the specified DetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.verify|verify} messages. + * Encodes the specified TestError message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestError.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestError * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest} message DetectIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITestError} message TestError message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DetectIntentRequest.encode = function encode(message, writer) { + TestError.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.session != null && Object.hasOwnProperty.call(message, "session")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.session); - if (message.queryParams != null && Object.hasOwnProperty.call(message, "queryParams")) - $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.encode(message.queryParams, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.queryInput != null && Object.hasOwnProperty.call(message, "queryInput")) - $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.encode(message.queryInput, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) - $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.testCase != null && Object.hasOwnProperty.call(message, "testCase")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.testCase); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.testTime != null && Object.hasOwnProperty.call(message, "testTime")) + $root.google.protobuf.Timestamp.encode(message.testTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified DetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.verify|verify} messages. + * Encodes the specified TestError message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestError.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestError * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest} message DetectIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITestError} message TestError message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DetectIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestError.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DetectIntentRequest message from the specified reader or buffer. + * Decodes a TestError message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestError * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest} DetectIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.TestError} TestError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DetectIntentRequest.decode = function decode(reader, length) { + TestError.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TestError(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.session = reader.string(); + message.testCase = reader.string(); break; case 2: - message.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.decode(reader, reader.uint32()); + message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); break; case 3: - message.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.decode(reader, reader.uint32()); - break; - case 4: - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.decode(reader, reader.uint32()); + message.testTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -86527,150 +86790,136 @@ }; /** - * Decodes a DetectIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a TestError message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestError * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest} DetectIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.TestError} TestError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DetectIntentRequest.decodeDelimited = function decodeDelimited(reader) { + TestError.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DetectIntentRequest message. + * Verifies a TestError message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestError * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DetectIntentRequest.verify = function verify(message) { + TestError.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.session != null && message.hasOwnProperty("session")) - if (!$util.isString(message.session)) - return "session: string expected"; - if (message.queryParams != null && message.hasOwnProperty("queryParams")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.verify(message.queryParams); - if (error) - return "queryParams." + error; - } - if (message.queryInput != null && message.hasOwnProperty("queryInput")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.verify(message.queryInput); + if (message.testCase != null && message.hasOwnProperty("testCase")) + if (!$util.isString(message.testCase)) + return "testCase: string expected"; + if (message.status != null && message.hasOwnProperty("status")) { + var error = $root.google.rpc.Status.verify(message.status); if (error) - return "queryInput." + error; + return "status." + error; } - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify(message.outputAudioConfig); + if (message.testTime != null && message.hasOwnProperty("testTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.testTime); if (error) - return "outputAudioConfig." + error; + return "testTime." + error; } return null; }; /** - * Creates a DetectIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestError message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestError * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest} DetectIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.TestError} TestError */ - DetectIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest) + TestError.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TestError) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest(); - if (object.session != null) - message.session = String(object.session); - if (object.queryParams != null) { - if (typeof object.queryParams !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.queryParams: object expected"); - message.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.fromObject(object.queryParams); - } - if (object.queryInput != null) { - if (typeof object.queryInput !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.queryInput: object expected"); - message.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.fromObject(object.queryInput); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.TestError(); + if (object.testCase != null) + message.testCase = String(object.testCase); + if (object.status != null) { + if (typeof object.status !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestError.status: object expected"); + message.status = $root.google.rpc.Status.fromObject(object.status); } - if (object.outputAudioConfig != null) { - if (typeof object.outputAudioConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.outputAudioConfig: object expected"); - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.fromObject(object.outputAudioConfig); + if (object.testTime != null) { + if (typeof object.testTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestError.testTime: object expected"); + message.testTime = $root.google.protobuf.Timestamp.fromObject(object.testTime); } return message; }; /** - * Creates a plain object from a DetectIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestError message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestError * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest} message DetectIntentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.TestError} message TestError * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DetectIntentRequest.toObject = function toObject(message, options) { + TestError.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.session = ""; - object.queryParams = null; - object.queryInput = null; - object.outputAudioConfig = null; + object.testCase = ""; + object.status = null; + object.testTime = null; } - if (message.session != null && message.hasOwnProperty("session")) - object.session = message.session; - if (message.queryParams != null && message.hasOwnProperty("queryParams")) - object.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.toObject(message.queryParams, options); - if (message.queryInput != null && message.hasOwnProperty("queryInput")) - object.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.toObject(message.queryInput, options); - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) - object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.toObject(message.outputAudioConfig, options); + if (message.testCase != null && message.hasOwnProperty("testCase")) + object.testCase = message.testCase; + if (message.status != null && message.hasOwnProperty("status")) + object.status = $root.google.rpc.Status.toObject(message.status, options); + if (message.testTime != null && message.hasOwnProperty("testTime")) + object.testTime = $root.google.protobuf.Timestamp.toObject(message.testTime, options); return object; }; /** - * Converts this DetectIntentRequest to JSON. + * Converts this TestError to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestError * @instance * @returns {Object.} JSON object */ - DetectIntentRequest.prototype.toJSON = function toJSON() { + TestError.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DetectIntentRequest; + return TestError; })(); - v3beta1.DetectIntentResponse = (function() { + v3beta1.ImportTestCasesRequest = (function() { /** - * Properties of a DetectIntentResponse. + * Properties of an ImportTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDetectIntentResponse - * @property {string|null} [responseId] DetectIntentResponse responseId - * @property {google.cloud.dialogflow.cx.v3beta1.IQueryResult|null} [queryResult] DetectIntentResponse queryResult - * @property {Uint8Array|null} [outputAudio] DetectIntentResponse outputAudio - * @property {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null} [outputAudioConfig] DetectIntentResponse outputAudioConfig + * @interface IImportTestCasesRequest + * @property {string|null} [parent] ImportTestCasesRequest parent + * @property {string|null} [gcsUri] ImportTestCasesRequest gcsUri + * @property {Uint8Array|null} [content] ImportTestCasesRequest content */ /** - * Constructs a new DetectIntentResponse. + * Constructs a new ImportTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DetectIntentResponse. - * @implements IDetectIntentResponse + * @classdesc Represents an ImportTestCasesRequest. + * @implements IImportTestCasesRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest=} [properties] Properties to set */ - function DetectIntentResponse(properties) { + function ImportTestCasesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -86678,114 +86927,115 @@ } /** - * DetectIntentResponse responseId. - * @member {string} responseId - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * ImportTestCasesRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest * @instance */ - DetectIntentResponse.prototype.responseId = ""; + ImportTestCasesRequest.prototype.parent = ""; /** - * DetectIntentResponse queryResult. - * @member {google.cloud.dialogflow.cx.v3beta1.IQueryResult|null|undefined} queryResult - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * ImportTestCasesRequest gcsUri. + * @member {string} gcsUri + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest * @instance */ - DetectIntentResponse.prototype.queryResult = null; + ImportTestCasesRequest.prototype.gcsUri = ""; /** - * DetectIntentResponse outputAudio. - * @member {Uint8Array} outputAudio - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * ImportTestCasesRequest content. + * @member {Uint8Array} content + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest * @instance */ - DetectIntentResponse.prototype.outputAudio = $util.newBuffer([]); + ImportTestCasesRequest.prototype.content = $util.newBuffer([]); + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * DetectIntentResponse outputAudioConfig. - * @member {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null|undefined} outputAudioConfig - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * ImportTestCasesRequest source. + * @member {"gcsUri"|"content"|undefined} source + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest * @instance */ - DetectIntentResponse.prototype.outputAudioConfig = null; + Object.defineProperty(ImportTestCasesRequest.prototype, "source", { + get: $util.oneOfGetter($oneOfFields = ["gcsUri", "content"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new DetectIntentResponse instance using the specified properties. + * Creates a new ImportTestCasesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse} DetectIntentResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest} ImportTestCasesRequest instance */ - DetectIntentResponse.create = function create(properties) { - return new DetectIntentResponse(properties); + ImportTestCasesRequest.create = function create(properties) { + return new ImportTestCasesRequest(properties); }; /** - * Encodes the specified DetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.verify|verify} messages. + * Encodes the specified ImportTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse} message DetectIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest} message ImportTestCasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DetectIntentResponse.encode = function encode(message, writer) { + ImportTestCasesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.responseId != null && Object.hasOwnProperty.call(message, "responseId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.responseId); - if (message.queryResult != null && Object.hasOwnProperty.call(message, "queryResult")) - $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.encode(message.queryResult, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.outputAudio != null && Object.hasOwnProperty.call(message, "outputAudio")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.outputAudio); - if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) - $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.gcsUri != null && Object.hasOwnProperty.call(message, "gcsUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.gcsUri); + if (message.content != null && Object.hasOwnProperty.call(message, "content")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.content); return writer; }; /** - * Encodes the specified DetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.verify|verify} messages. + * Encodes the specified ImportTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse} message DetectIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest} message ImportTestCasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DetectIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { + ImportTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DetectIntentResponse message from the specified reader or buffer. + * Decodes an ImportTestCasesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse} DetectIntentResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest} ImportTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DetectIntentResponse.decode = function decode(reader, length) { + ImportTestCasesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.responseId = reader.string(); + message.parent = reader.string(); break; case 2: - message.queryResult = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.decode(reader, reader.uint32()); - break; - case 4: - message.outputAudio = reader.bytes(); + message.gcsUri = reader.string(); break; - case 5: - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.decode(reader, reader.uint32()); + case 3: + message.content = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -86796,154 +87046,138 @@ }; /** - * Decodes a DetectIntentResponse message from the specified reader or buffer, length delimited. + * Decodes an ImportTestCasesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse} DetectIntentResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest} ImportTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DetectIntentResponse.decodeDelimited = function decodeDelimited(reader) { + ImportTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DetectIntentResponse message. + * Verifies an ImportTestCasesRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DetectIntentResponse.verify = function verify(message) { + ImportTestCasesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.responseId != null && message.hasOwnProperty("responseId")) - if (!$util.isString(message.responseId)) - return "responseId: string expected"; - if (message.queryResult != null && message.hasOwnProperty("queryResult")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.verify(message.queryResult); - if (error) - return "queryResult." + error; + var properties = {}; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { + properties.source = 1; + if (!$util.isString(message.gcsUri)) + return "gcsUri: string expected"; } - if (message.outputAudio != null && message.hasOwnProperty("outputAudio")) - if (!(message.outputAudio && typeof message.outputAudio.length === "number" || $util.isString(message.outputAudio))) - return "outputAudio: buffer expected"; - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify(message.outputAudioConfig); - if (error) - return "outputAudioConfig." + error; + if (message.content != null && message.hasOwnProperty("content")) { + if (properties.source === 1) + return "source: multiple values"; + properties.source = 1; + if (!(message.content && typeof message.content.length === "number" || $util.isString(message.content))) + return "content: buffer expected"; } return null; }; /** - * Creates a DetectIntentResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ImportTestCasesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse} DetectIntentResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest} ImportTestCasesRequest */ - DetectIntentResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse) + ImportTestCasesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse(); - if (object.responseId != null) - message.responseId = String(object.responseId); - if (object.queryResult != null) { - if (typeof object.queryResult !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.queryResult: object expected"); - message.queryResult = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.fromObject(object.queryResult); - } - if (object.outputAudio != null) - if (typeof object.outputAudio === "string") - $util.base64.decode(object.outputAudio, message.outputAudio = $util.newBuffer($util.base64.length(object.outputAudio)), 0); - else if (object.outputAudio.length) - message.outputAudio = object.outputAudio; - if (object.outputAudioConfig != null) { - if (typeof object.outputAudioConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.outputAudioConfig: object expected"); - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.fromObject(object.outputAudioConfig); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.gcsUri != null) + message.gcsUri = String(object.gcsUri); + if (object.content != null) + if (typeof object.content === "string") + $util.base64.decode(object.content, message.content = $util.newBuffer($util.base64.length(object.content)), 0); + else if (object.content.length) + message.content = object.content; return message; }; /** - * Creates a plain object from a DetectIntentResponse message. Also converts values to other types if specified. + * Creates a plain object from an ImportTestCasesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse} message DetectIntentResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DetectIntentResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.responseId = ""; - object.queryResult = null; - if (options.bytes === String) - object.outputAudio = ""; - else { - object.outputAudio = []; - if (options.bytes !== Array) - object.outputAudio = $util.newBuffer(object.outputAudio); - } - object.outputAudioConfig = null; + * @param {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest} message ImportTestCasesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ImportTestCasesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.parent = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { + object.gcsUri = message.gcsUri; + if (options.oneofs) + object.source = "gcsUri"; + } + if (message.content != null && message.hasOwnProperty("content")) { + object.content = options.bytes === String ? $util.base64.encode(message.content, 0, message.content.length) : options.bytes === Array ? Array.prototype.slice.call(message.content) : message.content; + if (options.oneofs) + object.source = "content"; } - if (message.responseId != null && message.hasOwnProperty("responseId")) - object.responseId = message.responseId; - if (message.queryResult != null && message.hasOwnProperty("queryResult")) - object.queryResult = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.toObject(message.queryResult, options); - if (message.outputAudio != null && message.hasOwnProperty("outputAudio")) - object.outputAudio = options.bytes === String ? $util.base64.encode(message.outputAudio, 0, message.outputAudio.length) : options.bytes === Array ? Array.prototype.slice.call(message.outputAudio) : message.outputAudio; - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) - object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.toObject(message.outputAudioConfig, options); return object; }; /** - * Converts this DetectIntentResponse to JSON. + * Converts this ImportTestCasesRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest * @instance * @returns {Object.} JSON object */ - DetectIntentResponse.prototype.toJSON = function toJSON() { + ImportTestCasesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DetectIntentResponse; + return ImportTestCasesRequest; })(); - v3beta1.StreamingDetectIntentRequest = (function() { + v3beta1.ImportTestCasesResponse = (function() { /** - * Properties of a StreamingDetectIntentRequest. + * Properties of an ImportTestCasesResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IStreamingDetectIntentRequest - * @property {string|null} [session] StreamingDetectIntentRequest session - * @property {google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null} [queryParams] StreamingDetectIntentRequest queryParams - * @property {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null} [queryInput] StreamingDetectIntentRequest queryInput - * @property {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null} [outputAudioConfig] StreamingDetectIntentRequest outputAudioConfig + * @interface IImportTestCasesResponse + * @property {Array.|null} [names] ImportTestCasesResponse names */ /** - * Constructs a new StreamingDetectIntentRequest. + * Constructs a new ImportTestCasesResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a StreamingDetectIntentRequest. - * @implements IStreamingDetectIntentRequest + * @classdesc Represents an ImportTestCasesResponse. + * @implements IImportTestCasesResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse=} [properties] Properties to set */ - function StreamingDetectIntentRequest(properties) { + function ImportTestCasesResponse(properties) { + this.names = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -86951,114 +87185,78 @@ } /** - * StreamingDetectIntentRequest session. - * @member {string} session - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest - * @instance - */ - StreamingDetectIntentRequest.prototype.session = ""; - - /** - * StreamingDetectIntentRequest queryParams. - * @member {google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null|undefined} queryParams - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest - * @instance - */ - StreamingDetectIntentRequest.prototype.queryParams = null; - - /** - * StreamingDetectIntentRequest queryInput. - * @member {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null|undefined} queryInput - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest - * @instance - */ - StreamingDetectIntentRequest.prototype.queryInput = null; - - /** - * StreamingDetectIntentRequest outputAudioConfig. - * @member {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null|undefined} outputAudioConfig - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * ImportTestCasesResponse names. + * @member {Array.} names + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse * @instance */ - StreamingDetectIntentRequest.prototype.outputAudioConfig = null; + ImportTestCasesResponse.prototype.names = $util.emptyArray; /** - * Creates a new StreamingDetectIntentRequest instance using the specified properties. + * Creates a new ImportTestCasesResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest} StreamingDetectIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse} ImportTestCasesResponse instance */ - StreamingDetectIntentRequest.create = function create(properties) { - return new StreamingDetectIntentRequest(properties); + ImportTestCasesResponse.create = function create(properties) { + return new ImportTestCasesResponse(properties); }; /** - * Encodes the specified StreamingDetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.verify|verify} messages. + * Encodes the specified ImportTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest} message StreamingDetectIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse} message ImportTestCasesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingDetectIntentRequest.encode = function encode(message, writer) { + ImportTestCasesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.session != null && Object.hasOwnProperty.call(message, "session")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.session); - if (message.queryParams != null && Object.hasOwnProperty.call(message, "queryParams")) - $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.encode(message.queryParams, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.queryInput != null && Object.hasOwnProperty.call(message, "queryInput")) - $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.encode(message.queryInput, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) - $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.names != null && message.names.length) + for (var i = 0; i < message.names.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.names[i]); return writer; }; /** - * Encodes the specified StreamingDetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.verify|verify} messages. + * Encodes the specified ImportTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest} message StreamingDetectIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse} message ImportTestCasesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingDetectIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + ImportTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer. + * Decodes an ImportTestCasesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest} StreamingDetectIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse} ImportTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingDetectIntentRequest.decode = function decode(reader, length) { + ImportTestCasesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.session = reader.string(); - break; - case 2: - message.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.decode(reader, reader.uint32()); - break; - case 3: - message.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.decode(reader, reader.uint32()); - break; - case 4: - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.decode(reader, reader.uint32()); + if (!(message.names && message.names.length)) + message.names = []; + message.names.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -87069,148 +87267,120 @@ }; /** - * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer, length delimited. + * Decodes an ImportTestCasesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest} StreamingDetectIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse} ImportTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingDetectIntentRequest.decodeDelimited = function decodeDelimited(reader) { + ImportTestCasesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamingDetectIntentRequest message. + * Verifies an ImportTestCasesResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StreamingDetectIntentRequest.verify = function verify(message) { + ImportTestCasesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.session != null && message.hasOwnProperty("session")) - if (!$util.isString(message.session)) - return "session: string expected"; - if (message.queryParams != null && message.hasOwnProperty("queryParams")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.verify(message.queryParams); - if (error) - return "queryParams." + error; - } - if (message.queryInput != null && message.hasOwnProperty("queryInput")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.verify(message.queryInput); - if (error) - return "queryInput." + error; - } - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify(message.outputAudioConfig); - if (error) - return "outputAudioConfig." + error; + if (message.names != null && message.hasOwnProperty("names")) { + if (!Array.isArray(message.names)) + return "names: array expected"; + for (var i = 0; i < message.names.length; ++i) + if (!$util.isString(message.names[i])) + return "names: string[] expected"; } return null; }; /** - * Creates a StreamingDetectIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ImportTestCasesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest} StreamingDetectIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse} ImportTestCasesResponse */ - StreamingDetectIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest) + ImportTestCasesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest(); - if (object.session != null) - message.session = String(object.session); - if (object.queryParams != null) { - if (typeof object.queryParams !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.queryParams: object expected"); - message.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.fromObject(object.queryParams); - } - if (object.queryInput != null) { - if (typeof object.queryInput !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.queryInput: object expected"); - message.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.fromObject(object.queryInput); - } - if (object.outputAudioConfig != null) { - if (typeof object.outputAudioConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.outputAudioConfig: object expected"); - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.fromObject(object.outputAudioConfig); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse(); + if (object.names) { + if (!Array.isArray(object.names)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse.names: array expected"); + message.names = []; + for (var i = 0; i < object.names.length; ++i) + message.names[i] = String(object.names[i]); } return message; }; /** - * Creates a plain object from a StreamingDetectIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from an ImportTestCasesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest} message StreamingDetectIntentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse} message ImportTestCasesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamingDetectIntentRequest.toObject = function toObject(message, options) { + ImportTestCasesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.session = ""; - object.queryParams = null; - object.queryInput = null; - object.outputAudioConfig = null; + if (options.arrays || options.defaults) + object.names = []; + if (message.names && message.names.length) { + object.names = []; + for (var j = 0; j < message.names.length; ++j) + object.names[j] = message.names[j]; } - if (message.session != null && message.hasOwnProperty("session")) - object.session = message.session; - if (message.queryParams != null && message.hasOwnProperty("queryParams")) - object.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.toObject(message.queryParams, options); - if (message.queryInput != null && message.hasOwnProperty("queryInput")) - object.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.toObject(message.queryInput, options); - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) - object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.toObject(message.outputAudioConfig, options); return object; }; /** - * Converts this StreamingDetectIntentRequest to JSON. + * Converts this ImportTestCasesResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse * @instance * @returns {Object.} JSON object */ - StreamingDetectIntentRequest.prototype.toJSON = function toJSON() { + ImportTestCasesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StreamingDetectIntentRequest; + return ImportTestCasesResponse; })(); - v3beta1.StreamingDetectIntentResponse = (function() { + v3beta1.ImportTestCasesMetadata = (function() { /** - * Properties of a StreamingDetectIntentResponse. + * Properties of an ImportTestCasesMetadata. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IStreamingDetectIntentResponse - * @property {google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult|null} [recognitionResult] StreamingDetectIntentResponse recognitionResult - * @property {google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse|null} [detectIntentResponse] StreamingDetectIntentResponse detectIntentResponse + * @interface IImportTestCasesMetadata + * @property {Array.|null} [errors] ImportTestCasesMetadata errors */ /** - * Constructs a new StreamingDetectIntentResponse. + * Constructs a new ImportTestCasesMetadata. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a StreamingDetectIntentResponse. - * @implements IStreamingDetectIntentResponse + * @classdesc Represents an ImportTestCasesMetadata. + * @implements IImportTestCasesMetadata * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata=} [properties] Properties to set */ - function StreamingDetectIntentResponse(properties) { + function ImportTestCasesMetadata(properties) { + this.errors = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -87218,102 +87388,78 @@ } /** - * StreamingDetectIntentResponse recognitionResult. - * @member {google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult|null|undefined} recognitionResult - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse - * @instance - */ - StreamingDetectIntentResponse.prototype.recognitionResult = null; - - /** - * StreamingDetectIntentResponse detectIntentResponse. - * @member {google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse|null|undefined} detectIntentResponse - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse - * @instance - */ - StreamingDetectIntentResponse.prototype.detectIntentResponse = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * StreamingDetectIntentResponse response. - * @member {"recognitionResult"|"detectIntentResponse"|undefined} response - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse + * ImportTestCasesMetadata errors. + * @member {Array.} errors + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata * @instance */ - Object.defineProperty(StreamingDetectIntentResponse.prototype, "response", { - get: $util.oneOfGetter($oneOfFields = ["recognitionResult", "detectIntentResponse"]), - set: $util.oneOfSetter($oneOfFields) - }); + ImportTestCasesMetadata.prototype.errors = $util.emptyArray; /** - * Creates a new StreamingDetectIntentResponse instance using the specified properties. + * Creates a new ImportTestCasesMetadata instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse} StreamingDetectIntentResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata} ImportTestCasesMetadata instance */ - StreamingDetectIntentResponse.create = function create(properties) { - return new StreamingDetectIntentResponse(properties); + ImportTestCasesMetadata.create = function create(properties) { + return new ImportTestCasesMetadata(properties); }; /** - * Encodes the specified StreamingDetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse.verify|verify} messages. + * Encodes the specified ImportTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse} message StreamingDetectIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata} message ImportTestCasesMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingDetectIntentResponse.encode = function encode(message, writer) { + ImportTestCasesMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recognitionResult != null && Object.hasOwnProperty.call(message, "recognitionResult")) - $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.encode(message.recognitionResult, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.detectIntentResponse != null && Object.hasOwnProperty.call(message, "detectIntentResponse")) - $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.encode(message.detectIntentResponse, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.errors != null && message.errors.length) + for (var i = 0; i < message.errors.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.TestCaseError.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified StreamingDetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse.verify|verify} messages. + * Encodes the specified ImportTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse} message StreamingDetectIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata} message ImportTestCasesMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingDetectIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { + ImportTestCasesMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer. + * Decodes an ImportTestCasesMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse} StreamingDetectIntentResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata} ImportTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingDetectIntentResponse.decode = function decode(reader, length) { + ImportTestCasesMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.recognitionResult = $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.decode(reader, reader.uint32()); - break; - case 2: - message.detectIntentResponse = $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.decode(reader, reader.uint32()); + if (!(message.errors && message.errors.length)) + message.errors = []; + message.errors.push($root.google.cloud.dialogflow.cx.v3beta1.TestCaseError.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -87324,301 +87470,214 @@ }; /** - * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer, length delimited. + * Decodes an ImportTestCasesMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse} StreamingDetectIntentResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata} ImportTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingDetectIntentResponse.decodeDelimited = function decodeDelimited(reader) { + ImportTestCasesMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamingDetectIntentResponse message. + * Verifies an ImportTestCasesMetadata message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StreamingDetectIntentResponse.verify = function verify(message) { + ImportTestCasesMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.recognitionResult != null && message.hasOwnProperty("recognitionResult")) { - properties.response = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.verify(message.recognitionResult); - if (error) - return "recognitionResult." + error; - } - } - if (message.detectIntentResponse != null && message.hasOwnProperty("detectIntentResponse")) { - if (properties.response === 1) - return "response: multiple values"; - properties.response = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.verify(message.detectIntentResponse); + if (message.errors != null && message.hasOwnProperty("errors")) { + if (!Array.isArray(message.errors)) + return "errors: array expected"; + for (var i = 0; i < message.errors.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseError.verify(message.errors[i]); if (error) - return "detectIntentResponse." + error; + return "errors." + error; } } return null; }; /** - * Creates a StreamingDetectIntentResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ImportTestCasesMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse} StreamingDetectIntentResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata} ImportTestCasesMetadata */ - StreamingDetectIntentResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse) + ImportTestCasesMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse(); - if (object.recognitionResult != null) { - if (typeof object.recognitionResult !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse.recognitionResult: object expected"); - message.recognitionResult = $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.fromObject(object.recognitionResult); - } - if (object.detectIntentResponse != null) { - if (typeof object.detectIntentResponse !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse.detectIntentResponse: object expected"); - message.detectIntentResponse = $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.fromObject(object.detectIntentResponse); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata(); + if (object.errors) { + if (!Array.isArray(object.errors)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata.errors: array expected"); + message.errors = []; + for (var i = 0; i < object.errors.length; ++i) { + if (typeof object.errors[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata.errors: object expected"); + message.errors[i] = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseError.fromObject(object.errors[i]); + } } return message; }; /** - * Creates a plain object from a StreamingDetectIntentResponse message. Also converts values to other types if specified. + * Creates a plain object from an ImportTestCasesMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse} message StreamingDetectIntentResponse + * @param {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata} message ImportTestCasesMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamingDetectIntentResponse.toObject = function toObject(message, options) { + ImportTestCasesMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.recognitionResult != null && message.hasOwnProperty("recognitionResult")) { - object.recognitionResult = $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.toObject(message.recognitionResult, options); - if (options.oneofs) - object.response = "recognitionResult"; - } - if (message.detectIntentResponse != null && message.hasOwnProperty("detectIntentResponse")) { - object.detectIntentResponse = $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.toObject(message.detectIntentResponse, options); - if (options.oneofs) - object.response = "detectIntentResponse"; + if (options.arrays || options.defaults) + object.errors = []; + if (message.errors && message.errors.length) { + object.errors = []; + for (var j = 0; j < message.errors.length; ++j) + object.errors[j] = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseError.toObject(message.errors[j], options); } return object; }; /** - * Converts this StreamingDetectIntentResponse to JSON. + * Converts this ImportTestCasesMetadata to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata * @instance * @returns {Object.} JSON object */ - StreamingDetectIntentResponse.prototype.toJSON = function toJSON() { + ImportTestCasesMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StreamingDetectIntentResponse; - })(); - - v3beta1.StreamingRecognitionResult = (function() { - - /** - * Properties of a StreamingRecognitionResult. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IStreamingRecognitionResult - * @property {google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType|null} [messageType] StreamingRecognitionResult messageType - * @property {string|null} [transcript] StreamingRecognitionResult transcript - * @property {boolean|null} [isFinal] StreamingRecognitionResult isFinal - * @property {number|null} [confidence] StreamingRecognitionResult confidence - * @property {number|null} [stability] StreamingRecognitionResult stability - * @property {Array.|null} [speechWordInfo] StreamingRecognitionResult speechWordInfo - * @property {google.protobuf.IDuration|null} [speechEndOffset] StreamingRecognitionResult speechEndOffset - */ - - /** - * Constructs a new StreamingRecognitionResult. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a StreamingRecognitionResult. - * @implements IStreamingRecognitionResult - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult=} [properties] Properties to set - */ - function StreamingRecognitionResult(properties) { - this.speechWordInfo = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * StreamingRecognitionResult messageType. - * @member {google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType} messageType - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult - * @instance - */ - StreamingRecognitionResult.prototype.messageType = 0; - - /** - * StreamingRecognitionResult transcript. - * @member {string} transcript - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult - * @instance - */ - StreamingRecognitionResult.prototype.transcript = ""; - - /** - * StreamingRecognitionResult isFinal. - * @member {boolean} isFinal - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult - * @instance - */ - StreamingRecognitionResult.prototype.isFinal = false; + return ImportTestCasesMetadata; + })(); + + v3beta1.TestCaseError = (function() { /** - * StreamingRecognitionResult confidence. - * @member {number} confidence - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult - * @instance + * Properties of a TestCaseError. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface ITestCaseError + * @property {google.cloud.dialogflow.cx.v3beta1.ITestCase|null} [testCase] TestCaseError testCase + * @property {google.rpc.IStatus|null} [status] TestCaseError status */ - StreamingRecognitionResult.prototype.confidence = 0; /** - * StreamingRecognitionResult stability. - * @member {number} stability - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult - * @instance + * Constructs a new TestCaseError. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a TestCaseError. + * @implements ITestCaseError + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseError=} [properties] Properties to set */ - StreamingRecognitionResult.prototype.stability = 0; + function TestCaseError(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * StreamingRecognitionResult speechWordInfo. - * @member {Array.} speechWordInfo - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * TestCaseError testCase. + * @member {google.cloud.dialogflow.cx.v3beta1.ITestCase|null|undefined} testCase + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError * @instance */ - StreamingRecognitionResult.prototype.speechWordInfo = $util.emptyArray; + TestCaseError.prototype.testCase = null; /** - * StreamingRecognitionResult speechEndOffset. - * @member {google.protobuf.IDuration|null|undefined} speechEndOffset - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * TestCaseError status. + * @member {google.rpc.IStatus|null|undefined} status + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError * @instance */ - StreamingRecognitionResult.prototype.speechEndOffset = null; + TestCaseError.prototype.status = null; /** - * Creates a new StreamingRecognitionResult instance using the specified properties. + * Creates a new TestCaseError instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult} StreamingRecognitionResult instance + * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseError=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseError} TestCaseError instance */ - StreamingRecognitionResult.create = function create(properties) { - return new StreamingRecognitionResult(properties); + TestCaseError.create = function create(properties) { + return new TestCaseError(properties); }; /** - * Encodes the specified StreamingRecognitionResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.verify|verify} messages. + * Encodes the specified TestCaseError message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCaseError.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult} message StreamingRecognitionResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseError} message TestCaseError message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingRecognitionResult.encode = function encode(message, writer) { + TestCaseError.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.messageType != null && Object.hasOwnProperty.call(message, "messageType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.messageType); - if (message.transcript != null && Object.hasOwnProperty.call(message, "transcript")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.transcript); - if (message.isFinal != null && Object.hasOwnProperty.call(message, "isFinal")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isFinal); - if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) - writer.uint32(/* id 4, wireType 5 =*/37).float(message.confidence); - if (message.stability != null && Object.hasOwnProperty.call(message, "stability")) - writer.uint32(/* id 6, wireType 5 =*/53).float(message.stability); - if (message.speechWordInfo != null && message.speechWordInfo.length) - for (var i = 0; i < message.speechWordInfo.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.encode(message.speechWordInfo[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.speechEndOffset != null && Object.hasOwnProperty.call(message, "speechEndOffset")) - $root.google.protobuf.Duration.encode(message.speechEndOffset, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.testCase != null && Object.hasOwnProperty.call(message, "testCase")) + $root.google.cloud.dialogflow.cx.v3beta1.TestCase.encode(message.testCase, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified StreamingRecognitionResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.verify|verify} messages. + * Encodes the specified TestCaseError message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCaseError.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult} message StreamingRecognitionResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseError} message TestCaseError message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingRecognitionResult.encodeDelimited = function encodeDelimited(message, writer) { + TestCaseError.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamingRecognitionResult message from the specified reader or buffer. + * Decodes a TestCaseError message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult} StreamingRecognitionResult + * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseError} TestCaseError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingRecognitionResult.decode = function decode(reader, length) { + TestCaseError.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TestCaseError(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.messageType = reader.int32(); + message.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.decode(reader, reader.uint32()); break; case 2: - message.transcript = reader.string(); - break; - case 3: - message.isFinal = reader.bool(); - break; - case 4: - message.confidence = reader.float(); - break; - case 6: - message.stability = reader.float(); - break; - case 7: - if (!(message.speechWordInfo && message.speechWordInfo.length)) - message.speechWordInfo = []; - message.speechWordInfo.push($root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.decode(reader, reader.uint32())); - break; - case 8: - message.speechEndOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -87629,222 +87688,129 @@ }; /** - * Decodes a StreamingRecognitionResult message from the specified reader or buffer, length delimited. + * Decodes a TestCaseError message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult} StreamingRecognitionResult + * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseError} TestCaseError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingRecognitionResult.decodeDelimited = function decodeDelimited(reader) { + TestCaseError.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamingRecognitionResult message. + * Verifies a TestCaseError message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StreamingRecognitionResult.verify = function verify(message) { + TestCaseError.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.messageType != null && message.hasOwnProperty("messageType")) - switch (message.messageType) { - default: - return "messageType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.transcript != null && message.hasOwnProperty("transcript")) - if (!$util.isString(message.transcript)) - return "transcript: string expected"; - if (message.isFinal != null && message.hasOwnProperty("isFinal")) - if (typeof message.isFinal !== "boolean") - return "isFinal: boolean expected"; - if (message.confidence != null && message.hasOwnProperty("confidence")) - if (typeof message.confidence !== "number") - return "confidence: number expected"; - if (message.stability != null && message.hasOwnProperty("stability")) - if (typeof message.stability !== "number") - return "stability: number expected"; - if (message.speechWordInfo != null && message.hasOwnProperty("speechWordInfo")) { - if (!Array.isArray(message.speechWordInfo)) - return "speechWordInfo: array expected"; - for (var i = 0; i < message.speechWordInfo.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.verify(message.speechWordInfo[i]); - if (error) - return "speechWordInfo." + error; - } + if (message.testCase != null && message.hasOwnProperty("testCase")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.verify(message.testCase); + if (error) + return "testCase." + error; } - if (message.speechEndOffset != null && message.hasOwnProperty("speechEndOffset")) { - var error = $root.google.protobuf.Duration.verify(message.speechEndOffset); + if (message.status != null && message.hasOwnProperty("status")) { + var error = $root.google.rpc.Status.verify(message.status); if (error) - return "speechEndOffset." + error; + return "status." + error; } return null; }; /** - * Creates a StreamingRecognitionResult message from a plain object. Also converts values to their respective internal types. + * Creates a TestCaseError message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult} StreamingRecognitionResult + * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseError} TestCaseError */ - StreamingRecognitionResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult) + TestCaseError.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TestCaseError) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult(); - switch (object.messageType) { - case "MESSAGE_TYPE_UNSPECIFIED": - case 0: - message.messageType = 0; - break; - case "TRANSCRIPT": - case 1: - message.messageType = 1; - break; - case "END_OF_SINGLE_UTTERANCE": - case 2: - message.messageType = 2; - break; - } - if (object.transcript != null) - message.transcript = String(object.transcript); - if (object.isFinal != null) - message.isFinal = Boolean(object.isFinal); - if (object.confidence != null) - message.confidence = Number(object.confidence); - if (object.stability != null) - message.stability = Number(object.stability); - if (object.speechWordInfo) { - if (!Array.isArray(object.speechWordInfo)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.speechWordInfo: array expected"); - message.speechWordInfo = []; - for (var i = 0; i < object.speechWordInfo.length; ++i) { - if (typeof object.speechWordInfo[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.speechWordInfo: object expected"); - message.speechWordInfo[i] = $root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.fromObject(object.speechWordInfo[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.TestCaseError(); + if (object.testCase != null) { + if (typeof object.testCase !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCaseError.testCase: object expected"); + message.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.fromObject(object.testCase); } - if (object.speechEndOffset != null) { - if (typeof object.speechEndOffset !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.speechEndOffset: object expected"); - message.speechEndOffset = $root.google.protobuf.Duration.fromObject(object.speechEndOffset); + if (object.status != null) { + if (typeof object.status !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCaseError.status: object expected"); + message.status = $root.google.rpc.Status.fromObject(object.status); } return message; }; /** - * Creates a plain object from a StreamingRecognitionResult message. Also converts values to other types if specified. + * Creates a plain object from a TestCaseError message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError * @static - * @param {google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult} message StreamingRecognitionResult + * @param {google.cloud.dialogflow.cx.v3beta1.TestCaseError} message TestCaseError * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamingRecognitionResult.toObject = function toObject(message, options) { + TestCaseError.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.speechWordInfo = []; if (options.defaults) { - object.messageType = options.enums === String ? "MESSAGE_TYPE_UNSPECIFIED" : 0; - object.transcript = ""; - object.isFinal = false; - object.confidence = 0; - object.stability = 0; - object.speechEndOffset = null; - } - if (message.messageType != null && message.hasOwnProperty("messageType")) - object.messageType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType[message.messageType] : message.messageType; - if (message.transcript != null && message.hasOwnProperty("transcript")) - object.transcript = message.transcript; - if (message.isFinal != null && message.hasOwnProperty("isFinal")) - object.isFinal = message.isFinal; - if (message.confidence != null && message.hasOwnProperty("confidence")) - object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; - if (message.stability != null && message.hasOwnProperty("stability")) - object.stability = options.json && !isFinite(message.stability) ? String(message.stability) : message.stability; - if (message.speechWordInfo && message.speechWordInfo.length) { - object.speechWordInfo = []; - for (var j = 0; j < message.speechWordInfo.length; ++j) - object.speechWordInfo[j] = $root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.toObject(message.speechWordInfo[j], options); + object.testCase = null; + object.status = null; } - if (message.speechEndOffset != null && message.hasOwnProperty("speechEndOffset")) - object.speechEndOffset = $root.google.protobuf.Duration.toObject(message.speechEndOffset, options); + if (message.testCase != null && message.hasOwnProperty("testCase")) + object.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.toObject(message.testCase, options); + if (message.status != null && message.hasOwnProperty("status")) + object.status = $root.google.rpc.Status.toObject(message.status, options); return object; }; /** - * Converts this StreamingRecognitionResult to JSON. + * Converts this TestCaseError to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError * @instance * @returns {Object.} JSON object */ - StreamingRecognitionResult.prototype.toJSON = function toJSON() { + TestCaseError.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * MessageType enum. - * @name google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType - * @enum {number} - * @property {number} MESSAGE_TYPE_UNSPECIFIED=0 MESSAGE_TYPE_UNSPECIFIED value - * @property {number} TRANSCRIPT=1 TRANSCRIPT value - * @property {number} END_OF_SINGLE_UTTERANCE=2 END_OF_SINGLE_UTTERANCE value - */ - StreamingRecognitionResult.MessageType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MESSAGE_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "TRANSCRIPT"] = 1; - values[valuesById[2] = "END_OF_SINGLE_UTTERANCE"] = 2; - return values; - })(); - - return StreamingRecognitionResult; + return TestCaseError; })(); - v3beta1.QueryParameters = (function() { + v3beta1.ExportTestCasesRequest = (function() { /** - * Properties of a QueryParameters. + * Properties of an ExportTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IQueryParameters - * @property {string|null} [timeZone] QueryParameters timeZone - * @property {google.type.ILatLng|null} [geoLocation] QueryParameters geoLocation - * @property {Array.|null} [sessionEntityTypes] QueryParameters sessionEntityTypes - * @property {google.protobuf.IStruct|null} [payload] QueryParameters payload - * @property {google.protobuf.IStruct|null} [parameters] QueryParameters parameters - * @property {boolean|null} [disableWebhook] QueryParameters disableWebhook - * @property {boolean|null} [analyzeQueryTextSentiment] QueryParameters analyzeQueryTextSentiment - * @property {Object.|null} [webhookHeaders] QueryParameters webhookHeaders + * @interface IExportTestCasesRequest + * @property {string|null} [parent] ExportTestCasesRequest parent + * @property {string|null} [gcsUri] ExportTestCasesRequest gcsUri + * @property {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat|null} [dataFormat] ExportTestCasesRequest dataFormat + * @property {string|null} [filter] ExportTestCasesRequest filter */ /** - * Constructs a new QueryParameters. + * Constructs a new ExportTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a QueryParameters. - * @implements IQueryParameters + * @classdesc Represents an ExportTestCasesRequest. + * @implements IExportTestCasesRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IQueryParameters=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest=} [properties] Properties to set */ - function QueryParameters(properties) { - this.sessionEntityTypes = []; - this.webhookHeaders = {}; + function ExportTestCasesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -87852,189 +87818,128 @@ } /** - * QueryParameters timeZone. - * @member {string} timeZone - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters - * @instance - */ - QueryParameters.prototype.timeZone = ""; - - /** - * QueryParameters geoLocation. - * @member {google.type.ILatLng|null|undefined} geoLocation - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters - * @instance - */ - QueryParameters.prototype.geoLocation = null; - - /** - * QueryParameters sessionEntityTypes. - * @member {Array.} sessionEntityTypes - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * ExportTestCasesRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest * @instance */ - QueryParameters.prototype.sessionEntityTypes = $util.emptyArray; + ExportTestCasesRequest.prototype.parent = ""; /** - * QueryParameters payload. - * @member {google.protobuf.IStruct|null|undefined} payload - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * ExportTestCasesRequest gcsUri. + * @member {string} gcsUri + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest * @instance */ - QueryParameters.prototype.payload = null; + ExportTestCasesRequest.prototype.gcsUri = ""; /** - * QueryParameters parameters. - * @member {google.protobuf.IStruct|null|undefined} parameters - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * ExportTestCasesRequest dataFormat. + * @member {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat} dataFormat + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest * @instance */ - QueryParameters.prototype.parameters = null; + ExportTestCasesRequest.prototype.dataFormat = 0; /** - * QueryParameters disableWebhook. - * @member {boolean} disableWebhook - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * ExportTestCasesRequest filter. + * @member {string} filter + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest * @instance */ - QueryParameters.prototype.disableWebhook = false; + ExportTestCasesRequest.prototype.filter = ""; - /** - * QueryParameters analyzeQueryTextSentiment. - * @member {boolean} analyzeQueryTextSentiment - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters - * @instance - */ - QueryParameters.prototype.analyzeQueryTextSentiment = false; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * QueryParameters webhookHeaders. - * @member {Object.} webhookHeaders - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * ExportTestCasesRequest destination. + * @member {"gcsUri"|undefined} destination + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest * @instance */ - QueryParameters.prototype.webhookHeaders = $util.emptyObject; + Object.defineProperty(ExportTestCasesRequest.prototype, "destination", { + get: $util.oneOfGetter($oneOfFields = ["gcsUri"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new QueryParameters instance using the specified properties. + * Creates a new ExportTestCasesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IQueryParameters=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.QueryParameters} QueryParameters instance + * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest} ExportTestCasesRequest instance */ - QueryParameters.create = function create(properties) { - return new QueryParameters(properties); + ExportTestCasesRequest.create = function create(properties) { + return new ExportTestCasesRequest(properties); }; /** - * Encodes the specified QueryParameters message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryParameters.verify|verify} messages. + * Encodes the specified ExportTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IQueryParameters} message QueryParameters message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest} message ExportTestCasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryParameters.encode = function encode(message, writer) { + ExportTestCasesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.timeZone != null && Object.hasOwnProperty.call(message, "timeZone")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.timeZone); - if (message.geoLocation != null && Object.hasOwnProperty.call(message, "geoLocation")) - $root.google.type.LatLng.encode(message.geoLocation, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.sessionEntityTypes != null && message.sessionEntityTypes.length) - for (var i = 0; i < message.sessionEntityTypes.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.encode(message.sessionEntityTypes[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) - $root.google.protobuf.Struct.encode(message.payload, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - $root.google.protobuf.Struct.encode(message.parameters, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.disableWebhook != null && Object.hasOwnProperty.call(message, "disableWebhook")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.disableWebhook); - if (message.analyzeQueryTextSentiment != null && Object.hasOwnProperty.call(message, "analyzeQueryTextSentiment")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.analyzeQueryTextSentiment); - if (message.webhookHeaders != null && Object.hasOwnProperty.call(message, "webhookHeaders")) - for (var keys = Object.keys(message.webhookHeaders), i = 0; i < keys.length; ++i) - writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.webhookHeaders[keys[i]]).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.gcsUri != null && Object.hasOwnProperty.call(message, "gcsUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.gcsUri); + if (message.dataFormat != null && Object.hasOwnProperty.call(message, "dataFormat")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.dataFormat); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); return writer; }; /** - * Encodes the specified QueryParameters message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryParameters.verify|verify} messages. + * Encodes the specified ExportTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IQueryParameters} message QueryParameters message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest} message ExportTestCasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryParameters.encodeDelimited = function encodeDelimited(message, writer) { + ExportTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryParameters message from the specified reader or buffer. + * Decodes an ExportTestCasesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.QueryParameters} QueryParameters + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest} ExportTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryParameters.decode = function decode(reader, length) { + ExportTestCasesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.timeZone = reader.string(); + message.parent = reader.string(); break; case 2: - message.geoLocation = $root.google.type.LatLng.decode(reader, reader.uint32()); + message.gcsUri = reader.string(); break; case 3: - if (!(message.sessionEntityTypes && message.sessionEntityTypes.length)) - message.sessionEntityTypes = []; - message.sessionEntityTypes.push($root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.decode(reader, reader.uint32())); + message.dataFormat = reader.int32(); break; case 4: - message.payload = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 5: - message.parameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 7: - message.disableWebhook = reader.bool(); - break; - case 8: - message.analyzeQueryTextSentiment = reader.bool(); - break; - case 10: - if (message.webhookHeaders === $util.emptyObject) - message.webhookHeaders = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.webhookHeaders[key] = value; + message.filter = reader.string(); break; default: reader.skipType(tag & 7); @@ -88045,217 +87950,172 @@ }; /** - * Decodes a QueryParameters message from the specified reader or buffer, length delimited. + * Decodes an ExportTestCasesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.QueryParameters} QueryParameters + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest} ExportTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryParameters.decodeDelimited = function decodeDelimited(reader) { + ExportTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryParameters message. + * Verifies an ExportTestCasesRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryParameters.verify = function verify(message) { + ExportTestCasesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.timeZone != null && message.hasOwnProperty("timeZone")) - if (!$util.isString(message.timeZone)) - return "timeZone: string expected"; - if (message.geoLocation != null && message.hasOwnProperty("geoLocation")) { - var error = $root.google.type.LatLng.verify(message.geoLocation); - if (error) - return "geoLocation." + error; + var properties = {}; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { + properties.destination = 1; + if (!$util.isString(message.gcsUri)) + return "gcsUri: string expected"; } - if (message.sessionEntityTypes != null && message.hasOwnProperty("sessionEntityTypes")) { - if (!Array.isArray(message.sessionEntityTypes)) - return "sessionEntityTypes: array expected"; - for (var i = 0; i < message.sessionEntityTypes.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify(message.sessionEntityTypes[i]); - if (error) - return "sessionEntityTypes." + error; + if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) + switch (message.dataFormat) { + default: + return "dataFormat: enum value expected"; + case 0: + case 1: + case 2: + break; } - } - if (message.payload != null && message.hasOwnProperty("payload")) { - var error = $root.google.protobuf.Struct.verify(message.payload); - if (error) - return "payload." + error; - } - if (message.parameters != null && message.hasOwnProperty("parameters")) { - var error = $root.google.protobuf.Struct.verify(message.parameters); - if (error) - return "parameters." + error; - } - if (message.disableWebhook != null && message.hasOwnProperty("disableWebhook")) - if (typeof message.disableWebhook !== "boolean") - return "disableWebhook: boolean expected"; - if (message.analyzeQueryTextSentiment != null && message.hasOwnProperty("analyzeQueryTextSentiment")) - if (typeof message.analyzeQueryTextSentiment !== "boolean") - return "analyzeQueryTextSentiment: boolean expected"; - if (message.webhookHeaders != null && message.hasOwnProperty("webhookHeaders")) { - if (!$util.isObject(message.webhookHeaders)) - return "webhookHeaders: object expected"; - var key = Object.keys(message.webhookHeaders); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.webhookHeaders[key[i]])) - return "webhookHeaders: string{k:string} expected"; - } + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; return null; }; /** - * Creates a QueryParameters message from a plain object. Also converts values to their respective internal types. + * Creates an ExportTestCasesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.QueryParameters} QueryParameters + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest} ExportTestCasesRequest */ - QueryParameters.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters) + ExportTestCasesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters(); - if (object.timeZone != null) - message.timeZone = String(object.timeZone); - if (object.geoLocation != null) { - if (typeof object.geoLocation !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryParameters.geoLocation: object expected"); - message.geoLocation = $root.google.type.LatLng.fromObject(object.geoLocation); - } - if (object.sessionEntityTypes) { - if (!Array.isArray(object.sessionEntityTypes)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryParameters.sessionEntityTypes: array expected"); - message.sessionEntityTypes = []; - for (var i = 0; i < object.sessionEntityTypes.length; ++i) { - if (typeof object.sessionEntityTypes[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryParameters.sessionEntityTypes: object expected"); - message.sessionEntityTypes[i] = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.fromObject(object.sessionEntityTypes[i]); - } - } - if (object.payload != null) { - if (typeof object.payload !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryParameters.payload: object expected"); - message.payload = $root.google.protobuf.Struct.fromObject(object.payload); - } - if (object.parameters != null) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryParameters.parameters: object expected"); - message.parameters = $root.google.protobuf.Struct.fromObject(object.parameters); - } - if (object.disableWebhook != null) - message.disableWebhook = Boolean(object.disableWebhook); - if (object.analyzeQueryTextSentiment != null) - message.analyzeQueryTextSentiment = Boolean(object.analyzeQueryTextSentiment); - if (object.webhookHeaders) { - if (typeof object.webhookHeaders !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryParameters.webhookHeaders: object expected"); - message.webhookHeaders = {}; - for (var keys = Object.keys(object.webhookHeaders), i = 0; i < keys.length; ++i) - message.webhookHeaders[keys[i]] = String(object.webhookHeaders[keys[i]]); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.gcsUri != null) + message.gcsUri = String(object.gcsUri); + switch (object.dataFormat) { + case "DATA_FORMAT_UNSPECIFIED": + case 0: + message.dataFormat = 0; + break; + case "BLOB": + case 1: + message.dataFormat = 1; + break; + case "JSON": + case 2: + message.dataFormat = 2; + break; } + if (object.filter != null) + message.filter = String(object.filter); return message; }; /** - * Creates a plain object from a QueryParameters message. Also converts values to other types if specified. + * Creates a plain object from an ExportTestCasesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.QueryParameters} message QueryParameters + * @param {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest} message ExportTestCasesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryParameters.toObject = function toObject(message, options) { + ExportTestCasesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.sessionEntityTypes = []; - if (options.objects || options.defaults) - object.webhookHeaders = {}; if (options.defaults) { - object.timeZone = ""; - object.geoLocation = null; - object.payload = null; - object.parameters = null; - object.disableWebhook = false; - object.analyzeQueryTextSentiment = false; - } - if (message.timeZone != null && message.hasOwnProperty("timeZone")) - object.timeZone = message.timeZone; - if (message.geoLocation != null && message.hasOwnProperty("geoLocation")) - object.geoLocation = $root.google.type.LatLng.toObject(message.geoLocation, options); - if (message.sessionEntityTypes && message.sessionEntityTypes.length) { - object.sessionEntityTypes = []; - for (var j = 0; j < message.sessionEntityTypes.length; ++j) - object.sessionEntityTypes[j] = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.toObject(message.sessionEntityTypes[j], options); + object.parent = ""; + object.dataFormat = options.enums === String ? "DATA_FORMAT_UNSPECIFIED" : 0; + object.filter = ""; } - if (message.payload != null && message.hasOwnProperty("payload")) - object.payload = $root.google.protobuf.Struct.toObject(message.payload, options); - if (message.parameters != null && message.hasOwnProperty("parameters")) - object.parameters = $root.google.protobuf.Struct.toObject(message.parameters, options); - if (message.disableWebhook != null && message.hasOwnProperty("disableWebhook")) - object.disableWebhook = message.disableWebhook; - if (message.analyzeQueryTextSentiment != null && message.hasOwnProperty("analyzeQueryTextSentiment")) - object.analyzeQueryTextSentiment = message.analyzeQueryTextSentiment; - var keys2; - if (message.webhookHeaders && (keys2 = Object.keys(message.webhookHeaders)).length) { - object.webhookHeaders = {}; - for (var j = 0; j < keys2.length; ++j) - object.webhookHeaders[keys2[j]] = message.webhookHeaders[keys2[j]]; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { + object.gcsUri = message.gcsUri; + if (options.oneofs) + object.destination = "gcsUri"; } + if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) + object.dataFormat = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat[message.dataFormat] : message.dataFormat; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; return object; }; /** - * Converts this QueryParameters to JSON. + * Converts this ExportTestCasesRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest * @instance * @returns {Object.} JSON object */ - QueryParameters.prototype.toJSON = function toJSON() { + ExportTestCasesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryParameters; + /** + * DataFormat enum. + * @name google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat + * @enum {number} + * @property {number} DATA_FORMAT_UNSPECIFIED=0 DATA_FORMAT_UNSPECIFIED value + * @property {number} BLOB=1 BLOB value + * @property {number} JSON=2 JSON value + */ + ExportTestCasesRequest.DataFormat = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DATA_FORMAT_UNSPECIFIED"] = 0; + values[valuesById[1] = "BLOB"] = 1; + values[valuesById[2] = "JSON"] = 2; + return values; + })(); + + return ExportTestCasesRequest; })(); - v3beta1.QueryInput = (function() { + v3beta1.ExportTestCasesResponse = (function() { /** - * Properties of a QueryInput. + * Properties of an ExportTestCasesResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IQueryInput - * @property {google.cloud.dialogflow.cx.v3beta1.ITextInput|null} [text] QueryInput text - * @property {google.cloud.dialogflow.cx.v3beta1.IIntentInput|null} [intent] QueryInput intent - * @property {google.cloud.dialogflow.cx.v3beta1.IAudioInput|null} [audio] QueryInput audio - * @property {google.cloud.dialogflow.cx.v3beta1.IEventInput|null} [event] QueryInput event - * @property {google.cloud.dialogflow.cx.v3beta1.IDtmfInput|null} [dtmf] QueryInput dtmf - * @property {string|null} [languageCode] QueryInput languageCode + * @interface IExportTestCasesResponse + * @property {string|null} [gcsUri] ExportTestCasesResponse gcsUri + * @property {Uint8Array|null} [content] ExportTestCasesResponse content */ /** - * Constructs a new QueryInput. + * Constructs a new ExportTestCasesResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a QueryInput. - * @implements IQueryInput + * @classdesc Represents an ExportTestCasesResponse. + * @implements IExportTestCasesResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IQueryInput=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse=} [properties] Properties to set */ - function QueryInput(properties) { + function ExportTestCasesResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -88263,154 +88123,102 @@ } /** - * QueryInput text. - * @member {google.cloud.dialogflow.cx.v3beta1.ITextInput|null|undefined} text - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput - * @instance - */ - QueryInput.prototype.text = null; - - /** - * QueryInput intent. - * @member {google.cloud.dialogflow.cx.v3beta1.IIntentInput|null|undefined} intent - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput - * @instance - */ - QueryInput.prototype.intent = null; - - /** - * QueryInput audio. - * @member {google.cloud.dialogflow.cx.v3beta1.IAudioInput|null|undefined} audio - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput - * @instance - */ - QueryInput.prototype.audio = null; - - /** - * QueryInput event. - * @member {google.cloud.dialogflow.cx.v3beta1.IEventInput|null|undefined} event - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput - * @instance - */ - QueryInput.prototype.event = null; - - /** - * QueryInput dtmf. - * @member {google.cloud.dialogflow.cx.v3beta1.IDtmfInput|null|undefined} dtmf - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * ExportTestCasesResponse gcsUri. + * @member {string} gcsUri + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse * @instance */ - QueryInput.prototype.dtmf = null; + ExportTestCasesResponse.prototype.gcsUri = ""; /** - * QueryInput languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * ExportTestCasesResponse content. + * @member {Uint8Array} content + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse * @instance */ - QueryInput.prototype.languageCode = ""; + ExportTestCasesResponse.prototype.content = $util.newBuffer([]); // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * QueryInput input. - * @member {"text"|"intent"|"audio"|"event"|"dtmf"|undefined} input - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * ExportTestCasesResponse destination. + * @member {"gcsUri"|"content"|undefined} destination + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse * @instance */ - Object.defineProperty(QueryInput.prototype, "input", { - get: $util.oneOfGetter($oneOfFields = ["text", "intent", "audio", "event", "dtmf"]), + Object.defineProperty(ExportTestCasesResponse.prototype, "destination", { + get: $util.oneOfGetter($oneOfFields = ["gcsUri", "content"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new QueryInput instance using the specified properties. + * Creates a new ExportTestCasesResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IQueryInput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.QueryInput} QueryInput instance + * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse} ExportTestCasesResponse instance */ - QueryInput.create = function create(properties) { - return new QueryInput(properties); + ExportTestCasesResponse.create = function create(properties) { + return new ExportTestCasesResponse(properties); }; /** - * Encodes the specified QueryInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryInput.verify|verify} messages. + * Encodes the specified ExportTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IQueryInput} message QueryInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse} message ExportTestCasesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryInput.encode = function encode(message, writer) { + ExportTestCasesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.text != null && Object.hasOwnProperty.call(message, "text")) - $root.google.cloud.dialogflow.cx.v3beta1.TextInput.encode(message.text, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) - $root.google.cloud.dialogflow.cx.v3beta1.IntentInput.encode(message.intent, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.languageCode); - if (message.audio != null && Object.hasOwnProperty.call(message, "audio")) - $root.google.cloud.dialogflow.cx.v3beta1.AudioInput.encode(message.audio, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.event != null && Object.hasOwnProperty.call(message, "event")) - $root.google.cloud.dialogflow.cx.v3beta1.EventInput.encode(message.event, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.dtmf != null && Object.hasOwnProperty.call(message, "dtmf")) - $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.encode(message.dtmf, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.gcsUri != null && Object.hasOwnProperty.call(message, "gcsUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.gcsUri); + if (message.content != null && Object.hasOwnProperty.call(message, "content")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.content); return writer; }; /** - * Encodes the specified QueryInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryInput.verify|verify} messages. + * Encodes the specified ExportTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IQueryInput} message QueryInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse} message ExportTestCasesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryInput.encodeDelimited = function encodeDelimited(message, writer) { + ExportTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryInput message from the specified reader or buffer. + * Decodes an ExportTestCasesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.QueryInput} QueryInput + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse} ExportTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryInput.decode = function decode(reader, length) { + ExportTestCasesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.QueryInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: - message.text = $root.google.cloud.dialogflow.cx.v3beta1.TextInput.decode(reader, reader.uint32()); - break; - case 3: - message.intent = $root.google.cloud.dialogflow.cx.v3beta1.IntentInput.decode(reader, reader.uint32()); - break; - case 5: - message.audio = $root.google.cloud.dialogflow.cx.v3beta1.AudioInput.decode(reader, reader.uint32()); - break; - case 6: - message.event = $root.google.cloud.dialogflow.cx.v3beta1.EventInput.decode(reader, reader.uint32()); - break; - case 7: - message.dtmf = $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.decode(reader, reader.uint32()); + case 1: + message.gcsUri = reader.string(); break; - case 4: - message.languageCode = reader.string(); + case 2: + message.content = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -88421,223 +88229,127 @@ }; /** - * Decodes a QueryInput message from the specified reader or buffer, length delimited. + * Decodes an ExportTestCasesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.QueryInput} QueryInput + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse} ExportTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryInput.decodeDelimited = function decodeDelimited(reader) { + ExportTestCasesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryInput message. + * Verifies an ExportTestCasesResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryInput.verify = function verify(message) { + ExportTestCasesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.text != null && message.hasOwnProperty("text")) { - properties.input = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TextInput.verify(message.text); - if (error) - return "text." + error; - } - } - if (message.intent != null && message.hasOwnProperty("intent")) { - if (properties.input === 1) - return "input: multiple values"; - properties.input = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.IntentInput.verify(message.intent); - if (error) - return "intent." + error; - } - } - if (message.audio != null && message.hasOwnProperty("audio")) { - if (properties.input === 1) - return "input: multiple values"; - properties.input = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.AudioInput.verify(message.audio); - if (error) - return "audio." + error; - } - } - if (message.event != null && message.hasOwnProperty("event")) { - if (properties.input === 1) - return "input: multiple values"; - properties.input = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.EventInput.verify(message.event); - if (error) - return "event." + error; - } + if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { + properties.destination = 1; + if (!$util.isString(message.gcsUri)) + return "gcsUri: string expected"; } - if (message.dtmf != null && message.hasOwnProperty("dtmf")) { - if (properties.input === 1) - return "input: multiple values"; - properties.input = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.verify(message.dtmf); - if (error) - return "dtmf." + error; - } + if (message.content != null && message.hasOwnProperty("content")) { + if (properties.destination === 1) + return "destination: multiple values"; + properties.destination = 1; + if (!(message.content && typeof message.content.length === "number" || $util.isString(message.content))) + return "content: buffer expected"; } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; return null; }; /** - * Creates a QueryInput message from a plain object. Also converts values to their respective internal types. + * Creates an ExportTestCasesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.QueryInput} QueryInput + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse} ExportTestCasesResponse */ - QueryInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.QueryInput) + ExportTestCasesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.QueryInput(); - if (object.text != null) { - if (typeof object.text !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryInput.text: object expected"); - message.text = $root.google.cloud.dialogflow.cx.v3beta1.TextInput.fromObject(object.text); - } - if (object.intent != null) { - if (typeof object.intent !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryInput.intent: object expected"); - message.intent = $root.google.cloud.dialogflow.cx.v3beta1.IntentInput.fromObject(object.intent); - } - if (object.audio != null) { - if (typeof object.audio !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryInput.audio: object expected"); - message.audio = $root.google.cloud.dialogflow.cx.v3beta1.AudioInput.fromObject(object.audio); - } - if (object.event != null) { - if (typeof object.event !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryInput.event: object expected"); - message.event = $root.google.cloud.dialogflow.cx.v3beta1.EventInput.fromObject(object.event); - } - if (object.dtmf != null) { - if (typeof object.dtmf !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryInput.dtmf: object expected"); - message.dtmf = $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.fromObject(object.dtmf); - } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse(); + if (object.gcsUri != null) + message.gcsUri = String(object.gcsUri); + if (object.content != null) + if (typeof object.content === "string") + $util.base64.decode(object.content, message.content = $util.newBuffer($util.base64.length(object.content)), 0); + else if (object.content.length) + message.content = object.content; return message; }; /** - * Creates a plain object from a QueryInput message. Also converts values to other types if specified. + * Creates a plain object from an ExportTestCasesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.QueryInput} message QueryInput + * @param {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse} message ExportTestCasesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QueryInput.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.languageCode = ""; - if (message.text != null && message.hasOwnProperty("text")) { - object.text = $root.google.cloud.dialogflow.cx.v3beta1.TextInput.toObject(message.text, options); - if (options.oneofs) - object.input = "text"; - } - if (message.intent != null && message.hasOwnProperty("intent")) { - object.intent = $root.google.cloud.dialogflow.cx.v3beta1.IntentInput.toObject(message.intent, options); - if (options.oneofs) - object.input = "intent"; - } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; - if (message.audio != null && message.hasOwnProperty("audio")) { - object.audio = $root.google.cloud.dialogflow.cx.v3beta1.AudioInput.toObject(message.audio, options); - if (options.oneofs) - object.input = "audio"; - } - if (message.event != null && message.hasOwnProperty("event")) { - object.event = $root.google.cloud.dialogflow.cx.v3beta1.EventInput.toObject(message.event, options); + * @returns {Object.} Plain object + */ + ExportTestCasesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { + object.gcsUri = message.gcsUri; if (options.oneofs) - object.input = "event"; + object.destination = "gcsUri"; } - if (message.dtmf != null && message.hasOwnProperty("dtmf")) { - object.dtmf = $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.toObject(message.dtmf, options); + if (message.content != null && message.hasOwnProperty("content")) { + object.content = options.bytes === String ? $util.base64.encode(message.content, 0, message.content.length) : options.bytes === Array ? Array.prototype.slice.call(message.content) : message.content; if (options.oneofs) - object.input = "dtmf"; + object.destination = "content"; } return object; }; /** - * Converts this QueryInput to JSON. + * Converts this ExportTestCasesResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse * @instance * @returns {Object.} JSON object */ - QueryInput.prototype.toJSON = function toJSON() { + ExportTestCasesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryInput; + return ExportTestCasesResponse; })(); - v3beta1.QueryResult = (function() { + v3beta1.ExportTestCasesMetadata = (function() { /** - * Properties of a QueryResult. + * Properties of an ExportTestCasesMetadata. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IQueryResult - * @property {string|null} [text] QueryResult text - * @property {string|null} [triggerIntent] QueryResult triggerIntent - * @property {string|null} [transcript] QueryResult transcript - * @property {string|null} [triggerEvent] QueryResult triggerEvent - * @property {string|null} [languageCode] QueryResult languageCode - * @property {google.protobuf.IStruct|null} [parameters] QueryResult parameters - * @property {Array.|null} [responseMessages] QueryResult responseMessages - * @property {Array.|null} [webhookStatuses] QueryResult webhookStatuses - * @property {Array.|null} [webhookPayloads] QueryResult webhookPayloads - * @property {google.cloud.dialogflow.cx.v3beta1.IPage|null} [currentPage] QueryResult currentPage - * @property {google.cloud.dialogflow.cx.v3beta1.IIntent|null} [intent] QueryResult intent - * @property {number|null} [intentDetectionConfidence] QueryResult intentDetectionConfidence - * @property {google.cloud.dialogflow.cx.v3beta1.IMatch|null} [match] QueryResult match - * @property {google.protobuf.IStruct|null} [diagnosticInfo] QueryResult diagnosticInfo - * @property {google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult|null} [sentimentAnalysisResult] QueryResult sentimentAnalysisResult + * @interface IExportTestCasesMetadata */ /** - * Constructs a new QueryResult. + * Constructs a new ExportTestCasesMetadata. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a QueryResult. - * @implements IQueryResult + * @classdesc Represents an ExportTestCasesMetadata. + * @implements IExportTestCasesMetadata * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IQueryResult=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata=} [properties] Properties to set */ - function QueryResult(properties) { - this.responseMessages = []; - this.webhookStatuses = []; - this.webhookPayloads = []; + function ExportTestCasesMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -88645,610 +88357,416 @@ } /** - * QueryResult text. - * @member {string} text - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult - * @instance + * Creates a new ExportTestCasesMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata} ExportTestCasesMetadata instance */ - QueryResult.prototype.text = ""; + ExportTestCasesMetadata.create = function create(properties) { + return new ExportTestCasesMetadata(properties); + }; /** - * QueryResult triggerIntent. - * @member {string} triggerIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult - * @instance + * Encodes the specified ExportTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata} message ExportTestCasesMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - QueryResult.prototype.triggerIntent = ""; + ExportTestCasesMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; /** - * QueryResult transcript. - * @member {string} transcript - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult - * @instance + * Encodes the specified ExportTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata} message ExportTestCasesMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - QueryResult.prototype.transcript = ""; + ExportTestCasesMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * QueryResult triggerEvent. - * @member {string} triggerEvent - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult - * @instance + * Decodes an ExportTestCasesMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata} ExportTestCasesMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryResult.prototype.triggerEvent = ""; + ExportTestCasesMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * QueryResult languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult - * @instance + * Decodes an ExportTestCasesMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata} ExportTestCasesMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryResult.prototype.languageCode = ""; + ExportTestCasesMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * QueryResult parameters. - * @member {google.protobuf.IStruct|null|undefined} parameters - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult - * @instance + * Verifies an ExportTestCasesMetadata message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryResult.prototype.parameters = null; + ExportTestCasesMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; /** - * QueryResult responseMessages. - * @member {Array.} responseMessages - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult - * @instance + * Creates an ExportTestCasesMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata} ExportTestCasesMetadata */ - QueryResult.prototype.responseMessages = $util.emptyArray; + ExportTestCasesMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata) + return object; + return new $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata(); + }; /** - * QueryResult webhookStatuses. - * @member {Array.} webhookStatuses - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult - * @instance + * Creates a plain object from an ExportTestCasesMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata} message ExportTestCasesMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - QueryResult.prototype.webhookStatuses = $util.emptyArray; + ExportTestCasesMetadata.toObject = function toObject() { + return {}; + }; /** - * QueryResult webhookPayloads. - * @member {Array.} webhookPayloads - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * Converts this ExportTestCasesMetadata to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata * @instance + * @returns {Object.} JSON object */ - QueryResult.prototype.webhookPayloads = $util.emptyArray; + ExportTestCasesMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * QueryResult currentPage. - * @member {google.cloud.dialogflow.cx.v3beta1.IPage|null|undefined} currentPage - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult - * @instance - */ - QueryResult.prototype.currentPage = null; + return ExportTestCasesMetadata; + })(); + + v3beta1.ListTestCaseResultsRequest = (function() { /** - * QueryResult intent. - * @member {google.cloud.dialogflow.cx.v3beta1.IIntent|null|undefined} intent - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult - * @instance + * Properties of a ListTestCaseResultsRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IListTestCaseResultsRequest + * @property {string|null} [parent] ListTestCaseResultsRequest parent + * @property {number|null} [pageSize] ListTestCaseResultsRequest pageSize + * @property {string|null} [pageToken] ListTestCaseResultsRequest pageToken + * @property {string|null} [filter] ListTestCaseResultsRequest filter */ - QueryResult.prototype.intent = null; /** - * QueryResult intentDetectionConfidence. - * @member {number} intentDetectionConfidence - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult - * @instance + * Constructs a new ListTestCaseResultsRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a ListTestCaseResultsRequest. + * @implements IListTestCaseResultsRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest=} [properties] Properties to set */ - QueryResult.prototype.intentDetectionConfidence = 0; + function ListTestCaseResultsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * QueryResult match. - * @member {google.cloud.dialogflow.cx.v3beta1.IMatch|null|undefined} match - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * ListTestCaseResultsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest * @instance */ - QueryResult.prototype.match = null; + ListTestCaseResultsRequest.prototype.parent = ""; /** - * QueryResult diagnosticInfo. - * @member {google.protobuf.IStruct|null|undefined} diagnosticInfo - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * ListTestCaseResultsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest * @instance */ - QueryResult.prototype.diagnosticInfo = null; + ListTestCaseResultsRequest.prototype.pageSize = 0; /** - * QueryResult sentimentAnalysisResult. - * @member {google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult|null|undefined} sentimentAnalysisResult - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * ListTestCaseResultsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest * @instance */ - QueryResult.prototype.sentimentAnalysisResult = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + ListTestCaseResultsRequest.prototype.pageToken = ""; /** - * QueryResult query. - * @member {"text"|"triggerIntent"|"transcript"|"triggerEvent"|undefined} query - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * ListTestCaseResultsRequest filter. + * @member {string} filter + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest * @instance */ - Object.defineProperty(QueryResult.prototype, "query", { - get: $util.oneOfGetter($oneOfFields = ["text", "triggerIntent", "transcript", "triggerEvent"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListTestCaseResultsRequest.prototype.filter = ""; /** - * Creates a new QueryResult instance using the specified properties. + * Creates a new ListTestCaseResultsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IQueryResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.QueryResult} QueryResult instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest} ListTestCaseResultsRequest instance */ - QueryResult.create = function create(properties) { - return new QueryResult(properties); + ListTestCaseResultsRequest.create = function create(properties) { + return new ListTestCaseResultsRequest(properties); }; /** - * Encodes the specified QueryResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryResult.verify|verify} messages. + * Encodes the specified ListTestCaseResultsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IQueryResult} message QueryResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest} message ListTestCaseResultsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryResult.encode = function encode(message, writer) { + ListTestCaseResultsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.text != null && Object.hasOwnProperty.call(message, "text")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - $root.google.protobuf.Struct.encode(message.parameters, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.responseMessages != null && message.responseMessages.length) - for (var i = 0; i < message.responseMessages.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.encode(message.responseMessages[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.webhookPayloads != null && message.webhookPayloads.length) - for (var i = 0; i < message.webhookPayloads.length; ++i) - $root.google.protobuf.Struct.encode(message.webhookPayloads[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) - $root.google.cloud.dialogflow.cx.v3beta1.Page.encode(message.currentPage, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) - $root.google.cloud.dialogflow.cx.v3beta1.Intent.encode(message.intent, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.intentDetectionConfidence != null && Object.hasOwnProperty.call(message, "intentDetectionConfidence")) - writer.uint32(/* id 9, wireType 5 =*/77).float(message.intentDetectionConfidence); - if (message.diagnosticInfo != null && Object.hasOwnProperty.call(message, "diagnosticInfo")) - $root.google.protobuf.Struct.encode(message.diagnosticInfo, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.triggerIntent != null && Object.hasOwnProperty.call(message, "triggerIntent")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.triggerIntent); - if (message.transcript != null && Object.hasOwnProperty.call(message, "transcript")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.transcript); - if (message.webhookStatuses != null && message.webhookStatuses.length) - for (var i = 0; i < message.webhookStatuses.length; ++i) - $root.google.rpc.Status.encode(message.webhookStatuses[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.triggerEvent != null && Object.hasOwnProperty.call(message, "triggerEvent")) - writer.uint32(/* id 14, wireType 2 =*/114).string(message.triggerEvent); - if (message.match != null && Object.hasOwnProperty.call(message, "match")) - $root.google.cloud.dialogflow.cx.v3beta1.Match.encode(message.match, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - if (message.sentimentAnalysisResult != null && Object.hasOwnProperty.call(message, "sentimentAnalysisResult")) - $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.encode(message.sentimentAnalysisResult, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); return writer; }; /** - * Encodes the specified QueryResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryResult.verify|verify} messages. + * Encodes the specified ListTestCaseResultsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IQueryResult} message QueryResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest} message ListTestCaseResultsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryResult.encodeDelimited = function encodeDelimited(message, writer) { + ListTestCaseResultsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryResult message from the specified reader or buffer. + * Decodes a ListTestCaseResultsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.QueryResult} QueryResult + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest} ListTestCaseResultsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryResult.decode = function decode(reader, length) { + ListTestCaseResultsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.QueryResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest(); while (reader.pos < end) { var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.text = reader.string(); - break; - case 11: - message.triggerIntent = reader.string(); - break; - case 12: - message.transcript = reader.string(); - break; - case 14: - message.triggerEvent = reader.string(); - break; - case 2: - message.languageCode = reader.string(); - break; - case 3: - message.parameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 4: - if (!(message.responseMessages && message.responseMessages.length)) - message.responseMessages = []; - message.responseMessages.push($root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.decode(reader, reader.uint32())); - break; - case 13: - if (!(message.webhookStatuses && message.webhookStatuses.length)) - message.webhookStatuses = []; - message.webhookStatuses.push($root.google.rpc.Status.decode(reader, reader.uint32())); - break; - case 6: - if (!(message.webhookPayloads && message.webhookPayloads.length)) - message.webhookPayloads = []; - message.webhookPayloads.push($root.google.protobuf.Struct.decode(reader, reader.uint32())); - break; - case 7: - message.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.decode(reader, reader.uint32()); - break; - case 8: - message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.decode(reader, reader.uint32()); - break; - case 9: - message.intentDetectionConfidence = reader.float(); - break; - case 15: - message.match = $root.google.cloud.dialogflow.cx.v3beta1.Match.decode(reader, reader.uint32()); - break; - case 10: - message.diagnosticInfo = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 17: - message.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a QueryResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.QueryResult} QueryResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a QueryResult message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QueryResult.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.text != null && message.hasOwnProperty("text")) { - properties.query = 1; - if (!$util.isString(message.text)) - return "text: string expected"; - } - if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { - if (properties.query === 1) - return "query: multiple values"; - properties.query = 1; - if (!$util.isString(message.triggerIntent)) - return "triggerIntent: string expected"; - } - if (message.transcript != null && message.hasOwnProperty("transcript")) { - if (properties.query === 1) - return "query: multiple values"; - properties.query = 1; - if (!$util.isString(message.transcript)) - return "transcript: string expected"; - } - if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { - if (properties.query === 1) - return "query: multiple values"; - properties.query = 1; - if (!$util.isString(message.triggerEvent)) - return "triggerEvent: string expected"; - } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; - if (message.parameters != null && message.hasOwnProperty("parameters")) { - var error = $root.google.protobuf.Struct.verify(message.parameters); - if (error) - return "parameters." + error; - } - if (message.responseMessages != null && message.hasOwnProperty("responseMessages")) { - if (!Array.isArray(message.responseMessages)) - return "responseMessages: array expected"; - for (var i = 0; i < message.responseMessages.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.verify(message.responseMessages[i]); - if (error) - return "responseMessages." + error; - } - } - if (message.webhookStatuses != null && message.hasOwnProperty("webhookStatuses")) { - if (!Array.isArray(message.webhookStatuses)) - return "webhookStatuses: array expected"; - for (var i = 0; i < message.webhookStatuses.length; ++i) { - var error = $root.google.rpc.Status.verify(message.webhookStatuses[i]); - if (error) - return "webhookStatuses." + error; - } - } - if (message.webhookPayloads != null && message.hasOwnProperty("webhookPayloads")) { - if (!Array.isArray(message.webhookPayloads)) - return "webhookPayloads: array expected"; - for (var i = 0; i < message.webhookPayloads.length; ++i) { - var error = $root.google.protobuf.Struct.verify(message.webhookPayloads[i]); - if (error) - return "webhookPayloads." + error; + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); + break; + case 4: + message.filter = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; } } - if (message.currentPage != null && message.hasOwnProperty("currentPage")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Page.verify(message.currentPage); - if (error) - return "currentPage." + error; - } - if (message.intent != null && message.hasOwnProperty("intent")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.verify(message.intent); - if (error) - return "intent." + error; - } - if (message.intentDetectionConfidence != null && message.hasOwnProperty("intentDetectionConfidence")) - if (typeof message.intentDetectionConfidence !== "number") - return "intentDetectionConfidence: number expected"; - if (message.match != null && message.hasOwnProperty("match")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Match.verify(message.match); - if (error) - return "match." + error; - } - if (message.diagnosticInfo != null && message.hasOwnProperty("diagnosticInfo")) { - var error = $root.google.protobuf.Struct.verify(message.diagnosticInfo); - if (error) - return "diagnosticInfo." + error; - } - if (message.sentimentAnalysisResult != null && message.hasOwnProperty("sentimentAnalysisResult")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.verify(message.sentimentAnalysisResult); - if (error) - return "sentimentAnalysisResult." + error; - } + return message; + }; + + /** + * Decodes a ListTestCaseResultsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest} ListTestCaseResultsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListTestCaseResultsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListTestCaseResultsRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListTestCaseResultsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; return null; }; /** - * Creates a QueryResult message from a plain object. Also converts values to their respective internal types. + * Creates a ListTestCaseResultsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.QueryResult} QueryResult + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest} ListTestCaseResultsRequest */ - QueryResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.QueryResult) + ListTestCaseResultsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.QueryResult(); - if (object.text != null) - message.text = String(object.text); - if (object.triggerIntent != null) - message.triggerIntent = String(object.triggerIntent); - if (object.transcript != null) - message.transcript = String(object.transcript); - if (object.triggerEvent != null) - message.triggerEvent = String(object.triggerEvent); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); - if (object.parameters != null) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.parameters: object expected"); - message.parameters = $root.google.protobuf.Struct.fromObject(object.parameters); - } - if (object.responseMessages) { - if (!Array.isArray(object.responseMessages)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.responseMessages: array expected"); - message.responseMessages = []; - for (var i = 0; i < object.responseMessages.length; ++i) { - if (typeof object.responseMessages[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.responseMessages: object expected"); - message.responseMessages[i] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.fromObject(object.responseMessages[i]); - } - } - if (object.webhookStatuses) { - if (!Array.isArray(object.webhookStatuses)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.webhookStatuses: array expected"); - message.webhookStatuses = []; - for (var i = 0; i < object.webhookStatuses.length; ++i) { - if (typeof object.webhookStatuses[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.webhookStatuses: object expected"); - message.webhookStatuses[i] = $root.google.rpc.Status.fromObject(object.webhookStatuses[i]); - } - } - if (object.webhookPayloads) { - if (!Array.isArray(object.webhookPayloads)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.webhookPayloads: array expected"); - message.webhookPayloads = []; - for (var i = 0; i < object.webhookPayloads.length; ++i) { - if (typeof object.webhookPayloads[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.webhookPayloads: object expected"); - message.webhookPayloads[i] = $root.google.protobuf.Struct.fromObject(object.webhookPayloads[i]); - } - } - if (object.currentPage != null) { - if (typeof object.currentPage !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.currentPage: object expected"); - message.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.fromObject(object.currentPage); - } - if (object.intent != null) { - if (typeof object.intent !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.intent: object expected"); - message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.fromObject(object.intent); - } - if (object.intentDetectionConfidence != null) - message.intentDetectionConfidence = Number(object.intentDetectionConfidence); - if (object.match != null) { - if (typeof object.match !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.match: object expected"); - message.match = $root.google.cloud.dialogflow.cx.v3beta1.Match.fromObject(object.match); - } - if (object.diagnosticInfo != null) { - if (typeof object.diagnosticInfo !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.diagnosticInfo: object expected"); - message.diagnosticInfo = $root.google.protobuf.Struct.fromObject(object.diagnosticInfo); - } - if (object.sentimentAnalysisResult != null) { - if (typeof object.sentimentAnalysisResult !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.sentimentAnalysisResult: object expected"); - message.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.fromObject(object.sentimentAnalysisResult); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); return message; }; /** - * Creates a plain object from a QueryResult message. Also converts values to other types if specified. + * Creates a plain object from a ListTestCaseResultsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.QueryResult} message QueryResult + * @param {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest} message ListTestCaseResultsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryResult.toObject = function toObject(message, options) { + ListTestCaseResultsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.responseMessages = []; - object.webhookPayloads = []; - object.webhookStatuses = []; - } if (options.defaults) { - object.languageCode = ""; - object.parameters = null; - object.currentPage = null; - object.intent = null; - object.intentDetectionConfidence = 0; - object.diagnosticInfo = null; - object.match = null; - object.sentimentAnalysisResult = null; - } - if (message.text != null && message.hasOwnProperty("text")) { - object.text = message.text; - if (options.oneofs) - object.query = "text"; - } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; - if (message.parameters != null && message.hasOwnProperty("parameters")) - object.parameters = $root.google.protobuf.Struct.toObject(message.parameters, options); - if (message.responseMessages && message.responseMessages.length) { - object.responseMessages = []; - for (var j = 0; j < message.responseMessages.length; ++j) - object.responseMessages[j] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.toObject(message.responseMessages[j], options); - } - if (message.webhookPayloads && message.webhookPayloads.length) { - object.webhookPayloads = []; - for (var j = 0; j < message.webhookPayloads.length; ++j) - object.webhookPayloads[j] = $root.google.protobuf.Struct.toObject(message.webhookPayloads[j], options); - } - if (message.currentPage != null && message.hasOwnProperty("currentPage")) - object.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.toObject(message.currentPage, options); - if (message.intent != null && message.hasOwnProperty("intent")) - object.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.toObject(message.intent, options); - if (message.intentDetectionConfidence != null && message.hasOwnProperty("intentDetectionConfidence")) - object.intentDetectionConfidence = options.json && !isFinite(message.intentDetectionConfidence) ? String(message.intentDetectionConfidence) : message.intentDetectionConfidence; - if (message.diagnosticInfo != null && message.hasOwnProperty("diagnosticInfo")) - object.diagnosticInfo = $root.google.protobuf.Struct.toObject(message.diagnosticInfo, options); - if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { - object.triggerIntent = message.triggerIntent; - if (options.oneofs) - object.query = "triggerIntent"; - } - if (message.transcript != null && message.hasOwnProperty("transcript")) { - object.transcript = message.transcript; - if (options.oneofs) - object.query = "transcript"; - } - if (message.webhookStatuses && message.webhookStatuses.length) { - object.webhookStatuses = []; - for (var j = 0; j < message.webhookStatuses.length; ++j) - object.webhookStatuses[j] = $root.google.rpc.Status.toObject(message.webhookStatuses[j], options); - } - if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { - object.triggerEvent = message.triggerEvent; - if (options.oneofs) - object.query = "triggerEvent"; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; } - if (message.match != null && message.hasOwnProperty("match")) - object.match = $root.google.cloud.dialogflow.cx.v3beta1.Match.toObject(message.match, options); - if (message.sentimentAnalysisResult != null && message.hasOwnProperty("sentimentAnalysisResult")) - object.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.toObject(message.sentimentAnalysisResult, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; return object; }; /** - * Converts this QueryResult to JSON. + * Converts this ListTestCaseResultsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest * @instance * @returns {Object.} JSON object */ - QueryResult.prototype.toJSON = function toJSON() { + ListTestCaseResultsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryResult; + return ListTestCaseResultsRequest; })(); - v3beta1.TextInput = (function() { + v3beta1.ListTestCaseResultsResponse = (function() { /** - * Properties of a TextInput. + * Properties of a ListTestCaseResultsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ITextInput - * @property {string|null} [text] TextInput text + * @interface IListTestCaseResultsResponse + * @property {Array.|null} [testCaseResults] ListTestCaseResultsResponse testCaseResults + * @property {string|null} [nextPageToken] ListTestCaseResultsResponse nextPageToken */ /** - * Constructs a new TextInput. + * Constructs a new ListTestCaseResultsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a TextInput. - * @implements ITextInput + * @classdesc Represents a ListTestCaseResultsResponse. + * @implements IListTestCaseResultsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ITextInput=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse=} [properties] Properties to set */ - function TextInput(properties) { + function ListTestCaseResultsResponse(properties) { + this.testCaseResults = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -89256,75 +88774,91 @@ } /** - * TextInput text. - * @member {string} text - * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * ListTestCaseResultsResponse testCaseResults. + * @member {Array.} testCaseResults + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse * @instance */ - TextInput.prototype.text = ""; + ListTestCaseResultsResponse.prototype.testCaseResults = $util.emptyArray; /** - * Creates a new TextInput instance using the specified properties. + * ListTestCaseResultsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse + * @instance + */ + ListTestCaseResultsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListTestCaseResultsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITextInput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TextInput} TextInput instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse} ListTestCaseResultsResponse instance */ - TextInput.create = function create(properties) { - return new TextInput(properties); + ListTestCaseResultsResponse.create = function create(properties) { + return new ListTestCaseResultsResponse(properties); }; /** - * Encodes the specified TextInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TextInput.verify|verify} messages. + * Encodes the specified ListTestCaseResultsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITextInput} message TextInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse} message ListTestCaseResultsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TextInput.encode = function encode(message, writer) { + ListTestCaseResultsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.text != null && Object.hasOwnProperty.call(message, "text")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); + if (message.testCaseResults != null && message.testCaseResults.length) + for (var i = 0; i < message.testCaseResults.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.encode(message.testCaseResults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified TextInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TextInput.verify|verify} messages. + * Encodes the specified ListTestCaseResultsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITextInput} message TextInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse} message ListTestCaseResultsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TextInput.encodeDelimited = function encodeDelimited(message, writer) { + ListTestCaseResultsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TextInput message from the specified reader or buffer. + * Decodes a ListTestCaseResultsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.TextInput} TextInput + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse} ListTestCaseResultsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TextInput.decode = function decode(reader, length) { + ListTestCaseResultsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TextInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.text = reader.string(); + if (!(message.testCaseResults && message.testCaseResults.length)) + message.testCaseResults = []; + message.testCaseResults.push($root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -89335,295 +88869,359 @@ }; /** - * Decodes a TextInput message from the specified reader or buffer, length delimited. + * Decodes a ListTestCaseResultsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TextInput} TextInput + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse} ListTestCaseResultsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TextInput.decodeDelimited = function decodeDelimited(reader) { + ListTestCaseResultsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TextInput message. + * Verifies a ListTestCaseResultsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TextInput.verify = function verify(message) { + ListTestCaseResultsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.text != null && message.hasOwnProperty("text")) - if (!$util.isString(message.text)) - return "text: string expected"; + if (message.testCaseResults != null && message.hasOwnProperty("testCaseResults")) { + if (!Array.isArray(message.testCaseResults)) + return "testCaseResults: array expected"; + for (var i = 0; i < message.testCaseResults.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.verify(message.testCaseResults[i]); + if (error) + return "testCaseResults." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a TextInput message from a plain object. Also converts values to their respective internal types. + * Creates a ListTestCaseResultsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TextInput} TextInput + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse} ListTestCaseResultsResponse */ - TextInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TextInput) + ListTestCaseResultsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TextInput(); - if (object.text != null) - message.text = String(object.text); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse(); + if (object.testCaseResults) { + if (!Array.isArray(object.testCaseResults)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse.testCaseResults: array expected"); + message.testCaseResults = []; + for (var i = 0; i < object.testCaseResults.length; ++i) { + if (typeof object.testCaseResults[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse.testCaseResults: object expected"); + message.testCaseResults[i] = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.fromObject(object.testCaseResults[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a TextInput message. Also converts values to other types if specified. + * Creates a plain object from a ListTestCaseResultsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TextInput} message TextInput + * @param {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse} message ListTestCaseResultsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TextInput.toObject = function toObject(message, options) { + ListTestCaseResultsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.testCaseResults = []; if (options.defaults) - object.text = ""; - if (message.text != null && message.hasOwnProperty("text")) - object.text = message.text; + object.nextPageToken = ""; + if (message.testCaseResults && message.testCaseResults.length) { + object.testCaseResults = []; + for (var j = 0; j < message.testCaseResults.length; ++j) + object.testCaseResults[j] = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.toObject(message.testCaseResults[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this TextInput to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * Converts this ListTestCaseResultsResponse to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse + * @instance + * @returns {Object.} JSON object + */ + ListTestCaseResultsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListTestCaseResultsResponse; + })(); + + /** + * TestResult enum. + * @name google.cloud.dialogflow.cx.v3beta1.TestResult + * @enum {number} + * @property {number} TEST_RESULT_UNSPECIFIED=0 TEST_RESULT_UNSPECIFIED value + * @property {number} PASSED=1 PASSED value + * @property {number} FAILED=2 FAILED value + */ + v3beta1.TestResult = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TEST_RESULT_UNSPECIFIED"] = 0; + values[valuesById[1] = "PASSED"] = 1; + values[valuesById[2] = "FAILED"] = 2; + return values; + })(); + + v3beta1.Intents = (function() { + + /** + * Constructs a new Intents service. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents an Intents + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function Intents(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Intents.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Intents; + + /** + * Creates new Intents service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {Intents} RPC service. Useful where requests and/or responses are streamed. + */ + Intents.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#listIntents}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * @typedef ListIntentsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse} [response] ListIntentsResponse + */ + + /** + * Calls ListIntents. + * @function listIntents + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest} request ListIntentsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Intents.ListIntentsCallback} callback Node-style callback called with the error, if any, and ListIntentsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Intents.prototype.listIntents = function listIntents(request, callback) { + return this.rpcCall(listIntents, $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse, request, callback); + }, "name", { value: "ListIntents" }); + + /** + * Calls ListIntents. + * @function listIntents + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents * @instance - * @returns {Object.} JSON object + * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest} request ListIntentsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - TextInput.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return TextInput; - })(); - - v3beta1.IntentInput = (function() { /** - * Properties of an IntentInput. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IIntentInput - * @property {string|null} [intent] IntentInput intent + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#getIntent}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * @typedef GetIntentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Intent} [response] Intent */ /** - * Constructs a new IntentInput. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an IntentInput. - * @implements IIntentInput - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IIntentInput=} [properties] Properties to set + * Calls GetIntent. + * @function getIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest} request GetIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Intents.GetIntentCallback} callback Node-style callback called with the error, if any, and Intent + * @returns {undefined} + * @variation 1 */ - function IntentInput(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Object.defineProperty(Intents.prototype.getIntent = function getIntent(request, callback) { + return this.rpcCall(getIntent, $root.google.cloud.dialogflow.cx.v3beta1.GetIntentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Intent, request, callback); + }, "name", { value: "GetIntent" }); /** - * IntentInput intent. - * @member {string} intent - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput + * Calls GetIntent. + * @function getIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest} request GetIntentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - IntentInput.prototype.intent = ""; /** - * Creates a new IntentInput instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IIntentInput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.IntentInput} IntentInput instance + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#createIntent}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * @typedef CreateIntentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Intent} [response] Intent */ - IntentInput.create = function create(properties) { - return new IntentInput(properties); - }; /** - * Encodes the specified IntentInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentInput.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IIntentInput} message IntentInput message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateIntent. + * @function createIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest} request CreateIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Intents.CreateIntentCallback} callback Node-style callback called with the error, if any, and Intent + * @returns {undefined} + * @variation 1 */ - IntentInput.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.intent); - return writer; - }; + Object.defineProperty(Intents.prototype.createIntent = function createIntent(request, callback) { + return this.rpcCall(createIntent, $root.google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Intent, request, callback); + }, "name", { value: "CreateIntent" }); /** - * Encodes the specified IntentInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentInput.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IIntentInput} message IntentInput message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateIntent. + * @function createIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest} request CreateIntentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - IntentInput.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes an IntentInput message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.IntentInput} IntentInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#updateIntent}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * @typedef UpdateIntentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Intent} [response] Intent */ - IntentInput.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.IntentInput(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.intent = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes an IntentInput message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.IntentInput} IntentInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls UpdateIntent. + * @function updateIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest} request UpdateIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Intents.UpdateIntentCallback} callback Node-style callback called with the error, if any, and Intent + * @returns {undefined} + * @variation 1 */ - IntentInput.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(Intents.prototype.updateIntent = function updateIntent(request, callback) { + return this.rpcCall(updateIntent, $root.google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Intent, request, callback); + }, "name", { value: "UpdateIntent" }); /** - * Verifies an IntentInput message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls UpdateIntent. + * @function updateIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest} request UpdateIntentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - IntentInput.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.intent != null && message.hasOwnProperty("intent")) - if (!$util.isString(message.intent)) - return "intent: string expected"; - return null; - }; /** - * Creates an IntentInput message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.IntentInput} IntentInput + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#deleteIntent}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * @typedef DeleteIntentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - IntentInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.IntentInput) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.IntentInput(); - if (object.intent != null) - message.intent = String(object.intent); - return message; - }; /** - * Creates a plain object from an IntentInput message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IntentInput} message IntentInput - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls DeleteIntent. + * @function deleteIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest} request DeleteIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Intents.DeleteIntentCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - IntentInput.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.intent = ""; - if (message.intent != null && message.hasOwnProperty("intent")) - object.intent = message.intent; - return object; - }; + Object.defineProperty(Intents.prototype.deleteIntent = function deleteIntent(request, callback) { + return this.rpcCall(deleteIntent, $root.google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteIntent" }); /** - * Converts this IntentInput to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput + * Calls DeleteIntent. + * @function deleteIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents * @instance - * @returns {Object.} JSON object + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest} request DeleteIntentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - IntentInput.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - return IntentInput; + return Intents; })(); - v3beta1.AudioInput = (function() { + v3beta1.Intent = (function() { /** - * Properties of an AudioInput. + * Properties of an Intent. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IAudioInput - * @property {google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig|null} [config] AudioInput config - * @property {Uint8Array|null} [audio] AudioInput audio + * @interface IIntent + * @property {string|null} [name] Intent name + * @property {string|null} [displayName] Intent displayName + * @property {Array.|null} [trainingPhrases] Intent trainingPhrases + * @property {Array.|null} [parameters] Intent parameters + * @property {number|null} [priority] Intent priority + * @property {boolean|null} [isFallback] Intent isFallback + * @property {Object.|null} [labels] Intent labels + * @property {string|null} [description] Intent description */ /** - * Constructs a new AudioInput. + * Constructs a new Intent. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an AudioInput. - * @implements IAudioInput + * @classdesc Represents an Intent. + * @implements IIntent * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IAudioInput=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IIntent=} [properties] Properties to set */ - function AudioInput(properties) { + function Intent(properties) { + this.trainingPhrases = []; + this.parameters = []; + this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -89631,88 +89229,192 @@ } /** - * AudioInput config. - * @member {google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig|null|undefined} config - * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput + * Intent name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent * @instance */ - AudioInput.prototype.config = null; + Intent.prototype.name = ""; /** - * AudioInput audio. - * @member {Uint8Array} audio - * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput + * Intent displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent * @instance */ - AudioInput.prototype.audio = $util.newBuffer([]); + Intent.prototype.displayName = ""; /** - * Creates a new AudioInput instance using the specified properties. + * Intent trainingPhrases. + * @member {Array.} trainingPhrases + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @instance + */ + Intent.prototype.trainingPhrases = $util.emptyArray; + + /** + * Intent parameters. + * @member {Array.} parameters + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @instance + */ + Intent.prototype.parameters = $util.emptyArray; + + /** + * Intent priority. + * @member {number} priority + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @instance + */ + Intent.prototype.priority = 0; + + /** + * Intent isFallback. + * @member {boolean} isFallback + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @instance + */ + Intent.prototype.isFallback = false; + + /** + * Intent labels. + * @member {Object.} labels + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @instance + */ + Intent.prototype.labels = $util.emptyObject; + + /** + * Intent description. + * @member {string} description + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @instance + */ + Intent.prototype.description = ""; + + /** + * Creates a new Intent instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IAudioInput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.AudioInput} AudioInput instance + * @param {google.cloud.dialogflow.cx.v3beta1.IIntent=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Intent} Intent instance */ - AudioInput.create = function create(properties) { - return new AudioInput(properties); + Intent.create = function create(properties) { + return new Intent(properties); }; /** - * Encodes the specified AudioInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AudioInput.verify|verify} messages. + * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IAudioInput} message AudioInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IIntent} message Intent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudioInput.encode = function encode(message, writer) { + Intent.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.config != null && Object.hasOwnProperty.call(message, "config")) - $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.encode(message.config, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.audio != null && Object.hasOwnProperty.call(message, "audio")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.audio); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.trainingPhrases != null && message.trainingPhrases.length) + for (var i = 0; i < message.trainingPhrases.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.encode(message.trainingPhrases[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.parameters != null && message.parameters.length) + for (var i = 0; i < message.parameters.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.encode(message.parameters[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.priority != null && Object.hasOwnProperty.call(message, "priority")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.priority); + if (message.isFallback != null && Object.hasOwnProperty.call(message, "isFallback")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isFallback); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.description); return writer; }; /** - * Encodes the specified AudioInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AudioInput.verify|verify} messages. + * Encodes the specified Intent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IAudioInput} message AudioInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IIntent} message Intent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudioInput.encodeDelimited = function encodeDelimited(message, writer) { + Intent.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AudioInput message from the specified reader or buffer. + * Decodes an Intent message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.AudioInput} AudioInput + * @returns {google.cloud.dialogflow.cx.v3beta1.Intent} Intent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AudioInput.decode = function decode(reader, length) { + Intent.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.AudioInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.config = $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.decode(reader, reader.uint32()); + message.name = reader.string(); break; case 2: - message.audio = reader.bytes(); + message.displayName = reader.string(); + break; + case 3: + if (!(message.trainingPhrases && message.trainingPhrases.length)) + message.trainingPhrases = []; + message.trainingPhrases.push($root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.decode(reader, reader.uint32())); + break; + case 4: + if (!(message.parameters && message.parameters.length)) + message.parameters = []; + message.parameters.push($root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.decode(reader, reader.uint32())); + break; + case 5: + message.priority = reader.int32(); + break; + case 6: + message.isFallback = reader.bool(); + break; + case 7: + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + case 8: + message.description = reader.string(); break; default: reader.skipType(tag & 7); @@ -89723,532 +89425,937 @@ }; /** - * Decodes an AudioInput message from the specified reader or buffer, length delimited. + * Decodes an Intent message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.AudioInput} AudioInput + * @returns {google.cloud.dialogflow.cx.v3beta1.Intent} Intent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AudioInput.decodeDelimited = function decodeDelimited(reader) { + Intent.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AudioInput message. + * Verifies an Intent message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AudioInput.verify = function verify(message) { + Intent.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.config != null && message.hasOwnProperty("config")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.verify(message.config); - if (error) - return "config." + error; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.trainingPhrases != null && message.hasOwnProperty("trainingPhrases")) { + if (!Array.isArray(message.trainingPhrases)) + return "trainingPhrases: array expected"; + for (var i = 0; i < message.trainingPhrases.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.verify(message.trainingPhrases[i]); + if (error) + return "trainingPhrases." + error; + } + } + if (message.parameters != null && message.hasOwnProperty("parameters")) { + if (!Array.isArray(message.parameters)) + return "parameters: array expected"; + for (var i = 0; i < message.parameters.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.verify(message.parameters[i]); + if (error) + return "parameters." + error; + } + } + if (message.priority != null && message.hasOwnProperty("priority")) + if (!$util.isInteger(message.priority)) + return "priority: integer expected"; + if (message.isFallback != null && message.hasOwnProperty("isFallback")) + if (typeof message.isFallback !== "boolean") + return "isFallback: boolean expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; } - if (message.audio != null && message.hasOwnProperty("audio")) - if (!(message.audio && typeof message.audio.length === "number" || $util.isString(message.audio))) - return "audio: buffer expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; return null; }; /** - * Creates an AudioInput message from a plain object. Also converts values to their respective internal types. + * Creates an Intent message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.AudioInput} AudioInput + * @returns {google.cloud.dialogflow.cx.v3beta1.Intent} Intent */ - AudioInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.AudioInput) + Intent.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Intent) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.AudioInput(); - if (object.config != null) { - if (typeof object.config !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.AudioInput.config: object expected"); - message.config = $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.fromObject(object.config); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.trainingPhrases) { + if (!Array.isArray(object.trainingPhrases)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Intent.trainingPhrases: array expected"); + message.trainingPhrases = []; + for (var i = 0; i < object.trainingPhrases.length; ++i) { + if (typeof object.trainingPhrases[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Intent.trainingPhrases: object expected"); + message.trainingPhrases[i] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.fromObject(object.trainingPhrases[i]); + } } - if (object.audio != null) - if (typeof object.audio === "string") - $util.base64.decode(object.audio, message.audio = $util.newBuffer($util.base64.length(object.audio)), 0); - else if (object.audio.length) - message.audio = object.audio; + if (object.parameters) { + if (!Array.isArray(object.parameters)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Intent.parameters: array expected"); + message.parameters = []; + for (var i = 0; i < object.parameters.length; ++i) { + if (typeof object.parameters[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Intent.parameters: object expected"); + message.parameters[i] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.fromObject(object.parameters[i]); + } + } + if (object.priority != null) + message.priority = object.priority | 0; + if (object.isFallback != null) + message.isFallback = Boolean(object.isFallback); + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Intent.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.description != null) + message.description = String(object.description); return message; }; /** - * Creates a plain object from an AudioInput message. Also converts values to other types if specified. + * Creates a plain object from an Intent message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent * @static - * @param {google.cloud.dialogflow.cx.v3beta1.AudioInput} message AudioInput + * @param {google.cloud.dialogflow.cx.v3beta1.Intent} message Intent * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AudioInput.toObject = function toObject(message, options) { + Intent.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.trainingPhrases = []; + object.parameters = []; + } + if (options.objects || options.defaults) + object.labels = {}; if (options.defaults) { - object.config = null; - if (options.bytes === String) - object.audio = ""; - else { - object.audio = []; - if (options.bytes !== Array) - object.audio = $util.newBuffer(object.audio); - } + object.name = ""; + object.displayName = ""; + object.priority = 0; + object.isFallback = false; + object.description = ""; } - if (message.config != null && message.hasOwnProperty("config")) - object.config = $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.toObject(message.config, options); - if (message.audio != null && message.hasOwnProperty("audio")) - object.audio = options.bytes === String ? $util.base64.encode(message.audio, 0, message.audio.length) : options.bytes === Array ? Array.prototype.slice.call(message.audio) : message.audio; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.trainingPhrases && message.trainingPhrases.length) { + object.trainingPhrases = []; + for (var j = 0; j < message.trainingPhrases.length; ++j) + object.trainingPhrases[j] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.toObject(message.trainingPhrases[j], options); + } + if (message.parameters && message.parameters.length) { + object.parameters = []; + for (var j = 0; j < message.parameters.length; ++j) + object.parameters[j] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.toObject(message.parameters[j], options); + } + if (message.priority != null && message.hasOwnProperty("priority")) + object.priority = message.priority; + if (message.isFallback != null && message.hasOwnProperty("isFallback")) + object.isFallback = message.isFallback; + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; return object; }; /** - * Converts this AudioInput to JSON. + * Converts this Intent to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent * @instance * @returns {Object.} JSON object */ - AudioInput.prototype.toJSON = function toJSON() { + Intent.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AudioInput; - })(); + Intent.TrainingPhrase = (function() { - v3beta1.EventInput = (function() { + /** + * Properties of a TrainingPhrase. + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @interface ITrainingPhrase + * @property {string|null} [id] TrainingPhrase id + * @property {Array.|null} [parts] TrainingPhrase parts + * @property {number|null} [repeatCount] TrainingPhrase repeatCount + */ - /** - * Properties of an EventInput. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IEventInput - * @property {string|null} [event] EventInput event - */ + /** + * Constructs a new TrainingPhrase. + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @classdesc Represents a TrainingPhrase. + * @implements ITrainingPhrase + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase=} [properties] Properties to set + */ + function TrainingPhrase(properties) { + this.parts = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new EventInput. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an EventInput. - * @implements IEventInput - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IEventInput=} [properties] Properties to set - */ - function EventInput(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * TrainingPhrase id. + * @member {string} id + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase + * @instance + */ + TrainingPhrase.prototype.id = ""; - /** - * EventInput event. - * @member {string} event - * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput - * @instance - */ - EventInput.prototype.event = ""; + /** + * TrainingPhrase parts. + * @member {Array.} parts + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase + * @instance + */ + TrainingPhrase.prototype.parts = $util.emptyArray; - /** - * Creates a new EventInput instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEventInput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.EventInput} EventInput instance - */ - EventInput.create = function create(properties) { - return new EventInput(properties); - }; + /** + * TrainingPhrase repeatCount. + * @member {number} repeatCount + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase + * @instance + */ + TrainingPhrase.prototype.repeatCount = 0; + + /** + * Creates a new TrainingPhrase instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase} TrainingPhrase instance + */ + TrainingPhrase.create = function create(properties) { + return new TrainingPhrase(properties); + }; + + /** + * Encodes the specified TrainingPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase} message TrainingPhrase message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TrainingPhrase.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.parts != null && message.parts.length) + for (var i = 0; i < message.parts.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.encode(message.parts[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.repeatCount != null && Object.hasOwnProperty.call(message, "repeatCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.repeatCount); + return writer; + }; + + /** + * Encodes the specified TrainingPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase} message TrainingPhrase message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TrainingPhrase.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TrainingPhrase message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase} TrainingPhrase + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TrainingPhrase.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + if (!(message.parts && message.parts.length)) + message.parts = []; + message.parts.push($root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.decode(reader, reader.uint32())); + break; + case 3: + message.repeatCount = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TrainingPhrase message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase} TrainingPhrase + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TrainingPhrase.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TrainingPhrase message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TrainingPhrase.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.parts != null && message.hasOwnProperty("parts")) { + if (!Array.isArray(message.parts)) + return "parts: array expected"; + for (var i = 0; i < message.parts.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.verify(message.parts[i]); + if (error) + return "parts." + error; + } + } + if (message.repeatCount != null && message.hasOwnProperty("repeatCount")) + if (!$util.isInteger(message.repeatCount)) + return "repeatCount: integer expected"; + return null; + }; + + /** + * Creates a TrainingPhrase message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase} TrainingPhrase + */ + TrainingPhrase.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase(); + if (object.id != null) + message.id = String(object.id); + if (object.parts) { + if (!Array.isArray(object.parts)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.parts: array expected"); + message.parts = []; + for (var i = 0; i < object.parts.length; ++i) { + if (typeof object.parts[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.parts: object expected"); + message.parts[i] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.fromObject(object.parts[i]); + } + } + if (object.repeatCount != null) + message.repeatCount = object.repeatCount | 0; + return message; + }; + + /** + * Creates a plain object from a TrainingPhrase message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase} message TrainingPhrase + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TrainingPhrase.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.parts = []; + if (options.defaults) { + object.id = ""; + object.repeatCount = 0; + } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.parts && message.parts.length) { + object.parts = []; + for (var j = 0; j < message.parts.length; ++j) + object.parts[j] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.toObject(message.parts[j], options); + } + if (message.repeatCount != null && message.hasOwnProperty("repeatCount")) + object.repeatCount = message.repeatCount; + return object; + }; + + /** + * Converts this TrainingPhrase to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase + * @instance + * @returns {Object.} JSON object + */ + TrainingPhrase.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + TrainingPhrase.Part = (function() { + + /** + * Properties of a Part. + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase + * @interface IPart + * @property {string|null} [text] Part text + * @property {string|null} [parameterId] Part parameterId + */ + + /** + * Constructs a new Part. + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase + * @classdesc Represents a Part. + * @implements IPart + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart=} [properties] Properties to set + */ + function Part(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Part text. + * @member {string} text + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part + * @instance + */ + Part.prototype.text = ""; + + /** + * Part parameterId. + * @member {string} parameterId + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part + * @instance + */ + Part.prototype.parameterId = ""; + + /** + * Creates a new Part instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part} Part instance + */ + Part.create = function create(properties) { + return new Part(properties); + }; + + /** + * Encodes the specified Part message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart} message Part message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Part.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.text != null && Object.hasOwnProperty.call(message, "text")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); + if (message.parameterId != null && Object.hasOwnProperty.call(message, "parameterId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parameterId); + return writer; + }; + + /** + * Encodes the specified Part message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart} message Part message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Part.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Part message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part} Part + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Part.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.text = reader.string(); + break; + case 2: + message.parameterId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified EventInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventInput.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEventInput} message EventInput message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EventInput.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.event != null && Object.hasOwnProperty.call(message, "event")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.event); - return writer; - }; + /** + * Decodes a Part message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part} Part + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Part.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified EventInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventInput.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEventInput} message EventInput message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EventInput.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Verifies a Part message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Part.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.text != null && message.hasOwnProperty("text")) + if (!$util.isString(message.text)) + return "text: string expected"; + if (message.parameterId != null && message.hasOwnProperty("parameterId")) + if (!$util.isString(message.parameterId)) + return "parameterId: string expected"; + return null; + }; - /** - * Decodes an EventInput message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.EventInput} EventInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EventInput.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.EventInput(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.event = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a Part message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part} Part + */ + Part.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part(); + if (object.text != null) + message.text = String(object.text); + if (object.parameterId != null) + message.parameterId = String(object.parameterId); + return message; + }; - /** - * Decodes an EventInput message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.EventInput} EventInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EventInput.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a plain object from a Part message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part} message Part + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Part.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.text = ""; + object.parameterId = ""; + } + if (message.text != null && message.hasOwnProperty("text")) + object.text = message.text; + if (message.parameterId != null && message.hasOwnProperty("parameterId")) + object.parameterId = message.parameterId; + return object; + }; - /** - * Verifies an EventInput message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EventInput.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.event != null && message.hasOwnProperty("event")) - if (!$util.isString(message.event)) - return "event: string expected"; - return null; - }; + /** + * Converts this Part to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part + * @instance + * @returns {Object.} JSON object + */ + Part.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates an EventInput message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.EventInput} EventInput - */ - EventInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.EventInput) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.EventInput(); - if (object.event != null) - message.event = String(object.event); - return message; - }; + return Part; + })(); - /** - * Creates a plain object from an EventInput message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EventInput} message EventInput - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - EventInput.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.event = ""; - if (message.event != null && message.hasOwnProperty("event")) - object.event = message.event; - return object; - }; + return TrainingPhrase; + })(); - /** - * Converts this EventInput to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput - * @instance - * @returns {Object.} JSON object - */ - EventInput.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Intent.Parameter = (function() { - return EventInput; - })(); + /** + * Properties of a Parameter. + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @interface IParameter + * @property {string|null} [id] Parameter id + * @property {string|null} [entityType] Parameter entityType + * @property {boolean|null} [isList] Parameter isList + * @property {boolean|null} [redact] Parameter redact + */ - v3beta1.DtmfInput = (function() { + /** + * Constructs a new Parameter. + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @classdesc Represents a Parameter. + * @implements IParameter + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.Intent.IParameter=} [properties] Properties to set + */ + function Parameter(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Properties of a DtmfInput. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDtmfInput - * @property {string|null} [digits] DtmfInput digits - * @property {string|null} [finishDigit] DtmfInput finishDigit - */ + /** + * Parameter id. + * @member {string} id + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @instance + */ + Parameter.prototype.id = ""; - /** - * Constructs a new DtmfInput. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DtmfInput. - * @implements IDtmfInput - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDtmfInput=} [properties] Properties to set - */ - function DtmfInput(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Parameter entityType. + * @member {string} entityType + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @instance + */ + Parameter.prototype.entityType = ""; - /** - * DtmfInput digits. - * @member {string} digits - * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput - * @instance - */ - DtmfInput.prototype.digits = ""; + /** + * Parameter isList. + * @member {boolean} isList + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @instance + */ + Parameter.prototype.isList = false; - /** - * DtmfInput finishDigit. - * @member {string} finishDigit - * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput - * @instance - */ - DtmfInput.prototype.finishDigit = ""; + /** + * Parameter redact. + * @member {boolean} redact + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @instance + */ + Parameter.prototype.redact = false; - /** - * Creates a new DtmfInput instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDtmfInput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DtmfInput} DtmfInput instance - */ - DtmfInput.create = function create(properties) { - return new DtmfInput(properties); - }; + /** + * Creates a new Parameter instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Intent.IParameter=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.Parameter} Parameter instance + */ + Parameter.create = function create(properties) { + return new Parameter(properties); + }; - /** - * Encodes the specified DtmfInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DtmfInput.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDtmfInput} message DtmfInput message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DtmfInput.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.digits != null && Object.hasOwnProperty.call(message, "digits")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.digits); - if (message.finishDigit != null && Object.hasOwnProperty.call(message, "finishDigit")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.finishDigit); - return writer; - }; + /** + * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Intent.IParameter} message Parameter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Parameter.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityType); + if (message.isList != null && Object.hasOwnProperty.call(message, "isList")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isList); + if (message.redact != null && Object.hasOwnProperty.call(message, "redact")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.redact); + return writer; + }; - /** - * Encodes the specified DtmfInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DtmfInput.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDtmfInput} message DtmfInput message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DtmfInput.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Intent.IParameter} message Parameter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Parameter.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a DtmfInput message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.DtmfInput} DtmfInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DtmfInput.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.digits = reader.string(); - break; - case 2: - message.finishDigit = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Decodes a Parameter message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.Parameter} Parameter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Parameter.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + message.entityType = reader.string(); + break; + case 3: + message.isList = reader.bool(); + break; + case 4: + message.redact = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a DtmfInput message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DtmfInput} DtmfInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DtmfInput.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a Parameter message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.Parameter} Parameter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Parameter.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a DtmfInput message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DtmfInput.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.digits != null && message.hasOwnProperty("digits")) - if (!$util.isString(message.digits)) - return "digits: string expected"; - if (message.finishDigit != null && message.hasOwnProperty("finishDigit")) - if (!$util.isString(message.finishDigit)) - return "finishDigit: string expected"; - return null; - }; + /** + * Verifies a Parameter message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Parameter.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.entityType != null && message.hasOwnProperty("entityType")) + if (!$util.isString(message.entityType)) + return "entityType: string expected"; + if (message.isList != null && message.hasOwnProperty("isList")) + if (typeof message.isList !== "boolean") + return "isList: boolean expected"; + if (message.redact != null && message.hasOwnProperty("redact")) + if (typeof message.redact !== "boolean") + return "redact: boolean expected"; + return null; + }; - /** - * Creates a DtmfInput message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DtmfInput} DtmfInput - */ - DtmfInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput) + /** + * Creates a Parameter message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.Parameter} Parameter + */ + Parameter.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter(); + if (object.id != null) + message.id = String(object.id); + if (object.entityType != null) + message.entityType = String(object.entityType); + if (object.isList != null) + message.isList = Boolean(object.isList); + if (object.redact != null) + message.redact = Boolean(object.redact); + return message; + }; + + /** + * Creates a plain object from a Parameter message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Intent.Parameter} message Parameter + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Parameter.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.id = ""; + object.entityType = ""; + object.isList = false; + object.redact = false; + } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.entityType != null && message.hasOwnProperty("entityType")) + object.entityType = message.entityType; + if (message.isList != null && message.hasOwnProperty("isList")) + object.isList = message.isList; + if (message.redact != null && message.hasOwnProperty("redact")) + object.redact = message.redact; return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput(); - if (object.digits != null) - message.digits = String(object.digits); - if (object.finishDigit != null) - message.finishDigit = String(object.finishDigit); - return message; - }; + }; - /** - * Creates a plain object from a DtmfInput message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DtmfInput} message DtmfInput - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DtmfInput.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.digits = ""; - object.finishDigit = ""; - } - if (message.digits != null && message.hasOwnProperty("digits")) - object.digits = message.digits; - if (message.finishDigit != null && message.hasOwnProperty("finishDigit")) - object.finishDigit = message.finishDigit; - return object; - }; + /** + * Converts this Parameter to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @instance + * @returns {Object.} JSON object + */ + Parameter.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this DtmfInput to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput - * @instance - * @returns {Object.} JSON object - */ - DtmfInput.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return Parameter; + })(); - return DtmfInput; + return Intent; })(); - v3beta1.Match = (function() { + v3beta1.ListIntentsRequest = (function() { /** - * Properties of a Match. + * Properties of a ListIntentsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IMatch - * @property {google.cloud.dialogflow.cx.v3beta1.IIntent|null} [intent] Match intent - * @property {string|null} [event] Match event - * @property {google.protobuf.IStruct|null} [parameters] Match parameters - * @property {string|null} [resolvedInput] Match resolvedInput - * @property {google.cloud.dialogflow.cx.v3beta1.Match.MatchType|null} [matchType] Match matchType - * @property {number|null} [confidence] Match confidence + * @interface IListIntentsRequest + * @property {string|null} [parent] ListIntentsRequest parent + * @property {string|null} [languageCode] ListIntentsRequest languageCode + * @property {google.cloud.dialogflow.cx.v3beta1.IntentView|null} [intentView] ListIntentsRequest intentView + * @property {number|null} [pageSize] ListIntentsRequest pageSize + * @property {string|null} [pageToken] ListIntentsRequest pageToken */ /** - * Constructs a new Match. + * Constructs a new ListIntentsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a Match. - * @implements IMatch + * @classdesc Represents a ListIntentsRequest. + * @implements IListIntentsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IMatch=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest=} [properties] Properties to set */ - function Match(properties) { + function ListIntentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -90256,140 +90363,127 @@ } /** - * Match intent. - * @member {google.cloud.dialogflow.cx.v3beta1.IIntent|null|undefined} intent - * @memberof google.cloud.dialogflow.cx.v3beta1.Match - * @instance - */ - Match.prototype.intent = null; - - /** - * Match event. - * @member {string} event - * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * ListIntentsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest * @instance */ - Match.prototype.event = ""; + ListIntentsRequest.prototype.parent = ""; /** - * Match parameters. - * @member {google.protobuf.IStruct|null|undefined} parameters - * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * ListIntentsRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest * @instance */ - Match.prototype.parameters = null; + ListIntentsRequest.prototype.languageCode = ""; /** - * Match resolvedInput. - * @member {string} resolvedInput - * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * ListIntentsRequest intentView. + * @member {google.cloud.dialogflow.cx.v3beta1.IntentView} intentView + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest * @instance */ - Match.prototype.resolvedInput = ""; + ListIntentsRequest.prototype.intentView = 0; /** - * Match matchType. - * @member {google.cloud.dialogflow.cx.v3beta1.Match.MatchType} matchType - * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * ListIntentsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest * @instance */ - Match.prototype.matchType = 0; + ListIntentsRequest.prototype.pageSize = 0; /** - * Match confidence. - * @member {number} confidence - * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * ListIntentsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest * @instance */ - Match.prototype.confidence = 0; + ListIntentsRequest.prototype.pageToken = ""; /** - * Creates a new Match instance using the specified properties. + * Creates a new ListIntentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IMatch=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Match} Match instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest} ListIntentsRequest instance */ - Match.create = function create(properties) { - return new Match(properties); + ListIntentsRequest.create = function create(properties) { + return new ListIntentsRequest(properties); }; /** - * Encodes the specified Match message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Match.verify|verify} messages. + * Encodes the specified ListIntentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IMatch} message Match message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest} message ListIntentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Match.encode = function encode(message, writer) { + ListIntentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) - $root.google.cloud.dialogflow.cx.v3beta1.Intent.encode(message.intent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - $root.google.protobuf.Struct.encode(message.parameters, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.resolvedInput != null && Object.hasOwnProperty.call(message, "resolvedInput")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.resolvedInput); - if (message.matchType != null && Object.hasOwnProperty.call(message, "matchType")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.matchType); - if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) - writer.uint32(/* id 5, wireType 5 =*/45).float(message.confidence); - if (message.event != null && Object.hasOwnProperty.call(message, "event")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.event); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.intentView != null && Object.hasOwnProperty.call(message, "intentView")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.intentView); return writer; }; /** - * Encodes the specified Match message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Match.verify|verify} messages. + * Encodes the specified ListIntentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IMatch} message Match message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest} message ListIntentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Match.encodeDelimited = function encodeDelimited(message, writer) { + ListIntentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Match message from the specified reader or buffer. + * Decodes a ListIntentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Match} Match + * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest} ListIntentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Match.decode = function decode(reader, length) { + ListIntentsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Match(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.decode(reader, reader.uint32()); - break; - case 6: - message.event = reader.string(); + message.parent = reader.string(); break; case 2: - message.parameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + message.languageCode = reader.string(); + break; + case 5: + message.intentView = reader.int32(); break; case 3: - message.resolvedInput = reader.string(); + message.pageSize = reader.int32(); break; case 4: - message.matchType = reader.int32(); - break; - case 5: - message.confidence = reader.float(); + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -90400,222 +90494,160 @@ }; /** - * Decodes a Match message from the specified reader or buffer, length delimited. + * Decodes a ListIntentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Match} Match + * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest} ListIntentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Match.decodeDelimited = function decodeDelimited(reader) { + ListIntentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Match message. + * Verifies a ListIntentsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Match.verify = function verify(message) { + ListIntentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.intent != null && message.hasOwnProperty("intent")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.verify(message.intent); - if (error) - return "intent." + error; - } - if (message.event != null && message.hasOwnProperty("event")) - if (!$util.isString(message.event)) - return "event: string expected"; - if (message.parameters != null && message.hasOwnProperty("parameters")) { - var error = $root.google.protobuf.Struct.verify(message.parameters); - if (error) - return "parameters." + error; - } - if (message.resolvedInput != null && message.hasOwnProperty("resolvedInput")) - if (!$util.isString(message.resolvedInput)) - return "resolvedInput: string expected"; - if (message.matchType != null && message.hasOwnProperty("matchType")) - switch (message.matchType) { + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + if (message.intentView != null && message.hasOwnProperty("intentView")) + switch (message.intentView) { default: - return "matchType: enum value expected"; + return "intentView: enum value expected"; case 0: case 1: case 2: - case 3: - case 4: - case 5: - case 6: break; } - if (message.confidence != null && message.hasOwnProperty("confidence")) - if (typeof message.confidence !== "number") - return "confidence: number expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a Match message from a plain object. Also converts values to their respective internal types. + * Creates a ListIntentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Match} Match + * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest} ListIntentsRequest */ - Match.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Match) + ListIntentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Match(); - if (object.intent != null) { - if (typeof object.intent !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Match.intent: object expected"); - message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.fromObject(object.intent); - } - if (object.event != null) - message.event = String(object.event); - if (object.parameters != null) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Match.parameters: object expected"); - message.parameters = $root.google.protobuf.Struct.fromObject(object.parameters); - } - if (object.resolvedInput != null) - message.resolvedInput = String(object.resolvedInput); - switch (object.matchType) { - case "MATCH_TYPE_UNSPECIFIED": + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + switch (object.intentView) { + case "INTENT_VIEW_UNSPECIFIED": case 0: - message.matchType = 0; + message.intentView = 0; break; - case "INTENT": + case "INTENT_VIEW_PARTIAL": case 1: - message.matchType = 1; + message.intentView = 1; break; - case "DIRECT_INTENT": + case "INTENT_VIEW_FULL": case 2: - message.matchType = 2; - break; - case "PARAMETER_FILLING": - case 3: - message.matchType = 3; - break; - case "NO_MATCH": - case 4: - message.matchType = 4; - break; - case "NO_INPUT": - case 5: - message.matchType = 5; - break; - case "EVENT": - case 6: - message.matchType = 6; + message.intentView = 2; break; } - if (object.confidence != null) - message.confidence = Number(object.confidence); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a Match message. Also converts values to other types if specified. + * Creates a plain object from a ListIntentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Match} message Match + * @param {google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest} message ListIntentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Match.toObject = function toObject(message, options) { + ListIntentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.intent = null; - object.parameters = null; - object.resolvedInput = ""; - object.matchType = options.enums === String ? "MATCH_TYPE_UNSPECIFIED" : 0; - object.confidence = 0; - object.event = ""; + object.parent = ""; + object.languageCode = ""; + object.pageSize = 0; + object.pageToken = ""; + object.intentView = options.enums === String ? "INTENT_VIEW_UNSPECIFIED" : 0; } - if (message.intent != null && message.hasOwnProperty("intent")) - object.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.toObject(message.intent, options); - if (message.parameters != null && message.hasOwnProperty("parameters")) - object.parameters = $root.google.protobuf.Struct.toObject(message.parameters, options); - if (message.resolvedInput != null && message.hasOwnProperty("resolvedInput")) - object.resolvedInput = message.resolvedInput; - if (message.matchType != null && message.hasOwnProperty("matchType")) - object.matchType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.Match.MatchType[message.matchType] : message.matchType; - if (message.confidence != null && message.hasOwnProperty("confidence")) - object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; - if (message.event != null && message.hasOwnProperty("event")) - object.event = message.event; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.intentView != null && message.hasOwnProperty("intentView")) + object.intentView = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.IntentView[message.intentView] : message.intentView; return object; }; /** - * Converts this Match to JSON. + * Converts this ListIntentsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest * @instance * @returns {Object.} JSON object */ - Match.prototype.toJSON = function toJSON() { + ListIntentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * MatchType enum. - * @name google.cloud.dialogflow.cx.v3beta1.Match.MatchType - * @enum {number} - * @property {number} MATCH_TYPE_UNSPECIFIED=0 MATCH_TYPE_UNSPECIFIED value - * @property {number} INTENT=1 INTENT value - * @property {number} DIRECT_INTENT=2 DIRECT_INTENT value - * @property {number} PARAMETER_FILLING=3 PARAMETER_FILLING value - * @property {number} NO_MATCH=4 NO_MATCH value - * @property {number} NO_INPUT=5 NO_INPUT value - * @property {number} EVENT=6 EVENT value - */ - Match.MatchType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MATCH_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "INTENT"] = 1; - values[valuesById[2] = "DIRECT_INTENT"] = 2; - values[valuesById[3] = "PARAMETER_FILLING"] = 3; - values[valuesById[4] = "NO_MATCH"] = 4; - values[valuesById[5] = "NO_INPUT"] = 5; - values[valuesById[6] = "EVENT"] = 6; - return values; - })(); - - return Match; + return ListIntentsRequest; })(); - v3beta1.MatchIntentRequest = (function() { + v3beta1.ListIntentsResponse = (function() { /** - * Properties of a MatchIntentRequest. + * Properties of a ListIntentsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IMatchIntentRequest - * @property {string|null} [session] MatchIntentRequest session - * @property {google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null} [queryParams] MatchIntentRequest queryParams - * @property {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null} [queryInput] MatchIntentRequest queryInput + * @interface IListIntentsResponse + * @property {Array.|null} [intents] ListIntentsResponse intents + * @property {string|null} [nextPageToken] ListIntentsResponse nextPageToken */ /** - * Constructs a new MatchIntentRequest. + * Constructs a new ListIntentsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a MatchIntentRequest. - * @implements IMatchIntentRequest + * @classdesc Represents a ListIntentsResponse. + * @implements IListIntentsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse=} [properties] Properties to set */ - function MatchIntentRequest(properties) { + function ListIntentsResponse(properties) { + this.intents = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -90623,101 +90655,91 @@ } /** - * MatchIntentRequest session. - * @member {string} session - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest - * @instance - */ - MatchIntentRequest.prototype.session = ""; - - /** - * MatchIntentRequest queryParams. - * @member {google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null|undefined} queryParams - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * ListIntentsResponse intents. + * @member {Array.} intents + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse * @instance */ - MatchIntentRequest.prototype.queryParams = null; + ListIntentsResponse.prototype.intents = $util.emptyArray; /** - * MatchIntentRequest queryInput. - * @member {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null|undefined} queryInput - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * ListIntentsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse * @instance */ - MatchIntentRequest.prototype.queryInput = null; + ListIntentsResponse.prototype.nextPageToken = ""; /** - * Creates a new MatchIntentRequest instance using the specified properties. + * Creates a new ListIntentsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest} MatchIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse} ListIntentsResponse instance */ - MatchIntentRequest.create = function create(properties) { - return new MatchIntentRequest(properties); + ListIntentsResponse.create = function create(properties) { + return new ListIntentsResponse(properties); }; /** - * Encodes the specified MatchIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.verify|verify} messages. + * Encodes the specified ListIntentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest} message MatchIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse} message ListIntentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MatchIntentRequest.encode = function encode(message, writer) { + ListIntentsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.session != null && Object.hasOwnProperty.call(message, "session")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.session); - if (message.queryParams != null && Object.hasOwnProperty.call(message, "queryParams")) - $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.encode(message.queryParams, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.queryInput != null && Object.hasOwnProperty.call(message, "queryInput")) - $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.encode(message.queryInput, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.intents != null && message.intents.length) + for (var i = 0; i < message.intents.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Intent.encode(message.intents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified MatchIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.verify|verify} messages. + * Encodes the specified ListIntentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest} message MatchIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse} message ListIntentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MatchIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListIntentsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MatchIntentRequest message from the specified reader or buffer. + * Decodes a ListIntentsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest} MatchIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse} ListIntentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MatchIntentRequest.decode = function decode(reader, length) { + ListIntentsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.session = reader.string(); + if (!(message.intents && message.intents.length)) + message.intents = []; + message.intents.push($root.google.cloud.dialogflow.cx.v3beta1.Intent.decode(reader, reader.uint32())); break; case 2: - message.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.decode(reader, reader.uint32()); - break; - case 3: - message.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -90728,140 +90750,134 @@ }; /** - * Decodes a MatchIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a ListIntentsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest} MatchIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse} ListIntentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MatchIntentRequest.decodeDelimited = function decodeDelimited(reader) { + ListIntentsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MatchIntentRequest message. + * Verifies a ListIntentsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MatchIntentRequest.verify = function verify(message) { + ListIntentsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.session != null && message.hasOwnProperty("session")) - if (!$util.isString(message.session)) - return "session: string expected"; - if (message.queryParams != null && message.hasOwnProperty("queryParams")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.verify(message.queryParams); - if (error) - return "queryParams." + error; - } - if (message.queryInput != null && message.hasOwnProperty("queryInput")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.verify(message.queryInput); - if (error) - return "queryInput." + error; + if (message.intents != null && message.hasOwnProperty("intents")) { + if (!Array.isArray(message.intents)) + return "intents: array expected"; + for (var i = 0; i < message.intents.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.verify(message.intents[i]); + if (error) + return "intents." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a MatchIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListIntentsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest} MatchIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse} ListIntentsResponse */ - MatchIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest) + ListIntentsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest(); - if (object.session != null) - message.session = String(object.session); - if (object.queryParams != null) { - if (typeof object.queryParams !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.queryParams: object expected"); - message.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.fromObject(object.queryParams); - } - if (object.queryInput != null) { - if (typeof object.queryInput !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.queryInput: object expected"); - message.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.fromObject(object.queryInput); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse(); + if (object.intents) { + if (!Array.isArray(object.intents)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse.intents: array expected"); + message.intents = []; + for (var i = 0; i < object.intents.length; ++i) { + if (typeof object.intents[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse.intents: object expected"); + message.intents[i] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.fromObject(object.intents[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a MatchIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListIntentsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest} message MatchIntentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse} message ListIntentsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MatchIntentRequest.toObject = function toObject(message, options) { + ListIntentsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.session = ""; - object.queryParams = null; - object.queryInput = null; + if (options.arrays || options.defaults) + object.intents = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.intents && message.intents.length) { + object.intents = []; + for (var j = 0; j < message.intents.length; ++j) + object.intents[j] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.toObject(message.intents[j], options); } - if (message.session != null && message.hasOwnProperty("session")) - object.session = message.session; - if (message.queryParams != null && message.hasOwnProperty("queryParams")) - object.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.toObject(message.queryParams, options); - if (message.queryInput != null && message.hasOwnProperty("queryInput")) - object.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.toObject(message.queryInput, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this MatchIntentRequest to JSON. + * Converts this ListIntentsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse * @instance * @returns {Object.} JSON object */ - MatchIntentRequest.prototype.toJSON = function toJSON() { + ListIntentsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MatchIntentRequest; + return ListIntentsResponse; })(); - v3beta1.MatchIntentResponse = (function() { + v3beta1.GetIntentRequest = (function() { /** - * Properties of a MatchIntentResponse. + * Properties of a GetIntentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IMatchIntentResponse - * @property {string|null} [text] MatchIntentResponse text - * @property {string|null} [triggerIntent] MatchIntentResponse triggerIntent - * @property {string|null} [transcript] MatchIntentResponse transcript - * @property {string|null} [triggerEvent] MatchIntentResponse triggerEvent - * @property {Array.|null} [matches] MatchIntentResponse matches - * @property {google.cloud.dialogflow.cx.v3beta1.IPage|null} [currentPage] MatchIntentResponse currentPage + * @interface IGetIntentRequest + * @property {string|null} [name] GetIntentRequest name + * @property {string|null} [languageCode] GetIntentRequest languageCode */ /** - * Constructs a new MatchIntentResponse. + * Constructs a new GetIntentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a MatchIntentResponse. - * @implements IMatchIntentResponse + * @classdesc Represents a GetIntentRequest. + * @implements IGetIntentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest=} [properties] Properties to set */ - function MatchIntentResponse(properties) { - this.matches = []; + function GetIntentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -90869,157 +90885,88 @@ } /** - * MatchIntentResponse text. - * @member {string} text - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse - * @instance - */ - MatchIntentResponse.prototype.text = ""; - - /** - * MatchIntentResponse triggerIntent. - * @member {string} triggerIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse - * @instance - */ - MatchIntentResponse.prototype.triggerIntent = ""; - - /** - * MatchIntentResponse transcript. - * @member {string} transcript - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse - * @instance - */ - MatchIntentResponse.prototype.transcript = ""; - - /** - * MatchIntentResponse triggerEvent. - * @member {string} triggerEvent - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse - * @instance - */ - MatchIntentResponse.prototype.triggerEvent = ""; - - /** - * MatchIntentResponse matches. - * @member {Array.} matches - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse - * @instance - */ - MatchIntentResponse.prototype.matches = $util.emptyArray; - - /** - * MatchIntentResponse currentPage. - * @member {google.cloud.dialogflow.cx.v3beta1.IPage|null|undefined} currentPage - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * GetIntentRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest * @instance */ - MatchIntentResponse.prototype.currentPage = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + GetIntentRequest.prototype.name = ""; /** - * MatchIntentResponse query. - * @member {"text"|"triggerIntent"|"transcript"|"triggerEvent"|undefined} query - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * GetIntentRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest * @instance */ - Object.defineProperty(MatchIntentResponse.prototype, "query", { - get: $util.oneOfGetter($oneOfFields = ["text", "triggerIntent", "transcript", "triggerEvent"]), - set: $util.oneOfSetter($oneOfFields) - }); + GetIntentRequest.prototype.languageCode = ""; /** - * Creates a new MatchIntentResponse instance using the specified properties. + * Creates a new GetIntentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse} MatchIntentResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GetIntentRequest} GetIntentRequest instance */ - MatchIntentResponse.create = function create(properties) { - return new MatchIntentResponse(properties); + GetIntentRequest.create = function create(properties) { + return new GetIntentRequest(properties); }; /** - * Encodes the specified MatchIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse.verify|verify} messages. + * Encodes the specified GetIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetIntentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse} message MatchIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest} message GetIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MatchIntentResponse.encode = function encode(message, writer) { + GetIntentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.text != null && Object.hasOwnProperty.call(message, "text")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); - if (message.triggerIntent != null && Object.hasOwnProperty.call(message, "triggerIntent")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.triggerIntent); - if (message.transcript != null && Object.hasOwnProperty.call(message, "transcript")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.transcript); - if (message.matches != null && message.matches.length) - for (var i = 0; i < message.matches.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Match.encode(message.matches[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) - $root.google.cloud.dialogflow.cx.v3beta1.Page.encode(message.currentPage, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.triggerEvent != null && Object.hasOwnProperty.call(message, "triggerEvent")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.triggerEvent); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); return writer; }; /** - * Encodes the specified MatchIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse.verify|verify} messages. + * Encodes the specified GetIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetIntentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse} message MatchIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest} message GetIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MatchIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MatchIntentResponse message from the specified reader or buffer. + * Decodes a GetIntentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse} MatchIntentResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.GetIntentRequest} GetIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MatchIntentResponse.decode = function decode(reader, length) { + GetIntentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetIntentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.text = reader.string(); + message.name = reader.string(); break; case 2: - message.triggerIntent = reader.string(); - break; - case 3: - message.transcript = reader.string(); - break; - case 6: - message.triggerEvent = reader.string(); - break; - case 4: - if (!(message.matches && message.matches.length)) - message.matches = []; - message.matches.push($root.google.cloud.dialogflow.cx.v3beta1.Match.decode(reader, reader.uint32())); - break; - case 5: - message.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.decode(reader, reader.uint32()); + message.languageCode = reader.string(); break; default: reader.skipType(tag & 7); @@ -91030,195 +90977,118 @@ }; /** - * Decodes a MatchIntentResponse message from the specified reader or buffer, length delimited. + * Decodes a GetIntentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse} MatchIntentResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.GetIntentRequest} GetIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MatchIntentResponse.decodeDelimited = function decodeDelimited(reader) { + GetIntentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MatchIntentResponse message. + * Verifies a GetIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MatchIntentResponse.verify = function verify(message) { + GetIntentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.text != null && message.hasOwnProperty("text")) { - properties.query = 1; - if (!$util.isString(message.text)) - return "text: string expected"; - } - if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { - if (properties.query === 1) - return "query: multiple values"; - properties.query = 1; - if (!$util.isString(message.triggerIntent)) - return "triggerIntent: string expected"; - } - if (message.transcript != null && message.hasOwnProperty("transcript")) { - if (properties.query === 1) - return "query: multiple values"; - properties.query = 1; - if (!$util.isString(message.transcript)) - return "transcript: string expected"; - } - if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { - if (properties.query === 1) - return "query: multiple values"; - properties.query = 1; - if (!$util.isString(message.triggerEvent)) - return "triggerEvent: string expected"; - } - if (message.matches != null && message.hasOwnProperty("matches")) { - if (!Array.isArray(message.matches)) - return "matches: array expected"; - for (var i = 0; i < message.matches.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Match.verify(message.matches[i]); - if (error) - return "matches." + error; - } - } - if (message.currentPage != null && message.hasOwnProperty("currentPage")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Page.verify(message.currentPage); - if (error) - return "currentPage." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates a MatchIntentResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetIntentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse} MatchIntentResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.GetIntentRequest} GetIntentRequest */ - MatchIntentResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse) + GetIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetIntentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse(); - if (object.text != null) - message.text = String(object.text); - if (object.triggerIntent != null) - message.triggerIntent = String(object.triggerIntent); - if (object.transcript != null) - message.transcript = String(object.transcript); - if (object.triggerEvent != null) - message.triggerEvent = String(object.triggerEvent); - if (object.matches) { - if (!Array.isArray(object.matches)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse.matches: array expected"); - message.matches = []; - for (var i = 0; i < object.matches.length; ++i) { - if (typeof object.matches[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse.matches: object expected"); - message.matches[i] = $root.google.cloud.dialogflow.cx.v3beta1.Match.fromObject(object.matches[i]); - } - } - if (object.currentPage != null) { - if (typeof object.currentPage !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse.currentPage: object expected"); - message.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.fromObject(object.currentPage); - } - return message; - }; - - /** - * Creates a plain object from a MatchIntentResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse} message MatchIntentResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MatchIntentResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.matches = []; - if (options.defaults) - object.currentPage = null; - if (message.text != null && message.hasOwnProperty("text")) { - object.text = message.text; - if (options.oneofs) - object.query = "text"; - } - if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { - object.triggerIntent = message.triggerIntent; - if (options.oneofs) - object.query = "triggerIntent"; - } - if (message.transcript != null && message.hasOwnProperty("transcript")) { - object.transcript = message.transcript; - if (options.oneofs) - object.query = "transcript"; - } - if (message.matches && message.matches.length) { - object.matches = []; - for (var j = 0; j < message.matches.length; ++j) - object.matches[j] = $root.google.cloud.dialogflow.cx.v3beta1.Match.toObject(message.matches[j], options); - } - if (message.currentPage != null && message.hasOwnProperty("currentPage")) - object.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.toObject(message.currentPage, options); - if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { - object.triggerEvent = message.triggerEvent; - if (options.oneofs) - object.query = "triggerEvent"; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetIntentRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + return message; + }; + + /** + * Creates a plain object from a GetIntentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.GetIntentRequest} message GetIntentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetIntentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.languageCode = ""; } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this MatchIntentResponse to JSON. + * Converts this GetIntentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest * @instance * @returns {Object.} JSON object */ - MatchIntentResponse.prototype.toJSON = function toJSON() { + GetIntentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MatchIntentResponse; + return GetIntentRequest; })(); - v3beta1.FulfillIntentRequest = (function() { + v3beta1.CreateIntentRequest = (function() { /** - * Properties of a FulfillIntentRequest. + * Properties of a CreateIntentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IFulfillIntentRequest - * @property {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest|null} [matchIntentRequest] FulfillIntentRequest matchIntentRequest - * @property {google.cloud.dialogflow.cx.v3beta1.IMatch|null} [match] FulfillIntentRequest match - * @property {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null} [outputAudioConfig] FulfillIntentRequest outputAudioConfig + * @interface ICreateIntentRequest + * @property {string|null} [parent] CreateIntentRequest parent + * @property {google.cloud.dialogflow.cx.v3beta1.IIntent|null} [intent] CreateIntentRequest intent + * @property {string|null} [languageCode] CreateIntentRequest languageCode */ /** - * Constructs a new FulfillIntentRequest. + * Constructs a new CreateIntentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a FulfillIntentRequest. - * @implements IFulfillIntentRequest + * @classdesc Represents a CreateIntentRequest. + * @implements ICreateIntentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest=} [properties] Properties to set */ - function FulfillIntentRequest(properties) { + function CreateIntentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -91226,101 +91096,101 @@ } /** - * FulfillIntentRequest matchIntentRequest. - * @member {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest|null|undefined} matchIntentRequest - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * CreateIntentRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest * @instance */ - FulfillIntentRequest.prototype.matchIntentRequest = null; + CreateIntentRequest.prototype.parent = ""; /** - * FulfillIntentRequest match. - * @member {google.cloud.dialogflow.cx.v3beta1.IMatch|null|undefined} match - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * CreateIntentRequest intent. + * @member {google.cloud.dialogflow.cx.v3beta1.IIntent|null|undefined} intent + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest * @instance */ - FulfillIntentRequest.prototype.match = null; + CreateIntentRequest.prototype.intent = null; /** - * FulfillIntentRequest outputAudioConfig. - * @member {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null|undefined} outputAudioConfig - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * CreateIntentRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest * @instance */ - FulfillIntentRequest.prototype.outputAudioConfig = null; + CreateIntentRequest.prototype.languageCode = ""; /** - * Creates a new FulfillIntentRequest instance using the specified properties. + * Creates a new CreateIntentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest} FulfillIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest} CreateIntentRequest instance */ - FulfillIntentRequest.create = function create(properties) { - return new FulfillIntentRequest(properties); + CreateIntentRequest.create = function create(properties) { + return new CreateIntentRequest(properties); }; /** - * Encodes the specified FulfillIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest.verify|verify} messages. + * Encodes the specified CreateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest} message FulfillIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest} message CreateIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FulfillIntentRequest.encode = function encode(message, writer) { + CreateIntentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.matchIntentRequest != null && Object.hasOwnProperty.call(message, "matchIntentRequest")) - $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.encode(message.matchIntentRequest, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.match != null && Object.hasOwnProperty.call(message, "match")) - $root.google.cloud.dialogflow.cx.v3beta1.Match.encode(message.match, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) - $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) + $root.google.cloud.dialogflow.cx.v3beta1.Intent.encode(message.intent, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); return writer; }; /** - * Encodes the specified FulfillIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest.verify|verify} messages. + * Encodes the specified CreateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest} message FulfillIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest} message CreateIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FulfillIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FulfillIntentRequest message from the specified reader or buffer. + * Decodes a CreateIntentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest} FulfillIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest} CreateIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FulfillIntentRequest.decode = function decode(reader, length) { + CreateIntentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.matchIntentRequest = $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.decode(reader, reader.uint32()); + message.parent = reader.string(); break; case 2: - message.match = $root.google.cloud.dialogflow.cx.v3beta1.Match.decode(reader, reader.uint32()); + message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.decode(reader, reader.uint32()); break; case 3: - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.decode(reader, reader.uint32()); + message.languageCode = reader.string(); break; default: reader.skipType(tag & 7); @@ -91331,142 +91201,131 @@ }; /** - * Decodes a FulfillIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateIntentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest} FulfillIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest} CreateIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FulfillIntentRequest.decodeDelimited = function decodeDelimited(reader) { + CreateIntentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FulfillIntentRequest message. + * Verifies a CreateIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FulfillIntentRequest.verify = function verify(message) { + CreateIntentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.matchIntentRequest != null && message.hasOwnProperty("matchIntentRequest")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.verify(message.matchIntentRequest); - if (error) - return "matchIntentRequest." + error; - } - if (message.match != null && message.hasOwnProperty("match")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Match.verify(message.match); - if (error) - return "match." + error; - } - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify(message.outputAudioConfig); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.intent != null && message.hasOwnProperty("intent")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.verify(message.intent); if (error) - return "outputAudioConfig." + error; + return "intent." + error; } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates a FulfillIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateIntentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest} FulfillIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest} CreateIntentRequest */ - FulfillIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest) + CreateIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest(); - if (object.matchIntentRequest != null) { - if (typeof object.matchIntentRequest !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest.matchIntentRequest: object expected"); - message.matchIntentRequest = $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.fromObject(object.matchIntentRequest); - } - if (object.match != null) { - if (typeof object.match !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest.match: object expected"); - message.match = $root.google.cloud.dialogflow.cx.v3beta1.Match.fromObject(object.match); - } - if (object.outputAudioConfig != null) { - if (typeof object.outputAudioConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest.outputAudioConfig: object expected"); - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.fromObject(object.outputAudioConfig); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.intent != null) { + if (typeof object.intent !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest.intent: object expected"); + message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.fromObject(object.intent); } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a FulfillIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateIntentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest} message FulfillIntentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest} message CreateIntentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FulfillIntentRequest.toObject = function toObject(message, options) { + CreateIntentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.matchIntentRequest = null; - object.match = null; - object.outputAudioConfig = null; + object.parent = ""; + object.intent = null; + object.languageCode = ""; } - if (message.matchIntentRequest != null && message.hasOwnProperty("matchIntentRequest")) - object.matchIntentRequest = $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.toObject(message.matchIntentRequest, options); - if (message.match != null && message.hasOwnProperty("match")) - object.match = $root.google.cloud.dialogflow.cx.v3beta1.Match.toObject(message.match, options); - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) - object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.toObject(message.outputAudioConfig, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.intent != null && message.hasOwnProperty("intent")) + object.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.toObject(message.intent, options); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this FulfillIntentRequest to JSON. + * Converts this CreateIntentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest * @instance * @returns {Object.} JSON object */ - FulfillIntentRequest.prototype.toJSON = function toJSON() { + CreateIntentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FulfillIntentRequest; + return CreateIntentRequest; })(); - v3beta1.FulfillIntentResponse = (function() { + v3beta1.UpdateIntentRequest = (function() { /** - * Properties of a FulfillIntentResponse. + * Properties of an UpdateIntentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IFulfillIntentResponse - * @property {string|null} [responseId] FulfillIntentResponse responseId - * @property {google.cloud.dialogflow.cx.v3beta1.IQueryResult|null} [queryResult] FulfillIntentResponse queryResult - * @property {Uint8Array|null} [outputAudio] FulfillIntentResponse outputAudio - * @property {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null} [outputAudioConfig] FulfillIntentResponse outputAudioConfig + * @interface IUpdateIntentRequest + * @property {google.cloud.dialogflow.cx.v3beta1.IIntent|null} [intent] UpdateIntentRequest intent + * @property {string|null} [languageCode] UpdateIntentRequest languageCode + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateIntentRequest updateMask */ /** - * Constructs a new FulfillIntentResponse. + * Constructs a new UpdateIntentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a FulfillIntentResponse. - * @implements IFulfillIntentResponse + * @classdesc Represents an UpdateIntentRequest. + * @implements IUpdateIntentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest=} [properties] Properties to set */ - function FulfillIntentResponse(properties) { + function UpdateIntentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -91474,114 +91333,101 @@ } /** - * FulfillIntentResponse responseId. - * @member {string} responseId - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse - * @instance - */ - FulfillIntentResponse.prototype.responseId = ""; - - /** - * FulfillIntentResponse queryResult. - * @member {google.cloud.dialogflow.cx.v3beta1.IQueryResult|null|undefined} queryResult - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * UpdateIntentRequest intent. + * @member {google.cloud.dialogflow.cx.v3beta1.IIntent|null|undefined} intent + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest * @instance */ - FulfillIntentResponse.prototype.queryResult = null; + UpdateIntentRequest.prototype.intent = null; /** - * FulfillIntentResponse outputAudio. - * @member {Uint8Array} outputAudio - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * UpdateIntentRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest * @instance */ - FulfillIntentResponse.prototype.outputAudio = $util.newBuffer([]); + UpdateIntentRequest.prototype.languageCode = ""; /** - * FulfillIntentResponse outputAudioConfig. - * @member {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null|undefined} outputAudioConfig - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * UpdateIntentRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest * @instance */ - FulfillIntentResponse.prototype.outputAudioConfig = null; + UpdateIntentRequest.prototype.updateMask = null; /** - * Creates a new FulfillIntentResponse instance using the specified properties. + * Creates a new UpdateIntentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse} FulfillIntentResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest} UpdateIntentRequest instance */ - FulfillIntentResponse.create = function create(properties) { - return new FulfillIntentResponse(properties); + UpdateIntentRequest.create = function create(properties) { + return new UpdateIntentRequest(properties); }; /** - * Encodes the specified FulfillIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse.verify|verify} messages. + * Encodes the specified UpdateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse} message FulfillIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest} message UpdateIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FulfillIntentResponse.encode = function encode(message, writer) { + UpdateIntentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.responseId != null && Object.hasOwnProperty.call(message, "responseId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.responseId); - if (message.queryResult != null && Object.hasOwnProperty.call(message, "queryResult")) - $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.encode(message.queryResult, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.outputAudio != null && Object.hasOwnProperty.call(message, "outputAudio")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.outputAudio); - if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) - $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) + $root.google.cloud.dialogflow.cx.v3beta1.Intent.encode(message.intent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified FulfillIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse.verify|verify} messages. + * Encodes the specified UpdateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse} message FulfillIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest} message UpdateIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FulfillIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpdateIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FulfillIntentResponse message from the specified reader or buffer. + * Decodes an UpdateIntentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse} FulfillIntentResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest} UpdateIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FulfillIntentResponse.decode = function decode(reader, length) { + UpdateIntentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.responseId = reader.string(); + message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.decode(reader, reader.uint32()); break; case 2: - message.queryResult = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.decode(reader, reader.uint32()); + message.languageCode = reader.string(); break; case 3: - message.outputAudio = reader.bytes(); - break; - case 4: - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.decode(reader, reader.uint32()); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -91592,152 +91438,134 @@ }; /** - * Decodes a FulfillIntentResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateIntentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse} FulfillIntentResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest} UpdateIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FulfillIntentResponse.decodeDelimited = function decodeDelimited(reader) { + UpdateIntentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FulfillIntentResponse message. + * Verifies an UpdateIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FulfillIntentResponse.verify = function verify(message) { + UpdateIntentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.responseId != null && message.hasOwnProperty("responseId")) - if (!$util.isString(message.responseId)) - return "responseId: string expected"; - if (message.queryResult != null && message.hasOwnProperty("queryResult")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.verify(message.queryResult); + if (message.intent != null && message.hasOwnProperty("intent")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.verify(message.intent); if (error) - return "queryResult." + error; + return "intent." + error; } - if (message.outputAudio != null && message.hasOwnProperty("outputAudio")) - if (!(message.outputAudio && typeof message.outputAudio.length === "number" || $util.isString(message.outputAudio))) - return "outputAudio: buffer expected"; - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify(message.outputAudioConfig); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); if (error) - return "outputAudioConfig." + error; + return "updateMask." + error; } return null; }; /** - * Creates a FulfillIntentResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateIntentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse} FulfillIntentResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest} UpdateIntentRequest */ - FulfillIntentResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse) + UpdateIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse(); - if (object.responseId != null) - message.responseId = String(object.responseId); - if (object.queryResult != null) { - if (typeof object.queryResult !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse.queryResult: object expected"); - message.queryResult = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.fromObject(object.queryResult); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest(); + if (object.intent != null) { + if (typeof object.intent !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest.intent: object expected"); + message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.fromObject(object.intent); } - if (object.outputAudio != null) - if (typeof object.outputAudio === "string") - $util.base64.decode(object.outputAudio, message.outputAudio = $util.newBuffer($util.base64.length(object.outputAudio)), 0); - else if (object.outputAudio.length) - message.outputAudio = object.outputAudio; - if (object.outputAudioConfig != null) { - if (typeof object.outputAudioConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse.outputAudioConfig: object expected"); - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.fromObject(object.outputAudioConfig); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from a FulfillIntentResponse message. Also converts values to other types if specified. + * Creates a plain object from an UpdateIntentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse} message FulfillIntentResponse + * @param {google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest} message UpdateIntentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FulfillIntentResponse.toObject = function toObject(message, options) { + UpdateIntentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.responseId = ""; - object.queryResult = null; - if (options.bytes === String) - object.outputAudio = ""; - else { - object.outputAudio = []; - if (options.bytes !== Array) - object.outputAudio = $util.newBuffer(object.outputAudio); - } - object.outputAudioConfig = null; + object.intent = null; + object.languageCode = ""; + object.updateMask = null; } - if (message.responseId != null && message.hasOwnProperty("responseId")) - object.responseId = message.responseId; - if (message.queryResult != null && message.hasOwnProperty("queryResult")) - object.queryResult = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.toObject(message.queryResult, options); - if (message.outputAudio != null && message.hasOwnProperty("outputAudio")) - object.outputAudio = options.bytes === String ? $util.base64.encode(message.outputAudio, 0, message.outputAudio.length) : options.bytes === Array ? Array.prototype.slice.call(message.outputAudio) : message.outputAudio; - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) - object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.toObject(message.outputAudioConfig, options); + if (message.intent != null && message.hasOwnProperty("intent")) + object.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.toObject(message.intent, options); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this FulfillIntentResponse to JSON. + * Converts this UpdateIntentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest * @instance * @returns {Object.} JSON object */ - FulfillIntentResponse.prototype.toJSON = function toJSON() { + UpdateIntentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FulfillIntentResponse; + return UpdateIntentRequest; })(); - v3beta1.SentimentAnalysisResult = (function() { + v3beta1.DeleteIntentRequest = (function() { /** - * Properties of a SentimentAnalysisResult. + * Properties of a DeleteIntentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ISentimentAnalysisResult - * @property {number|null} [score] SentimentAnalysisResult score - * @property {number|null} [magnitude] SentimentAnalysisResult magnitude + * @interface IDeleteIntentRequest + * @property {string|null} [name] DeleteIntentRequest name */ /** - * Constructs a new SentimentAnalysisResult. + * Constructs a new DeleteIntentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a SentimentAnalysisResult. - * @implements ISentimentAnalysisResult + * @classdesc Represents a DeleteIntentRequest. + * @implements IDeleteIntentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest=} [properties] Properties to set */ - function SentimentAnalysisResult(properties) { + function DeleteIntentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -91745,88 +91573,75 @@ } /** - * SentimentAnalysisResult score. - * @member {number} score - * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult - * @instance - */ - SentimentAnalysisResult.prototype.score = 0; - - /** - * SentimentAnalysisResult magnitude. - * @member {number} magnitude - * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * DeleteIntentRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest * @instance */ - SentimentAnalysisResult.prototype.magnitude = 0; + DeleteIntentRequest.prototype.name = ""; /** - * Creates a new SentimentAnalysisResult instance using the specified properties. + * Creates a new DeleteIntentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult} SentimentAnalysisResult instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest} DeleteIntentRequest instance */ - SentimentAnalysisResult.create = function create(properties) { - return new SentimentAnalysisResult(properties); + DeleteIntentRequest.create = function create(properties) { + return new DeleteIntentRequest(properties); }; /** - * Encodes the specified SentimentAnalysisResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.verify|verify} messages. + * Encodes the specified DeleteIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult} message SentimentAnalysisResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest} message DeleteIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SentimentAnalysisResult.encode = function encode(message, writer) { + DeleteIntentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.score != null && Object.hasOwnProperty.call(message, "score")) - writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); - if (message.magnitude != null && Object.hasOwnProperty.call(message, "magnitude")) - writer.uint32(/* id 2, wireType 5 =*/21).float(message.magnitude); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified SentimentAnalysisResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.verify|verify} messages. + * Encodes the specified DeleteIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult} message SentimentAnalysisResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest} message DeleteIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SentimentAnalysisResult.encodeDelimited = function encodeDelimited(message, writer) { + DeleteIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SentimentAnalysisResult message from the specified reader or buffer. + * Decodes a DeleteIntentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult} SentimentAnalysisResult + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest} DeleteIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SentimentAnalysisResult.decode = function decode(reader, length) { + DeleteIntentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.score = reader.float(); - break; - case 2: - message.magnitude = reader.float(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -91837,319 +91652,562 @@ }; /** - * Decodes a SentimentAnalysisResult message from the specified reader or buffer, length delimited. + * Decodes a DeleteIntentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult} SentimentAnalysisResult + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest} DeleteIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SentimentAnalysisResult.decodeDelimited = function decodeDelimited(reader) { + DeleteIntentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SentimentAnalysisResult message. + * Verifies a DeleteIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SentimentAnalysisResult.verify = function verify(message) { + DeleteIntentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.score != null && message.hasOwnProperty("score")) - if (typeof message.score !== "number") - return "score: number expected"; - if (message.magnitude != null && message.hasOwnProperty("magnitude")) - if (typeof message.magnitude !== "number") - return "magnitude: number expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a SentimentAnalysisResult message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteIntentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult} SentimentAnalysisResult + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest} DeleteIntentRequest */ - SentimentAnalysisResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult) + DeleteIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult(); - if (object.score != null) - message.score = Number(object.score); - if (object.magnitude != null) - message.magnitude = Number(object.magnitude); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a SentimentAnalysisResult message. Also converts values to other types if specified. + * Creates a plain object from a DeleteIntentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult} message SentimentAnalysisResult + * @param {google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest} message DeleteIntentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SentimentAnalysisResult.toObject = function toObject(message, options) { + DeleteIntentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.score = 0; - object.magnitude = 0; - } - if (message.score != null && message.hasOwnProperty("score")) - object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; - if (message.magnitude != null && message.hasOwnProperty("magnitude")) - object.magnitude = options.json && !isFinite(message.magnitude) ? String(message.magnitude) : message.magnitude; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this SentimentAnalysisResult to JSON. + * Converts this DeleteIntentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest * @instance * @returns {Object.} JSON object */ - SentimentAnalysisResult.prototype.toJSON = function toJSON() { + DeleteIntentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SentimentAnalysisResult; + return DeleteIntentRequest; })(); - v3beta1.SessionEntityTypes = (function() { + /** + * IntentView enum. + * @name google.cloud.dialogflow.cx.v3beta1.IntentView + * @enum {number} + * @property {number} INTENT_VIEW_UNSPECIFIED=0 INTENT_VIEW_UNSPECIFIED value + * @property {number} INTENT_VIEW_PARTIAL=1 INTENT_VIEW_PARTIAL value + * @property {number} INTENT_VIEW_FULL=2 INTENT_VIEW_FULL value + */ + v3beta1.IntentView = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "INTENT_VIEW_UNSPECIFIED"] = 0; + values[valuesById[1] = "INTENT_VIEW_PARTIAL"] = 1; + values[valuesById[2] = "INTENT_VIEW_FULL"] = 2; + return values; + })(); + + v3beta1.Sessions = (function() { /** - * Constructs a new SessionEntityTypes service. + * Constructs a new Sessions service. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a SessionEntityTypes + * @classdesc Represents a Sessions * @extends $protobuf.rpc.Service * @constructor * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - function SessionEntityTypes(rpcImpl, requestDelimited, responseDelimited) { + function Sessions(rpcImpl, requestDelimited, responseDelimited) { $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - (SessionEntityTypes.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = SessionEntityTypes; + (Sessions.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Sessions; /** - * Creates new SessionEntityTypes service using the specified rpc implementation. + * Creates new Sessions service using the specified rpc implementation. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions * @static * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {SessionEntityTypes} RPC service. Useful where requests and/or responses are streamed. + * @returns {Sessions} RPC service. Useful where requests and/or responses are streamed. */ - SessionEntityTypes.create = function create(rpcImpl, requestDelimited, responseDelimited) { + Sessions.create = function create(rpcImpl, requestDelimited, responseDelimited) { return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#listSessionEntityTypes}. - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes - * @typedef ListSessionEntityTypesCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#detectIntent}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions + * @typedef DetectIntentCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse} [response] ListSessionEntityTypesResponse + * @param {google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse} [response] DetectIntentResponse */ /** - * Calls ListSessionEntityTypes. - * @function listSessionEntityTypes - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * Calls DetectIntent. + * @function detectIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest} request ListSessionEntityTypesRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.ListSessionEntityTypesCallback} callback Node-style callback called with the error, if any, and ListSessionEntityTypesResponse + * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest} request DetectIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Sessions.DetectIntentCallback} callback Node-style callback called with the error, if any, and DetectIntentResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(SessionEntityTypes.prototype.listSessionEntityTypes = function listSessionEntityTypes(request, callback) { - return this.rpcCall(listSessionEntityTypes, $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse, request, callback); - }, "name", { value: "ListSessionEntityTypes" }); + Object.defineProperty(Sessions.prototype.detectIntent = function detectIntent(request, callback) { + return this.rpcCall(detectIntent, $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest, $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse, request, callback); + }, "name", { value: "DetectIntent" }); /** - * Calls ListSessionEntityTypes. - * @function listSessionEntityTypes - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * Calls DetectIntent. + * @function detectIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest} request ListSessionEntityTypesRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest} request DetectIntentRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#getSessionEntityType}. - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes - * @typedef GetSessionEntityTypeCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#streamingDetectIntent}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions + * @typedef StreamingDetectIntentCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} [response] SessionEntityType + * @param {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse} [response] StreamingDetectIntentResponse */ /** - * Calls GetSessionEntityType. - * @function getSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * Calls StreamingDetectIntent. + * @function streamingDetectIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest} request GetSessionEntityTypeRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.GetSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and SessionEntityType + * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest} request StreamingDetectIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Sessions.StreamingDetectIntentCallback} callback Node-style callback called with the error, if any, and StreamingDetectIntentResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(SessionEntityTypes.prototype.getSessionEntityType = function getSessionEntityType(request, callback) { - return this.rpcCall(getSessionEntityType, $root.google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType, request, callback); - }, "name", { value: "GetSessionEntityType" }); + Object.defineProperty(Sessions.prototype.streamingDetectIntent = function streamingDetectIntent(request, callback) { + return this.rpcCall(streamingDetectIntent, $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest, $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse, request, callback); + }, "name", { value: "StreamingDetectIntent" }); /** - * Calls GetSessionEntityType. - * @function getSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * Calls StreamingDetectIntent. + * @function streamingDetectIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest} request GetSessionEntityTypeRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest} request StreamingDetectIntentRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#createSessionEntityType}. - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes - * @typedef CreateSessionEntityTypeCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#matchIntent}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions + * @typedef MatchIntentCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} [response] SessionEntityType + * @param {google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse} [response] MatchIntentResponse */ /** - * Calls CreateSessionEntityType. - * @function createSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * Calls MatchIntent. + * @function matchIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest} request CreateSessionEntityTypeRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.CreateSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and SessionEntityType + * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest} request MatchIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntentCallback} callback Node-style callback called with the error, if any, and MatchIntentResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(SessionEntityTypes.prototype.createSessionEntityType = function createSessionEntityType(request, callback) { - return this.rpcCall(createSessionEntityType, $root.google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType, request, callback); - }, "name", { value: "CreateSessionEntityType" }); + Object.defineProperty(Sessions.prototype.matchIntent = function matchIntent(request, callback) { + return this.rpcCall(matchIntent, $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest, $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse, request, callback); + }, "name", { value: "MatchIntent" }); /** - * Calls CreateSessionEntityType. - * @function createSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * Calls MatchIntent. + * @function matchIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest} request CreateSessionEntityTypeRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest} request MatchIntentRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#updateSessionEntityType}. - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes - * @typedef UpdateSessionEntityTypeCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#fulfillIntent}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions + * @typedef FulfillIntentCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} [response] SessionEntityType + * @param {google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse} [response] FulfillIntentResponse */ /** - * Calls UpdateSessionEntityType. - * @function updateSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * Calls FulfillIntent. + * @function fulfillIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest} request UpdateSessionEntityTypeRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.UpdateSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and SessionEntityType + * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest} request FulfillIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Sessions.FulfillIntentCallback} callback Node-style callback called with the error, if any, and FulfillIntentResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(SessionEntityTypes.prototype.updateSessionEntityType = function updateSessionEntityType(request, callback) { - return this.rpcCall(updateSessionEntityType, $root.google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType, request, callback); - }, "name", { value: "UpdateSessionEntityType" }); + Object.defineProperty(Sessions.prototype.fulfillIntent = function fulfillIntent(request, callback) { + return this.rpcCall(fulfillIntent, $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest, $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse, request, callback); + }, "name", { value: "FulfillIntent" }); /** - * Calls UpdateSessionEntityType. - * @function updateSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * Calls FulfillIntent. + * @function fulfillIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest} request UpdateSessionEntityTypeRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest} request FulfillIntentRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ + return Sessions; + })(); + + v3beta1.DetectIntentRequest = (function() { + /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#deleteSessionEntityType}. - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes - * @typedef DeleteSessionEntityTypeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Properties of a DetectIntentRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IDetectIntentRequest + * @property {string|null} [session] DetectIntentRequest session + * @property {google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null} [queryParams] DetectIntentRequest queryParams + * @property {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null} [queryInput] DetectIntentRequest queryInput + * @property {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null} [outputAudioConfig] DetectIntentRequest outputAudioConfig + */ + + /** + * Constructs a new DetectIntentRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a DetectIntentRequest. + * @implements IDetectIntentRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest=} [properties] Properties to set + */ + function DetectIntentRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DetectIntentRequest session. + * @member {string} session + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @instance + */ + DetectIntentRequest.prototype.session = ""; + + /** + * DetectIntentRequest queryParams. + * @member {google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null|undefined} queryParams + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @instance + */ + DetectIntentRequest.prototype.queryParams = null; + + /** + * DetectIntentRequest queryInput. + * @member {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null|undefined} queryInput + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @instance + */ + DetectIntentRequest.prototype.queryInput = null; + + /** + * DetectIntentRequest outputAudioConfig. + * @member {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null|undefined} outputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @instance + */ + DetectIntentRequest.prototype.outputAudioConfig = null; + + /** + * Creates a new DetectIntentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest} DetectIntentRequest instance + */ + DetectIntentRequest.create = function create(properties) { + return new DetectIntentRequest(properties); + }; + + /** + * Encodes the specified DetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest} message DetectIntentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DetectIntentRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.session != null && Object.hasOwnProperty.call(message, "session")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.session); + if (message.queryParams != null && Object.hasOwnProperty.call(message, "queryParams")) + $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.encode(message.queryParams, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.queryInput != null && Object.hasOwnProperty.call(message, "queryInput")) + $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.encode(message.queryInput, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) + $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified DetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest} message DetectIntentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DetectIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DetectIntentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest} DetectIntentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DetectIntentRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.session = reader.string(); + break; + case 2: + message.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.decode(reader, reader.uint32()); + break; + case 3: + message.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.decode(reader, reader.uint32()); + break; + case 4: + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DetectIntentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest} DetectIntentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DetectIntentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DetectIntentRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DetectIntentRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.session != null && message.hasOwnProperty("session")) + if (!$util.isString(message.session)) + return "session: string expected"; + if (message.queryParams != null && message.hasOwnProperty("queryParams")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.verify(message.queryParams); + if (error) + return "queryParams." + error; + } + if (message.queryInput != null && message.hasOwnProperty("queryInput")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.verify(message.queryInput); + if (error) + return "queryInput." + error; + } + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify(message.outputAudioConfig); + if (error) + return "outputAudioConfig." + error; + } + return null; + }; + + /** + * Creates a DetectIntentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest} DetectIntentRequest */ + DetectIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest(); + if (object.session != null) + message.session = String(object.session); + if (object.queryParams != null) { + if (typeof object.queryParams !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.queryParams: object expected"); + message.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.fromObject(object.queryParams); + } + if (object.queryInput != null) { + if (typeof object.queryInput !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.queryInput: object expected"); + message.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.fromObject(object.queryInput); + } + if (object.outputAudioConfig != null) { + if (typeof object.outputAudioConfig !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.outputAudioConfig: object expected"); + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.fromObject(object.outputAudioConfig); + } + return message; + }; /** - * Calls DeleteSessionEntityType. - * @function deleteSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest} request DeleteSessionEntityTypeRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.DeleteSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * Creates a plain object from a DetectIntentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest} message DetectIntentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(SessionEntityTypes.prototype.deleteSessionEntityType = function deleteSessionEntityType(request, callback) { - return this.rpcCall(deleteSessionEntityType, $root.google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteSessionEntityType" }); + DetectIntentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.session = ""; + object.queryParams = null; + object.queryInput = null; + object.outputAudioConfig = null; + } + if (message.session != null && message.hasOwnProperty("session")) + object.session = message.session; + if (message.queryParams != null && message.hasOwnProperty("queryParams")) + object.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.toObject(message.queryParams, options); + if (message.queryInput != null && message.hasOwnProperty("queryInput")) + object.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.toObject(message.queryInput, options); + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) + object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.toObject(message.outputAudioConfig, options); + return object; + }; /** - * Calls DeleteSessionEntityType. - * @function deleteSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * Converts this DetectIntentRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest} request DeleteSessionEntityTypeRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + DetectIntentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return SessionEntityTypes; + return DetectIntentRequest; })(); - v3beta1.SessionEntityType = (function() { + v3beta1.DetectIntentResponse = (function() { /** - * Properties of a SessionEntityType. + * Properties of a DetectIntentResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ISessionEntityType - * @property {string|null} [name] SessionEntityType name - * @property {google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode|null} [entityOverrideMode] SessionEntityType entityOverrideMode - * @property {Array.|null} [entities] SessionEntityType entities + * @interface IDetectIntentResponse + * @property {string|null} [responseId] DetectIntentResponse responseId + * @property {google.cloud.dialogflow.cx.v3beta1.IQueryResult|null} [queryResult] DetectIntentResponse queryResult + * @property {Uint8Array|null} [outputAudio] DetectIntentResponse outputAudio + * @property {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null} [outputAudioConfig] DetectIntentResponse outputAudioConfig */ /** - * Constructs a new SessionEntityType. + * Constructs a new DetectIntentResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a SessionEntityType. - * @implements ISessionEntityType + * @classdesc Represents a DetectIntentResponse. + * @implements IDetectIntentResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse=} [properties] Properties to set */ - function SessionEntityType(properties) { - this.entities = []; + function DetectIntentResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -92157,104 +92215,114 @@ } /** - * SessionEntityType name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * DetectIntentResponse responseId. + * @member {string} responseId + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse * @instance */ - SessionEntityType.prototype.name = ""; + DetectIntentResponse.prototype.responseId = ""; /** - * SessionEntityType entityOverrideMode. - * @member {google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode} entityOverrideMode - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * DetectIntentResponse queryResult. + * @member {google.cloud.dialogflow.cx.v3beta1.IQueryResult|null|undefined} queryResult + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse * @instance */ - SessionEntityType.prototype.entityOverrideMode = 0; + DetectIntentResponse.prototype.queryResult = null; /** - * SessionEntityType entities. - * @member {Array.} entities - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * DetectIntentResponse outputAudio. + * @member {Uint8Array} outputAudio + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse * @instance */ - SessionEntityType.prototype.entities = $util.emptyArray; + DetectIntentResponse.prototype.outputAudio = $util.newBuffer([]); /** - * Creates a new SessionEntityType instance using the specified properties. + * DetectIntentResponse outputAudioConfig. + * @member {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null|undefined} outputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * @instance + */ + DetectIntentResponse.prototype.outputAudioConfig = null; + + /** + * Creates a new DetectIntentResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} SessionEntityType instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse} DetectIntentResponse instance */ - SessionEntityType.create = function create(properties) { - return new SessionEntityType(properties); + DetectIntentResponse.create = function create(properties) { + return new DetectIntentResponse(properties); }; /** - * Encodes the specified SessionEntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify|verify} messages. + * Encodes the specified DetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType} message SessionEntityType message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse} message DetectIntentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SessionEntityType.encode = function encode(message, writer) { + DetectIntentResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.entityOverrideMode != null && Object.hasOwnProperty.call(message, "entityOverrideMode")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.entityOverrideMode); - if (message.entities != null && message.entities.length) - for (var i = 0; i < message.entities.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.encode(message.entities[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.responseId != null && Object.hasOwnProperty.call(message, "responseId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.responseId); + if (message.queryResult != null && Object.hasOwnProperty.call(message, "queryResult")) + $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.encode(message.queryResult, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.outputAudio != null && Object.hasOwnProperty.call(message, "outputAudio")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.outputAudio); + if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) + $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified SessionEntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify|verify} messages. + * Encodes the specified DetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType} message SessionEntityType message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse} message DetectIntentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SessionEntityType.encodeDelimited = function encodeDelimited(message, writer) { + DetectIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SessionEntityType message from the specified reader or buffer. + * Decodes a DetectIntentResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} SessionEntityType + * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse} DetectIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SessionEntityType.decode = function decode(reader, length) { + DetectIntentResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.responseId = reader.string(); break; - case 3: - message.entityOverrideMode = reader.int32(); + case 2: + message.queryResult = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.decode(reader, reader.uint32()); break; case 4: - if (!(message.entities && message.entities.length)) - message.entities = []; - message.entities.push($root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.decode(reader, reader.uint32())); + message.outputAudio = reader.bytes(); + break; + case 5: + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -92265,178 +92333,154 @@ }; /** - * Decodes a SessionEntityType message from the specified reader or buffer, length delimited. + * Decodes a DetectIntentResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} SessionEntityType + * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse} DetectIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SessionEntityType.decodeDelimited = function decodeDelimited(reader) { + DetectIntentResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SessionEntityType message. + * Verifies a DetectIntentResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SessionEntityType.verify = function verify(message) { + DetectIntentResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.entityOverrideMode != null && message.hasOwnProperty("entityOverrideMode")) - switch (message.entityOverrideMode) { - default: - return "entityOverrideMode: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.entities != null && message.hasOwnProperty("entities")) { - if (!Array.isArray(message.entities)) - return "entities: array expected"; - for (var i = 0; i < message.entities.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.verify(message.entities[i]); - if (error) - return "entities." + error; - } + if (message.responseId != null && message.hasOwnProperty("responseId")) + if (!$util.isString(message.responseId)) + return "responseId: string expected"; + if (message.queryResult != null && message.hasOwnProperty("queryResult")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.verify(message.queryResult); + if (error) + return "queryResult." + error; + } + if (message.outputAudio != null && message.hasOwnProperty("outputAudio")) + if (!(message.outputAudio && typeof message.outputAudio.length === "number" || $util.isString(message.outputAudio))) + return "outputAudio: buffer expected"; + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify(message.outputAudioConfig); + if (error) + return "outputAudioConfig." + error; } return null; }; /** - * Creates a SessionEntityType message from a plain object. Also converts values to their respective internal types. + * Creates a DetectIntentResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} SessionEntityType + * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse} DetectIntentResponse */ - SessionEntityType.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType) + DetectIntentResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType(); - if (object.name != null) - message.name = String(object.name); - switch (object.entityOverrideMode) { - case "ENTITY_OVERRIDE_MODE_UNSPECIFIED": - case 0: - message.entityOverrideMode = 0; - break; - case "ENTITY_OVERRIDE_MODE_OVERRIDE": - case 1: - message.entityOverrideMode = 1; - break; - case "ENTITY_OVERRIDE_MODE_SUPPLEMENT": - case 2: - message.entityOverrideMode = 2; - break; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse(); + if (object.responseId != null) + message.responseId = String(object.responseId); + if (object.queryResult != null) { + if (typeof object.queryResult !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.queryResult: object expected"); + message.queryResult = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.fromObject(object.queryResult); } - if (object.entities) { - if (!Array.isArray(object.entities)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SessionEntityType.entities: array expected"); - message.entities = []; - for (var i = 0; i < object.entities.length; ++i) { - if (typeof object.entities[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SessionEntityType.entities: object expected"); - message.entities[i] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.fromObject(object.entities[i]); - } + if (object.outputAudio != null) + if (typeof object.outputAudio === "string") + $util.base64.decode(object.outputAudio, message.outputAudio = $util.newBuffer($util.base64.length(object.outputAudio)), 0); + else if (object.outputAudio.length) + message.outputAudio = object.outputAudio; + if (object.outputAudioConfig != null) { + if (typeof object.outputAudioConfig !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.outputAudioConfig: object expected"); + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.fromObject(object.outputAudioConfig); } return message; }; /** - * Creates a plain object from a SessionEntityType message. Also converts values to other types if specified. + * Creates a plain object from a DetectIntentResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} message SessionEntityType + * @param {google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse} message DetectIntentResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SessionEntityType.toObject = function toObject(message, options) { + DetectIntentResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.entities = []; if (options.defaults) { - object.name = ""; - object.entityOverrideMode = options.enums === String ? "ENTITY_OVERRIDE_MODE_UNSPECIFIED" : 0; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.entityOverrideMode != null && message.hasOwnProperty("entityOverrideMode")) - object.entityOverrideMode = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode[message.entityOverrideMode] : message.entityOverrideMode; - if (message.entities && message.entities.length) { - object.entities = []; - for (var j = 0; j < message.entities.length; ++j) - object.entities[j] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.toObject(message.entities[j], options); + object.responseId = ""; + object.queryResult = null; + if (options.bytes === String) + object.outputAudio = ""; + else { + object.outputAudio = []; + if (options.bytes !== Array) + object.outputAudio = $util.newBuffer(object.outputAudio); + } + object.outputAudioConfig = null; } + if (message.responseId != null && message.hasOwnProperty("responseId")) + object.responseId = message.responseId; + if (message.queryResult != null && message.hasOwnProperty("queryResult")) + object.queryResult = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.toObject(message.queryResult, options); + if (message.outputAudio != null && message.hasOwnProperty("outputAudio")) + object.outputAudio = options.bytes === String ? $util.base64.encode(message.outputAudio, 0, message.outputAudio.length) : options.bytes === Array ? Array.prototype.slice.call(message.outputAudio) : message.outputAudio; + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) + object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.toObject(message.outputAudioConfig, options); return object; }; /** - * Converts this SessionEntityType to JSON. + * Converts this DetectIntentResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse * @instance * @returns {Object.} JSON object */ - SessionEntityType.prototype.toJSON = function toJSON() { + DetectIntentResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * EntityOverrideMode enum. - * @name google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode - * @enum {number} - * @property {number} ENTITY_OVERRIDE_MODE_UNSPECIFIED=0 ENTITY_OVERRIDE_MODE_UNSPECIFIED value - * @property {number} ENTITY_OVERRIDE_MODE_OVERRIDE=1 ENTITY_OVERRIDE_MODE_OVERRIDE value - * @property {number} ENTITY_OVERRIDE_MODE_SUPPLEMENT=2 ENTITY_OVERRIDE_MODE_SUPPLEMENT value - */ - SessionEntityType.EntityOverrideMode = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ENTITY_OVERRIDE_MODE_UNSPECIFIED"] = 0; - values[valuesById[1] = "ENTITY_OVERRIDE_MODE_OVERRIDE"] = 1; - values[valuesById[2] = "ENTITY_OVERRIDE_MODE_SUPPLEMENT"] = 2; - return values; - })(); - - return SessionEntityType; + return DetectIntentResponse; })(); - v3beta1.ListSessionEntityTypesRequest = (function() { + v3beta1.StreamingDetectIntentRequest = (function() { /** - * Properties of a ListSessionEntityTypesRequest. + * Properties of a StreamingDetectIntentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListSessionEntityTypesRequest - * @property {string|null} [parent] ListSessionEntityTypesRequest parent - * @property {number|null} [pageSize] ListSessionEntityTypesRequest pageSize - * @property {string|null} [pageToken] ListSessionEntityTypesRequest pageToken + * @interface IStreamingDetectIntentRequest + * @property {string|null} [session] StreamingDetectIntentRequest session + * @property {google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null} [queryParams] StreamingDetectIntentRequest queryParams + * @property {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null} [queryInput] StreamingDetectIntentRequest queryInput + * @property {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null} [outputAudioConfig] StreamingDetectIntentRequest outputAudioConfig */ /** - * Constructs a new ListSessionEntityTypesRequest. + * Constructs a new StreamingDetectIntentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListSessionEntityTypesRequest. - * @implements IListSessionEntityTypesRequest + * @classdesc Represents a StreamingDetectIntentRequest. + * @implements IStreamingDetectIntentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest=} [properties] Properties to set */ - function ListSessionEntityTypesRequest(properties) { + function StreamingDetectIntentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -92444,101 +92488,114 @@ } /** - * ListSessionEntityTypesRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest + * StreamingDetectIntentRequest session. + * @member {string} session + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest * @instance */ - ListSessionEntityTypesRequest.prototype.parent = ""; + StreamingDetectIntentRequest.prototype.session = ""; /** - * ListSessionEntityTypesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest + * StreamingDetectIntentRequest queryParams. + * @member {google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null|undefined} queryParams + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest * @instance */ - ListSessionEntityTypesRequest.prototype.pageSize = 0; + StreamingDetectIntentRequest.prototype.queryParams = null; /** - * ListSessionEntityTypesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest + * StreamingDetectIntentRequest queryInput. + * @member {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null|undefined} queryInput + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest * @instance */ - ListSessionEntityTypesRequest.prototype.pageToken = ""; + StreamingDetectIntentRequest.prototype.queryInput = null; /** - * Creates a new ListSessionEntityTypesRequest instance using the specified properties. + * StreamingDetectIntentRequest outputAudioConfig. + * @member {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null|undefined} outputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * @instance + */ + StreamingDetectIntentRequest.prototype.outputAudioConfig = null; + + /** + * Creates a new StreamingDetectIntentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest} StreamingDetectIntentRequest instance */ - ListSessionEntityTypesRequest.create = function create(properties) { - return new ListSessionEntityTypesRequest(properties); + StreamingDetectIntentRequest.create = function create(properties) { + return new StreamingDetectIntentRequest(properties); }; /** - * Encodes the specified ListSessionEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest.verify|verify} messages. + * Encodes the specified StreamingDetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest} message ListSessionEntityTypesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest} message StreamingDetectIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSessionEntityTypesRequest.encode = function encode(message, writer) { + StreamingDetectIntentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.session != null && Object.hasOwnProperty.call(message, "session")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.session); + if (message.queryParams != null && Object.hasOwnProperty.call(message, "queryParams")) + $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.encode(message.queryParams, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.queryInput != null && Object.hasOwnProperty.call(message, "queryInput")) + $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.encode(message.queryInput, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) + $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListSessionEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest.verify|verify} messages. + * Encodes the specified StreamingDetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest} message ListSessionEntityTypesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest} message StreamingDetectIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSessionEntityTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + StreamingDetectIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer. + * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest} StreamingDetectIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSessionEntityTypesRequest.decode = function decode(reader, length) { + StreamingDetectIntentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.session = reader.string(); break; case 2: - message.pageSize = reader.int32(); + message.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.decode(reader, reader.uint32()); break; case 3: - message.pageToken = reader.string(); + message.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.decode(reader, reader.uint32()); + break; + case 4: + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -92549,126 +92606,148 @@ }; /** - * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer, length delimited. + * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest} StreamingDetectIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSessionEntityTypesRequest.decodeDelimited = function decodeDelimited(reader) { + StreamingDetectIntentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListSessionEntityTypesRequest message. + * Verifies a StreamingDetectIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListSessionEntityTypesRequest.verify = function verify(message) { + StreamingDetectIntentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.session != null && message.hasOwnProperty("session")) + if (!$util.isString(message.session)) + return "session: string expected"; + if (message.queryParams != null && message.hasOwnProperty("queryParams")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.verify(message.queryParams); + if (error) + return "queryParams." + error; + } + if (message.queryInput != null && message.hasOwnProperty("queryInput")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.verify(message.queryInput); + if (error) + return "queryInput." + error; + } + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify(message.outputAudioConfig); + if (error) + return "outputAudioConfig." + error; + } return null; }; /** - * Creates a ListSessionEntityTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingDetectIntentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest - */ - ListSessionEntityTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest} StreamingDetectIntentRequest + */ + StreamingDetectIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest(); + if (object.session != null) + message.session = String(object.session); + if (object.queryParams != null) { + if (typeof object.queryParams !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.queryParams: object expected"); + message.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.fromObject(object.queryParams); + } + if (object.queryInput != null) { + if (typeof object.queryInput !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.queryInput: object expected"); + message.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.fromObject(object.queryInput); + } + if (object.outputAudioConfig != null) { + if (typeof object.outputAudioConfig !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.outputAudioConfig: object expected"); + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.fromObject(object.outputAudioConfig); + } return message; }; /** - * Creates a plain object from a ListSessionEntityTypesRequest message. Also converts values to other types if specified. + * Creates a plain object from a StreamingDetectIntentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest} message ListSessionEntityTypesRequest + * @param {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest} message StreamingDetectIntentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListSessionEntityTypesRequest.toObject = function toObject(message, options) { + StreamingDetectIntentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + object.session = ""; + object.queryParams = null; + object.queryInput = null; + object.outputAudioConfig = null; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (message.session != null && message.hasOwnProperty("session")) + object.session = message.session; + if (message.queryParams != null && message.hasOwnProperty("queryParams")) + object.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.toObject(message.queryParams, options); + if (message.queryInput != null && message.hasOwnProperty("queryInput")) + object.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.toObject(message.queryInput, options); + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) + object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.toObject(message.outputAudioConfig, options); return object; }; /** - * Converts this ListSessionEntityTypesRequest to JSON. + * Converts this StreamingDetectIntentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest * @instance * @returns {Object.} JSON object */ - ListSessionEntityTypesRequest.prototype.toJSON = function toJSON() { + StreamingDetectIntentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListSessionEntityTypesRequest; + return StreamingDetectIntentRequest; })(); - v3beta1.ListSessionEntityTypesResponse = (function() { + v3beta1.StreamingDetectIntentResponse = (function() { /** - * Properties of a ListSessionEntityTypesResponse. + * Properties of a StreamingDetectIntentResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListSessionEntityTypesResponse - * @property {Array.|null} [sessionEntityTypes] ListSessionEntityTypesResponse sessionEntityTypes - * @property {string|null} [nextPageToken] ListSessionEntityTypesResponse nextPageToken + * @interface IStreamingDetectIntentResponse + * @property {google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult|null} [recognitionResult] StreamingDetectIntentResponse recognitionResult + * @property {google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse|null} [detectIntentResponse] StreamingDetectIntentResponse detectIntentResponse */ /** - * Constructs a new ListSessionEntityTypesResponse. + * Constructs a new StreamingDetectIntentResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListSessionEntityTypesResponse. - * @implements IListSessionEntityTypesResponse + * @classdesc Represents a StreamingDetectIntentResponse. + * @implements IStreamingDetectIntentResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse=} [properties] Properties to set */ - function ListSessionEntityTypesResponse(properties) { - this.sessionEntityTypes = []; + function StreamingDetectIntentResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -92676,91 +92755,102 @@ } /** - * ListSessionEntityTypesResponse sessionEntityTypes. - * @member {Array.} sessionEntityTypes - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse + * StreamingDetectIntentResponse recognitionResult. + * @member {google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult|null|undefined} recognitionResult + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse * @instance */ - ListSessionEntityTypesResponse.prototype.sessionEntityTypes = $util.emptyArray; + StreamingDetectIntentResponse.prototype.recognitionResult = null; /** - * ListSessionEntityTypesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse + * StreamingDetectIntentResponse detectIntentResponse. + * @member {google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse|null|undefined} detectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse * @instance */ - ListSessionEntityTypesResponse.prototype.nextPageToken = ""; + StreamingDetectIntentResponse.prototype.detectIntentResponse = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Creates a new ListSessionEntityTypesResponse instance using the specified properties. + * StreamingDetectIntentResponse response. + * @member {"recognitionResult"|"detectIntentResponse"|undefined} response + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse + * @instance + */ + Object.defineProperty(StreamingDetectIntentResponse.prototype, "response", { + get: $util.oneOfGetter($oneOfFields = ["recognitionResult", "detectIntentResponse"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new StreamingDetectIntentResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse} StreamingDetectIntentResponse instance */ - ListSessionEntityTypesResponse.create = function create(properties) { - return new ListSessionEntityTypesResponse(properties); + StreamingDetectIntentResponse.create = function create(properties) { + return new StreamingDetectIntentResponse(properties); }; /** - * Encodes the specified ListSessionEntityTypesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse.verify|verify} messages. + * Encodes the specified StreamingDetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse} message ListSessionEntityTypesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse} message StreamingDetectIntentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSessionEntityTypesResponse.encode = function encode(message, writer) { + StreamingDetectIntentResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sessionEntityTypes != null && message.sessionEntityTypes.length) - for (var i = 0; i < message.sessionEntityTypes.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.encode(message.sessionEntityTypes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.recognitionResult != null && Object.hasOwnProperty.call(message, "recognitionResult")) + $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.encode(message.recognitionResult, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.detectIntentResponse != null && Object.hasOwnProperty.call(message, "detectIntentResponse")) + $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.encode(message.detectIntentResponse, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListSessionEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse.verify|verify} messages. + * Encodes the specified StreamingDetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse} message ListSessionEntityTypesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse} message StreamingDetectIntentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSessionEntityTypesResponse.encodeDelimited = function encodeDelimited(message, writer) { + StreamingDetectIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListSessionEntityTypesResponse message from the specified reader or buffer. + * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse} StreamingDetectIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSessionEntityTypesResponse.decode = function decode(reader, length) { + StreamingDetectIntentResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.sessionEntityTypes && message.sessionEntityTypes.length)) - message.sessionEntityTypes = []; - message.sessionEntityTypes.push($root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.decode(reader, reader.uint32())); + message.recognitionResult = $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.decode(reader, reader.uint32()); break; case 2: - message.nextPageToken = reader.string(); + message.detectIntentResponse = $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -92771,133 +92861,144 @@ }; /** - * Decodes a ListSessionEntityTypesResponse message from the specified reader or buffer, length delimited. + * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse} StreamingDetectIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSessionEntityTypesResponse.decodeDelimited = function decodeDelimited(reader) { + StreamingDetectIntentResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListSessionEntityTypesResponse message. + * Verifies a StreamingDetectIntentResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListSessionEntityTypesResponse.verify = function verify(message) { + StreamingDetectIntentResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sessionEntityTypes != null && message.hasOwnProperty("sessionEntityTypes")) { - if (!Array.isArray(message.sessionEntityTypes)) - return "sessionEntityTypes: array expected"; - for (var i = 0; i < message.sessionEntityTypes.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify(message.sessionEntityTypes[i]); + var properties = {}; + if (message.recognitionResult != null && message.hasOwnProperty("recognitionResult")) { + properties.response = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.verify(message.recognitionResult); if (error) - return "sessionEntityTypes." + error; + return "recognitionResult." + error; + } + } + if (message.detectIntentResponse != null && message.hasOwnProperty("detectIntentResponse")) { + if (properties.response === 1) + return "response: multiple values"; + properties.response = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.verify(message.detectIntentResponse); + if (error) + return "detectIntentResponse." + error; } } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListSessionEntityTypesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingDetectIntentResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse} StreamingDetectIntentResponse */ - ListSessionEntityTypesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse) + StreamingDetectIntentResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse(); - if (object.sessionEntityTypes) { - if (!Array.isArray(object.sessionEntityTypes)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse.sessionEntityTypes: array expected"); - message.sessionEntityTypes = []; - for (var i = 0; i < object.sessionEntityTypes.length; ++i) { - if (typeof object.sessionEntityTypes[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse.sessionEntityTypes: object expected"); - message.sessionEntityTypes[i] = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.fromObject(object.sessionEntityTypes[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse(); + if (object.recognitionResult != null) { + if (typeof object.recognitionResult !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse.recognitionResult: object expected"); + message.recognitionResult = $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.fromObject(object.recognitionResult); + } + if (object.detectIntentResponse != null) { + if (typeof object.detectIntentResponse !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse.detectIntentResponse: object expected"); + message.detectIntentResponse = $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.fromObject(object.detectIntentResponse); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListSessionEntityTypesResponse message. Also converts values to other types if specified. + * Creates a plain object from a StreamingDetectIntentResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse} message ListSessionEntityTypesResponse + * @param {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse} message StreamingDetectIntentResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListSessionEntityTypesResponse.toObject = function toObject(message, options) { + StreamingDetectIntentResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.sessionEntityTypes = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.sessionEntityTypes && message.sessionEntityTypes.length) { - object.sessionEntityTypes = []; - for (var j = 0; j < message.sessionEntityTypes.length; ++j) - object.sessionEntityTypes[j] = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.toObject(message.sessionEntityTypes[j], options); + if (message.recognitionResult != null && message.hasOwnProperty("recognitionResult")) { + object.recognitionResult = $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.toObject(message.recognitionResult, options); + if (options.oneofs) + object.response = "recognitionResult"; + } + if (message.detectIntentResponse != null && message.hasOwnProperty("detectIntentResponse")) { + object.detectIntentResponse = $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.toObject(message.detectIntentResponse, options); + if (options.oneofs) + object.response = "detectIntentResponse"; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ListSessionEntityTypesResponse to JSON. + * Converts this StreamingDetectIntentResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse * @instance * @returns {Object.} JSON object */ - ListSessionEntityTypesResponse.prototype.toJSON = function toJSON() { + StreamingDetectIntentResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListSessionEntityTypesResponse; + return StreamingDetectIntentResponse; })(); - v3beta1.GetSessionEntityTypeRequest = (function() { + v3beta1.StreamingRecognitionResult = (function() { /** - * Properties of a GetSessionEntityTypeRequest. + * Properties of a StreamingRecognitionResult. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetSessionEntityTypeRequest - * @property {string|null} [name] GetSessionEntityTypeRequest name + * @interface IStreamingRecognitionResult + * @property {google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType|null} [messageType] StreamingRecognitionResult messageType + * @property {string|null} [transcript] StreamingRecognitionResult transcript + * @property {boolean|null} [isFinal] StreamingRecognitionResult isFinal + * @property {number|null} [confidence] StreamingRecognitionResult confidence + * @property {number|null} [stability] StreamingRecognitionResult stability + * @property {Array.|null} [speechWordInfo] StreamingRecognitionResult speechWordInfo + * @property {google.protobuf.IDuration|null} [speechEndOffset] StreamingRecognitionResult speechEndOffset */ /** - * Constructs a new GetSessionEntityTypeRequest. + * Constructs a new StreamingRecognitionResult. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GetSessionEntityTypeRequest. - * @implements IGetSessionEntityTypeRequest + * @classdesc Represents a StreamingRecognitionResult. + * @implements IStreamingRecognitionResult * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult=} [properties] Properties to set */ - function GetSessionEntityTypeRequest(properties) { + function StreamingRecognitionResult(properties) { + this.speechWordInfo = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -92905,75 +93006,156 @@ } /** - * GetSessionEntityTypeRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest + * StreamingRecognitionResult messageType. + * @member {google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType} messageType + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult * @instance */ - GetSessionEntityTypeRequest.prototype.name = ""; + StreamingRecognitionResult.prototype.messageType = 0; /** - * Creates a new GetSessionEntityTypeRequest instance using the specified properties. + * StreamingRecognitionResult transcript. + * @member {string} transcript + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @instance + */ + StreamingRecognitionResult.prototype.transcript = ""; + + /** + * StreamingRecognitionResult isFinal. + * @member {boolean} isFinal + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @instance + */ + StreamingRecognitionResult.prototype.isFinal = false; + + /** + * StreamingRecognitionResult confidence. + * @member {number} confidence + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @instance + */ + StreamingRecognitionResult.prototype.confidence = 0; + + /** + * StreamingRecognitionResult stability. + * @member {number} stability + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @instance + */ + StreamingRecognitionResult.prototype.stability = 0; + + /** + * StreamingRecognitionResult speechWordInfo. + * @member {Array.} speechWordInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @instance + */ + StreamingRecognitionResult.prototype.speechWordInfo = $util.emptyArray; + + /** + * StreamingRecognitionResult speechEndOffset. + * @member {google.protobuf.IDuration|null|undefined} speechEndOffset + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @instance + */ + StreamingRecognitionResult.prototype.speechEndOffset = null; + + /** + * Creates a new StreamingRecognitionResult instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult} StreamingRecognitionResult instance */ - GetSessionEntityTypeRequest.create = function create(properties) { - return new GetSessionEntityTypeRequest(properties); + StreamingRecognitionResult.create = function create(properties) { + return new StreamingRecognitionResult(properties); }; /** - * Encodes the specified GetSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified StreamingRecognitionResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest} message GetSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult} message StreamingRecognitionResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSessionEntityTypeRequest.encode = function encode(message, writer) { + StreamingRecognitionResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.messageType != null && Object.hasOwnProperty.call(message, "messageType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.messageType); + if (message.transcript != null && Object.hasOwnProperty.call(message, "transcript")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.transcript); + if (message.isFinal != null && Object.hasOwnProperty.call(message, "isFinal")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isFinal); + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) + writer.uint32(/* id 4, wireType 5 =*/37).float(message.confidence); + if (message.stability != null && Object.hasOwnProperty.call(message, "stability")) + writer.uint32(/* id 6, wireType 5 =*/53).float(message.stability); + if (message.speechWordInfo != null && message.speechWordInfo.length) + for (var i = 0; i < message.speechWordInfo.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.encode(message.speechWordInfo[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.speechEndOffset != null && Object.hasOwnProperty.call(message, "speechEndOffset")) + $root.google.protobuf.Duration.encode(message.speechEndOffset, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified StreamingRecognitionResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest} message GetSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult} message StreamingRecognitionResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + StreamingRecognitionResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer. + * Decodes a StreamingRecognitionResult message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult} StreamingRecognitionResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSessionEntityTypeRequest.decode = function decode(reader, length) { + StreamingRecognitionResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.messageType = reader.int32(); + break; + case 2: + message.transcript = reader.string(); + break; + case 3: + message.isFinal = reader.bool(); + break; + case 4: + message.confidence = reader.float(); + break; + case 6: + message.stability = reader.float(); + break; + case 7: + if (!(message.speechWordInfo && message.speechWordInfo.length)) + message.speechWordInfo = []; + message.speechWordInfo.push($root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.decode(reader, reader.uint32())); + break; + case 8: + message.speechEndOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -92984,108 +93166,222 @@ }; /** - * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a StreamingRecognitionResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult} StreamingRecognitionResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSessionEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + StreamingRecognitionResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetSessionEntityTypeRequest message. + * Verifies a StreamingRecognitionResult message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetSessionEntityTypeRequest.verify = function verify(message) { + StreamingRecognitionResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.messageType != null && message.hasOwnProperty("messageType")) + switch (message.messageType) { + default: + return "messageType: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.transcript != null && message.hasOwnProperty("transcript")) + if (!$util.isString(message.transcript)) + return "transcript: string expected"; + if (message.isFinal != null && message.hasOwnProperty("isFinal")) + if (typeof message.isFinal !== "boolean") + return "isFinal: boolean expected"; + if (message.confidence != null && message.hasOwnProperty("confidence")) + if (typeof message.confidence !== "number") + return "confidence: number expected"; + if (message.stability != null && message.hasOwnProperty("stability")) + if (typeof message.stability !== "number") + return "stability: number expected"; + if (message.speechWordInfo != null && message.hasOwnProperty("speechWordInfo")) { + if (!Array.isArray(message.speechWordInfo)) + return "speechWordInfo: array expected"; + for (var i = 0; i < message.speechWordInfo.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.verify(message.speechWordInfo[i]); + if (error) + return "speechWordInfo." + error; + } + } + if (message.speechEndOffset != null && message.hasOwnProperty("speechEndOffset")) { + var error = $root.google.protobuf.Duration.verify(message.speechEndOffset); + if (error) + return "speechEndOffset." + error; + } return null; }; /** - * Creates a GetSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingRecognitionResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult} StreamingRecognitionResult */ - GetSessionEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest) + StreamingRecognitionResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult(); + switch (object.messageType) { + case "MESSAGE_TYPE_UNSPECIFIED": + case 0: + message.messageType = 0; + break; + case "TRANSCRIPT": + case 1: + message.messageType = 1; + break; + case "END_OF_SINGLE_UTTERANCE": + case 2: + message.messageType = 2; + break; + } + if (object.transcript != null) + message.transcript = String(object.transcript); + if (object.isFinal != null) + message.isFinal = Boolean(object.isFinal); + if (object.confidence != null) + message.confidence = Number(object.confidence); + if (object.stability != null) + message.stability = Number(object.stability); + if (object.speechWordInfo) { + if (!Array.isArray(object.speechWordInfo)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.speechWordInfo: array expected"); + message.speechWordInfo = []; + for (var i = 0; i < object.speechWordInfo.length; ++i) { + if (typeof object.speechWordInfo[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.speechWordInfo: object expected"); + message.speechWordInfo[i] = $root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.fromObject(object.speechWordInfo[i]); + } + } + if (object.speechEndOffset != null) { + if (typeof object.speechEndOffset !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.speechEndOffset: object expected"); + message.speechEndOffset = $root.google.protobuf.Duration.fromObject(object.speechEndOffset); + } return message; }; /** - * Creates a plain object from a GetSessionEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from a StreamingRecognitionResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest} message GetSessionEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult} message StreamingRecognitionResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSessionEntityTypeRequest.toObject = function toObject(message, options) { + StreamingRecognitionResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.arrays || options.defaults) + object.speechWordInfo = []; + if (options.defaults) { + object.messageType = options.enums === String ? "MESSAGE_TYPE_UNSPECIFIED" : 0; + object.transcript = ""; + object.isFinal = false; + object.confidence = 0; + object.stability = 0; + object.speechEndOffset = null; + } + if (message.messageType != null && message.hasOwnProperty("messageType")) + object.messageType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType[message.messageType] : message.messageType; + if (message.transcript != null && message.hasOwnProperty("transcript")) + object.transcript = message.transcript; + if (message.isFinal != null && message.hasOwnProperty("isFinal")) + object.isFinal = message.isFinal; + if (message.confidence != null && message.hasOwnProperty("confidence")) + object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; + if (message.stability != null && message.hasOwnProperty("stability")) + object.stability = options.json && !isFinite(message.stability) ? String(message.stability) : message.stability; + if (message.speechWordInfo && message.speechWordInfo.length) { + object.speechWordInfo = []; + for (var j = 0; j < message.speechWordInfo.length; ++j) + object.speechWordInfo[j] = $root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.toObject(message.speechWordInfo[j], options); + } + if (message.speechEndOffset != null && message.hasOwnProperty("speechEndOffset")) + object.speechEndOffset = $root.google.protobuf.Duration.toObject(message.speechEndOffset, options); return object; }; /** - * Converts this GetSessionEntityTypeRequest to JSON. + * Converts this StreamingRecognitionResult to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult * @instance * @returns {Object.} JSON object */ - GetSessionEntityTypeRequest.prototype.toJSON = function toJSON() { + StreamingRecognitionResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetSessionEntityTypeRequest; + /** + * MessageType enum. + * @name google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType + * @enum {number} + * @property {number} MESSAGE_TYPE_UNSPECIFIED=0 MESSAGE_TYPE_UNSPECIFIED value + * @property {number} TRANSCRIPT=1 TRANSCRIPT value + * @property {number} END_OF_SINGLE_UTTERANCE=2 END_OF_SINGLE_UTTERANCE value + */ + StreamingRecognitionResult.MessageType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MESSAGE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "TRANSCRIPT"] = 1; + values[valuesById[2] = "END_OF_SINGLE_UTTERANCE"] = 2; + return values; + })(); + + return StreamingRecognitionResult; })(); - v3beta1.CreateSessionEntityTypeRequest = (function() { + v3beta1.QueryParameters = (function() { /** - * Properties of a CreateSessionEntityTypeRequest. + * Properties of a QueryParameters. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ICreateSessionEntityTypeRequest - * @property {string|null} [parent] CreateSessionEntityTypeRequest parent - * @property {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null} [sessionEntityType] CreateSessionEntityTypeRequest sessionEntityType + * @interface IQueryParameters + * @property {string|null} [timeZone] QueryParameters timeZone + * @property {google.type.ILatLng|null} [geoLocation] QueryParameters geoLocation + * @property {Array.|null} [sessionEntityTypes] QueryParameters sessionEntityTypes + * @property {google.protobuf.IStruct|null} [payload] QueryParameters payload + * @property {google.protobuf.IStruct|null} [parameters] QueryParameters parameters + * @property {boolean|null} [disableWebhook] QueryParameters disableWebhook + * @property {boolean|null} [analyzeQueryTextSentiment] QueryParameters analyzeQueryTextSentiment + * @property {Object.|null} [webhookHeaders] QueryParameters webhookHeaders */ /** - * Constructs a new CreateSessionEntityTypeRequest. + * Constructs a new QueryParameters. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a CreateSessionEntityTypeRequest. - * @implements ICreateSessionEntityTypeRequest + * @classdesc Represents a QueryParameters. + * @implements IQueryParameters * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IQueryParameters=} [properties] Properties to set */ - function CreateSessionEntityTypeRequest(properties) { + function QueryParameters(properties) { + this.sessionEntityTypes = []; + this.webhookHeaders = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -93093,88 +93389,189 @@ } /** - * CreateSessionEntityTypeRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest + * QueryParameters timeZone. + * @member {string} timeZone + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters * @instance */ - CreateSessionEntityTypeRequest.prototype.parent = ""; + QueryParameters.prototype.timeZone = ""; /** - * CreateSessionEntityTypeRequest sessionEntityType. - * @member {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null|undefined} sessionEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest + * QueryParameters geoLocation. + * @member {google.type.ILatLng|null|undefined} geoLocation + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters * @instance */ - CreateSessionEntityTypeRequest.prototype.sessionEntityType = null; + QueryParameters.prototype.geoLocation = null; /** - * Creates a new CreateSessionEntityTypeRequest instance using the specified properties. + * QueryParameters sessionEntityTypes. + * @member {Array.} sessionEntityTypes + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @instance + */ + QueryParameters.prototype.sessionEntityTypes = $util.emptyArray; + + /** + * QueryParameters payload. + * @member {google.protobuf.IStruct|null|undefined} payload + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @instance + */ + QueryParameters.prototype.payload = null; + + /** + * QueryParameters parameters. + * @member {google.protobuf.IStruct|null|undefined} parameters + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @instance + */ + QueryParameters.prototype.parameters = null; + + /** + * QueryParameters disableWebhook. + * @member {boolean} disableWebhook + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @instance + */ + QueryParameters.prototype.disableWebhook = false; + + /** + * QueryParameters analyzeQueryTextSentiment. + * @member {boolean} analyzeQueryTextSentiment + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @instance + */ + QueryParameters.prototype.analyzeQueryTextSentiment = false; + + /** + * QueryParameters webhookHeaders. + * @member {Object.} webhookHeaders + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @instance + */ + QueryParameters.prototype.webhookHeaders = $util.emptyObject; + + /** + * Creates a new QueryParameters instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IQueryParameters=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.QueryParameters} QueryParameters instance */ - CreateSessionEntityTypeRequest.create = function create(properties) { - return new CreateSessionEntityTypeRequest(properties); + QueryParameters.create = function create(properties) { + return new QueryParameters(properties); }; /** - * Encodes the specified CreateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified QueryParameters message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryParameters.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest} message CreateSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IQueryParameters} message QueryParameters message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateSessionEntityTypeRequest.encode = function encode(message, writer) { + QueryParameters.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.sessionEntityType != null && Object.hasOwnProperty.call(message, "sessionEntityType")) - $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.encode(message.sessionEntityType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.timeZone != null && Object.hasOwnProperty.call(message, "timeZone")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.timeZone); + if (message.geoLocation != null && Object.hasOwnProperty.call(message, "geoLocation")) + $root.google.type.LatLng.encode(message.geoLocation, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.sessionEntityTypes != null && message.sessionEntityTypes.length) + for (var i = 0; i < message.sessionEntityTypes.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.encode(message.sessionEntityTypes[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) + $root.google.protobuf.Struct.encode(message.payload, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + $root.google.protobuf.Struct.encode(message.parameters, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.disableWebhook != null && Object.hasOwnProperty.call(message, "disableWebhook")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.disableWebhook); + if (message.analyzeQueryTextSentiment != null && Object.hasOwnProperty.call(message, "analyzeQueryTextSentiment")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.analyzeQueryTextSentiment); + if (message.webhookHeaders != null && Object.hasOwnProperty.call(message, "webhookHeaders")) + for (var keys = Object.keys(message.webhookHeaders), i = 0; i < keys.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.webhookHeaders[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified CreateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified QueryParameters message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryParameters.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest} message CreateSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IQueryParameters} message QueryParameters message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryParameters.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer. + * Decodes a QueryParameters message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.QueryParameters} QueryParameters * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateSessionEntityTypeRequest.decode = function decode(reader, length) { + QueryParameters.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.timeZone = reader.string(); break; case 2: - message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.decode(reader, reader.uint32()); + message.geoLocation = $root.google.type.LatLng.decode(reader, reader.uint32()); + break; + case 3: + if (!(message.sessionEntityTypes && message.sessionEntityTypes.length)) + message.sessionEntityTypes = []; + message.sessionEntityTypes.push($root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.decode(reader, reader.uint32())); + break; + case 4: + message.payload = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 5: + message.parameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 7: + message.disableWebhook = reader.bool(); + break; + case 8: + message.analyzeQueryTextSentiment = reader.bool(); + break; + case 10: + if (message.webhookHeaders === $util.emptyObject) + message.webhookHeaders = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.webhookHeaders[key] = value; break; default: reader.skipType(tag & 7); @@ -93185,211 +93582,372 @@ }; /** - * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryParameters message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.QueryParameters} QueryParameters * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateSessionEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + QueryParameters.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateSessionEntityTypeRequest message. + * Verifies a QueryParameters message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateSessionEntityTypeRequest.verify = function verify(message) { + QueryParameters.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify(message.sessionEntityType); + if (message.timeZone != null && message.hasOwnProperty("timeZone")) + if (!$util.isString(message.timeZone)) + return "timeZone: string expected"; + if (message.geoLocation != null && message.hasOwnProperty("geoLocation")) { + var error = $root.google.type.LatLng.verify(message.geoLocation); if (error) - return "sessionEntityType." + error; + return "geoLocation." + error; + } + if (message.sessionEntityTypes != null && message.hasOwnProperty("sessionEntityTypes")) { + if (!Array.isArray(message.sessionEntityTypes)) + return "sessionEntityTypes: array expected"; + for (var i = 0; i < message.sessionEntityTypes.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify(message.sessionEntityTypes[i]); + if (error) + return "sessionEntityTypes." + error; + } + } + if (message.payload != null && message.hasOwnProperty("payload")) { + var error = $root.google.protobuf.Struct.verify(message.payload); + if (error) + return "payload." + error; + } + if (message.parameters != null && message.hasOwnProperty("parameters")) { + var error = $root.google.protobuf.Struct.verify(message.parameters); + if (error) + return "parameters." + error; + } + if (message.disableWebhook != null && message.hasOwnProperty("disableWebhook")) + if (typeof message.disableWebhook !== "boolean") + return "disableWebhook: boolean expected"; + if (message.analyzeQueryTextSentiment != null && message.hasOwnProperty("analyzeQueryTextSentiment")) + if (typeof message.analyzeQueryTextSentiment !== "boolean") + return "analyzeQueryTextSentiment: boolean expected"; + if (message.webhookHeaders != null && message.hasOwnProperty("webhookHeaders")) { + if (!$util.isObject(message.webhookHeaders)) + return "webhookHeaders: object expected"; + var key = Object.keys(message.webhookHeaders); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.webhookHeaders[key[i]])) + return "webhookHeaders: string{k:string} expected"; } return null; }; /** - * Creates a CreateSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryParameters message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.QueryParameters} QueryParameters */ - CreateSessionEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest) + QueryParameters.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.sessionEntityType != null) { - if (typeof object.sessionEntityType !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest.sessionEntityType: object expected"); - message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.fromObject(object.sessionEntityType); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters(); + if (object.timeZone != null) + message.timeZone = String(object.timeZone); + if (object.geoLocation != null) { + if (typeof object.geoLocation !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryParameters.geoLocation: object expected"); + message.geoLocation = $root.google.type.LatLng.fromObject(object.geoLocation); + } + if (object.sessionEntityTypes) { + if (!Array.isArray(object.sessionEntityTypes)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryParameters.sessionEntityTypes: array expected"); + message.sessionEntityTypes = []; + for (var i = 0; i < object.sessionEntityTypes.length; ++i) { + if (typeof object.sessionEntityTypes[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryParameters.sessionEntityTypes: object expected"); + message.sessionEntityTypes[i] = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.fromObject(object.sessionEntityTypes[i]); + } + } + if (object.payload != null) { + if (typeof object.payload !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryParameters.payload: object expected"); + message.payload = $root.google.protobuf.Struct.fromObject(object.payload); + } + if (object.parameters != null) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryParameters.parameters: object expected"); + message.parameters = $root.google.protobuf.Struct.fromObject(object.parameters); + } + if (object.disableWebhook != null) + message.disableWebhook = Boolean(object.disableWebhook); + if (object.analyzeQueryTextSentiment != null) + message.analyzeQueryTextSentiment = Boolean(object.analyzeQueryTextSentiment); + if (object.webhookHeaders) { + if (typeof object.webhookHeaders !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryParameters.webhookHeaders: object expected"); + message.webhookHeaders = {}; + for (var keys = Object.keys(object.webhookHeaders), i = 0; i < keys.length; ++i) + message.webhookHeaders[keys[i]] = String(object.webhookHeaders[keys[i]]); } return message; }; /** - * Creates a plain object from a CreateSessionEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryParameters message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest} message CreateSessionEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3beta1.QueryParameters} message QueryParameters * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateSessionEntityTypeRequest.toObject = function toObject(message, options) { + QueryParameters.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.sessionEntityTypes = []; + if (options.objects || options.defaults) + object.webhookHeaders = {}; if (options.defaults) { - object.parent = ""; - object.sessionEntityType = null; + object.timeZone = ""; + object.geoLocation = null; + object.payload = null; + object.parameters = null; + object.disableWebhook = false; + object.analyzeQueryTextSentiment = false; + } + if (message.timeZone != null && message.hasOwnProperty("timeZone")) + object.timeZone = message.timeZone; + if (message.geoLocation != null && message.hasOwnProperty("geoLocation")) + object.geoLocation = $root.google.type.LatLng.toObject(message.geoLocation, options); + if (message.sessionEntityTypes && message.sessionEntityTypes.length) { + object.sessionEntityTypes = []; + for (var j = 0; j < message.sessionEntityTypes.length; ++j) + object.sessionEntityTypes[j] = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.toObject(message.sessionEntityTypes[j], options); + } + if (message.payload != null && message.hasOwnProperty("payload")) + object.payload = $root.google.protobuf.Struct.toObject(message.payload, options); + if (message.parameters != null && message.hasOwnProperty("parameters")) + object.parameters = $root.google.protobuf.Struct.toObject(message.parameters, options); + if (message.disableWebhook != null && message.hasOwnProperty("disableWebhook")) + object.disableWebhook = message.disableWebhook; + if (message.analyzeQueryTextSentiment != null && message.hasOwnProperty("analyzeQueryTextSentiment")) + object.analyzeQueryTextSentiment = message.analyzeQueryTextSentiment; + var keys2; + if (message.webhookHeaders && (keys2 = Object.keys(message.webhookHeaders)).length) { + object.webhookHeaders = {}; + for (var j = 0; j < keys2.length; ++j) + object.webhookHeaders[keys2[j]] = message.webhookHeaders[keys2[j]]; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) - object.sessionEntityType = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.toObject(message.sessionEntityType, options); return object; }; /** - * Converts this CreateSessionEntityTypeRequest to JSON. + * Converts this QueryParameters to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters * @instance * @returns {Object.} JSON object */ - CreateSessionEntityTypeRequest.prototype.toJSON = function toJSON() { + QueryParameters.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateSessionEntityTypeRequest; + return QueryParameters; })(); - v3beta1.UpdateSessionEntityTypeRequest = (function() { + v3beta1.QueryInput = (function() { /** - * Properties of an UpdateSessionEntityTypeRequest. + * Properties of a QueryInput. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IUpdateSessionEntityTypeRequest - * @property {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null} [sessionEntityType] UpdateSessionEntityTypeRequest sessionEntityType - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSessionEntityTypeRequest updateMask + * @interface IQueryInput + * @property {google.cloud.dialogflow.cx.v3beta1.ITextInput|null} [text] QueryInput text + * @property {google.cloud.dialogflow.cx.v3beta1.IIntentInput|null} [intent] QueryInput intent + * @property {google.cloud.dialogflow.cx.v3beta1.IAudioInput|null} [audio] QueryInput audio + * @property {google.cloud.dialogflow.cx.v3beta1.IEventInput|null} [event] QueryInput event + * @property {google.cloud.dialogflow.cx.v3beta1.IDtmfInput|null} [dtmf] QueryInput dtmf + * @property {string|null} [languageCode] QueryInput languageCode */ /** - * Constructs a new UpdateSessionEntityTypeRequest. + * Constructs a new QueryInput. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an UpdateSessionEntityTypeRequest. - * @implements IUpdateSessionEntityTypeRequest + * @classdesc Represents a QueryInput. + * @implements IQueryInput * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IQueryInput=} [properties] Properties to set + */ + function QueryInput(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * QueryInput text. + * @member {google.cloud.dialogflow.cx.v3beta1.ITextInput|null|undefined} text + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @instance + */ + QueryInput.prototype.text = null; + + /** + * QueryInput intent. + * @member {google.cloud.dialogflow.cx.v3beta1.IIntentInput|null|undefined} intent + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @instance + */ + QueryInput.prototype.intent = null; + + /** + * QueryInput audio. + * @member {google.cloud.dialogflow.cx.v3beta1.IAudioInput|null|undefined} audio + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @instance + */ + QueryInput.prototype.audio = null; + + /** + * QueryInput event. + * @member {google.cloud.dialogflow.cx.v3beta1.IEventInput|null|undefined} event + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @instance + */ + QueryInput.prototype.event = null; + + /** + * QueryInput dtmf. + * @member {google.cloud.dialogflow.cx.v3beta1.IDtmfInput|null|undefined} dtmf + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @instance */ - function UpdateSessionEntityTypeRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + QueryInput.prototype.dtmf = null; /** - * UpdateSessionEntityTypeRequest sessionEntityType. - * @member {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null|undefined} sessionEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest + * QueryInput languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput * @instance */ - UpdateSessionEntityTypeRequest.prototype.sessionEntityType = null; + QueryInput.prototype.languageCode = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * UpdateSessionEntityTypeRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest + * QueryInput input. + * @member {"text"|"intent"|"audio"|"event"|"dtmf"|undefined} input + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput * @instance */ - UpdateSessionEntityTypeRequest.prototype.updateMask = null; + Object.defineProperty(QueryInput.prototype, "input", { + get: $util.oneOfGetter($oneOfFields = ["text", "intent", "audio", "event", "dtmf"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new UpdateSessionEntityTypeRequest instance using the specified properties. + * Creates a new QueryInput instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IQueryInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.QueryInput} QueryInput instance */ - UpdateSessionEntityTypeRequest.create = function create(properties) { - return new UpdateSessionEntityTypeRequest(properties); + QueryInput.create = function create(properties) { + return new QueryInput(properties); }; /** - * Encodes the specified UpdateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified QueryInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryInput.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest} message UpdateSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IQueryInput} message QueryInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateSessionEntityTypeRequest.encode = function encode(message, writer) { + QueryInput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sessionEntityType != null && Object.hasOwnProperty.call(message, "sessionEntityType")) - $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.encode(message.sessionEntityType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.text != null && Object.hasOwnProperty.call(message, "text")) + $root.google.cloud.dialogflow.cx.v3beta1.TextInput.encode(message.text, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) + $root.google.cloud.dialogflow.cx.v3beta1.IntentInput.encode(message.intent, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.languageCode); + if (message.audio != null && Object.hasOwnProperty.call(message, "audio")) + $root.google.cloud.dialogflow.cx.v3beta1.AudioInput.encode(message.audio, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.event != null && Object.hasOwnProperty.call(message, "event")) + $root.google.cloud.dialogflow.cx.v3beta1.EventInput.encode(message.event, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.dtmf != null && Object.hasOwnProperty.call(message, "dtmf")) + $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.encode(message.dtmf, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified QueryInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest} message UpdateSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IQueryInput} message QueryInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateSessionEntityTypeRequest message from the specified reader or buffer. + * Decodes a QueryInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.QueryInput} QueryInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateSessionEntityTypeRequest.decode = function decode(reader, length) { + QueryInput.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.QueryInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.decode(reader, reader.uint32()); - break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.text = $root.google.cloud.dialogflow.cx.v3beta1.TextInput.decode(reader, reader.uint32()); + break; + case 3: + message.intent = $root.google.cloud.dialogflow.cx.v3beta1.IntentInput.decode(reader, reader.uint32()); + break; + case 5: + message.audio = $root.google.cloud.dialogflow.cx.v3beta1.AudioInput.decode(reader, reader.uint32()); + break; + case 6: + message.event = $root.google.cloud.dialogflow.cx.v3beta1.EventInput.decode(reader, reader.uint32()); + break; + case 7: + message.dtmf = $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.decode(reader, reader.uint32()); + break; + case 4: + message.languageCode = reader.string(); break; default: reader.skipType(tag & 7); @@ -93400,126 +93958,223 @@ }; /** - * Decodes an UpdateSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.QueryInput} QueryInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateSessionEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + QueryInput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateSessionEntityTypeRequest message. + * Verifies a QueryInput message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateSessionEntityTypeRequest.verify = function verify(message) { + QueryInput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify(message.sessionEntityType); - if (error) - return "sessionEntityType." + error; + var properties = {}; + if (message.text != null && message.hasOwnProperty("text")) { + properties.input = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TextInput.verify(message.text); + if (error) + return "text." + error; + } } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; + if (message.intent != null && message.hasOwnProperty("intent")) { + if (properties.input === 1) + return "input: multiple values"; + properties.input = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.IntentInput.verify(message.intent); + if (error) + return "intent." + error; + } + } + if (message.audio != null && message.hasOwnProperty("audio")) { + if (properties.input === 1) + return "input: multiple values"; + properties.input = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.AudioInput.verify(message.audio); + if (error) + return "audio." + error; + } + } + if (message.event != null && message.hasOwnProperty("event")) { + if (properties.input === 1) + return "input: multiple values"; + properties.input = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.EventInput.verify(message.event); + if (error) + return "event." + error; + } + } + if (message.dtmf != null && message.hasOwnProperty("dtmf")) { + if (properties.input === 1) + return "input: multiple values"; + properties.input = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.verify(message.dtmf); + if (error) + return "dtmf." + error; + } } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates an UpdateSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.QueryInput} QueryInput */ - UpdateSessionEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest) + QueryInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.QueryInput) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest(); - if (object.sessionEntityType != null) { - if (typeof object.sessionEntityType !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest.sessionEntityType: object expected"); - message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.fromObject(object.sessionEntityType); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.QueryInput(); + if (object.text != null) { + if (typeof object.text !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryInput.text: object expected"); + message.text = $root.google.cloud.dialogflow.cx.v3beta1.TextInput.fromObject(object.text); } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + if (object.intent != null) { + if (typeof object.intent !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryInput.intent: object expected"); + message.intent = $root.google.cloud.dialogflow.cx.v3beta1.IntentInput.fromObject(object.intent); + } + if (object.audio != null) { + if (typeof object.audio !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryInput.audio: object expected"); + message.audio = $root.google.cloud.dialogflow.cx.v3beta1.AudioInput.fromObject(object.audio); + } + if (object.event != null) { + if (typeof object.event !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryInput.event: object expected"); + message.event = $root.google.cloud.dialogflow.cx.v3beta1.EventInput.fromObject(object.event); + } + if (object.dtmf != null) { + if (typeof object.dtmf !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryInput.dtmf: object expected"); + message.dtmf = $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.fromObject(object.dtmf); } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from an UpdateSessionEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest} message UpdateSessionEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3beta1.QueryInput} message QueryInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateSessionEntityTypeRequest.toObject = function toObject(message, options) { + QueryInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.sessionEntityType = null; - object.updateMask = null; + if (options.defaults) + object.languageCode = ""; + if (message.text != null && message.hasOwnProperty("text")) { + object.text = $root.google.cloud.dialogflow.cx.v3beta1.TextInput.toObject(message.text, options); + if (options.oneofs) + object.input = "text"; + } + if (message.intent != null && message.hasOwnProperty("intent")) { + object.intent = $root.google.cloud.dialogflow.cx.v3beta1.IntentInput.toObject(message.intent, options); + if (options.oneofs) + object.input = "intent"; + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + if (message.audio != null && message.hasOwnProperty("audio")) { + object.audio = $root.google.cloud.dialogflow.cx.v3beta1.AudioInput.toObject(message.audio, options); + if (options.oneofs) + object.input = "audio"; + } + if (message.event != null && message.hasOwnProperty("event")) { + object.event = $root.google.cloud.dialogflow.cx.v3beta1.EventInput.toObject(message.event, options); + if (options.oneofs) + object.input = "event"; + } + if (message.dtmf != null && message.hasOwnProperty("dtmf")) { + object.dtmf = $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.toObject(message.dtmf, options); + if (options.oneofs) + object.input = "dtmf"; } - if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) - object.sessionEntityType = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.toObject(message.sessionEntityType, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this UpdateSessionEntityTypeRequest to JSON. + * Converts this QueryInput to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput * @instance * @returns {Object.} JSON object */ - UpdateSessionEntityTypeRequest.prototype.toJSON = function toJSON() { + QueryInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateSessionEntityTypeRequest; + return QueryInput; })(); - v3beta1.DeleteSessionEntityTypeRequest = (function() { + v3beta1.QueryResult = (function() { /** - * Properties of a DeleteSessionEntityTypeRequest. + * Properties of a QueryResult. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDeleteSessionEntityTypeRequest - * @property {string|null} [name] DeleteSessionEntityTypeRequest name + * @interface IQueryResult + * @property {string|null} [text] QueryResult text + * @property {string|null} [triggerIntent] QueryResult triggerIntent + * @property {string|null} [transcript] QueryResult transcript + * @property {string|null} [triggerEvent] QueryResult triggerEvent + * @property {string|null} [languageCode] QueryResult languageCode + * @property {google.protobuf.IStruct|null} [parameters] QueryResult parameters + * @property {Array.|null} [responseMessages] QueryResult responseMessages + * @property {Array.|null} [webhookStatuses] QueryResult webhookStatuses + * @property {Array.|null} [webhookPayloads] QueryResult webhookPayloads + * @property {google.cloud.dialogflow.cx.v3beta1.IPage|null} [currentPage] QueryResult currentPage + * @property {google.cloud.dialogflow.cx.v3beta1.IIntent|null} [intent] QueryResult intent + * @property {number|null} [intentDetectionConfidence] QueryResult intentDetectionConfidence + * @property {google.cloud.dialogflow.cx.v3beta1.IMatch|null} [match] QueryResult match + * @property {google.protobuf.IStruct|null} [diagnosticInfo] QueryResult diagnosticInfo + * @property {google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult|null} [sentimentAnalysisResult] QueryResult sentimentAnalysisResult */ /** - * Constructs a new DeleteSessionEntityTypeRequest. + * Constructs a new QueryResult. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DeleteSessionEntityTypeRequest. - * @implements IDeleteSessionEntityTypeRequest + * @classdesc Represents a QueryResult. + * @implements IQueryResult * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IQueryResult=} [properties] Properties to set */ - function DeleteSessionEntityTypeRequest(properties) { + function QueryResult(properties) { + this.responseMessages = []; + this.webhookStatuses = []; + this.webhookPayloads = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -93527,75 +94182,280 @@ } /** - * DeleteSessionEntityTypeRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest + * QueryResult text. + * @member {string} text + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult * @instance */ - DeleteSessionEntityTypeRequest.prototype.name = ""; + QueryResult.prototype.text = ""; /** - * Creates a new DeleteSessionEntityTypeRequest instance using the specified properties. + * QueryResult triggerIntent. + * @member {string} triggerIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @instance + */ + QueryResult.prototype.triggerIntent = ""; + + /** + * QueryResult transcript. + * @member {string} transcript + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @instance + */ + QueryResult.prototype.transcript = ""; + + /** + * QueryResult triggerEvent. + * @member {string} triggerEvent + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @instance + */ + QueryResult.prototype.triggerEvent = ""; + + /** + * QueryResult languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @instance + */ + QueryResult.prototype.languageCode = ""; + + /** + * QueryResult parameters. + * @member {google.protobuf.IStruct|null|undefined} parameters + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @instance + */ + QueryResult.prototype.parameters = null; + + /** + * QueryResult responseMessages. + * @member {Array.} responseMessages + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @instance + */ + QueryResult.prototype.responseMessages = $util.emptyArray; + + /** + * QueryResult webhookStatuses. + * @member {Array.} webhookStatuses + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @instance + */ + QueryResult.prototype.webhookStatuses = $util.emptyArray; + + /** + * QueryResult webhookPayloads. + * @member {Array.} webhookPayloads + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @instance + */ + QueryResult.prototype.webhookPayloads = $util.emptyArray; + + /** + * QueryResult currentPage. + * @member {google.cloud.dialogflow.cx.v3beta1.IPage|null|undefined} currentPage + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @instance + */ + QueryResult.prototype.currentPage = null; + + /** + * QueryResult intent. + * @member {google.cloud.dialogflow.cx.v3beta1.IIntent|null|undefined} intent + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @instance + */ + QueryResult.prototype.intent = null; + + /** + * QueryResult intentDetectionConfidence. + * @member {number} intentDetectionConfidence + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @instance + */ + QueryResult.prototype.intentDetectionConfidence = 0; + + /** + * QueryResult match. + * @member {google.cloud.dialogflow.cx.v3beta1.IMatch|null|undefined} match + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @instance + */ + QueryResult.prototype.match = null; + + /** + * QueryResult diagnosticInfo. + * @member {google.protobuf.IStruct|null|undefined} diagnosticInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @instance + */ + QueryResult.prototype.diagnosticInfo = null; + + /** + * QueryResult sentimentAnalysisResult. + * @member {google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult|null|undefined} sentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @instance + */ + QueryResult.prototype.sentimentAnalysisResult = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * QueryResult query. + * @member {"text"|"triggerIntent"|"transcript"|"triggerEvent"|undefined} query + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @instance + */ + Object.defineProperty(QueryResult.prototype, "query", { + get: $util.oneOfGetter($oneOfFields = ["text", "triggerIntent", "transcript", "triggerEvent"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new QueryResult instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IQueryResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.QueryResult} QueryResult instance */ - DeleteSessionEntityTypeRequest.create = function create(properties) { - return new DeleteSessionEntityTypeRequest(properties); + QueryResult.create = function create(properties) { + return new QueryResult(properties); }; /** - * Encodes the specified DeleteSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified QueryResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryResult.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest} message DeleteSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IQueryResult} message QueryResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteSessionEntityTypeRequest.encode = function encode(message, writer) { + QueryResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.text != null && Object.hasOwnProperty.call(message, "text")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + $root.google.protobuf.Struct.encode(message.parameters, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.responseMessages != null && message.responseMessages.length) + for (var i = 0; i < message.responseMessages.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.encode(message.responseMessages[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.webhookPayloads != null && message.webhookPayloads.length) + for (var i = 0; i < message.webhookPayloads.length; ++i) + $root.google.protobuf.Struct.encode(message.webhookPayloads[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) + $root.google.cloud.dialogflow.cx.v3beta1.Page.encode(message.currentPage, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) + $root.google.cloud.dialogflow.cx.v3beta1.Intent.encode(message.intent, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.intentDetectionConfidence != null && Object.hasOwnProperty.call(message, "intentDetectionConfidence")) + writer.uint32(/* id 9, wireType 5 =*/77).float(message.intentDetectionConfidence); + if (message.diagnosticInfo != null && Object.hasOwnProperty.call(message, "diagnosticInfo")) + $root.google.protobuf.Struct.encode(message.diagnosticInfo, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.triggerIntent != null && Object.hasOwnProperty.call(message, "triggerIntent")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.triggerIntent); + if (message.transcript != null && Object.hasOwnProperty.call(message, "transcript")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.transcript); + if (message.webhookStatuses != null && message.webhookStatuses.length) + for (var i = 0; i < message.webhookStatuses.length; ++i) + $root.google.rpc.Status.encode(message.webhookStatuses[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.triggerEvent != null && Object.hasOwnProperty.call(message, "triggerEvent")) + writer.uint32(/* id 14, wireType 2 =*/114).string(message.triggerEvent); + if (message.match != null && Object.hasOwnProperty.call(message, "match")) + $root.google.cloud.dialogflow.cx.v3beta1.Match.encode(message.match, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.sentimentAnalysisResult != null && Object.hasOwnProperty.call(message, "sentimentAnalysisResult")) + $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.encode(message.sentimentAnalysisResult, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified QueryResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryResult.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest} message DeleteSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IQueryResult} message QueryResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer. + * Decodes a QueryResult message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.QueryResult} QueryResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteSessionEntityTypeRequest.decode = function decode(reader, length) { + QueryResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.QueryResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.text = reader.string(); + break; + case 11: + message.triggerIntent = reader.string(); + break; + case 12: + message.transcript = reader.string(); + break; + case 14: + message.triggerEvent = reader.string(); + break; + case 2: + message.languageCode = reader.string(); + break; + case 3: + message.parameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 4: + if (!(message.responseMessages && message.responseMessages.length)) + message.responseMessages = []; + message.responseMessages.push($root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.decode(reader, reader.uint32())); + break; + case 13: + if (!(message.webhookStatuses && message.webhookStatuses.length)) + message.webhookStatuses = []; + message.webhookStatuses.push($root.google.rpc.Status.decode(reader, reader.uint32())); + break; + case 6: + if (!(message.webhookPayloads && message.webhookPayloads.length)) + message.webhookPayloads = []; + message.webhookPayloads.push($root.google.protobuf.Struct.decode(reader, reader.uint32())); + break; + case 7: + message.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.decode(reader, reader.uint32()); + break; + case 8: + message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.decode(reader, reader.uint32()); + break; + case 9: + message.intentDetectionConfidence = reader.float(); + break; + case 15: + message.match = $root.google.cloud.dialogflow.cx.v3beta1.Match.decode(reader, reader.uint32()); + break; + case 10: + message.diagnosticInfo = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 17: + message.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -93606,514 +94466,513 @@ }; /** - * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.QueryResult} QueryResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteSessionEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + QueryResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteSessionEntityTypeRequest message. + * Verifies a QueryResult message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteSessionEntityTypeRequest.verify = function verify(message) { + QueryResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + var properties = {}; + if (message.text != null && message.hasOwnProperty("text")) { + properties.query = 1; + if (!$util.isString(message.text)) + return "text: string expected"; + } + if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { + if (properties.query === 1) + return "query: multiple values"; + properties.query = 1; + if (!$util.isString(message.triggerIntent)) + return "triggerIntent: string expected"; + } + if (message.transcript != null && message.hasOwnProperty("transcript")) { + if (properties.query === 1) + return "query: multiple values"; + properties.query = 1; + if (!$util.isString(message.transcript)) + return "transcript: string expected"; + } + if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { + if (properties.query === 1) + return "query: multiple values"; + properties.query = 1; + if (!$util.isString(message.triggerEvent)) + return "triggerEvent: string expected"; + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + if (message.parameters != null && message.hasOwnProperty("parameters")) { + var error = $root.google.protobuf.Struct.verify(message.parameters); + if (error) + return "parameters." + error; + } + if (message.responseMessages != null && message.hasOwnProperty("responseMessages")) { + if (!Array.isArray(message.responseMessages)) + return "responseMessages: array expected"; + for (var i = 0; i < message.responseMessages.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.verify(message.responseMessages[i]); + if (error) + return "responseMessages." + error; + } + } + if (message.webhookStatuses != null && message.hasOwnProperty("webhookStatuses")) { + if (!Array.isArray(message.webhookStatuses)) + return "webhookStatuses: array expected"; + for (var i = 0; i < message.webhookStatuses.length; ++i) { + var error = $root.google.rpc.Status.verify(message.webhookStatuses[i]); + if (error) + return "webhookStatuses." + error; + } + } + if (message.webhookPayloads != null && message.hasOwnProperty("webhookPayloads")) { + if (!Array.isArray(message.webhookPayloads)) + return "webhookPayloads: array expected"; + for (var i = 0; i < message.webhookPayloads.length; ++i) { + var error = $root.google.protobuf.Struct.verify(message.webhookPayloads[i]); + if (error) + return "webhookPayloads." + error; + } + } + if (message.currentPage != null && message.hasOwnProperty("currentPage")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Page.verify(message.currentPage); + if (error) + return "currentPage." + error; + } + if (message.intent != null && message.hasOwnProperty("intent")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.verify(message.intent); + if (error) + return "intent." + error; + } + if (message.intentDetectionConfidence != null && message.hasOwnProperty("intentDetectionConfidence")) + if (typeof message.intentDetectionConfidence !== "number") + return "intentDetectionConfidence: number expected"; + if (message.match != null && message.hasOwnProperty("match")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Match.verify(message.match); + if (error) + return "match." + error; + } + if (message.diagnosticInfo != null && message.hasOwnProperty("diagnosticInfo")) { + var error = $root.google.protobuf.Struct.verify(message.diagnosticInfo); + if (error) + return "diagnosticInfo." + error; + } + if (message.sentimentAnalysisResult != null && message.hasOwnProperty("sentimentAnalysisResult")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.verify(message.sentimentAnalysisResult); + if (error) + return "sentimentAnalysisResult." + error; + } return null; }; /** - * Creates a DeleteSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.QueryResult} QueryResult */ - DeleteSessionEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest) + QueryResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.QueryResult) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.QueryResult(); + if (object.text != null) + message.text = String(object.text); + if (object.triggerIntent != null) + message.triggerIntent = String(object.triggerIntent); + if (object.transcript != null) + message.transcript = String(object.transcript); + if (object.triggerEvent != null) + message.triggerEvent = String(object.triggerEvent); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + if (object.parameters != null) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.parameters: object expected"); + message.parameters = $root.google.protobuf.Struct.fromObject(object.parameters); + } + if (object.responseMessages) { + if (!Array.isArray(object.responseMessages)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.responseMessages: array expected"); + message.responseMessages = []; + for (var i = 0; i < object.responseMessages.length; ++i) { + if (typeof object.responseMessages[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.responseMessages: object expected"); + message.responseMessages[i] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.fromObject(object.responseMessages[i]); + } + } + if (object.webhookStatuses) { + if (!Array.isArray(object.webhookStatuses)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.webhookStatuses: array expected"); + message.webhookStatuses = []; + for (var i = 0; i < object.webhookStatuses.length; ++i) { + if (typeof object.webhookStatuses[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.webhookStatuses: object expected"); + message.webhookStatuses[i] = $root.google.rpc.Status.fromObject(object.webhookStatuses[i]); + } + } + if (object.webhookPayloads) { + if (!Array.isArray(object.webhookPayloads)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.webhookPayloads: array expected"); + message.webhookPayloads = []; + for (var i = 0; i < object.webhookPayloads.length; ++i) { + if (typeof object.webhookPayloads[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.webhookPayloads: object expected"); + message.webhookPayloads[i] = $root.google.protobuf.Struct.fromObject(object.webhookPayloads[i]); + } + } + if (object.currentPage != null) { + if (typeof object.currentPage !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.currentPage: object expected"); + message.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.fromObject(object.currentPage); + } + if (object.intent != null) { + if (typeof object.intent !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.intent: object expected"); + message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.fromObject(object.intent); + } + if (object.intentDetectionConfidence != null) + message.intentDetectionConfidence = Number(object.intentDetectionConfidence); + if (object.match != null) { + if (typeof object.match !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.match: object expected"); + message.match = $root.google.cloud.dialogflow.cx.v3beta1.Match.fromObject(object.match); + } + if (object.diagnosticInfo != null) { + if (typeof object.diagnosticInfo !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.diagnosticInfo: object expected"); + message.diagnosticInfo = $root.google.protobuf.Struct.fromObject(object.diagnosticInfo); + } + if (object.sentimentAnalysisResult != null) { + if (typeof object.sentimentAnalysisResult !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.sentimentAnalysisResult: object expected"); + message.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.fromObject(object.sentimentAnalysisResult); + } return message; }; /** - * Creates a plain object from a DeleteSessionEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest} message DeleteSessionEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3beta1.QueryResult} message QueryResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteSessionEntityTypeRequest.toObject = function toObject(message, options) { + QueryResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; - - /** - * Converts this DeleteSessionEntityTypeRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest - * @instance - * @returns {Object.} JSON object - */ - DeleteSessionEntityTypeRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return DeleteSessionEntityTypeRequest; - })(); - - v3beta1.TestCases = (function() { - - /** - * Constructs a new TestCases service. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a TestCases - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function TestCases(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (TestCases.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = TestCases; - - /** - * Creates new TestCases service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {TestCases} RPC service. Useful where requests and/or responses are streamed. - */ - TestCases.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#listTestCases}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @typedef ListTestCasesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse} [response] ListTestCasesResponse - */ - - /** - * Calls ListTestCases. - * @function listTestCases - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest} request ListTestCasesRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.ListTestCasesCallback} callback Node-style callback called with the error, if any, and ListTestCasesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestCases.prototype.listTestCases = function listTestCases(request, callback) { - return this.rpcCall(listTestCases, $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse, request, callback); - }, "name", { value: "ListTestCases" }); - - /** - * Calls ListTestCases. - * @function listTestCases - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest} request ListTestCasesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#batchDeleteTestCases}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @typedef BatchDeleteTestCasesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty - */ - - /** - * Calls BatchDeleteTestCases. - * @function batchDeleteTestCases - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest} request BatchDeleteTestCasesRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.BatchDeleteTestCasesCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestCases.prototype.batchDeleteTestCases = function batchDeleteTestCases(request, callback) { - return this.rpcCall(batchDeleteTestCases, $root.google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "BatchDeleteTestCases" }); - - /** - * Calls BatchDeleteTestCases. - * @function batchDeleteTestCases - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest} request BatchDeleteTestCasesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#getTestCase}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @typedef GetTestCaseCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.TestCase} [response] TestCase - */ - - /** - * Calls GetTestCase. - * @function getTestCase - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest} request GetTestCaseRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.GetTestCaseCallback} callback Node-style callback called with the error, if any, and TestCase - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestCases.prototype.getTestCase = function getTestCase(request, callback) { - return this.rpcCall(getTestCase, $root.google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest, $root.google.cloud.dialogflow.cx.v3beta1.TestCase, request, callback); - }, "name", { value: "GetTestCase" }); - - /** - * Calls GetTestCase. - * @function getTestCase - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest} request GetTestCaseRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#createTestCase}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @typedef CreateTestCaseCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.TestCase} [response] TestCase - */ - - /** - * Calls CreateTestCase. - * @function createTestCase - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest} request CreateTestCaseRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.CreateTestCaseCallback} callback Node-style callback called with the error, if any, and TestCase - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestCases.prototype.createTestCase = function createTestCase(request, callback) { - return this.rpcCall(createTestCase, $root.google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest, $root.google.cloud.dialogflow.cx.v3beta1.TestCase, request, callback); - }, "name", { value: "CreateTestCase" }); - - /** - * Calls CreateTestCase. - * @function createTestCase - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest} request CreateTestCaseRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#updateTestCase}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @typedef UpdateTestCaseCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.TestCase} [response] TestCase - */ - - /** - * Calls UpdateTestCase. - * @function updateTestCase - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest} request UpdateTestCaseRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.UpdateTestCaseCallback} callback Node-style callback called with the error, if any, and TestCase - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestCases.prototype.updateTestCase = function updateTestCase(request, callback) { - return this.rpcCall(updateTestCase, $root.google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest, $root.google.cloud.dialogflow.cx.v3beta1.TestCase, request, callback); - }, "name", { value: "UpdateTestCase" }); - - /** - * Calls UpdateTestCase. - * @function updateTestCase - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest} request UpdateTestCaseRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#runTestCase}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @typedef RunTestCaseCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls RunTestCase. - * @function runTestCase - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest} request RunTestCaseRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.RunTestCaseCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestCases.prototype.runTestCase = function runTestCase(request, callback) { - return this.rpcCall(runTestCase, $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "RunTestCase" }); + if (options.arrays || options.defaults) { + object.responseMessages = []; + object.webhookPayloads = []; + object.webhookStatuses = []; + } + if (options.defaults) { + object.languageCode = ""; + object.parameters = null; + object.currentPage = null; + object.intent = null; + object.intentDetectionConfidence = 0; + object.diagnosticInfo = null; + object.match = null; + object.sentimentAnalysisResult = null; + } + if (message.text != null && message.hasOwnProperty("text")) { + object.text = message.text; + if (options.oneofs) + object.query = "text"; + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + if (message.parameters != null && message.hasOwnProperty("parameters")) + object.parameters = $root.google.protobuf.Struct.toObject(message.parameters, options); + if (message.responseMessages && message.responseMessages.length) { + object.responseMessages = []; + for (var j = 0; j < message.responseMessages.length; ++j) + object.responseMessages[j] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.toObject(message.responseMessages[j], options); + } + if (message.webhookPayloads && message.webhookPayloads.length) { + object.webhookPayloads = []; + for (var j = 0; j < message.webhookPayloads.length; ++j) + object.webhookPayloads[j] = $root.google.protobuf.Struct.toObject(message.webhookPayloads[j], options); + } + if (message.currentPage != null && message.hasOwnProperty("currentPage")) + object.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.toObject(message.currentPage, options); + if (message.intent != null && message.hasOwnProperty("intent")) + object.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.toObject(message.intent, options); + if (message.intentDetectionConfidence != null && message.hasOwnProperty("intentDetectionConfidence")) + object.intentDetectionConfidence = options.json && !isFinite(message.intentDetectionConfidence) ? String(message.intentDetectionConfidence) : message.intentDetectionConfidence; + if (message.diagnosticInfo != null && message.hasOwnProperty("diagnosticInfo")) + object.diagnosticInfo = $root.google.protobuf.Struct.toObject(message.diagnosticInfo, options); + if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { + object.triggerIntent = message.triggerIntent; + if (options.oneofs) + object.query = "triggerIntent"; + } + if (message.transcript != null && message.hasOwnProperty("transcript")) { + object.transcript = message.transcript; + if (options.oneofs) + object.query = "transcript"; + } + if (message.webhookStatuses && message.webhookStatuses.length) { + object.webhookStatuses = []; + for (var j = 0; j < message.webhookStatuses.length; ++j) + object.webhookStatuses[j] = $root.google.rpc.Status.toObject(message.webhookStatuses[j], options); + } + if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { + object.triggerEvent = message.triggerEvent; + if (options.oneofs) + object.query = "triggerEvent"; + } + if (message.match != null && message.hasOwnProperty("match")) + object.match = $root.google.cloud.dialogflow.cx.v3beta1.Match.toObject(message.match, options); + if (message.sentimentAnalysisResult != null && message.hasOwnProperty("sentimentAnalysisResult")) + object.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.toObject(message.sentimentAnalysisResult, options); + return object; + }; /** - * Calls RunTestCase. - * @function runTestCase - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * Converts this QueryResult to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest} request RunTestCaseRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#batchRunTestCases}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @typedef BatchRunTestCasesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * @returns {Object.} JSON object */ + QueryResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Calls BatchRunTestCases. - * @function batchRunTestCases - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest} request BatchRunTestCasesRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.BatchRunTestCasesCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestCases.prototype.batchRunTestCases = function batchRunTestCases(request, callback) { - return this.rpcCall(batchRunTestCases, $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "BatchRunTestCases" }); + return QueryResult; + })(); - /** - * Calls BatchRunTestCases. - * @function batchRunTestCases - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest} request BatchRunTestCasesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + v3beta1.TextInput = (function() { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#calculateCoverage}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @typedef CalculateCoverageCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse} [response] CalculateCoverageResponse + * Properties of a TextInput. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface ITextInput + * @property {string|null} [text] TextInput text */ /** - * Calls CalculateCoverage. - * @function calculateCoverage - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest} request CalculateCoverageRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.CalculateCoverageCallback} callback Node-style callback called with the error, if any, and CalculateCoverageResponse - * @returns {undefined} - * @variation 1 + * Constructs a new TextInput. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a TextInput. + * @implements ITextInput + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.ITextInput=} [properties] Properties to set */ - Object.defineProperty(TestCases.prototype.calculateCoverage = function calculateCoverage(request, callback) { - return this.rpcCall(calculateCoverage, $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest, $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse, request, callback); - }, "name", { value: "CalculateCoverage" }); + function TextInput(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls CalculateCoverage. - * @function calculateCoverage - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * TextInput text. + * @member {string} text + * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest} request CalculateCoverageRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + TextInput.prototype.text = ""; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#importTestCases}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @typedef ImportTestCasesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Creates a new TextInput instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ITextInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TextInput} TextInput instance */ + TextInput.create = function create(properties) { + return new TextInput(properties); + }; /** - * Calls ImportTestCases. - * @function importTestCases - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest} request ImportTestCasesRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.ImportTestCasesCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Encodes the specified TextInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TextInput.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ITextInput} message TextInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(TestCases.prototype.importTestCases = function importTestCases(request, callback) { - return this.rpcCall(importTestCases, $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "ImportTestCases" }); + TextInput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.text != null && Object.hasOwnProperty.call(message, "text")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); + return writer; + }; /** - * Calls ImportTestCases. - * @function importTestCases - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest} request ImportTestCasesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified TextInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TextInput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ITextInput} message TextInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + TextInput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#exportTestCases}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @typedef ExportTestCasesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Decodes a TextInput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.TextInput} TextInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + TextInput.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TextInput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.text = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls ExportTestCases. - * @function exportTestCases - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest} request ExportTestCasesRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.ExportTestCasesCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Decodes a TextInput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.TextInput} TextInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(TestCases.prototype.exportTestCases = function exportTestCases(request, callback) { - return this.rpcCall(exportTestCases, $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "ExportTestCases" }); + TextInput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls ExportTestCases. - * @function exportTestCases - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest} request ExportTestCasesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a TextInput message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + TextInput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.text != null && message.hasOwnProperty("text")) + if (!$util.isString(message.text)) + return "text: string expected"; + return null; + }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#listTestCaseResults}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @typedef ListTestCaseResultsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse} [response] ListTestCaseResultsResponse + * Creates a TextInput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.TextInput} TextInput */ + TextInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TextInput) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.TextInput(); + if (object.text != null) + message.text = String(object.text); + return message; + }; /** - * Calls ListTestCaseResults. - * @function listTestCaseResults - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest} request ListTestCaseResultsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.ListTestCaseResultsCallback} callback Node-style callback called with the error, if any, and ListTestCaseResultsResponse - * @returns {undefined} - * @variation 1 + * Creates a plain object from a TextInput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TextInput} message TextInput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(TestCases.prototype.listTestCaseResults = function listTestCaseResults(request, callback) { - return this.rpcCall(listTestCaseResults, $root.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse, request, callback); - }, "name", { value: "ListTestCaseResults" }); + TextInput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.text = ""; + if (message.text != null && message.hasOwnProperty("text")) + object.text = message.text; + return object; + }; /** - * Calls ListTestCaseResults. - * @function listTestCaseResults - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * Converts this TextInput to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest} request ListTestCaseResultsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + TextInput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return TestCases; + return TextInput; })(); - v3beta1.TestCase = (function() { + v3beta1.IntentInput = (function() { /** - * Properties of a TestCase. + * Properties of an IntentInput. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ITestCase - * @property {string|null} [name] TestCase name - * @property {Array.|null} [tags] TestCase tags - * @property {string|null} [displayName] TestCase displayName - * @property {string|null} [notes] TestCase notes - * @property {google.cloud.dialogflow.cx.v3beta1.ITestConfig|null} [testConfig] TestCase testConfig - * @property {Array.|null} [testCaseConversationTurns] TestCase testCaseConversationTurns - * @property {google.protobuf.ITimestamp|null} [creationTime] TestCase creationTime - * @property {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null} [lastTestResult] TestCase lastTestResult + * @interface IIntentInput + * @property {string|null} [intent] IntentInput intent */ /** - * Constructs a new TestCase. + * Constructs a new IntentInput. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a TestCase. - * @implements ITestCase + * @classdesc Represents an IntentInput. + * @implements IIntentInput * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ITestCase=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IIntentInput=} [properties] Properties to set */ - function TestCase(properties) { - this.tags = []; - this.testCaseConversationTurns = []; + function IntentInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -94121,172 +94980,75 @@ } /** - * TestCase name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase - * @instance - */ - TestCase.prototype.name = ""; - - /** - * TestCase tags. - * @member {Array.} tags - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase - * @instance - */ - TestCase.prototype.tags = $util.emptyArray; - - /** - * TestCase displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase - * @instance - */ - TestCase.prototype.displayName = ""; - - /** - * TestCase notes. - * @member {string} notes - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase - * @instance - */ - TestCase.prototype.notes = ""; - - /** - * TestCase testConfig. - * @member {google.cloud.dialogflow.cx.v3beta1.ITestConfig|null|undefined} testConfig - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase - * @instance - */ - TestCase.prototype.testConfig = null; - - /** - * TestCase testCaseConversationTurns. - * @member {Array.} testCaseConversationTurns - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase - * @instance - */ - TestCase.prototype.testCaseConversationTurns = $util.emptyArray; - - /** - * TestCase creationTime. - * @member {google.protobuf.ITimestamp|null|undefined} creationTime - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase - * @instance - */ - TestCase.prototype.creationTime = null; - - /** - * TestCase lastTestResult. - * @member {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null|undefined} lastTestResult - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase + * IntentInput intent. + * @member {string} intent + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput * @instance */ - TestCase.prototype.lastTestResult = null; + IntentInput.prototype.intent = ""; /** - * Creates a new TestCase instance using the specified properties. + * Creates a new IntentInput instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestCase=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TestCase} TestCase instance + * @param {google.cloud.dialogflow.cx.v3beta1.IIntentInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.IntentInput} IntentInput instance */ - TestCase.create = function create(properties) { - return new TestCase(properties); + IntentInput.create = function create(properties) { + return new IntentInput(properties); }; /** - * Encodes the specified TestCase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCase.verify|verify} messages. + * Encodes the specified IntentInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentInput.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestCase} message TestCase message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IIntentInput} message IntentInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestCase.encode = function encode(message, writer) { + IntentInput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.tags != null && message.tags.length) - for (var i = 0; i < message.tags.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.tags[i]); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); - if (message.notes != null && Object.hasOwnProperty.call(message, "notes")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.notes); - if (message.testCaseConversationTurns != null && message.testCaseConversationTurns.length) - for (var i = 0; i < message.testCaseConversationTurns.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.encode(message.testCaseConversationTurns[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.creationTime != null && Object.hasOwnProperty.call(message, "creationTime")) - $root.google.protobuf.Timestamp.encode(message.creationTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.lastTestResult != null && Object.hasOwnProperty.call(message, "lastTestResult")) - $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.encode(message.lastTestResult, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.testConfig != null && Object.hasOwnProperty.call(message, "testConfig")) - $root.google.cloud.dialogflow.cx.v3beta1.TestConfig.encode(message.testConfig, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.intent); return writer; }; /** - * Encodes the specified TestCase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCase.verify|verify} messages. + * Encodes the specified IntentInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestCase} message TestCase message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IIntentInput} message IntentInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestCase.encodeDelimited = function encodeDelimited(message, writer) { + IntentInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestCase message from the specified reader or buffer. + * Decodes an IntentInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.TestCase} TestCase + * @returns {google.cloud.dialogflow.cx.v3beta1.IntentInput} IntentInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestCase.decode = function decode(reader, length) { + IntentInput.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TestCase(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.IntentInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - if (!(message.tags && message.tags.length)) - message.tags = []; - message.tags.push(reader.string()); - break; - case 3: - message.displayName = reader.string(); - break; - case 4: - message.notes = reader.string(); - break; - case 13: - message.testConfig = $root.google.cloud.dialogflow.cx.v3beta1.TestConfig.decode(reader, reader.uint32()); - break; - case 5: - if (!(message.testCaseConversationTurns && message.testCaseConversationTurns.length)) - message.testCaseConversationTurns = []; - message.testCaseConversationTurns.push($root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.decode(reader, reader.uint32())); - break; - case 10: - message.creationTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 12: - message.lastTestResult = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.decode(reader, reader.uint32()); + case 1: + message.intent = reader.string(); break; default: reader.skipType(tag & 7); @@ -94297,215 +95059,108 @@ }; /** - * Decodes a TestCase message from the specified reader or buffer, length delimited. + * Decodes an IntentInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TestCase} TestCase + * @returns {google.cloud.dialogflow.cx.v3beta1.IntentInput} IntentInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestCase.decodeDelimited = function decodeDelimited(reader) { + IntentInput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestCase message. + * Verifies an IntentInput message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestCase.verify = function verify(message) { + IntentInput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.tags != null && message.hasOwnProperty("tags")) { - if (!Array.isArray(message.tags)) - return "tags: array expected"; - for (var i = 0; i < message.tags.length; ++i) - if (!$util.isString(message.tags[i])) - return "tags: string[] expected"; - } - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.notes != null && message.hasOwnProperty("notes")) - if (!$util.isString(message.notes)) - return "notes: string expected"; - if (message.testConfig != null && message.hasOwnProperty("testConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TestConfig.verify(message.testConfig); - if (error) - return "testConfig." + error; - } - if (message.testCaseConversationTurns != null && message.hasOwnProperty("testCaseConversationTurns")) { - if (!Array.isArray(message.testCaseConversationTurns)) - return "testCaseConversationTurns: array expected"; - for (var i = 0; i < message.testCaseConversationTurns.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.verify(message.testCaseConversationTurns[i]); - if (error) - return "testCaseConversationTurns." + error; - } - } - if (message.creationTime != null && message.hasOwnProperty("creationTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.creationTime); - if (error) - return "creationTime." + error; - } - if (message.lastTestResult != null && message.hasOwnProperty("lastTestResult")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.verify(message.lastTestResult); - if (error) - return "lastTestResult." + error; - } + if (message.intent != null && message.hasOwnProperty("intent")) + if (!$util.isString(message.intent)) + return "intent: string expected"; return null; }; /** - * Creates a TestCase message from a plain object. Also converts values to their respective internal types. + * Creates an IntentInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TestCase} TestCase + * @returns {google.cloud.dialogflow.cx.v3beta1.IntentInput} IntentInput */ - TestCase.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TestCase) + IntentInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.IntentInput) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TestCase(); - if (object.name != null) - message.name = String(object.name); - if (object.tags) { - if (!Array.isArray(object.tags)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCase.tags: array expected"); - message.tags = []; - for (var i = 0; i < object.tags.length; ++i) - message.tags[i] = String(object.tags[i]); - } - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.notes != null) - message.notes = String(object.notes); - if (object.testConfig != null) { - if (typeof object.testConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCase.testConfig: object expected"); - message.testConfig = $root.google.cloud.dialogflow.cx.v3beta1.TestConfig.fromObject(object.testConfig); - } - if (object.testCaseConversationTurns) { - if (!Array.isArray(object.testCaseConversationTurns)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCase.testCaseConversationTurns: array expected"); - message.testCaseConversationTurns = []; - for (var i = 0; i < object.testCaseConversationTurns.length; ++i) { - if (typeof object.testCaseConversationTurns[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCase.testCaseConversationTurns: object expected"); - message.testCaseConversationTurns[i] = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.fromObject(object.testCaseConversationTurns[i]); - } - } - if (object.creationTime != null) { - if (typeof object.creationTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCase.creationTime: object expected"); - message.creationTime = $root.google.protobuf.Timestamp.fromObject(object.creationTime); - } - if (object.lastTestResult != null) { - if (typeof object.lastTestResult !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCase.lastTestResult: object expected"); - message.lastTestResult = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.fromObject(object.lastTestResult); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.IntentInput(); + if (object.intent != null) + message.intent = String(object.intent); return message; }; /** - * Creates a plain object from a TestCase message. Also converts values to other types if specified. + * Creates a plain object from an IntentInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TestCase} message TestCase + * @param {google.cloud.dialogflow.cx.v3beta1.IntentInput} message IntentInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestCase.toObject = function toObject(message, options) { + IntentInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.tags = []; - object.testCaseConversationTurns = []; - } - if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.notes = ""; - object.creationTime = null; - object.lastTestResult = null; - object.testConfig = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.tags && message.tags.length) { - object.tags = []; - for (var j = 0; j < message.tags.length; ++j) - object.tags[j] = message.tags[j]; - } - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.notes != null && message.hasOwnProperty("notes")) - object.notes = message.notes; - if (message.testCaseConversationTurns && message.testCaseConversationTurns.length) { - object.testCaseConversationTurns = []; - for (var j = 0; j < message.testCaseConversationTurns.length; ++j) - object.testCaseConversationTurns[j] = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.toObject(message.testCaseConversationTurns[j], options); - } - if (message.creationTime != null && message.hasOwnProperty("creationTime")) - object.creationTime = $root.google.protobuf.Timestamp.toObject(message.creationTime, options); - if (message.lastTestResult != null && message.hasOwnProperty("lastTestResult")) - object.lastTestResult = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.toObject(message.lastTestResult, options); - if (message.testConfig != null && message.hasOwnProperty("testConfig")) - object.testConfig = $root.google.cloud.dialogflow.cx.v3beta1.TestConfig.toObject(message.testConfig, options); + if (options.defaults) + object.intent = ""; + if (message.intent != null && message.hasOwnProperty("intent")) + object.intent = message.intent; return object; }; /** - * Converts this TestCase to JSON. + * Converts this IntentInput to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput * @instance * @returns {Object.} JSON object */ - TestCase.prototype.toJSON = function toJSON() { + IntentInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TestCase; + return IntentInput; })(); - v3beta1.TestCaseResult = (function() { + v3beta1.AudioInput = (function() { /** - * Properties of a TestCaseResult. + * Properties of an AudioInput. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ITestCaseResult - * @property {string|null} [name] TestCaseResult name - * @property {string|null} [environment] TestCaseResult environment - * @property {Array.|null} [conversationTurns] TestCaseResult conversationTurns - * @property {google.cloud.dialogflow.cx.v3beta1.TestResult|null} [testResult] TestCaseResult testResult - * @property {google.protobuf.ITimestamp|null} [testTime] TestCaseResult testTime + * @interface IAudioInput + * @property {google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig|null} [config] AudioInput config + * @property {Uint8Array|null} [audio] AudioInput audio */ /** - * Constructs a new TestCaseResult. + * Constructs a new AudioInput. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a TestCaseResult. - * @implements ITestCaseResult + * @classdesc Represents an AudioInput. + * @implements IAudioInput * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IAudioInput=} [properties] Properties to set */ - function TestCaseResult(properties) { - this.conversationTurns = []; + function AudioInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -94513,130 +95168,88 @@ } /** - * TestCaseResult name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult - * @instance - */ - TestCaseResult.prototype.name = ""; - - /** - * TestCaseResult environment. - * @member {string} environment - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult - * @instance - */ - TestCaseResult.prototype.environment = ""; - - /** - * TestCaseResult conversationTurns. - * @member {Array.} conversationTurns - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult - * @instance - */ - TestCaseResult.prototype.conversationTurns = $util.emptyArray; - - /** - * TestCaseResult testResult. - * @member {google.cloud.dialogflow.cx.v3beta1.TestResult} testResult - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult + * AudioInput config. + * @member {google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig|null|undefined} config + * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput * @instance */ - TestCaseResult.prototype.testResult = 0; + AudioInput.prototype.config = null; /** - * TestCaseResult testTime. - * @member {google.protobuf.ITimestamp|null|undefined} testTime - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult + * AudioInput audio. + * @member {Uint8Array} audio + * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput * @instance */ - TestCaseResult.prototype.testTime = null; + AudioInput.prototype.audio = $util.newBuffer([]); /** - * Creates a new TestCaseResult instance using the specified properties. + * Creates a new AudioInput instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseResult} TestCaseResult instance + * @param {google.cloud.dialogflow.cx.v3beta1.IAudioInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.AudioInput} AudioInput instance */ - TestCaseResult.create = function create(properties) { - return new TestCaseResult(properties); + AudioInput.create = function create(properties) { + return new AudioInput(properties); }; /** - * Encodes the specified TestCaseResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCaseResult.verify|verify} messages. + * Encodes the specified AudioInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AudioInput.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult} message TestCaseResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IAudioInput} message AudioInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestCaseResult.encode = function encode(message, writer) { + AudioInput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.environment); - if (message.conversationTurns != null && message.conversationTurns.length) - for (var i = 0; i < message.conversationTurns.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.encode(message.conversationTurns[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.testResult != null && Object.hasOwnProperty.call(message, "testResult")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.testResult); - if (message.testTime != null && Object.hasOwnProperty.call(message, "testTime")) - $root.google.protobuf.Timestamp.encode(message.testTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.config != null && Object.hasOwnProperty.call(message, "config")) + $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.encode(message.config, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.audio != null && Object.hasOwnProperty.call(message, "audio")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.audio); return writer; }; /** - * Encodes the specified TestCaseResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCaseResult.verify|verify} messages. + * Encodes the specified AudioInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AudioInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult} message TestCaseResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IAudioInput} message AudioInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestCaseResult.encodeDelimited = function encodeDelimited(message, writer) { + AudioInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestCaseResult message from the specified reader or buffer. + * Decodes an AudioInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseResult} TestCaseResult + * @returns {google.cloud.dialogflow.cx.v3beta1.AudioInput} AudioInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestCaseResult.decode = function decode(reader, length) { + AudioInput.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.AudioInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.config = $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.decode(reader, reader.uint32()); break; case 2: - message.environment = reader.string(); - break; - case 3: - if (!(message.conversationTurns && message.conversationTurns.length)) - message.conversationTurns = []; - message.conversationTurns.push($root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.decode(reader, reader.uint32())); - break; - case 4: - message.testResult = reader.int32(); - break; - case 5: - message.testTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.audio = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -94647,183 +95260,130 @@ }; /** - * Decodes a TestCaseResult message from the specified reader or buffer, length delimited. + * Decodes an AudioInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseResult} TestCaseResult + * @returns {google.cloud.dialogflow.cx.v3beta1.AudioInput} AudioInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestCaseResult.decodeDelimited = function decodeDelimited(reader) { + AudioInput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestCaseResult message. + * Verifies an AudioInput message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestCaseResult.verify = function verify(message) { + AudioInput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.environment != null && message.hasOwnProperty("environment")) - if (!$util.isString(message.environment)) - return "environment: string expected"; - if (message.conversationTurns != null && message.hasOwnProperty("conversationTurns")) { - if (!Array.isArray(message.conversationTurns)) - return "conversationTurns: array expected"; - for (var i = 0; i < message.conversationTurns.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.verify(message.conversationTurns[i]); - if (error) - return "conversationTurns." + error; - } - } - if (message.testResult != null && message.hasOwnProperty("testResult")) - switch (message.testResult) { - default: - return "testResult: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.testTime != null && message.hasOwnProperty("testTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.testTime); + if (message.config != null && message.hasOwnProperty("config")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.verify(message.config); if (error) - return "testTime." + error; + return "config." + error; } + if (message.audio != null && message.hasOwnProperty("audio")) + if (!(message.audio && typeof message.audio.length === "number" || $util.isString(message.audio))) + return "audio: buffer expected"; return null; }; /** - * Creates a TestCaseResult message from a plain object. Also converts values to their respective internal types. + * Creates an AudioInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseResult} TestCaseResult + * @returns {google.cloud.dialogflow.cx.v3beta1.AudioInput} AudioInput */ - TestCaseResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult) + AudioInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.AudioInput) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult(); - if (object.name != null) - message.name = String(object.name); - if (object.environment != null) - message.environment = String(object.environment); - if (object.conversationTurns) { - if (!Array.isArray(object.conversationTurns)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCaseResult.conversationTurns: array expected"); - message.conversationTurns = []; - for (var i = 0; i < object.conversationTurns.length; ++i) { - if (typeof object.conversationTurns[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCaseResult.conversationTurns: object expected"); - message.conversationTurns[i] = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.fromObject(object.conversationTurns[i]); - } - } - switch (object.testResult) { - case "TEST_RESULT_UNSPECIFIED": - case 0: - message.testResult = 0; - break; - case "PASSED": - case 1: - message.testResult = 1; - break; - case "FAILED": - case 2: - message.testResult = 2; - break; - } - if (object.testTime != null) { - if (typeof object.testTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCaseResult.testTime: object expected"); - message.testTime = $root.google.protobuf.Timestamp.fromObject(object.testTime); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.AudioInput(); + if (object.config != null) { + if (typeof object.config !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.AudioInput.config: object expected"); + message.config = $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.fromObject(object.config); } + if (object.audio != null) + if (typeof object.audio === "string") + $util.base64.decode(object.audio, message.audio = $util.newBuffer($util.base64.length(object.audio)), 0); + else if (object.audio.length) + message.audio = object.audio; return message; }; /** - * Creates a plain object from a TestCaseResult message. Also converts values to other types if specified. + * Creates a plain object from an AudioInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TestCaseResult} message TestCaseResult + * @param {google.cloud.dialogflow.cx.v3beta1.AudioInput} message AudioInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestCaseResult.toObject = function toObject(message, options) { + AudioInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.conversationTurns = []; if (options.defaults) { - object.name = ""; - object.environment = ""; - object.testResult = options.enums === String ? "TEST_RESULT_UNSPECIFIED" : 0; - object.testTime = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = message.environment; - if (message.conversationTurns && message.conversationTurns.length) { - object.conversationTurns = []; - for (var j = 0; j < message.conversationTurns.length; ++j) - object.conversationTurns[j] = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.toObject(message.conversationTurns[j], options); + object.config = null; + if (options.bytes === String) + object.audio = ""; + else { + object.audio = []; + if (options.bytes !== Array) + object.audio = $util.newBuffer(object.audio); + } } - if (message.testResult != null && message.hasOwnProperty("testResult")) - object.testResult = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.TestResult[message.testResult] : message.testResult; - if (message.testTime != null && message.hasOwnProperty("testTime")) - object.testTime = $root.google.protobuf.Timestamp.toObject(message.testTime, options); + if (message.config != null && message.hasOwnProperty("config")) + object.config = $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.toObject(message.config, options); + if (message.audio != null && message.hasOwnProperty("audio")) + object.audio = options.bytes === String ? $util.base64.encode(message.audio, 0, message.audio.length) : options.bytes === Array ? Array.prototype.slice.call(message.audio) : message.audio; return object; }; /** - * Converts this TestCaseResult to JSON. + * Converts this AudioInput to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput * @instance * @returns {Object.} JSON object */ - TestCaseResult.prototype.toJSON = function toJSON() { + AudioInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TestCaseResult; + return AudioInput; })(); - v3beta1.TestConfig = (function() { + v3beta1.EventInput = (function() { /** - * Properties of a TestConfig. + * Properties of an EventInput. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ITestConfig - * @property {Array.|null} [trackingParameters] TestConfig trackingParameters - * @property {string|null} [flow] TestConfig flow + * @interface IEventInput + * @property {string|null} [event] EventInput event */ /** - * Constructs a new TestConfig. + * Constructs a new EventInput. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a TestConfig. - * @implements ITestConfig + * @classdesc Represents an EventInput. + * @implements IEventInput * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ITestConfig=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IEventInput=} [properties] Properties to set */ - function TestConfig(properties) { - this.trackingParameters = []; + function EventInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -94831,91 +95391,75 @@ } /** - * TestConfig trackingParameters. - * @member {Array.} trackingParameters - * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig - * @instance - */ - TestConfig.prototype.trackingParameters = $util.emptyArray; - - /** - * TestConfig flow. - * @member {string} flow - * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig + * EventInput event. + * @member {string} event + * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput * @instance */ - TestConfig.prototype.flow = ""; + EventInput.prototype.event = ""; /** - * Creates a new TestConfig instance using the specified properties. + * Creates a new EventInput instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestConfig=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TestConfig} TestConfig instance + * @param {google.cloud.dialogflow.cx.v3beta1.IEventInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.EventInput} EventInput instance */ - TestConfig.create = function create(properties) { - return new TestConfig(properties); + EventInput.create = function create(properties) { + return new EventInput(properties); }; /** - * Encodes the specified TestConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestConfig.verify|verify} messages. + * Encodes the specified EventInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventInput.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestConfig} message TestConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IEventInput} message EventInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestConfig.encode = function encode(message, writer) { + EventInput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.trackingParameters != null && message.trackingParameters.length) - for (var i = 0; i < message.trackingParameters.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.trackingParameters[i]); - if (message.flow != null && Object.hasOwnProperty.call(message, "flow")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.flow); + if (message.event != null && Object.hasOwnProperty.call(message, "event")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.event); return writer; }; /** - * Encodes the specified TestConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestConfig.verify|verify} messages. + * Encodes the specified EventInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestConfig} message TestConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IEventInput} message EventInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestConfig.encodeDelimited = function encodeDelimited(message, writer) { + EventInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestConfig message from the specified reader or buffer. + * Decodes an EventInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.TestConfig} TestConfig + * @returns {google.cloud.dialogflow.cx.v3beta1.EventInput} EventInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestConfig.decode = function decode(reader, length) { + EventInput.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TestConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.EventInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.trackingParameters && message.trackingParameters.length)) - message.trackingParameters = []; - message.trackingParameters.push(reader.string()); - break; - case 2: - message.flow = reader.string(); + message.event = reader.string(); break; default: reader.skipType(tag & 7); @@ -94926,129 +95470,108 @@ }; /** - * Decodes a TestConfig message from the specified reader or buffer, length delimited. + * Decodes an EventInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TestConfig} TestConfig + * @returns {google.cloud.dialogflow.cx.v3beta1.EventInput} EventInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestConfig.decodeDelimited = function decodeDelimited(reader) { + EventInput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestConfig message. + * Verifies an EventInput message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestConfig.verify = function verify(message) { + EventInput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.trackingParameters != null && message.hasOwnProperty("trackingParameters")) { - if (!Array.isArray(message.trackingParameters)) - return "trackingParameters: array expected"; - for (var i = 0; i < message.trackingParameters.length; ++i) - if (!$util.isString(message.trackingParameters[i])) - return "trackingParameters: string[] expected"; - } - if (message.flow != null && message.hasOwnProperty("flow")) - if (!$util.isString(message.flow)) - return "flow: string expected"; + if (message.event != null && message.hasOwnProperty("event")) + if (!$util.isString(message.event)) + return "event: string expected"; return null; }; /** - * Creates a TestConfig message from a plain object. Also converts values to their respective internal types. + * Creates an EventInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TestConfig} TestConfig + * @returns {google.cloud.dialogflow.cx.v3beta1.EventInput} EventInput */ - TestConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TestConfig) + EventInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.EventInput) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TestConfig(); - if (object.trackingParameters) { - if (!Array.isArray(object.trackingParameters)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestConfig.trackingParameters: array expected"); - message.trackingParameters = []; - for (var i = 0; i < object.trackingParameters.length; ++i) - message.trackingParameters[i] = String(object.trackingParameters[i]); - } - if (object.flow != null) - message.flow = String(object.flow); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.EventInput(); + if (object.event != null) + message.event = String(object.event); return message; }; /** - * Creates a plain object from a TestConfig message. Also converts values to other types if specified. + * Creates a plain object from an EventInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TestConfig} message TestConfig + * @param {google.cloud.dialogflow.cx.v3beta1.EventInput} message EventInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestConfig.toObject = function toObject(message, options) { + EventInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.trackingParameters = []; if (options.defaults) - object.flow = ""; - if (message.trackingParameters && message.trackingParameters.length) { - object.trackingParameters = []; - for (var j = 0; j < message.trackingParameters.length; ++j) - object.trackingParameters[j] = message.trackingParameters[j]; - } - if (message.flow != null && message.hasOwnProperty("flow")) - object.flow = message.flow; + object.event = ""; + if (message.event != null && message.hasOwnProperty("event")) + object.event = message.event; return object; }; /** - * Converts this TestConfig to JSON. + * Converts this EventInput to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput * @instance * @returns {Object.} JSON object */ - TestConfig.prototype.toJSON = function toJSON() { + EventInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TestConfig; + return EventInput; })(); - v3beta1.ConversationTurn = (function() { + v3beta1.DtmfInput = (function() { /** - * Properties of a ConversationTurn. + * Properties of a DtmfInput. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IConversationTurn - * @property {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput|null} [userInput] ConversationTurn userInput - * @property {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput|null} [virtualAgentOutput] ConversationTurn virtualAgentOutput + * @interface IDtmfInput + * @property {string|null} [digits] DtmfInput digits + * @property {string|null} [finishDigit] DtmfInput finishDigit */ /** - * Constructs a new ConversationTurn. + * Constructs a new DtmfInput. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ConversationTurn. - * @implements IConversationTurn + * @classdesc Represents a DtmfInput. + * @implements IDtmfInput * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IConversationTurn=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IDtmfInput=} [properties] Properties to set */ - function ConversationTurn(properties) { + function DtmfInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -95056,88 +95579,88 @@ } /** - * ConversationTurn userInput. - * @member {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput|null|undefined} userInput - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn + * DtmfInput digits. + * @member {string} digits + * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput * @instance */ - ConversationTurn.prototype.userInput = null; + DtmfInput.prototype.digits = ""; /** - * ConversationTurn virtualAgentOutput. - * @member {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput|null|undefined} virtualAgentOutput - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn + * DtmfInput finishDigit. + * @member {string} finishDigit + * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput * @instance */ - ConversationTurn.prototype.virtualAgentOutput = null; + DtmfInput.prototype.finishDigit = ""; /** - * Creates a new ConversationTurn instance using the specified properties. + * Creates a new DtmfInput instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IConversationTurn=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn} ConversationTurn instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDtmfInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.DtmfInput} DtmfInput instance */ - ConversationTurn.create = function create(properties) { - return new ConversationTurn(properties); + DtmfInput.create = function create(properties) { + return new DtmfInput(properties); }; /** - * Encodes the specified ConversationTurn message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.verify|verify} messages. + * Encodes the specified DtmfInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DtmfInput.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IConversationTurn} message ConversationTurn message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDtmfInput} message DtmfInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConversationTurn.encode = function encode(message, writer) { + DtmfInput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.userInput != null && Object.hasOwnProperty.call(message, "userInput")) - $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.encode(message.userInput, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.virtualAgentOutput != null && Object.hasOwnProperty.call(message, "virtualAgentOutput")) - $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.encode(message.virtualAgentOutput, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.digits != null && Object.hasOwnProperty.call(message, "digits")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.digits); + if (message.finishDigit != null && Object.hasOwnProperty.call(message, "finishDigit")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.finishDigit); return writer; }; /** - * Encodes the specified ConversationTurn message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.verify|verify} messages. + * Encodes the specified DtmfInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DtmfInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IConversationTurn} message ConversationTurn message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDtmfInput} message DtmfInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConversationTurn.encodeDelimited = function encodeDelimited(message, writer) { + DtmfInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConversationTurn message from the specified reader or buffer. + * Decodes a DtmfInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn} ConversationTurn + * @returns {google.cloud.dialogflow.cx.v3beta1.DtmfInput} DtmfInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConversationTurn.decode = function decode(reader, length) { + DtmfInput.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.userInput = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.decode(reader, reader.uint32()); + message.digits = reader.string(); break; case 2: - message.virtualAgentOutput = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.decode(reader, reader.uint32()); + message.finishDigit = reader.string(); break; default: reader.skipType(tag & 7); @@ -95148,758 +95671,488 @@ }; /** - * Decodes a ConversationTurn message from the specified reader or buffer, length delimited. + * Decodes a DtmfInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn} ConversationTurn + * @returns {google.cloud.dialogflow.cx.v3beta1.DtmfInput} DtmfInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConversationTurn.decodeDelimited = function decodeDelimited(reader) { + DtmfInput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConversationTurn message. + * Verifies a DtmfInput message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConversationTurn.verify = function verify(message) { + DtmfInput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.userInput != null && message.hasOwnProperty("userInput")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.verify(message.userInput); - if (error) - return "userInput." + error; - } - if (message.virtualAgentOutput != null && message.hasOwnProperty("virtualAgentOutput")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.verify(message.virtualAgentOutput); - if (error) - return "virtualAgentOutput." + error; - } + if (message.digits != null && message.hasOwnProperty("digits")) + if (!$util.isString(message.digits)) + return "digits: string expected"; + if (message.finishDigit != null && message.hasOwnProperty("finishDigit")) + if (!$util.isString(message.finishDigit)) + return "finishDigit: string expected"; return null; }; /** - * Creates a ConversationTurn message from a plain object. Also converts values to their respective internal types. + * Creates a DtmfInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn} ConversationTurn + * @returns {google.cloud.dialogflow.cx.v3beta1.DtmfInput} DtmfInput */ - ConversationTurn.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn) + DtmfInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn(); - if (object.userInput != null) { - if (typeof object.userInput !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.userInput: object expected"); - message.userInput = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.fromObject(object.userInput); - } - if (object.virtualAgentOutput != null) { - if (typeof object.virtualAgentOutput !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.virtualAgentOutput: object expected"); - message.virtualAgentOutput = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.fromObject(object.virtualAgentOutput); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput(); + if (object.digits != null) + message.digits = String(object.digits); + if (object.finishDigit != null) + message.finishDigit = String(object.finishDigit); return message; }; /** - * Creates a plain object from a ConversationTurn message. Also converts values to other types if specified. + * Creates a plain object from a DtmfInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn} message ConversationTurn + * @param {google.cloud.dialogflow.cx.v3beta1.DtmfInput} message DtmfInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConversationTurn.toObject = function toObject(message, options) { + DtmfInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.userInput = null; - object.virtualAgentOutput = null; + object.digits = ""; + object.finishDigit = ""; } - if (message.userInput != null && message.hasOwnProperty("userInput")) - object.userInput = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.toObject(message.userInput, options); - if (message.virtualAgentOutput != null && message.hasOwnProperty("virtualAgentOutput")) - object.virtualAgentOutput = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.toObject(message.virtualAgentOutput, options); + if (message.digits != null && message.hasOwnProperty("digits")) + object.digits = message.digits; + if (message.finishDigit != null && message.hasOwnProperty("finishDigit")) + object.finishDigit = message.finishDigit; return object; }; /** - * Converts this ConversationTurn to JSON. + * Converts this DtmfInput to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput * @instance - * @returns {Object.} JSON object - */ - ConversationTurn.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - ConversationTurn.UserInput = (function() { - - /** - * Properties of a UserInput. - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn - * @interface IUserInput - * @property {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null} [input] UserInput input - * @property {google.protobuf.IStruct|null} [injectedParameters] UserInput injectedParameters - * @property {boolean|null} [isWebhookEnabled] UserInput isWebhookEnabled - */ - - /** - * Constructs a new UserInput. - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn - * @classdesc Represents a UserInput. - * @implements IUserInput - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput=} [properties] Properties to set - */ - function UserInput(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * UserInput input. - * @member {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null|undefined} input - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput - * @instance - */ - UserInput.prototype.input = null; - - /** - * UserInput injectedParameters. - * @member {google.protobuf.IStruct|null|undefined} injectedParameters - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput - * @instance - */ - UserInput.prototype.injectedParameters = null; - - /** - * UserInput isWebhookEnabled. - * @member {boolean} isWebhookEnabled - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput - * @instance - */ - UserInput.prototype.isWebhookEnabled = false; - - /** - * Creates a new UserInput instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput} UserInput instance - */ - UserInput.create = function create(properties) { - return new UserInput(properties); - }; - - /** - * Encodes the specified UserInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput} message UserInput message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserInput.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.injectedParameters != null && Object.hasOwnProperty.call(message, "injectedParameters")) - $root.google.protobuf.Struct.encode(message.injectedParameters, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.isWebhookEnabled != null && Object.hasOwnProperty.call(message, "isWebhookEnabled")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isWebhookEnabled); - if (message.input != null && Object.hasOwnProperty.call(message, "input")) - $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.encode(message.input, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified UserInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput} message UserInput message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserInput.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a UserInput message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput} UserInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserInput.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 5: - message.input = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.decode(reader, reader.uint32()); - break; - case 2: - message.injectedParameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 3: - message.isWebhookEnabled = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a UserInput message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput} UserInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserInput.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserInput message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UserInput.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.input != null && message.hasOwnProperty("input")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.verify(message.input); - if (error) - return "input." + error; - } - if (message.injectedParameters != null && message.hasOwnProperty("injectedParameters")) { - var error = $root.google.protobuf.Struct.verify(message.injectedParameters); - if (error) - return "injectedParameters." + error; - } - if (message.isWebhookEnabled != null && message.hasOwnProperty("isWebhookEnabled")) - if (typeof message.isWebhookEnabled !== "boolean") - return "isWebhookEnabled: boolean expected"; - return null; - }; - - /** - * Creates a UserInput message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput} UserInput - */ - UserInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput(); - if (object.input != null) { - if (typeof object.input !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.input: object expected"); - message.input = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.fromObject(object.input); - } - if (object.injectedParameters != null) { - if (typeof object.injectedParameters !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.injectedParameters: object expected"); - message.injectedParameters = $root.google.protobuf.Struct.fromObject(object.injectedParameters); - } - if (object.isWebhookEnabled != null) - message.isWebhookEnabled = Boolean(object.isWebhookEnabled); - return message; - }; - - /** - * Creates a plain object from a UserInput message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput} message UserInput - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UserInput.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.injectedParameters = null; - object.isWebhookEnabled = false; - object.input = null; - } - if (message.injectedParameters != null && message.hasOwnProperty("injectedParameters")) - object.injectedParameters = $root.google.protobuf.Struct.toObject(message.injectedParameters, options); - if (message.isWebhookEnabled != null && message.hasOwnProperty("isWebhookEnabled")) - object.isWebhookEnabled = message.isWebhookEnabled; - if (message.input != null && message.hasOwnProperty("input")) - object.input = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.toObject(message.input, options); - return object; - }; - - /** - * Converts this UserInput to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput - * @instance - * @returns {Object.} JSON object - */ - UserInput.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return UserInput; - })(); + * @returns {Object.} JSON object + */ + DtmfInput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - ConversationTurn.VirtualAgentOutput = (function() { + return DtmfInput; + })(); - /** - * Properties of a VirtualAgentOutput. - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn - * @interface IVirtualAgentOutput - * @property {google.protobuf.IStruct|null} [sessionParameters] VirtualAgentOutput sessionParameters - * @property {Array.|null} [differences] VirtualAgentOutput differences - * @property {google.protobuf.IStruct|null} [diagnosticInfo] VirtualAgentOutput diagnosticInfo - * @property {google.cloud.dialogflow.cx.v3beta1.IIntent|null} [triggeredIntent] VirtualAgentOutput triggeredIntent - * @property {google.cloud.dialogflow.cx.v3beta1.IPage|null} [currentPage] VirtualAgentOutput currentPage - * @property {Array.|null} [textResponses] VirtualAgentOutput textResponses - * @property {google.rpc.IStatus|null} [status] VirtualAgentOutput status - */ + v3beta1.Match = (function() { - /** - * Constructs a new VirtualAgentOutput. - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn - * @classdesc Represents a VirtualAgentOutput. - * @implements IVirtualAgentOutput - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput=} [properties] Properties to set - */ - function VirtualAgentOutput(properties) { - this.differences = []; - this.textResponses = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a Match. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IMatch + * @property {google.cloud.dialogflow.cx.v3beta1.IIntent|null} [intent] Match intent + * @property {string|null} [event] Match event + * @property {google.protobuf.IStruct|null} [parameters] Match parameters + * @property {string|null} [resolvedInput] Match resolvedInput + * @property {google.cloud.dialogflow.cx.v3beta1.Match.MatchType|null} [matchType] Match matchType + * @property {number|null} [confidence] Match confidence + */ - /** - * VirtualAgentOutput sessionParameters. - * @member {google.protobuf.IStruct|null|undefined} sessionParameters - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput - * @instance - */ - VirtualAgentOutput.prototype.sessionParameters = null; + /** + * Constructs a new Match. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a Match. + * @implements IMatch + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IMatch=} [properties] Properties to set + */ + function Match(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * VirtualAgentOutput differences. - * @member {Array.} differences - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput - * @instance - */ - VirtualAgentOutput.prototype.differences = $util.emptyArray; + /** + * Match intent. + * @member {google.cloud.dialogflow.cx.v3beta1.IIntent|null|undefined} intent + * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @instance + */ + Match.prototype.intent = null; - /** - * VirtualAgentOutput diagnosticInfo. - * @member {google.protobuf.IStruct|null|undefined} diagnosticInfo - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput - * @instance - */ - VirtualAgentOutput.prototype.diagnosticInfo = null; + /** + * Match event. + * @member {string} event + * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @instance + */ + Match.prototype.event = ""; - /** - * VirtualAgentOutput triggeredIntent. - * @member {google.cloud.dialogflow.cx.v3beta1.IIntent|null|undefined} triggeredIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput - * @instance - */ - VirtualAgentOutput.prototype.triggeredIntent = null; + /** + * Match parameters. + * @member {google.protobuf.IStruct|null|undefined} parameters + * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @instance + */ + Match.prototype.parameters = null; - /** - * VirtualAgentOutput currentPage. - * @member {google.cloud.dialogflow.cx.v3beta1.IPage|null|undefined} currentPage - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput - * @instance - */ - VirtualAgentOutput.prototype.currentPage = null; + /** + * Match resolvedInput. + * @member {string} resolvedInput + * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @instance + */ + Match.prototype.resolvedInput = ""; - /** - * VirtualAgentOutput textResponses. - * @member {Array.} textResponses - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput - * @instance - */ - VirtualAgentOutput.prototype.textResponses = $util.emptyArray; + /** + * Match matchType. + * @member {google.cloud.dialogflow.cx.v3beta1.Match.MatchType} matchType + * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @instance + */ + Match.prototype.matchType = 0; - /** - * VirtualAgentOutput status. - * @member {google.rpc.IStatus|null|undefined} status - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput - * @instance - */ - VirtualAgentOutput.prototype.status = null; + /** + * Match confidence. + * @member {number} confidence + * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @instance + */ + Match.prototype.confidence = 0; - /** - * Creates a new VirtualAgentOutput instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput} VirtualAgentOutput instance - */ - VirtualAgentOutput.create = function create(properties) { - return new VirtualAgentOutput(properties); - }; + /** + * Creates a new Match instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IMatch=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Match} Match instance + */ + Match.create = function create(properties) { + return new Match(properties); + }; - /** - * Encodes the specified VirtualAgentOutput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput} message VirtualAgentOutput message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VirtualAgentOutput.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.sessionParameters != null && Object.hasOwnProperty.call(message, "sessionParameters")) - $root.google.protobuf.Struct.encode(message.sessionParameters, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.differences != null && message.differences.length) - for (var i = 0; i < message.differences.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.encode(message.differences[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.diagnosticInfo != null && Object.hasOwnProperty.call(message, "diagnosticInfo")) - $root.google.protobuf.Struct.encode(message.diagnosticInfo, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.triggeredIntent != null && Object.hasOwnProperty.call(message, "triggeredIntent")) - $root.google.cloud.dialogflow.cx.v3beta1.Intent.encode(message.triggeredIntent, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) - $root.google.cloud.dialogflow.cx.v3beta1.Page.encode(message.currentPage, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.textResponses != null && message.textResponses.length) - for (var i = 0; i < message.textResponses.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.encode(message.textResponses[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified Match message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Match.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IMatch} message Match message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Match.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) + $root.google.cloud.dialogflow.cx.v3beta1.Intent.encode(message.intent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + $root.google.protobuf.Struct.encode(message.parameters, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.resolvedInput != null && Object.hasOwnProperty.call(message, "resolvedInput")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.resolvedInput); + if (message.matchType != null && Object.hasOwnProperty.call(message, "matchType")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.matchType); + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) + writer.uint32(/* id 5, wireType 5 =*/45).float(message.confidence); + if (message.event != null && Object.hasOwnProperty.call(message, "event")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.event); + return writer; + }; - /** - * Encodes the specified VirtualAgentOutput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput} message VirtualAgentOutput message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VirtualAgentOutput.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Match message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Match.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IMatch} message Match message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Match.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a VirtualAgentOutput message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput} VirtualAgentOutput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VirtualAgentOutput.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 4: - message.sessionParameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 5: - if (!(message.differences && message.differences.length)) - message.differences = []; - message.differences.push($root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.decode(reader, reader.uint32())); - break; - case 6: - message.diagnosticInfo = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 7: - message.triggeredIntent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.decode(reader, reader.uint32()); - break; - case 8: - message.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.decode(reader, reader.uint32()); - break; - case 9: - if (!(message.textResponses && message.textResponses.length)) - message.textResponses = []; - message.textResponses.push($root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.decode(reader, reader.uint32())); - break; - case 10: - message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } + /** + * Decodes a Match message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.Match} Match + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Match.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Match(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.decode(reader, reader.uint32()); + break; + case 6: + message.event = reader.string(); + break; + case 2: + message.parameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 3: + message.resolvedInput = reader.string(); + break; + case 4: + message.matchType = reader.int32(); + break; + case 5: + message.confidence = reader.float(); + break; + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a VirtualAgentOutput message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput} VirtualAgentOutput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VirtualAgentOutput.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a VirtualAgentOutput message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - VirtualAgentOutput.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sessionParameters != null && message.hasOwnProperty("sessionParameters")) { - var error = $root.google.protobuf.Struct.verify(message.sessionParameters); - if (error) - return "sessionParameters." + error; - } - if (message.differences != null && message.hasOwnProperty("differences")) { - if (!Array.isArray(message.differences)) - return "differences: array expected"; - for (var i = 0; i < message.differences.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.verify(message.differences[i]); - if (error) - return "differences." + error; - } - } - if (message.diagnosticInfo != null && message.hasOwnProperty("diagnosticInfo")) { - var error = $root.google.protobuf.Struct.verify(message.diagnosticInfo); - if (error) - return "diagnosticInfo." + error; - } - if (message.triggeredIntent != null && message.hasOwnProperty("triggeredIntent")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.verify(message.triggeredIntent); - if (error) - return "triggeredIntent." + error; - } - if (message.currentPage != null && message.hasOwnProperty("currentPage")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Page.verify(message.currentPage); - if (error) - return "currentPage." + error; - } - if (message.textResponses != null && message.hasOwnProperty("textResponses")) { - if (!Array.isArray(message.textResponses)) - return "textResponses: array expected"; - for (var i = 0; i < message.textResponses.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.verify(message.textResponses[i]); - if (error) - return "textResponses." + error; - } - } - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.google.rpc.Status.verify(message.status); - if (error) - return "status." + error; - } - return null; - }; + /** + * Decodes a Match message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Match} Match + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Match.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a VirtualAgentOutput message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput} VirtualAgentOutput - */ - VirtualAgentOutput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput(); - if (object.sessionParameters != null) { - if (typeof object.sessionParameters !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.sessionParameters: object expected"); - message.sessionParameters = $root.google.protobuf.Struct.fromObject(object.sessionParameters); - } - if (object.differences) { - if (!Array.isArray(object.differences)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.differences: array expected"); - message.differences = []; - for (var i = 0; i < object.differences.length; ++i) { - if (typeof object.differences[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.differences: object expected"); - message.differences[i] = $root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.fromObject(object.differences[i]); - } - } - if (object.diagnosticInfo != null) { - if (typeof object.diagnosticInfo !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.diagnosticInfo: object expected"); - message.diagnosticInfo = $root.google.protobuf.Struct.fromObject(object.diagnosticInfo); - } - if (object.triggeredIntent != null) { - if (typeof object.triggeredIntent !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.triggeredIntent: object expected"); - message.triggeredIntent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.fromObject(object.triggeredIntent); - } - if (object.currentPage != null) { - if (typeof object.currentPage !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.currentPage: object expected"); - message.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.fromObject(object.currentPage); - } - if (object.textResponses) { - if (!Array.isArray(object.textResponses)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.textResponses: array expected"); - message.textResponses = []; - for (var i = 0; i < object.textResponses.length; ++i) { - if (typeof object.textResponses[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.textResponses: object expected"); - message.textResponses[i] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.fromObject(object.textResponses[i]); - } - } - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.status: object expected"); - message.status = $root.google.rpc.Status.fromObject(object.status); + /** + * Verifies a Match message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Match.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.intent != null && message.hasOwnProperty("intent")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.verify(message.intent); + if (error) + return "intent." + error; + } + if (message.event != null && message.hasOwnProperty("event")) + if (!$util.isString(message.event)) + return "event: string expected"; + if (message.parameters != null && message.hasOwnProperty("parameters")) { + var error = $root.google.protobuf.Struct.verify(message.parameters); + if (error) + return "parameters." + error; + } + if (message.resolvedInput != null && message.hasOwnProperty("resolvedInput")) + if (!$util.isString(message.resolvedInput)) + return "resolvedInput: string expected"; + if (message.matchType != null && message.hasOwnProperty("matchType")) + switch (message.matchType) { + default: + return "matchType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; } - return message; - }; + if (message.confidence != null && message.hasOwnProperty("confidence")) + if (typeof message.confidence !== "number") + return "confidence: number expected"; + return null; + }; - /** - * Creates a plain object from a VirtualAgentOutput message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput} message VirtualAgentOutput - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - VirtualAgentOutput.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.differences = []; - object.textResponses = []; - } - if (options.defaults) { - object.sessionParameters = null; - object.diagnosticInfo = null; - object.triggeredIntent = null; - object.currentPage = null; - object.status = null; - } - if (message.sessionParameters != null && message.hasOwnProperty("sessionParameters")) - object.sessionParameters = $root.google.protobuf.Struct.toObject(message.sessionParameters, options); - if (message.differences && message.differences.length) { - object.differences = []; - for (var j = 0; j < message.differences.length; ++j) - object.differences[j] = $root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.toObject(message.differences[j], options); - } - if (message.diagnosticInfo != null && message.hasOwnProperty("diagnosticInfo")) - object.diagnosticInfo = $root.google.protobuf.Struct.toObject(message.diagnosticInfo, options); - if (message.triggeredIntent != null && message.hasOwnProperty("triggeredIntent")) - object.triggeredIntent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.toObject(message.triggeredIntent, options); - if (message.currentPage != null && message.hasOwnProperty("currentPage")) - object.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.toObject(message.currentPage, options); - if (message.textResponses && message.textResponses.length) { - object.textResponses = []; - for (var j = 0; j < message.textResponses.length; ++j) - object.textResponses[j] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.toObject(message.textResponses[j], options); - } - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.google.rpc.Status.toObject(message.status, options); + /** + * Creates a Match message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Match} Match + */ + Match.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Match) return object; - }; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Match(); + if (object.intent != null) { + if (typeof object.intent !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Match.intent: object expected"); + message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.fromObject(object.intent); + } + if (object.event != null) + message.event = String(object.event); + if (object.parameters != null) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Match.parameters: object expected"); + message.parameters = $root.google.protobuf.Struct.fromObject(object.parameters); + } + if (object.resolvedInput != null) + message.resolvedInput = String(object.resolvedInput); + switch (object.matchType) { + case "MATCH_TYPE_UNSPECIFIED": + case 0: + message.matchType = 0; + break; + case "INTENT": + case 1: + message.matchType = 1; + break; + case "DIRECT_INTENT": + case 2: + message.matchType = 2; + break; + case "PARAMETER_FILLING": + case 3: + message.matchType = 3; + break; + case "NO_MATCH": + case 4: + message.matchType = 4; + break; + case "NO_INPUT": + case 5: + message.matchType = 5; + break; + case "EVENT": + case 6: + message.matchType = 6; + break; + } + if (object.confidence != null) + message.confidence = Number(object.confidence); + return message; + }; - /** - * Converts this VirtualAgentOutput to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput - * @instance - * @returns {Object.} JSON object - */ - VirtualAgentOutput.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a Match message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Match} message Match + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Match.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.intent = null; + object.parameters = null; + object.resolvedInput = ""; + object.matchType = options.enums === String ? "MATCH_TYPE_UNSPECIFIED" : 0; + object.confidence = 0; + object.event = ""; + } + if (message.intent != null && message.hasOwnProperty("intent")) + object.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.toObject(message.intent, options); + if (message.parameters != null && message.hasOwnProperty("parameters")) + object.parameters = $root.google.protobuf.Struct.toObject(message.parameters, options); + if (message.resolvedInput != null && message.hasOwnProperty("resolvedInput")) + object.resolvedInput = message.resolvedInput; + if (message.matchType != null && message.hasOwnProperty("matchType")) + object.matchType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.Match.MatchType[message.matchType] : message.matchType; + if (message.confidence != null && message.hasOwnProperty("confidence")) + object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; + if (message.event != null && message.hasOwnProperty("event")) + object.event = message.event; + return object; + }; - return VirtualAgentOutput; + /** + * Converts this Match to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @instance + * @returns {Object.} JSON object + */ + Match.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * MatchType enum. + * @name google.cloud.dialogflow.cx.v3beta1.Match.MatchType + * @enum {number} + * @property {number} MATCH_TYPE_UNSPECIFIED=0 MATCH_TYPE_UNSPECIFIED value + * @property {number} INTENT=1 INTENT value + * @property {number} DIRECT_INTENT=2 DIRECT_INTENT value + * @property {number} PARAMETER_FILLING=3 PARAMETER_FILLING value + * @property {number} NO_MATCH=4 NO_MATCH value + * @property {number} NO_INPUT=5 NO_INPUT value + * @property {number} EVENT=6 EVENT value + */ + Match.MatchType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MATCH_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "INTENT"] = 1; + values[valuesById[2] = "DIRECT_INTENT"] = 2; + values[valuesById[3] = "PARAMETER_FILLING"] = 3; + values[valuesById[4] = "NO_MATCH"] = 4; + values[valuesById[5] = "NO_INPUT"] = 5; + values[valuesById[6] = "EVENT"] = 6; + return values; })(); - return ConversationTurn; + return Match; })(); - v3beta1.TestRunDifference = (function() { + v3beta1.MatchIntentRequest = (function() { /** - * Properties of a TestRunDifference. + * Properties of a MatchIntentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ITestRunDifference - * @property {google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType|null} [type] TestRunDifference type - * @property {string|null} [description] TestRunDifference description + * @interface IMatchIntentRequest + * @property {string|null} [session] MatchIntentRequest session + * @property {google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null} [queryParams] MatchIntentRequest queryParams + * @property {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null} [queryInput] MatchIntentRequest queryInput */ /** - * Constructs a new TestRunDifference. + * Constructs a new MatchIntentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a TestRunDifference. - * @implements ITestRunDifference + * @classdesc Represents a MatchIntentRequest. + * @implements IMatchIntentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ITestRunDifference=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest=} [properties] Properties to set */ - function TestRunDifference(properties) { + function MatchIntentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -95907,88 +96160,101 @@ } /** - * TestRunDifference type. - * @member {google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType} type - * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * MatchIntentRequest session. + * @member {string} session + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest * @instance */ - TestRunDifference.prototype.type = 0; + MatchIntentRequest.prototype.session = ""; /** - * TestRunDifference description. - * @member {string} description - * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * MatchIntentRequest queryParams. + * @member {google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null|undefined} queryParams + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest * @instance */ - TestRunDifference.prototype.description = ""; + MatchIntentRequest.prototype.queryParams = null; /** - * Creates a new TestRunDifference instance using the specified properties. + * MatchIntentRequest queryInput. + * @member {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null|undefined} queryInput + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * @instance + */ + MatchIntentRequest.prototype.queryInput = null; + + /** + * Creates a new MatchIntentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestRunDifference=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TestRunDifference} TestRunDifference instance + * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest} MatchIntentRequest instance */ - TestRunDifference.create = function create(properties) { - return new TestRunDifference(properties); + MatchIntentRequest.create = function create(properties) { + return new MatchIntentRequest(properties); }; /** - * Encodes the specified TestRunDifference message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestRunDifference.verify|verify} messages. + * Encodes the specified MatchIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestRunDifference} message TestRunDifference message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest} message MatchIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestRunDifference.encode = function encode(message, writer) { + MatchIntentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + if (message.session != null && Object.hasOwnProperty.call(message, "session")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.session); + if (message.queryParams != null && Object.hasOwnProperty.call(message, "queryParams")) + $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.encode(message.queryParams, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.queryInput != null && Object.hasOwnProperty.call(message, "queryInput")) + $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.encode(message.queryInput, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified TestRunDifference message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestRunDifference.verify|verify} messages. + * Encodes the specified MatchIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestRunDifference} message TestRunDifference message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest} message MatchIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestRunDifference.encodeDelimited = function encodeDelimited(message, writer) { + MatchIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestRunDifference message from the specified reader or buffer. + * Decodes a MatchIntentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.TestRunDifference} TestRunDifference + * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest} MatchIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestRunDifference.decode = function decode(reader, length) { + MatchIntentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.type = reader.int32(); + message.session = reader.string(); break; case 2: - message.description = reader.string(); + message.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.decode(reader, reader.uint32()); + break; + case 3: + message.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -95999,166 +96265,140 @@ }; /** - * Decodes a TestRunDifference message from the specified reader or buffer, length delimited. + * Decodes a MatchIntentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TestRunDifference} TestRunDifference + * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest} MatchIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestRunDifference.decodeDelimited = function decodeDelimited(reader) { + MatchIntentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestRunDifference message. + * Verifies a MatchIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestRunDifference.verify = function verify(message) { + MatchIntentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; + if (message.session != null && message.hasOwnProperty("session")) + if (!$util.isString(message.session)) + return "session: string expected"; + if (message.queryParams != null && message.hasOwnProperty("queryParams")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.verify(message.queryParams); + if (error) + return "queryParams." + error; + } + if (message.queryInput != null && message.hasOwnProperty("queryInput")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.verify(message.queryInput); + if (error) + return "queryInput." + error; + } return null; }; /** - * Creates a TestRunDifference message from a plain object. Also converts values to their respective internal types. + * Creates a MatchIntentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TestRunDifference} TestRunDifference + * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest} MatchIntentRequest */ - TestRunDifference.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference) + MatchIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference(); - switch (object.type) { - case "DIFF_TYPE_UNSPECIFIED": - case 0: - message.type = 0; - break; - case "INTENT": - case 1: - message.type = 1; - break; - case "PAGE": - case 2: - message.type = 2; - break; - case "PARAMETERS": - case 3: - message.type = 3; - break; - case "UTTERANCE": - case 4: - message.type = 4; - break; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest(); + if (object.session != null) + message.session = String(object.session); + if (object.queryParams != null) { + if (typeof object.queryParams !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.queryParams: object expected"); + message.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.fromObject(object.queryParams); + } + if (object.queryInput != null) { + if (typeof object.queryInput !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.queryInput: object expected"); + message.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.fromObject(object.queryInput); } - if (object.description != null) - message.description = String(object.description); return message; }; /** - * Creates a plain object from a TestRunDifference message. Also converts values to other types if specified. + * Creates a plain object from a MatchIntentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TestRunDifference} message TestRunDifference + * @param {google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest} message MatchIntentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestRunDifference.toObject = function toObject(message, options) { + MatchIntentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.type = options.enums === String ? "DIFF_TYPE_UNSPECIFIED" : 0; - object.description = ""; + object.session = ""; + object.queryParams = null; + object.queryInput = null; } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType[message.type] : message.type; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; + if (message.session != null && message.hasOwnProperty("session")) + object.session = message.session; + if (message.queryParams != null && message.hasOwnProperty("queryParams")) + object.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.toObject(message.queryParams, options); + if (message.queryInput != null && message.hasOwnProperty("queryInput")) + object.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.toObject(message.queryInput, options); return object; }; /** - * Converts this TestRunDifference to JSON. + * Converts this MatchIntentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest * @instance * @returns {Object.} JSON object */ - TestRunDifference.prototype.toJSON = function toJSON() { + MatchIntentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * DiffType enum. - * @name google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType - * @enum {number} - * @property {number} DIFF_TYPE_UNSPECIFIED=0 DIFF_TYPE_UNSPECIFIED value - * @property {number} INTENT=1 INTENT value - * @property {number} PAGE=2 PAGE value - * @property {number} PARAMETERS=3 PARAMETERS value - * @property {number} UTTERANCE=4 UTTERANCE value - */ - TestRunDifference.DiffType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DIFF_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "INTENT"] = 1; - values[valuesById[2] = "PAGE"] = 2; - values[valuesById[3] = "PARAMETERS"] = 3; - values[valuesById[4] = "UTTERANCE"] = 4; - return values; - })(); - - return TestRunDifference; + return MatchIntentRequest; })(); - v3beta1.TransitionCoverage = (function() { + v3beta1.MatchIntentResponse = (function() { /** - * Properties of a TransitionCoverage. + * Properties of a MatchIntentResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ITransitionCoverage - * @property {Array.|null} [transitions] TransitionCoverage transitions - * @property {number|null} [coverageScore] TransitionCoverage coverageScore + * @interface IMatchIntentResponse + * @property {string|null} [text] MatchIntentResponse text + * @property {string|null} [triggerIntent] MatchIntentResponse triggerIntent + * @property {string|null} [transcript] MatchIntentResponse transcript + * @property {string|null} [triggerEvent] MatchIntentResponse triggerEvent + * @property {Array.|null} [matches] MatchIntentResponse matches + * @property {google.cloud.dialogflow.cx.v3beta1.IPage|null} [currentPage] MatchIntentResponse currentPage */ /** - * Constructs a new TransitionCoverage. + * Constructs a new MatchIntentResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a TransitionCoverage. - * @implements ITransitionCoverage + * @classdesc Represents a MatchIntentResponse. + * @implements IMatchIntentResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse=} [properties] Properties to set */ - function TransitionCoverage(properties) { - this.transitions = []; + function MatchIntentResponse(properties) { + this.matches = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -96166,91 +96406,157 @@ } /** - * TransitionCoverage transitions. - * @member {Array.} transitions - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * MatchIntentResponse text. + * @member {string} text + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @instance + */ + MatchIntentResponse.prototype.text = ""; + + /** + * MatchIntentResponse triggerIntent. + * @member {string} triggerIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @instance + */ + MatchIntentResponse.prototype.triggerIntent = ""; + + /** + * MatchIntentResponse transcript. + * @member {string} transcript + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @instance + */ + MatchIntentResponse.prototype.transcript = ""; + + /** + * MatchIntentResponse triggerEvent. + * @member {string} triggerEvent + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @instance + */ + MatchIntentResponse.prototype.triggerEvent = ""; + + /** + * MatchIntentResponse matches. + * @member {Array.} matches + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @instance + */ + MatchIntentResponse.prototype.matches = $util.emptyArray; + + /** + * MatchIntentResponse currentPage. + * @member {google.cloud.dialogflow.cx.v3beta1.IPage|null|undefined} currentPage + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse * @instance */ - TransitionCoverage.prototype.transitions = $util.emptyArray; + MatchIntentResponse.prototype.currentPage = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * TransitionCoverage coverageScore. - * @member {number} coverageScore - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * MatchIntentResponse query. + * @member {"text"|"triggerIntent"|"transcript"|"triggerEvent"|undefined} query + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse * @instance */ - TransitionCoverage.prototype.coverageScore = 0; + Object.defineProperty(MatchIntentResponse.prototype, "query", { + get: $util.oneOfGetter($oneOfFields = ["text", "triggerIntent", "transcript", "triggerEvent"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new TransitionCoverage instance using the specified properties. + * Creates a new MatchIntentResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage} TransitionCoverage instance + * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse} MatchIntentResponse instance */ - TransitionCoverage.create = function create(properties) { - return new TransitionCoverage(properties); + MatchIntentResponse.create = function create(properties) { + return new MatchIntentResponse(properties); }; /** - * Encodes the specified TransitionCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.verify|verify} messages. + * Encodes the specified MatchIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage} message TransitionCoverage message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse} message MatchIntentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TransitionCoverage.encode = function encode(message, writer) { + MatchIntentResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.transitions != null && message.transitions.length) - for (var i = 0; i < message.transitions.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.encode(message.transitions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.coverageScore != null && Object.hasOwnProperty.call(message, "coverageScore")) - writer.uint32(/* id 2, wireType 5 =*/21).float(message.coverageScore); + if (message.text != null && Object.hasOwnProperty.call(message, "text")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); + if (message.triggerIntent != null && Object.hasOwnProperty.call(message, "triggerIntent")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.triggerIntent); + if (message.transcript != null && Object.hasOwnProperty.call(message, "transcript")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.transcript); + if (message.matches != null && message.matches.length) + for (var i = 0; i < message.matches.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Match.encode(message.matches[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) + $root.google.cloud.dialogflow.cx.v3beta1.Page.encode(message.currentPage, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.triggerEvent != null && Object.hasOwnProperty.call(message, "triggerEvent")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.triggerEvent); return writer; }; /** - * Encodes the specified TransitionCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.verify|verify} messages. + * Encodes the specified MatchIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage} message TransitionCoverage message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse} message MatchIntentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TransitionCoverage.encodeDelimited = function encodeDelimited(message, writer) { + MatchIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TransitionCoverage message from the specified reader or buffer. + * Decodes a MatchIntentResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage} TransitionCoverage + * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse} MatchIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TransitionCoverage.decode = function decode(reader, length) { + MatchIntentResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.transitions && message.transitions.length)) - message.transitions = []; - message.transitions.push($root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.decode(reader, reader.uint32())); + message.text = reader.string(); break; case 2: - message.coverageScore = reader.float(); + message.triggerIntent = reader.string(); + break; + case 3: + message.transcript = reader.string(); + break; + case 6: + message.triggerEvent = reader.string(); + break; + case 4: + if (!(message.matches && message.matches.length)) + message.matches = []; + message.matches.push($root.google.cloud.dialogflow.cx.v3beta1.Match.decode(reader, reader.uint32())); + break; + case 5: + message.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -96261,725 +96567,443 @@ }; /** - * Decodes a TransitionCoverage message from the specified reader or buffer, length delimited. + * Decodes a MatchIntentResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage} TransitionCoverage + * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse} MatchIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TransitionCoverage.decodeDelimited = function decodeDelimited(reader) { + MatchIntentResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TransitionCoverage message. + * Verifies a MatchIntentResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TransitionCoverage.verify = function verify(message) { + MatchIntentResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.transitions != null && message.hasOwnProperty("transitions")) { - if (!Array.isArray(message.transitions)) - return "transitions: array expected"; - for (var i = 0; i < message.transitions.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.verify(message.transitions[i]); + var properties = {}; + if (message.text != null && message.hasOwnProperty("text")) { + properties.query = 1; + if (!$util.isString(message.text)) + return "text: string expected"; + } + if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { + if (properties.query === 1) + return "query: multiple values"; + properties.query = 1; + if (!$util.isString(message.triggerIntent)) + return "triggerIntent: string expected"; + } + if (message.transcript != null && message.hasOwnProperty("transcript")) { + if (properties.query === 1) + return "query: multiple values"; + properties.query = 1; + if (!$util.isString(message.transcript)) + return "transcript: string expected"; + } + if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { + if (properties.query === 1) + return "query: multiple values"; + properties.query = 1; + if (!$util.isString(message.triggerEvent)) + return "triggerEvent: string expected"; + } + if (message.matches != null && message.hasOwnProperty("matches")) { + if (!Array.isArray(message.matches)) + return "matches: array expected"; + for (var i = 0; i < message.matches.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Match.verify(message.matches[i]); if (error) - return "transitions." + error; + return "matches." + error; } } - if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) - if (typeof message.coverageScore !== "number") - return "coverageScore: number expected"; + if (message.currentPage != null && message.hasOwnProperty("currentPage")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Page.verify(message.currentPage); + if (error) + return "currentPage." + error; + } return null; }; /** - * Creates a TransitionCoverage message from a plain object. Also converts values to their respective internal types. + * Creates a MatchIntentResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage} TransitionCoverage + * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse} MatchIntentResponse */ - TransitionCoverage.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage) + MatchIntentResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage(); - if (object.transitions) { - if (!Array.isArray(object.transitions)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.transitions: array expected"); - message.transitions = []; - for (var i = 0; i < object.transitions.length; ++i) { - if (typeof object.transitions[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.transitions: object expected"); - message.transitions[i] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.fromObject(object.transitions[i]); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse(); + if (object.text != null) + message.text = String(object.text); + if (object.triggerIntent != null) + message.triggerIntent = String(object.triggerIntent); + if (object.transcript != null) + message.transcript = String(object.transcript); + if (object.triggerEvent != null) + message.triggerEvent = String(object.triggerEvent); + if (object.matches) { + if (!Array.isArray(object.matches)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse.matches: array expected"); + message.matches = []; + for (var i = 0; i < object.matches.length; ++i) { + if (typeof object.matches[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse.matches: object expected"); + message.matches[i] = $root.google.cloud.dialogflow.cx.v3beta1.Match.fromObject(object.matches[i]); } } - if (object.coverageScore != null) - message.coverageScore = Number(object.coverageScore); + if (object.currentPage != null) { + if (typeof object.currentPage !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse.currentPage: object expected"); + message.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.fromObject(object.currentPage); + } return message; }; /** - * Creates a plain object from a TransitionCoverage message. Also converts values to other types if specified. + * Creates a plain object from a MatchIntentResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage} message TransitionCoverage - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TransitionCoverage.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.transitions = []; - if (options.defaults) - object.coverageScore = 0; - if (message.transitions && message.transitions.length) { - object.transitions = []; - for (var j = 0; j < message.transitions.length; ++j) - object.transitions[j] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.toObject(message.transitions[j], options); - } - if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) - object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; - return object; - }; - - /** - * Converts this TransitionCoverage to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage - * @instance - * @returns {Object.} JSON object - */ - TransitionCoverage.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - TransitionCoverage.TransitionNode = (function() { - - /** - * Properties of a TransitionNode. - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage - * @interface ITransitionNode - * @property {google.cloud.dialogflow.cx.v3beta1.IPage|null} [page] TransitionNode page - * @property {google.cloud.dialogflow.cx.v3beta1.IFlow|null} [flow] TransitionNode flow - */ - - /** - * Constructs a new TransitionNode. - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage - * @classdesc Represents a TransitionNode. - * @implements ITransitionNode - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode=} [properties] Properties to set - */ - function TransitionNode(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TransitionNode page. - * @member {google.cloud.dialogflow.cx.v3beta1.IPage|null|undefined} page - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode - * @instance - */ - TransitionNode.prototype.page = null; - - /** - * TransitionNode flow. - * @member {google.cloud.dialogflow.cx.v3beta1.IFlow|null|undefined} flow - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode - * @instance - */ - TransitionNode.prototype.flow = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * TransitionNode kind. - * @member {"page"|"flow"|undefined} kind - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode - * @instance - */ - Object.defineProperty(TransitionNode.prototype, "kind", { - get: $util.oneOfGetter($oneOfFields = ["page", "flow"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new TransitionNode instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode} TransitionNode instance - */ - TransitionNode.create = function create(properties) { - return new TransitionNode(properties); - }; - - /** - * Encodes the specified TransitionNode message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode} message TransitionNode message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TransitionNode.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.page != null && Object.hasOwnProperty.call(message, "page")) - $root.google.cloud.dialogflow.cx.v3beta1.Page.encode(message.page, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.flow != null && Object.hasOwnProperty.call(message, "flow")) - $root.google.cloud.dialogflow.cx.v3beta1.Flow.encode(message.flow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified TransitionNode message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode} message TransitionNode message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TransitionNode.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a TransitionNode message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode} TransitionNode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TransitionNode.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.decode(reader, reader.uint32()); - break; - case 2: - message.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a TransitionNode message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode} TransitionNode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TransitionNode.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TransitionNode message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TransitionNode.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.page != null && message.hasOwnProperty("page")) { - properties.kind = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Page.verify(message.page); - if (error) - return "page." + error; - } - } - if (message.flow != null && message.hasOwnProperty("flow")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Flow.verify(message.flow); - if (error) - return "flow." + error; - } - } - return null; - }; - - /** - * Creates a TransitionNode message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode} TransitionNode - */ - TransitionNode.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode(); - if (object.page != null) { - if (typeof object.page !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.page: object expected"); - message.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.fromObject(object.page); - } - if (object.flow != null) { - if (typeof object.flow !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.flow: object expected"); - message.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.fromObject(object.flow); - } - return message; - }; - - /** - * Creates a plain object from a TransitionNode message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode} message TransitionNode - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TransitionNode.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.page != null && message.hasOwnProperty("page")) { - object.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.toObject(message.page, options); - if (options.oneofs) - object.kind = "page"; - } - if (message.flow != null && message.hasOwnProperty("flow")) { - object.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.toObject(message.flow, options); - if (options.oneofs) - object.kind = "flow"; - } - return object; - }; - - /** - * Converts this TransitionNode to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode - * @instance - * @returns {Object.} JSON object - */ - TransitionNode.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return TransitionNode; - })(); - - TransitionCoverage.Transition = (function() { - - /** - * Properties of a Transition. - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage - * @interface ITransition - * @property {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null} [source] Transition source - * @property {number|null} [index] Transition index - * @property {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null} [target] Transition target - * @property {boolean|null} [covered] Transition covered - * @property {google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null} [transitionRoute] Transition transitionRoute - * @property {google.cloud.dialogflow.cx.v3beta1.IEventHandler|null} [eventHandler] Transition eventHandler - */ - - /** - * Constructs a new Transition. - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage - * @classdesc Represents a Transition. - * @implements ITransition - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition=} [properties] Properties to set - */ - function Transition(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse} message MatchIntentResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MatchIntentResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.matches = []; + if (options.defaults) + object.currentPage = null; + if (message.text != null && message.hasOwnProperty("text")) { + object.text = message.text; + if (options.oneofs) + object.query = "text"; + } + if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { + object.triggerIntent = message.triggerIntent; + if (options.oneofs) + object.query = "triggerIntent"; + } + if (message.transcript != null && message.hasOwnProperty("transcript")) { + object.transcript = message.transcript; + if (options.oneofs) + object.query = "transcript"; + } + if (message.matches && message.matches.length) { + object.matches = []; + for (var j = 0; j < message.matches.length; ++j) + object.matches[j] = $root.google.cloud.dialogflow.cx.v3beta1.Match.toObject(message.matches[j], options); } + if (message.currentPage != null && message.hasOwnProperty("currentPage")) + object.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.toObject(message.currentPage, options); + if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { + object.triggerEvent = message.triggerEvent; + if (options.oneofs) + object.query = "triggerEvent"; + } + return object; + }; - /** - * Transition source. - * @member {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null|undefined} source - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition - * @instance - */ - Transition.prototype.source = null; + /** + * Converts this MatchIntentResponse to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @instance + * @returns {Object.} JSON object + */ + MatchIntentResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Transition index. - * @member {number} index - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition - * @instance - */ - Transition.prototype.index = 0; + return MatchIntentResponse; + })(); - /** - * Transition target. - * @member {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null|undefined} target - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition - * @instance - */ - Transition.prototype.target = null; + v3beta1.FulfillIntentRequest = (function() { - /** - * Transition covered. - * @member {boolean} covered - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition - * @instance - */ - Transition.prototype.covered = false; + /** + * Properties of a FulfillIntentRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IFulfillIntentRequest + * @property {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest|null} [matchIntentRequest] FulfillIntentRequest matchIntentRequest + * @property {google.cloud.dialogflow.cx.v3beta1.IMatch|null} [match] FulfillIntentRequest match + * @property {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null} [outputAudioConfig] FulfillIntentRequest outputAudioConfig + */ - /** - * Transition transitionRoute. - * @member {google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null|undefined} transitionRoute - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition - * @instance - */ - Transition.prototype.transitionRoute = null; + /** + * Constructs a new FulfillIntentRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a FulfillIntentRequest. + * @implements IFulfillIntentRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest=} [properties] Properties to set + */ + function FulfillIntentRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Transition eventHandler. - * @member {google.cloud.dialogflow.cx.v3beta1.IEventHandler|null|undefined} eventHandler - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition - * @instance - */ - Transition.prototype.eventHandler = null; + /** + * FulfillIntentRequest matchIntentRequest. + * @member {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest|null|undefined} matchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @instance + */ + FulfillIntentRequest.prototype.matchIntentRequest = null; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * FulfillIntentRequest match. + * @member {google.cloud.dialogflow.cx.v3beta1.IMatch|null|undefined} match + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @instance + */ + FulfillIntentRequest.prototype.match = null; - /** - * Transition detail. - * @member {"transitionRoute"|"eventHandler"|undefined} detail - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition - * @instance - */ - Object.defineProperty(Transition.prototype, "detail", { - get: $util.oneOfGetter($oneOfFields = ["transitionRoute", "eventHandler"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * FulfillIntentRequest outputAudioConfig. + * @member {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null|undefined} outputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @instance + */ + FulfillIntentRequest.prototype.outputAudioConfig = null; - /** - * Creates a new Transition instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition} Transition instance - */ - Transition.create = function create(properties) { - return new Transition(properties); - }; + /** + * Creates a new FulfillIntentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest} FulfillIntentRequest instance + */ + FulfillIntentRequest.create = function create(properties) { + return new FulfillIntentRequest(properties); + }; - /** - * Encodes the specified Transition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition} message Transition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Transition.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.source != null && Object.hasOwnProperty.call(message, "source")) - $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.encode(message.source, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.encode(message.target, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.covered != null && Object.hasOwnProperty.call(message, "covered")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.covered); - if (message.index != null && Object.hasOwnProperty.call(message, "index")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.index); - if (message.transitionRoute != null && Object.hasOwnProperty.call(message, "transitionRoute")) - $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.encode(message.transitionRoute, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.eventHandler != null && Object.hasOwnProperty.call(message, "eventHandler")) - $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.encode(message.eventHandler, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified FulfillIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest} message FulfillIntentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FulfillIntentRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.matchIntentRequest != null && Object.hasOwnProperty.call(message, "matchIntentRequest")) + $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.encode(message.matchIntentRequest, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.match != null && Object.hasOwnProperty.call(message, "match")) + $root.google.cloud.dialogflow.cx.v3beta1.Match.encode(message.match, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) + $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified Transition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition} message Transition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Transition.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified FulfillIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest} message FulfillIntentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FulfillIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a Transition message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition} Transition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Transition.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.source = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.decode(reader, reader.uint32()); - break; - case 4: - message.index = reader.int32(); - break; - case 2: - message.target = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.decode(reader, reader.uint32()); - break; - case 3: - message.covered = reader.bool(); - break; - case 5: - message.transitionRoute = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.decode(reader, reader.uint32()); - break; - case 6: - message.eventHandler = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } + /** + * Decodes a FulfillIntentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest} FulfillIntentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FulfillIntentRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.matchIntentRequest = $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.decode(reader, reader.uint32()); + break; + case 2: + message.match = $root.google.cloud.dialogflow.cx.v3beta1.Match.decode(reader, reader.uint32()); + break; + case 3: + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a Transition message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition} Transition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Transition.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a Transition message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Transition.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.source != null && message.hasOwnProperty("source")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.verify(message.source); - if (error) - return "source." + error; - } - if (message.index != null && message.hasOwnProperty("index")) - if (!$util.isInteger(message.index)) - return "index: integer expected"; - if (message.target != null && message.hasOwnProperty("target")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.verify(message.target); - if (error) - return "target." + error; - } - if (message.covered != null && message.hasOwnProperty("covered")) - if (typeof message.covered !== "boolean") - return "covered: boolean expected"; - if (message.transitionRoute != null && message.hasOwnProperty("transitionRoute")) { - properties.detail = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.verify(message.transitionRoute); - if (error) - return "transitionRoute." + error; - } - } - if (message.eventHandler != null && message.hasOwnProperty("eventHandler")) { - if (properties.detail === 1) - return "detail: multiple values"; - properties.detail = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.verify(message.eventHandler); - if (error) - return "eventHandler." + error; - } - } - return null; - }; + /** + * Decodes a FulfillIntentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest} FulfillIntentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FulfillIntentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a Transition message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition} Transition - */ - Transition.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition(); - if (object.source != null) { - if (typeof object.source !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.source: object expected"); - message.source = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.fromObject(object.source); - } - if (object.index != null) - message.index = object.index | 0; - if (object.target != null) { - if (typeof object.target !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.target: object expected"); - message.target = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.fromObject(object.target); - } - if (object.covered != null) - message.covered = Boolean(object.covered); - if (object.transitionRoute != null) { - if (typeof object.transitionRoute !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.transitionRoute: object expected"); - message.transitionRoute = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.fromObject(object.transitionRoute); - } - if (object.eventHandler != null) { - if (typeof object.eventHandler !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.eventHandler: object expected"); - message.eventHandler = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.fromObject(object.eventHandler); - } - return message; - }; + /** + * Verifies a FulfillIntentRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FulfillIntentRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.matchIntentRequest != null && message.hasOwnProperty("matchIntentRequest")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.verify(message.matchIntentRequest); + if (error) + return "matchIntentRequest." + error; + } + if (message.match != null && message.hasOwnProperty("match")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Match.verify(message.match); + if (error) + return "match." + error; + } + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify(message.outputAudioConfig); + if (error) + return "outputAudioConfig." + error; + } + return null; + }; - /** - * Creates a plain object from a Transition message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition} message Transition - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Transition.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.source = null; - object.target = null; - object.covered = false; - object.index = 0; - } - if (message.source != null && message.hasOwnProperty("source")) - object.source = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.toObject(message.source, options); - if (message.target != null && message.hasOwnProperty("target")) - object.target = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.toObject(message.target, options); - if (message.covered != null && message.hasOwnProperty("covered")) - object.covered = message.covered; - if (message.index != null && message.hasOwnProperty("index")) - object.index = message.index; - if (message.transitionRoute != null && message.hasOwnProperty("transitionRoute")) { - object.transitionRoute = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.toObject(message.transitionRoute, options); - if (options.oneofs) - object.detail = "transitionRoute"; - } - if (message.eventHandler != null && message.hasOwnProperty("eventHandler")) { - object.eventHandler = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.toObject(message.eventHandler, options); - if (options.oneofs) - object.detail = "eventHandler"; - } + /** + * Creates a FulfillIntentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest} FulfillIntentRequest + */ + FulfillIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest) return object; - }; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest(); + if (object.matchIntentRequest != null) { + if (typeof object.matchIntentRequest !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest.matchIntentRequest: object expected"); + message.matchIntentRequest = $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.fromObject(object.matchIntentRequest); + } + if (object.match != null) { + if (typeof object.match !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest.match: object expected"); + message.match = $root.google.cloud.dialogflow.cx.v3beta1.Match.fromObject(object.match); + } + if (object.outputAudioConfig != null) { + if (typeof object.outputAudioConfig !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest.outputAudioConfig: object expected"); + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.fromObject(object.outputAudioConfig); + } + return message; + }; - /** - * Converts this Transition to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition - * @instance - * @returns {Object.} JSON object - */ - Transition.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a FulfillIntentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest} message FulfillIntentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FulfillIntentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.matchIntentRequest = null; + object.match = null; + object.outputAudioConfig = null; + } + if (message.matchIntentRequest != null && message.hasOwnProperty("matchIntentRequest")) + object.matchIntentRequest = $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.toObject(message.matchIntentRequest, options); + if (message.match != null && message.hasOwnProperty("match")) + object.match = $root.google.cloud.dialogflow.cx.v3beta1.Match.toObject(message.match, options); + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) + object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.toObject(message.outputAudioConfig, options); + return object; + }; - return Transition; - })(); + /** + * Converts this FulfillIntentRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @instance + * @returns {Object.} JSON object + */ + FulfillIntentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return TransitionCoverage; + return FulfillIntentRequest; })(); - v3beta1.TransitionRouteGroupCoverage = (function() { + v3beta1.FulfillIntentResponse = (function() { /** - * Properties of a TransitionRouteGroupCoverage. + * Properties of a FulfillIntentResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ITransitionRouteGroupCoverage - * @property {Array.|null} [coverages] TransitionRouteGroupCoverage coverages - * @property {number|null} [coverageScore] TransitionRouteGroupCoverage coverageScore + * @interface IFulfillIntentResponse + * @property {string|null} [responseId] FulfillIntentResponse responseId + * @property {google.cloud.dialogflow.cx.v3beta1.IQueryResult|null} [queryResult] FulfillIntentResponse queryResult + * @property {Uint8Array|null} [outputAudio] FulfillIntentResponse outputAudio + * @property {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null} [outputAudioConfig] FulfillIntentResponse outputAudioConfig */ /** - * Constructs a new TransitionRouteGroupCoverage. + * Constructs a new FulfillIntentResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a TransitionRouteGroupCoverage. - * @implements ITransitionRouteGroupCoverage + * @classdesc Represents a FulfillIntentResponse. + * @implements IFulfillIntentResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse=} [properties] Properties to set */ - function TransitionRouteGroupCoverage(properties) { - this.coverages = []; + function FulfillIntentResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -96987,91 +97011,114 @@ } /** - * TransitionRouteGroupCoverage coverages. - * @member {Array.} coverages - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * FulfillIntentResponse responseId. + * @member {string} responseId + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse * @instance */ - TransitionRouteGroupCoverage.prototype.coverages = $util.emptyArray; + FulfillIntentResponse.prototype.responseId = ""; /** - * TransitionRouteGroupCoverage coverageScore. - * @member {number} coverageScore - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * FulfillIntentResponse queryResult. + * @member {google.cloud.dialogflow.cx.v3beta1.IQueryResult|null|undefined} queryResult + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse * @instance */ - TransitionRouteGroupCoverage.prototype.coverageScore = 0; + FulfillIntentResponse.prototype.queryResult = null; /** - * Creates a new TransitionRouteGroupCoverage instance using the specified properties. + * FulfillIntentResponse outputAudio. + * @member {Uint8Array} outputAudio + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * @instance + */ + FulfillIntentResponse.prototype.outputAudio = $util.newBuffer([]); + + /** + * FulfillIntentResponse outputAudioConfig. + * @member {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null|undefined} outputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * @instance + */ + FulfillIntentResponse.prototype.outputAudioConfig = null; + + /** + * Creates a new FulfillIntentResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage instance + * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse} FulfillIntentResponse instance */ - TransitionRouteGroupCoverage.create = function create(properties) { - return new TransitionRouteGroupCoverage(properties); + FulfillIntentResponse.create = function create(properties) { + return new FulfillIntentResponse(properties); }; /** - * Encodes the specified TransitionRouteGroupCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.verify|verify} messages. + * Encodes the specified FulfillIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage} message TransitionRouteGroupCoverage message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse} message FulfillIntentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TransitionRouteGroupCoverage.encode = function encode(message, writer) { + FulfillIntentResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.coverages != null && message.coverages.length) - for (var i = 0; i < message.coverages.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.encode(message.coverages[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.coverageScore != null && Object.hasOwnProperty.call(message, "coverageScore")) - writer.uint32(/* id 2, wireType 5 =*/21).float(message.coverageScore); + if (message.responseId != null && Object.hasOwnProperty.call(message, "responseId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.responseId); + if (message.queryResult != null && Object.hasOwnProperty.call(message, "queryResult")) + $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.encode(message.queryResult, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.outputAudio != null && Object.hasOwnProperty.call(message, "outputAudio")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.outputAudio); + if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) + $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified TransitionRouteGroupCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.verify|verify} messages. + * Encodes the specified FulfillIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage} message TransitionRouteGroupCoverage message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse} message FulfillIntentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TransitionRouteGroupCoverage.encodeDelimited = function encodeDelimited(message, writer) { + FulfillIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TransitionRouteGroupCoverage message from the specified reader or buffer. + * Decodes a FulfillIntentResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage + * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse} FulfillIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TransitionRouteGroupCoverage.decode = function decode(reader, length) { + FulfillIntentResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.coverages && message.coverages.length)) - message.coverages = []; - message.coverages.push($root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.decode(reader, reader.uint32())); + message.responseId = reader.string(); break; case 2: - message.coverageScore = reader.float(); + message.queryResult = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.decode(reader, reader.uint32()); + break; + case 3: + message.outputAudio = reader.bytes(); + break; + case 4: + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -97082,609 +97129,564 @@ }; /** - * Decodes a TransitionRouteGroupCoverage message from the specified reader or buffer, length delimited. + * Decodes a FulfillIntentResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage + * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse} FulfillIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TransitionRouteGroupCoverage.decodeDelimited = function decodeDelimited(reader) { + FulfillIntentResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TransitionRouteGroupCoverage message. + * Verifies a FulfillIntentResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TransitionRouteGroupCoverage.verify = function verify(message) { + FulfillIntentResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.coverages != null && message.hasOwnProperty("coverages")) { - if (!Array.isArray(message.coverages)) - return "coverages: array expected"; - for (var i = 0; i < message.coverages.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.verify(message.coverages[i]); - if (error) - return "coverages." + error; - } + if (message.responseId != null && message.hasOwnProperty("responseId")) + if (!$util.isString(message.responseId)) + return "responseId: string expected"; + if (message.queryResult != null && message.hasOwnProperty("queryResult")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.verify(message.queryResult); + if (error) + return "queryResult." + error; + } + if (message.outputAudio != null && message.hasOwnProperty("outputAudio")) + if (!(message.outputAudio && typeof message.outputAudio.length === "number" || $util.isString(message.outputAudio))) + return "outputAudio: buffer expected"; + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify(message.outputAudioConfig); + if (error) + return "outputAudioConfig." + error; } - if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) - if (typeof message.coverageScore !== "number") - return "coverageScore: number expected"; return null; }; /** - * Creates a TransitionRouteGroupCoverage message from a plain object. Also converts values to their respective internal types. + * Creates a FulfillIntentResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage + * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse} FulfillIntentResponse */ - TransitionRouteGroupCoverage.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage) + FulfillIntentResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage(); - if (object.coverages) { - if (!Array.isArray(object.coverages)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.coverages: array expected"); - message.coverages = []; - for (var i = 0; i < object.coverages.length; ++i) { - if (typeof object.coverages[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.coverages: object expected"); - message.coverages[i] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.fromObject(object.coverages[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse(); + if (object.responseId != null) + message.responseId = String(object.responseId); + if (object.queryResult != null) { + if (typeof object.queryResult !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse.queryResult: object expected"); + message.queryResult = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.fromObject(object.queryResult); + } + if (object.outputAudio != null) + if (typeof object.outputAudio === "string") + $util.base64.decode(object.outputAudio, message.outputAudio = $util.newBuffer($util.base64.length(object.outputAudio)), 0); + else if (object.outputAudio.length) + message.outputAudio = object.outputAudio; + if (object.outputAudioConfig != null) { + if (typeof object.outputAudioConfig !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse.outputAudioConfig: object expected"); + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.fromObject(object.outputAudioConfig); } - if (object.coverageScore != null) - message.coverageScore = Number(object.coverageScore); return message; }; /** - * Creates a plain object from a TransitionRouteGroupCoverage message. Also converts values to other types if specified. + * Creates a plain object from a FulfillIntentResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage} message TransitionRouteGroupCoverage + * @param {google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse} message FulfillIntentResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TransitionRouteGroupCoverage.toObject = function toObject(message, options) { + FulfillIntentResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.coverages = []; - if (options.defaults) - object.coverageScore = 0; - if (message.coverages && message.coverages.length) { - object.coverages = []; - for (var j = 0; j < message.coverages.length; ++j) - object.coverages[j] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.toObject(message.coverages[j], options); + if (options.defaults) { + object.responseId = ""; + object.queryResult = null; + if (options.bytes === String) + object.outputAudio = ""; + else { + object.outputAudio = []; + if (options.bytes !== Array) + object.outputAudio = $util.newBuffer(object.outputAudio); + } + object.outputAudioConfig = null; } - if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) - object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; + if (message.responseId != null && message.hasOwnProperty("responseId")) + object.responseId = message.responseId; + if (message.queryResult != null && message.hasOwnProperty("queryResult")) + object.queryResult = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.toObject(message.queryResult, options); + if (message.outputAudio != null && message.hasOwnProperty("outputAudio")) + object.outputAudio = options.bytes === String ? $util.base64.encode(message.outputAudio, 0, message.outputAudio.length) : options.bytes === Array ? Array.prototype.slice.call(message.outputAudio) : message.outputAudio; + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) + object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.toObject(message.outputAudioConfig, options); return object; }; /** - * Converts this TransitionRouteGroupCoverage to JSON. + * Converts this FulfillIntentResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse * @instance * @returns {Object.} JSON object */ - TransitionRouteGroupCoverage.prototype.toJSON = function toJSON() { + FulfillIntentResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - TransitionRouteGroupCoverage.Coverage = (function() { - - /** - * Properties of a Coverage. - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage - * @interface ICoverage - * @property {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null} [routeGroup] Coverage routeGroup - * @property {Array.|null} [transitions] Coverage transitions - * @property {number|null} [coverageScore] Coverage coverageScore - */ - - /** - * Constructs a new Coverage. - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage - * @classdesc Represents a Coverage. - * @implements ICoverage - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage=} [properties] Properties to set - */ - function Coverage(properties) { - this.transitions = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Coverage routeGroup. - * @member {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null|undefined} routeGroup - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage - * @instance - */ - Coverage.prototype.routeGroup = null; + return FulfillIntentResponse; + })(); - /** - * Coverage transitions. - * @member {Array.} transitions - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage - * @instance - */ - Coverage.prototype.transitions = $util.emptyArray; + v3beta1.SentimentAnalysisResult = (function() { - /** - * Coverage coverageScore. - * @member {number} coverageScore - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage - * @instance - */ - Coverage.prototype.coverageScore = 0; + /** + * Properties of a SentimentAnalysisResult. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface ISentimentAnalysisResult + * @property {number|null} [score] SentimentAnalysisResult score + * @property {number|null} [magnitude] SentimentAnalysisResult magnitude + */ - /** - * Creates a new Coverage instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage} Coverage instance - */ - Coverage.create = function create(properties) { - return new Coverage(properties); - }; + /** + * Constructs a new SentimentAnalysisResult. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a SentimentAnalysisResult. + * @implements ISentimentAnalysisResult + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult=} [properties] Properties to set + */ + function SentimentAnalysisResult(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified Coverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage} message Coverage message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Coverage.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.routeGroup != null && Object.hasOwnProperty.call(message, "routeGroup")) - $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.encode(message.routeGroup, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.transitions != null && message.transitions.length) - for (var i = 0; i < message.transitions.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.encode(message.transitions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.coverageScore != null && Object.hasOwnProperty.call(message, "coverageScore")) - writer.uint32(/* id 3, wireType 5 =*/29).float(message.coverageScore); - return writer; - }; + /** + * SentimentAnalysisResult score. + * @member {number} score + * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @instance + */ + SentimentAnalysisResult.prototype.score = 0; - /** - * Encodes the specified Coverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage} message Coverage message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Coverage.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * SentimentAnalysisResult magnitude. + * @member {number} magnitude + * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @instance + */ + SentimentAnalysisResult.prototype.magnitude = 0; - /** - * Decodes a Coverage message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage} Coverage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Coverage.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.routeGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.decode(reader, reader.uint32()); - break; - case 2: - if (!(message.transitions && message.transitions.length)) - message.transitions = []; - message.transitions.push($root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.decode(reader, reader.uint32())); - break; - case 3: - message.coverageScore = reader.float(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a new SentimentAnalysisResult instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult} SentimentAnalysisResult instance + */ + SentimentAnalysisResult.create = function create(properties) { + return new SentimentAnalysisResult(properties); + }; - /** - * Decodes a Coverage message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage} Coverage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Coverage.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified SentimentAnalysisResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult} message SentimentAnalysisResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SentimentAnalysisResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.score != null && Object.hasOwnProperty.call(message, "score")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); + if (message.magnitude != null && Object.hasOwnProperty.call(message, "magnitude")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.magnitude); + return writer; + }; - /** - * Verifies a Coverage message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Coverage.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.routeGroup != null && message.hasOwnProperty("routeGroup")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify(message.routeGroup); - if (error) - return "routeGroup." + error; - } - if (message.transitions != null && message.hasOwnProperty("transitions")) { - if (!Array.isArray(message.transitions)) - return "transitions: array expected"; - for (var i = 0; i < message.transitions.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.verify(message.transitions[i]); - if (error) - return "transitions." + error; - } - } - if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) - if (typeof message.coverageScore !== "number") - return "coverageScore: number expected"; - return null; - }; + /** + * Encodes the specified SentimentAnalysisResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult} message SentimentAnalysisResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SentimentAnalysisResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a Coverage message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage} Coverage - */ - Coverage.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage(); - if (object.routeGroup != null) { - if (typeof object.routeGroup !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.routeGroup: object expected"); - message.routeGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.fromObject(object.routeGroup); - } - if (object.transitions) { - if (!Array.isArray(object.transitions)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.transitions: array expected"); - message.transitions = []; - for (var i = 0; i < object.transitions.length; ++i) { - if (typeof object.transitions[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.transitions: object expected"); - message.transitions[i] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.fromObject(object.transitions[i]); - } + /** + * Decodes a SentimentAnalysisResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult} SentimentAnalysisResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SentimentAnalysisResult.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.score = reader.float(); + break; + case 2: + message.magnitude = reader.float(); + break; + default: + reader.skipType(tag & 7); + break; } - if (object.coverageScore != null) - message.coverageScore = Number(object.coverageScore); - return message; - }; + } + return message; + }; - /** - * Creates a plain object from a Coverage message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage} message Coverage - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Coverage.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.transitions = []; - if (options.defaults) { - object.routeGroup = null; - object.coverageScore = 0; - } - if (message.routeGroup != null && message.hasOwnProperty("routeGroup")) - object.routeGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.toObject(message.routeGroup, options); - if (message.transitions && message.transitions.length) { - object.transitions = []; - for (var j = 0; j < message.transitions.length; ++j) - object.transitions[j] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.toObject(message.transitions[j], options); - } - if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) - object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; + /** + * Decodes a SentimentAnalysisResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult} SentimentAnalysisResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SentimentAnalysisResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SentimentAnalysisResult message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SentimentAnalysisResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.score != null && message.hasOwnProperty("score")) + if (typeof message.score !== "number") + return "score: number expected"; + if (message.magnitude != null && message.hasOwnProperty("magnitude")) + if (typeof message.magnitude !== "number") + return "magnitude: number expected"; + return null; + }; + + /** + * Creates a SentimentAnalysisResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult} SentimentAnalysisResult + */ + SentimentAnalysisResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult) return object; - }; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult(); + if (object.score != null) + message.score = Number(object.score); + if (object.magnitude != null) + message.magnitude = Number(object.magnitude); + return message; + }; - /** - * Converts this Coverage to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage - * @instance - * @returns {Object.} JSON object - */ - Coverage.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a SentimentAnalysisResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult} message SentimentAnalysisResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SentimentAnalysisResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.score = 0; + object.magnitude = 0; + } + if (message.score != null && message.hasOwnProperty("score")) + object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; + if (message.magnitude != null && message.hasOwnProperty("magnitude")) + object.magnitude = options.json && !isFinite(message.magnitude) ? String(message.magnitude) : message.magnitude; + return object; + }; - Coverage.Transition = (function() { + /** + * Converts this SentimentAnalysisResult to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @instance + * @returns {Object.} JSON object + */ + SentimentAnalysisResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Properties of a Transition. - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage - * @interface ITransition - * @property {google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null} [transitionRoute] Transition transitionRoute - * @property {boolean|null} [covered] Transition covered - */ + return SentimentAnalysisResult; + })(); - /** - * Constructs a new Transition. - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage - * @classdesc Represents a Transition. - * @implements ITransition - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition=} [properties] Properties to set - */ - function Transition(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v3beta1.SessionEntityTypes = (function() { - /** - * Transition transitionRoute. - * @member {google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null|undefined} transitionRoute - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition - * @instance - */ - Transition.prototype.transitionRoute = null; + /** + * Constructs a new SessionEntityTypes service. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a SessionEntityTypes + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function SessionEntityTypes(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } - /** - * Transition covered. - * @member {boolean} covered - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition - * @instance - */ - Transition.prototype.covered = false; + (SessionEntityTypes.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = SessionEntityTypes; - /** - * Creates a new Transition instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition} Transition instance - */ - Transition.create = function create(properties) { - return new Transition(properties); - }; + /** + * Creates new SessionEntityTypes service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {SessionEntityTypes} RPC service. Useful where requests and/or responses are streamed. + */ + SessionEntityTypes.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; - /** - * Encodes the specified Transition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition} message Transition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Transition.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.transitionRoute != null && Object.hasOwnProperty.call(message, "transitionRoute")) - $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.encode(message.transitionRoute, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.covered != null && Object.hasOwnProperty.call(message, "covered")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.covered); - return writer; - }; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#listSessionEntityTypes}. + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @typedef ListSessionEntityTypesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse} [response] ListSessionEntityTypesResponse + */ - /** - * Encodes the specified Transition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition} message Transition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Transition.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Calls ListSessionEntityTypes. + * @function listSessionEntityTypes + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest} request ListSessionEntityTypesRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.ListSessionEntityTypesCallback} callback Node-style callback called with the error, if any, and ListSessionEntityTypesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SessionEntityTypes.prototype.listSessionEntityTypes = function listSessionEntityTypes(request, callback) { + return this.rpcCall(listSessionEntityTypes, $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse, request, callback); + }, "name", { value: "ListSessionEntityTypes" }); - /** - * Decodes a Transition message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition} Transition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Transition.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.transitionRoute = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.decode(reader, reader.uint32()); - break; - case 2: - message.covered = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Calls ListSessionEntityTypes. + * @function listSessionEntityTypes + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest} request ListSessionEntityTypesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Decodes a Transition message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition} Transition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Transition.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#getSessionEntityType}. + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @typedef GetSessionEntityTypeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} [response] SessionEntityType + */ - /** - * Verifies a Transition message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Transition.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.transitionRoute != null && message.hasOwnProperty("transitionRoute")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.verify(message.transitionRoute); - if (error) - return "transitionRoute." + error; - } - if (message.covered != null && message.hasOwnProperty("covered")) - if (typeof message.covered !== "boolean") - return "covered: boolean expected"; - return null; - }; + /** + * Calls GetSessionEntityType. + * @function getSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest} request GetSessionEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.GetSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and SessionEntityType + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SessionEntityTypes.prototype.getSessionEntityType = function getSessionEntityType(request, callback) { + return this.rpcCall(getSessionEntityType, $root.google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType, request, callback); + }, "name", { value: "GetSessionEntityType" }); - /** - * Creates a Transition message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition} Transition - */ - Transition.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition(); - if (object.transitionRoute != null) { - if (typeof object.transitionRoute !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.transitionRoute: object expected"); - message.transitionRoute = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.fromObject(object.transitionRoute); - } - if (object.covered != null) - message.covered = Boolean(object.covered); - return message; - }; + /** + * Calls GetSessionEntityType. + * @function getSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest} request GetSessionEntityTypeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#createSessionEntityType}. + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @typedef CreateSessionEntityTypeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} [response] SessionEntityType + */ + + /** + * Calls CreateSessionEntityType. + * @function createSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest} request CreateSessionEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.CreateSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and SessionEntityType + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SessionEntityTypes.prototype.createSessionEntityType = function createSessionEntityType(request, callback) { + return this.rpcCall(createSessionEntityType, $root.google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType, request, callback); + }, "name", { value: "CreateSessionEntityType" }); + + /** + * Calls CreateSessionEntityType. + * @function createSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest} request CreateSessionEntityTypeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Creates a plain object from a Transition message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition} message Transition - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Transition.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.transitionRoute = null; - object.covered = false; - } - if (message.transitionRoute != null && message.hasOwnProperty("transitionRoute")) - object.transitionRoute = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.toObject(message.transitionRoute, options); - if (message.covered != null && message.hasOwnProperty("covered")) - object.covered = message.covered; - return object; - }; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#updateSessionEntityType}. + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @typedef UpdateSessionEntityTypeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} [response] SessionEntityType + */ - /** - * Converts this Transition to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition - * @instance - * @returns {Object.} JSON object - */ - Transition.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Calls UpdateSessionEntityType. + * @function updateSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest} request UpdateSessionEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.UpdateSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and SessionEntityType + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SessionEntityTypes.prototype.updateSessionEntityType = function updateSessionEntityType(request, callback) { + return this.rpcCall(updateSessionEntityType, $root.google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType, request, callback); + }, "name", { value: "UpdateSessionEntityType" }); - return Transition; - })(); + /** + * Calls UpdateSessionEntityType. + * @function updateSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest} request UpdateSessionEntityTypeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - return Coverage; - })(); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#deleteSessionEntityType}. + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @typedef DeleteSessionEntityTypeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ - return TransitionRouteGroupCoverage; + /** + * Calls DeleteSessionEntityType. + * @function deleteSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest} request DeleteSessionEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.DeleteSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SessionEntityTypes.prototype.deleteSessionEntityType = function deleteSessionEntityType(request, callback) { + return this.rpcCall(deleteSessionEntityType, $root.google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteSessionEntityType" }); + + /** + * Calls DeleteSessionEntityType. + * @function deleteSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest} request DeleteSessionEntityTypeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return SessionEntityTypes; })(); - v3beta1.IntentCoverage = (function() { + v3beta1.SessionEntityType = (function() { /** - * Properties of an IntentCoverage. + * Properties of a SessionEntityType. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IIntentCoverage - * @property {Array.|null} [intents] IntentCoverage intents - * @property {number|null} [coverageScore] IntentCoverage coverageScore + * @interface ISessionEntityType + * @property {string|null} [name] SessionEntityType name + * @property {google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode|null} [entityOverrideMode] SessionEntityType entityOverrideMode + * @property {Array.|null} [entities] SessionEntityType entities */ /** - * Constructs a new IntentCoverage. + * Constructs a new SessionEntityType. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an IntentCoverage. - * @implements IIntentCoverage + * @classdesc Represents a SessionEntityType. + * @implements ISessionEntityType * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IIntentCoverage=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType=} [properties] Properties to set */ - function IntentCoverage(properties) { - this.intents = []; + function SessionEntityType(properties) { + this.entities = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -97692,91 +97694,104 @@ } /** - * IntentCoverage intents. - * @member {Array.} intents - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage + * SessionEntityType name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType * @instance */ - IntentCoverage.prototype.intents = $util.emptyArray; + SessionEntityType.prototype.name = ""; /** - * IntentCoverage coverageScore. - * @member {number} coverageScore - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage + * SessionEntityType entityOverrideMode. + * @member {google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode} entityOverrideMode + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType * @instance */ - IntentCoverage.prototype.coverageScore = 0; + SessionEntityType.prototype.entityOverrideMode = 0; /** - * Creates a new IntentCoverage instance using the specified properties. + * SessionEntityType entities. + * @member {Array.} entities + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * @instance + */ + SessionEntityType.prototype.entities = $util.emptyArray; + + /** + * Creates a new SessionEntityType instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IIntentCoverage=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.IntentCoverage} IntentCoverage instance + * @param {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} SessionEntityType instance */ - IntentCoverage.create = function create(properties) { - return new IntentCoverage(properties); + SessionEntityType.create = function create(properties) { + return new SessionEntityType(properties); }; /** - * Encodes the specified IntentCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentCoverage.verify|verify} messages. + * Encodes the specified SessionEntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IIntentCoverage} message IntentCoverage message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType} message SessionEntityType message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IntentCoverage.encode = function encode(message, writer) { + SessionEntityType.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.intents != null && message.intents.length) - for (var i = 0; i < message.intents.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent.encode(message.intents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.coverageScore != null && Object.hasOwnProperty.call(message, "coverageScore")) - writer.uint32(/* id 2, wireType 5 =*/21).float(message.coverageScore); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.entityOverrideMode != null && Object.hasOwnProperty.call(message, "entityOverrideMode")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.entityOverrideMode); + if (message.entities != null && message.entities.length) + for (var i = 0; i < message.entities.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.encode(message.entities[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified IntentCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentCoverage.verify|verify} messages. + * Encodes the specified SessionEntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IIntentCoverage} message IntentCoverage message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType} message SessionEntityType message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IntentCoverage.encodeDelimited = function encodeDelimited(message, writer) { + SessionEntityType.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IntentCoverage message from the specified reader or buffer. + * Decodes a SessionEntityType message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.IntentCoverage} IntentCoverage + * @returns {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} SessionEntityType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IntentCoverage.decode = function decode(reader, length) { + SessionEntityType.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.intents && message.intents.length)) - message.intents = []; - message.intents.push($root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent.decode(reader, reader.uint32())); + message.name = reader.string(); break; - case 2: - message.coverageScore = reader.float(); + case 3: + message.entityOverrideMode = reader.int32(); + break; + case 4: + if (!(message.entities && message.entities.length)) + message.entities = []; + message.entities.push($root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -97787,344 +97802,178 @@ }; /** - * Decodes an IntentCoverage message from the specified reader or buffer, length delimited. + * Decodes a SessionEntityType message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.IntentCoverage} IntentCoverage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IntentCoverage.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an IntentCoverage message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - IntentCoverage.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.intents != null && message.hasOwnProperty("intents")) { - if (!Array.isArray(message.intents)) - return "intents: array expected"; - for (var i = 0; i < message.intents.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent.verify(message.intents[i]); - if (error) - return "intents." + error; - } - } - if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) - if (typeof message.coverageScore !== "number") - return "coverageScore: number expected"; - return null; - }; - - /** - * Creates an IntentCoverage message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.IntentCoverage} IntentCoverage - */ - IntentCoverage.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage(); - if (object.intents) { - if (!Array.isArray(object.intents)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.IntentCoverage.intents: array expected"); - message.intents = []; - for (var i = 0; i < object.intents.length; ++i) { - if (typeof object.intents[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.IntentCoverage.intents: object expected"); - message.intents[i] = $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent.fromObject(object.intents[i]); - } - } - if (object.coverageScore != null) - message.coverageScore = Number(object.coverageScore); - return message; - }; - - /** - * Creates a plain object from an IntentCoverage message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IntentCoverage} message IntentCoverage - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - IntentCoverage.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.intents = []; - if (options.defaults) - object.coverageScore = 0; - if (message.intents && message.intents.length) { - object.intents = []; - for (var j = 0; j < message.intents.length; ++j) - object.intents[j] = $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent.toObject(message.intents[j], options); - } - if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) - object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; - return object; - }; - - /** - * Converts this IntentCoverage to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage - * @instance - * @returns {Object.} JSON object - */ - IntentCoverage.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - IntentCoverage.Intent = (function() { - - /** - * Properties of an Intent. - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage - * @interface IIntent - * @property {string|null} [intent] Intent intent - * @property {boolean|null} [covered] Intent covered - */ - - /** - * Constructs a new Intent. - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage - * @classdesc Represents an Intent. - * @implements IIntent - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent=} [properties] Properties to set - */ - function Intent(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Intent intent. - * @member {string} intent - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent - * @instance - */ - Intent.prototype.intent = ""; - - /** - * Intent covered. - * @member {boolean} covered - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent - * @instance - */ - Intent.prototype.covered = false; - - /** - * Creates a new Intent instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent} Intent instance - */ - Intent.create = function create(properties) { - return new Intent(properties); - }; - - /** - * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent} message Intent message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Intent.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.intent); - if (message.covered != null && Object.hasOwnProperty.call(message, "covered")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.covered); - return writer; - }; - - /** - * Encodes the specified Intent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent} message Intent message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Intent.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an Intent message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent} Intent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Intent.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.intent = reader.string(); - break; - case 2: - message.covered = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an Intent message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent} Intent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Intent.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an Intent message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Intent.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.intent != null && message.hasOwnProperty("intent")) - if (!$util.isString(message.intent)) - return "intent: string expected"; - if (message.covered != null && message.hasOwnProperty("covered")) - if (typeof message.covered !== "boolean") - return "covered: boolean expected"; - return null; - }; - - /** - * Creates an Intent message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent} Intent - */ - Intent.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent(); - if (object.intent != null) - message.intent = String(object.intent); - if (object.covered != null) - message.covered = Boolean(object.covered); - return message; - }; - - /** - * Creates a plain object from an Intent message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent} message Intent - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Intent.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.intent = ""; - object.covered = false; + * @returns {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} SessionEntityType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SessionEntityType.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SessionEntityType message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SessionEntityType.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.entityOverrideMode != null && message.hasOwnProperty("entityOverrideMode")) + switch (message.entityOverrideMode) { + default: + return "entityOverrideMode: enum value expected"; + case 0: + case 1: + case 2: + break; } - if (message.intent != null && message.hasOwnProperty("intent")) - object.intent = message.intent; - if (message.covered != null && message.hasOwnProperty("covered")) - object.covered = message.covered; + if (message.entities != null && message.hasOwnProperty("entities")) { + if (!Array.isArray(message.entities)) + return "entities: array expected"; + for (var i = 0; i < message.entities.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.verify(message.entities[i]); + if (error) + return "entities." + error; + } + } + return null; + }; + + /** + * Creates a SessionEntityType message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} SessionEntityType + */ + SessionEntityType.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType) return object; - }; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType(); + if (object.name != null) + message.name = String(object.name); + switch (object.entityOverrideMode) { + case "ENTITY_OVERRIDE_MODE_UNSPECIFIED": + case 0: + message.entityOverrideMode = 0; + break; + case "ENTITY_OVERRIDE_MODE_OVERRIDE": + case 1: + message.entityOverrideMode = 1; + break; + case "ENTITY_OVERRIDE_MODE_SUPPLEMENT": + case 2: + message.entityOverrideMode = 2; + break; + } + if (object.entities) { + if (!Array.isArray(object.entities)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SessionEntityType.entities: array expected"); + message.entities = []; + for (var i = 0; i < object.entities.length; ++i) { + if (typeof object.entities[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SessionEntityType.entities: object expected"); + message.entities[i] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.fromObject(object.entities[i]); + } + } + return message; + }; - /** - * Converts this Intent to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent - * @instance - * @returns {Object.} JSON object - */ - Intent.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a SessionEntityType message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} message SessionEntityType + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SessionEntityType.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.entities = []; + if (options.defaults) { + object.name = ""; + object.entityOverrideMode = options.enums === String ? "ENTITY_OVERRIDE_MODE_UNSPECIFIED" : 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.entityOverrideMode != null && message.hasOwnProperty("entityOverrideMode")) + object.entityOverrideMode = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode[message.entityOverrideMode] : message.entityOverrideMode; + if (message.entities && message.entities.length) { + object.entities = []; + for (var j = 0; j < message.entities.length; ++j) + object.entities[j] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.toObject(message.entities[j], options); + } + return object; + }; - return Intent; + /** + * Converts this SessionEntityType to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * @instance + * @returns {Object.} JSON object + */ + SessionEntityType.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * EntityOverrideMode enum. + * @name google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode + * @enum {number} + * @property {number} ENTITY_OVERRIDE_MODE_UNSPECIFIED=0 ENTITY_OVERRIDE_MODE_UNSPECIFIED value + * @property {number} ENTITY_OVERRIDE_MODE_OVERRIDE=1 ENTITY_OVERRIDE_MODE_OVERRIDE value + * @property {number} ENTITY_OVERRIDE_MODE_SUPPLEMENT=2 ENTITY_OVERRIDE_MODE_SUPPLEMENT value + */ + SessionEntityType.EntityOverrideMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ENTITY_OVERRIDE_MODE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ENTITY_OVERRIDE_MODE_OVERRIDE"] = 1; + values[valuesById[2] = "ENTITY_OVERRIDE_MODE_SUPPLEMENT"] = 2; + return values; })(); - return IntentCoverage; + return SessionEntityType; })(); - v3beta1.CalculateCoverageRequest = (function() { + v3beta1.ListSessionEntityTypesRequest = (function() { /** - * Properties of a CalculateCoverageRequest. + * Properties of a ListSessionEntityTypesRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ICalculateCoverageRequest - * @property {string|null} [agent] CalculateCoverageRequest agent - * @property {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType|null} [type] CalculateCoverageRequest type + * @interface IListSessionEntityTypesRequest + * @property {string|null} [parent] ListSessionEntityTypesRequest parent + * @property {number|null} [pageSize] ListSessionEntityTypesRequest pageSize + * @property {string|null} [pageToken] ListSessionEntityTypesRequest pageToken */ /** - * Constructs a new CalculateCoverageRequest. + * Constructs a new ListSessionEntityTypesRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a CalculateCoverageRequest. - * @implements ICalculateCoverageRequest + * @classdesc Represents a ListSessionEntityTypesRequest. + * @implements IListSessionEntityTypesRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest=} [properties] Properties to set */ - function CalculateCoverageRequest(properties) { + function ListSessionEntityTypesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -98132,88 +97981,101 @@ } /** - * CalculateCoverageRequest agent. - * @member {string} agent - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest + * ListSessionEntityTypesRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest * @instance */ - CalculateCoverageRequest.prototype.agent = ""; + ListSessionEntityTypesRequest.prototype.parent = ""; /** - * CalculateCoverageRequest type. - * @member {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType} type - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest + * ListSessionEntityTypesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest * @instance */ - CalculateCoverageRequest.prototype.type = 0; + ListSessionEntityTypesRequest.prototype.pageSize = 0; /** - * Creates a new CalculateCoverageRequest instance using the specified properties. + * ListSessionEntityTypesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest + * @instance + */ + ListSessionEntityTypesRequest.prototype.pageToken = ""; + + /** + * Creates a new ListSessionEntityTypesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest} CalculateCoverageRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest instance */ - CalculateCoverageRequest.create = function create(properties) { - return new CalculateCoverageRequest(properties); + ListSessionEntityTypesRequest.create = function create(properties) { + return new ListSessionEntityTypesRequest(properties); }; /** - * Encodes the specified CalculateCoverageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.verify|verify} messages. + * Encodes the specified ListSessionEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest} message CalculateCoverageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest} message ListSessionEntityTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CalculateCoverageRequest.encode = function encode(message, writer) { + ListSessionEntityTypesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); - if (message.agent != null && Object.hasOwnProperty.call(message, "agent")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.agent); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified CalculateCoverageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.verify|verify} messages. + * Encodes the specified ListSessionEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest} message CalculateCoverageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest} message ListSessionEntityTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CalculateCoverageRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListSessionEntityTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CalculateCoverageRequest message from the specified reader or buffer. + * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest} CalculateCoverageRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CalculateCoverageRequest.decode = function decode(reader, length) { + ListSessionEntityTypesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 3: - message.agent = reader.string(); + case 1: + message.parent = reader.string(); break; case 2: - message.type = reader.int32(); + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -98224,160 +98086,126 @@ }; /** - * Decodes a CalculateCoverageRequest message from the specified reader or buffer, length delimited. + * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest} CalculateCoverageRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CalculateCoverageRequest.decodeDelimited = function decodeDelimited(reader) { + ListSessionEntityTypesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CalculateCoverageRequest message. + * Verifies a ListSessionEntityTypesRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CalculateCoverageRequest.verify = function verify(message) { + ListSessionEntityTypesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.agent != null && message.hasOwnProperty("agent")) - if (!$util.isString(message.agent)) - return "agent: string expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a CalculateCoverageRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListSessionEntityTypesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest} CalculateCoverageRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest */ - CalculateCoverageRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest) + ListSessionEntityTypesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest(); - if (object.agent != null) - message.agent = String(object.agent); - switch (object.type) { - case "COVERAGE_TYPE_UNSPECIFIED": - case 0: - message.type = 0; - break; - case "INTENT": - case 1: - message.type = 1; - break; - case "PAGE_TRANSITION": - case 2: - message.type = 2; - break; - case "TRANSITION_ROUTE_GROUP": - case 3: - message.type = 3; - break; - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a CalculateCoverageRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListSessionEntityTypesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest} message CalculateCoverageRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest} message ListSessionEntityTypesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CalculateCoverageRequest.toObject = function toObject(message, options) { + ListSessionEntityTypesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.type = options.enums === String ? "COVERAGE_TYPE_UNSPECIFIED" : 0; - object.agent = ""; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType[message.type] : message.type; - if (message.agent != null && message.hasOwnProperty("agent")) - object.agent = message.agent; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this CalculateCoverageRequest to JSON. + * Converts this ListSessionEntityTypesRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest * @instance * @returns {Object.} JSON object */ - CalculateCoverageRequest.prototype.toJSON = function toJSON() { + ListSessionEntityTypesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * CoverageType enum. - * @name google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType - * @enum {number} - * @property {number} COVERAGE_TYPE_UNSPECIFIED=0 COVERAGE_TYPE_UNSPECIFIED value - * @property {number} INTENT=1 INTENT value - * @property {number} PAGE_TRANSITION=2 PAGE_TRANSITION value - * @property {number} TRANSITION_ROUTE_GROUP=3 TRANSITION_ROUTE_GROUP value - */ - CalculateCoverageRequest.CoverageType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "COVERAGE_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "INTENT"] = 1; - values[valuesById[2] = "PAGE_TRANSITION"] = 2; - values[valuesById[3] = "TRANSITION_ROUTE_GROUP"] = 3; - return values; - })(); - - return CalculateCoverageRequest; + return ListSessionEntityTypesRequest; })(); - v3beta1.CalculateCoverageResponse = (function() { + v3beta1.ListSessionEntityTypesResponse = (function() { /** - * Properties of a CalculateCoverageResponse. + * Properties of a ListSessionEntityTypesResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ICalculateCoverageResponse - * @property {string|null} [agent] CalculateCoverageResponse agent - * @property {google.cloud.dialogflow.cx.v3beta1.IIntentCoverage|null} [intentCoverage] CalculateCoverageResponse intentCoverage - * @property {google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage|null} [transitionCoverage] CalculateCoverageResponse transitionCoverage - * @property {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage|null} [routeGroupCoverage] CalculateCoverageResponse routeGroupCoverage + * @interface IListSessionEntityTypesResponse + * @property {Array.|null} [sessionEntityTypes] ListSessionEntityTypesResponse sessionEntityTypes + * @property {string|null} [nextPageToken] ListSessionEntityTypesResponse nextPageToken */ /** - * Constructs a new CalculateCoverageResponse. + * Constructs a new ListSessionEntityTypesResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a CalculateCoverageResponse. - * @implements ICalculateCoverageResponse + * @classdesc Represents a ListSessionEntityTypesResponse. + * @implements IListSessionEntityTypesResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse=} [properties] Properties to set */ - function CalculateCoverageResponse(properties) { + function ListSessionEntityTypesResponse(properties) { + this.sessionEntityTypes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -98385,128 +98213,91 @@ } /** - * CalculateCoverageResponse agent. - * @member {string} agent - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse - * @instance - */ - CalculateCoverageResponse.prototype.agent = ""; - - /** - * CalculateCoverageResponse intentCoverage. - * @member {google.cloud.dialogflow.cx.v3beta1.IIntentCoverage|null|undefined} intentCoverage - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse - * @instance - */ - CalculateCoverageResponse.prototype.intentCoverage = null; - - /** - * CalculateCoverageResponse transitionCoverage. - * @member {google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage|null|undefined} transitionCoverage - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse - * @instance - */ - CalculateCoverageResponse.prototype.transitionCoverage = null; - - /** - * CalculateCoverageResponse routeGroupCoverage. - * @member {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage|null|undefined} routeGroupCoverage - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * ListSessionEntityTypesResponse sessionEntityTypes. + * @member {Array.} sessionEntityTypes + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse * @instance */ - CalculateCoverageResponse.prototype.routeGroupCoverage = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + ListSessionEntityTypesResponse.prototype.sessionEntityTypes = $util.emptyArray; /** - * CalculateCoverageResponse coverageType. - * @member {"intentCoverage"|"transitionCoverage"|"routeGroupCoverage"|undefined} coverageType - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * ListSessionEntityTypesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse * @instance */ - Object.defineProperty(CalculateCoverageResponse.prototype, "coverageType", { - get: $util.oneOfGetter($oneOfFields = ["intentCoverage", "transitionCoverage", "routeGroupCoverage"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListSessionEntityTypesResponse.prototype.nextPageToken = ""; /** - * Creates a new CalculateCoverageResponse instance using the specified properties. + * Creates a new ListSessionEntityTypesResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse} CalculateCoverageResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse instance */ - CalculateCoverageResponse.create = function create(properties) { - return new CalculateCoverageResponse(properties); + ListSessionEntityTypesResponse.create = function create(properties) { + return new ListSessionEntityTypesResponse(properties); }; /** - * Encodes the specified CalculateCoverageResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse.verify|verify} messages. + * Encodes the specified ListSessionEntityTypesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse} message CalculateCoverageResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse} message ListSessionEntityTypesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CalculateCoverageResponse.encode = function encode(message, writer) { + ListSessionEntityTypesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.intentCoverage != null && Object.hasOwnProperty.call(message, "intentCoverage")) - $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.encode(message.intentCoverage, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.transitionCoverage != null && Object.hasOwnProperty.call(message, "transitionCoverage")) - $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.encode(message.transitionCoverage, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.agent != null && Object.hasOwnProperty.call(message, "agent")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.agent); - if (message.routeGroupCoverage != null && Object.hasOwnProperty.call(message, "routeGroupCoverage")) - $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.encode(message.routeGroupCoverage, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.sessionEntityTypes != null && message.sessionEntityTypes.length) + for (var i = 0; i < message.sessionEntityTypes.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.encode(message.sessionEntityTypes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified CalculateCoverageResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse.verify|verify} messages. + * Encodes the specified ListSessionEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse} message CalculateCoverageResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse} message ListSessionEntityTypesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CalculateCoverageResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListSessionEntityTypesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CalculateCoverageResponse message from the specified reader or buffer. + * Decodes a ListSessionEntityTypesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse} CalculateCoverageResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CalculateCoverageResponse.decode = function decode(reader, length) { + ListSessionEntityTypesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 5: - message.agent = reader.string(); - break; - case 2: - message.intentCoverage = $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.decode(reader, reader.uint32()); - break; - case 4: - message.transitionCoverage = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.decode(reader, reader.uint32()); + case 1: + if (!(message.sessionEntityTypes && message.sessionEntityTypes.length)) + message.sessionEntityTypes = []; + message.sessionEntityTypes.push($root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.decode(reader, reader.uint32())); break; - case 6: - message.routeGroupCoverage = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.decode(reader, reader.uint32()); + case 2: + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -98517,169 +98308,133 @@ }; /** - * Decodes a CalculateCoverageResponse message from the specified reader or buffer, length delimited. + * Decodes a ListSessionEntityTypesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse} CalculateCoverageResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CalculateCoverageResponse.decodeDelimited = function decodeDelimited(reader) { + ListSessionEntityTypesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CalculateCoverageResponse message. + * Verifies a ListSessionEntityTypesResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CalculateCoverageResponse.verify = function verify(message) { + ListSessionEntityTypesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.agent != null && message.hasOwnProperty("agent")) - if (!$util.isString(message.agent)) - return "agent: string expected"; - if (message.intentCoverage != null && message.hasOwnProperty("intentCoverage")) { - properties.coverageType = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.verify(message.intentCoverage); - if (error) - return "intentCoverage." + error; - } - } - if (message.transitionCoverage != null && message.hasOwnProperty("transitionCoverage")) { - if (properties.coverageType === 1) - return "coverageType: multiple values"; - properties.coverageType = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.verify(message.transitionCoverage); - if (error) - return "transitionCoverage." + error; - } - } - if (message.routeGroupCoverage != null && message.hasOwnProperty("routeGroupCoverage")) { - if (properties.coverageType === 1) - return "coverageType: multiple values"; - properties.coverageType = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.verify(message.routeGroupCoverage); + if (message.sessionEntityTypes != null && message.hasOwnProperty("sessionEntityTypes")) { + if (!Array.isArray(message.sessionEntityTypes)) + return "sessionEntityTypes: array expected"; + for (var i = 0; i < message.sessionEntityTypes.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify(message.sessionEntityTypes[i]); if (error) - return "routeGroupCoverage." + error; + return "sessionEntityTypes." + error; } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a CalculateCoverageResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListSessionEntityTypesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse} CalculateCoverageResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse */ - CalculateCoverageResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse) + ListSessionEntityTypesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse(); - if (object.agent != null) - message.agent = String(object.agent); - if (object.intentCoverage != null) { - if (typeof object.intentCoverage !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse.intentCoverage: object expected"); - message.intentCoverage = $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.fromObject(object.intentCoverage); - } - if (object.transitionCoverage != null) { - if (typeof object.transitionCoverage !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse.transitionCoverage: object expected"); - message.transitionCoverage = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.fromObject(object.transitionCoverage); - } - if (object.routeGroupCoverage != null) { - if (typeof object.routeGroupCoverage !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse.routeGroupCoverage: object expected"); - message.routeGroupCoverage = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.fromObject(object.routeGroupCoverage); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse(); + if (object.sessionEntityTypes) { + if (!Array.isArray(object.sessionEntityTypes)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse.sessionEntityTypes: array expected"); + message.sessionEntityTypes = []; + for (var i = 0; i < object.sessionEntityTypes.length; ++i) { + if (typeof object.sessionEntityTypes[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse.sessionEntityTypes: object expected"); + message.sessionEntityTypes[i] = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.fromObject(object.sessionEntityTypes[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a CalculateCoverageResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListSessionEntityTypesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse} message CalculateCoverageResponse + * @param {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse} message ListSessionEntityTypesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CalculateCoverageResponse.toObject = function toObject(message, options) { + ListSessionEntityTypesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.sessionEntityTypes = []; if (options.defaults) - object.agent = ""; - if (message.intentCoverage != null && message.hasOwnProperty("intentCoverage")) { - object.intentCoverage = $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.toObject(message.intentCoverage, options); - if (options.oneofs) - object.coverageType = "intentCoverage"; - } - if (message.transitionCoverage != null && message.hasOwnProperty("transitionCoverage")) { - object.transitionCoverage = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.toObject(message.transitionCoverage, options); - if (options.oneofs) - object.coverageType = "transitionCoverage"; - } - if (message.agent != null && message.hasOwnProperty("agent")) - object.agent = message.agent; - if (message.routeGroupCoverage != null && message.hasOwnProperty("routeGroupCoverage")) { - object.routeGroupCoverage = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.toObject(message.routeGroupCoverage, options); - if (options.oneofs) - object.coverageType = "routeGroupCoverage"; + object.nextPageToken = ""; + if (message.sessionEntityTypes && message.sessionEntityTypes.length) { + object.sessionEntityTypes = []; + for (var j = 0; j < message.sessionEntityTypes.length; ++j) + object.sessionEntityTypes[j] = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.toObject(message.sessionEntityTypes[j], options); } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this CalculateCoverageResponse to JSON. + * Converts this ListSessionEntityTypesResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse * @instance * @returns {Object.} JSON object */ - CalculateCoverageResponse.prototype.toJSON = function toJSON() { + ListSessionEntityTypesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CalculateCoverageResponse; + return ListSessionEntityTypesResponse; })(); - v3beta1.ListTestCasesRequest = (function() { + v3beta1.GetSessionEntityTypeRequest = (function() { /** - * Properties of a ListTestCasesRequest. + * Properties of a GetSessionEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListTestCasesRequest - * @property {string|null} [parent] ListTestCasesRequest parent - * @property {number|null} [pageSize] ListTestCasesRequest pageSize - * @property {string|null} [pageToken] ListTestCasesRequest pageToken - * @property {google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView|null} [view] ListTestCasesRequest view + * @interface IGetSessionEntityTypeRequest + * @property {string|null} [name] GetSessionEntityTypeRequest name */ /** - * Constructs a new ListTestCasesRequest. + * Constructs a new GetSessionEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListTestCasesRequest. - * @implements IListTestCasesRequest + * @classdesc Represents a GetSessionEntityTypeRequest. + * @implements IGetSessionEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest=} [properties] Properties to set */ - function ListTestCasesRequest(properties) { + function GetSessionEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -98687,114 +98442,75 @@ } /** - * ListTestCasesRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest - * @instance - */ - ListTestCasesRequest.prototype.parent = ""; - - /** - * ListTestCasesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest - * @instance - */ - ListTestCasesRequest.prototype.pageSize = 0; - - /** - * ListTestCasesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest - * @instance - */ - ListTestCasesRequest.prototype.pageToken = ""; - - /** - * ListTestCasesRequest view. - * @member {google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView} view - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * GetSessionEntityTypeRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest * @instance */ - ListTestCasesRequest.prototype.view = 0; + GetSessionEntityTypeRequest.prototype.name = ""; /** - * Creates a new ListTestCasesRequest instance using the specified properties. + * Creates a new GetSessionEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest} ListTestCasesRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest instance */ - ListTestCasesRequest.create = function create(properties) { - return new ListTestCasesRequest(properties); + GetSessionEntityTypeRequest.create = function create(properties) { + return new GetSessionEntityTypeRequest(properties); }; /** - * Encodes the specified ListTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.verify|verify} messages. + * Encodes the specified GetSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest} message ListTestCasesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest} message GetSessionEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTestCasesRequest.encode = function encode(message, writer) { + GetSessionEntityTypeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.view != null && Object.hasOwnProperty.call(message, "view")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.view); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.verify|verify} messages. + * Encodes the specified GetSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest} message ListTestCasesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest} message GetSessionEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTestCasesRequest message from the specified reader or buffer. + * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest} ListTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTestCasesRequest.decode = function decode(reader, length) { + GetSessionEntityTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); - break; - case 4: - message.view = reader.int32(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -98805,168 +98521,108 @@ }; /** - * Decodes a ListTestCasesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest} ListTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { + GetSessionEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTestCasesRequest message. + * Verifies a GetSessionEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTestCasesRequest.verify = function verify(message) { + GetSessionEntityTypeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.view != null && message.hasOwnProperty("view")) - switch (message.view) { - default: - return "view: enum value expected"; - case 0: - case 1: - case 2: - break; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest} ListTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest */ - ListTestCasesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest) + GetSessionEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - switch (object.view) { - case "TEST_CASE_VIEW_UNSPECIFIED": - case 0: - message.view = 0; - break; - case "BASIC": - case 1: - message.view = 1; - break; - case "FULL": - case 2: - message.view = 2; - break; - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListTestCasesRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetSessionEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest} message ListTestCasesRequest + * @param {google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest} message GetSessionEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTestCasesRequest.toObject = function toObject(message, options) { + GetSessionEntityTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.view = options.enums === String ? "TEST_CASE_VIEW_UNSPECIFIED" : 0; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.view != null && message.hasOwnProperty("view")) - object.view = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView[message.view] : message.view; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListTestCasesRequest to JSON. + * Converts this GetSessionEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest * @instance * @returns {Object.} JSON object */ - ListTestCasesRequest.prototype.toJSON = function toJSON() { + GetSessionEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * TestCaseView enum. - * @name google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView - * @enum {number} - * @property {number} TEST_CASE_VIEW_UNSPECIFIED=0 TEST_CASE_VIEW_UNSPECIFIED value - * @property {number} BASIC=1 BASIC value - * @property {number} FULL=2 FULL value - */ - ListTestCasesRequest.TestCaseView = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TEST_CASE_VIEW_UNSPECIFIED"] = 0; - values[valuesById[1] = "BASIC"] = 1; - values[valuesById[2] = "FULL"] = 2; - return values; - })(); - - return ListTestCasesRequest; + return GetSessionEntityTypeRequest; })(); - v3beta1.ListTestCasesResponse = (function() { + v3beta1.CreateSessionEntityTypeRequest = (function() { /** - * Properties of a ListTestCasesResponse. + * Properties of a CreateSessionEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListTestCasesResponse - * @property {Array.|null} [testCases] ListTestCasesResponse testCases - * @property {string|null} [nextPageToken] ListTestCasesResponse nextPageToken + * @interface ICreateSessionEntityTypeRequest + * @property {string|null} [parent] CreateSessionEntityTypeRequest parent + * @property {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null} [sessionEntityType] CreateSessionEntityTypeRequest sessionEntityType */ /** - * Constructs a new ListTestCasesResponse. + * Constructs a new CreateSessionEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListTestCasesResponse. - * @implements IListTestCasesResponse + * @classdesc Represents a CreateSessionEntityTypeRequest. + * @implements ICreateSessionEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest=} [properties] Properties to set */ - function ListTestCasesResponse(properties) { - this.testCases = []; + function CreateSessionEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -98974,91 +98630,88 @@ } /** - * ListTestCasesResponse testCases. - * @member {Array.} testCases - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse + * CreateSessionEntityTypeRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest * @instance */ - ListTestCasesResponse.prototype.testCases = $util.emptyArray; + CreateSessionEntityTypeRequest.prototype.parent = ""; /** - * ListTestCasesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse + * CreateSessionEntityTypeRequest sessionEntityType. + * @member {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null|undefined} sessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest * @instance */ - ListTestCasesResponse.prototype.nextPageToken = ""; + CreateSessionEntityTypeRequest.prototype.sessionEntityType = null; /** - * Creates a new ListTestCasesResponse instance using the specified properties. + * Creates a new CreateSessionEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse} ListTestCasesResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest instance */ - ListTestCasesResponse.create = function create(properties) { - return new ListTestCasesResponse(properties); + CreateSessionEntityTypeRequest.create = function create(properties) { + return new CreateSessionEntityTypeRequest(properties); }; /** - * Encodes the specified ListTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse.verify|verify} messages. + * Encodes the specified CreateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse} message ListTestCasesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest} message CreateSessionEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTestCasesResponse.encode = function encode(message, writer) { + CreateSessionEntityTypeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.testCases != null && message.testCases.length) - for (var i = 0; i < message.testCases.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.TestCase.encode(message.testCases[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.sessionEntityType != null && Object.hasOwnProperty.call(message, "sessionEntityType")) + $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.encode(message.sessionEntityType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse.verify|verify} messages. + * Encodes the specified CreateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse} message ListTestCasesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest} message CreateSessionEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTestCasesResponse message from the specified reader or buffer. + * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse} ListTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTestCasesResponse.decode = function decode(reader, length) { + CreateSessionEntityTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.testCases && message.testCases.length)) - message.testCases = []; - message.testCases.push($root.google.cloud.dialogflow.cx.v3beta1.TestCase.decode(reader, reader.uint32())); + message.parent = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -99069,135 +98722,122 @@ }; /** - * Decodes a ListTestCasesResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse} ListTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTestCasesResponse.decodeDelimited = function decodeDelimited(reader) { + CreateSessionEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTestCasesResponse message. + * Verifies a CreateSessionEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTestCasesResponse.verify = function verify(message) { + CreateSessionEntityTypeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.testCases != null && message.hasOwnProperty("testCases")) { - if (!Array.isArray(message.testCases)) - return "testCases: array expected"; - for (var i = 0; i < message.testCases.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.verify(message.testCases[i]); - if (error) - return "testCases." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify(message.sessionEntityType); + if (error) + return "sessionEntityType." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListTestCasesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse} ListTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest */ - ListTestCasesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse) + CreateSessionEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse(); - if (object.testCases) { - if (!Array.isArray(object.testCases)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse.testCases: array expected"); - message.testCases = []; - for (var i = 0; i < object.testCases.length; ++i) { - if (typeof object.testCases[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse.testCases: object expected"); - message.testCases[i] = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.fromObject(object.testCases[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.sessionEntityType != null) { + if (typeof object.sessionEntityType !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest.sessionEntityType: object expected"); + message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.fromObject(object.sessionEntityType); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListTestCasesResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateSessionEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse} message ListTestCasesResponse + * @param {google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest} message CreateSessionEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTestCasesResponse.toObject = function toObject(message, options) { + CreateSessionEntityTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.testCases = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.testCases && message.testCases.length) { - object.testCases = []; - for (var j = 0; j < message.testCases.length; ++j) - object.testCases[j] = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.toObject(message.testCases[j], options); + if (options.defaults) { + object.parent = ""; + object.sessionEntityType = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) + object.sessionEntityType = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.toObject(message.sessionEntityType, options); return object; }; /** - * Converts this ListTestCasesResponse to JSON. + * Converts this CreateSessionEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest * @instance * @returns {Object.} JSON object */ - ListTestCasesResponse.prototype.toJSON = function toJSON() { + CreateSessionEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListTestCasesResponse; + return CreateSessionEntityTypeRequest; })(); - v3beta1.BatchDeleteTestCasesRequest = (function() { + v3beta1.UpdateSessionEntityTypeRequest = (function() { /** - * Properties of a BatchDeleteTestCasesRequest. + * Properties of an UpdateSessionEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IBatchDeleteTestCasesRequest - * @property {string|null} [parent] BatchDeleteTestCasesRequest parent - * @property {Array.|null} [names] BatchDeleteTestCasesRequest names + * @interface IUpdateSessionEntityTypeRequest + * @property {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null} [sessionEntityType] UpdateSessionEntityTypeRequest sessionEntityType + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSessionEntityTypeRequest updateMask */ /** - * Constructs a new BatchDeleteTestCasesRequest. + * Constructs a new UpdateSessionEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a BatchDeleteTestCasesRequest. - * @implements IBatchDeleteTestCasesRequest + * @classdesc Represents an UpdateSessionEntityTypeRequest. + * @implements IUpdateSessionEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest=} [properties] Properties to set */ - function BatchDeleteTestCasesRequest(properties) { - this.names = []; + function UpdateSessionEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -99205,91 +98845,88 @@ } /** - * BatchDeleteTestCasesRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest + * UpdateSessionEntityTypeRequest sessionEntityType. + * @member {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null|undefined} sessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest * @instance */ - BatchDeleteTestCasesRequest.prototype.parent = ""; + UpdateSessionEntityTypeRequest.prototype.sessionEntityType = null; /** - * BatchDeleteTestCasesRequest names. - * @member {Array.} names - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest + * UpdateSessionEntityTypeRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest * @instance */ - BatchDeleteTestCasesRequest.prototype.names = $util.emptyArray; + UpdateSessionEntityTypeRequest.prototype.updateMask = null; /** - * Creates a new BatchDeleteTestCasesRequest instance using the specified properties. + * Creates a new UpdateSessionEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest instance */ - BatchDeleteTestCasesRequest.create = function create(properties) { - return new BatchDeleteTestCasesRequest(properties); + UpdateSessionEntityTypeRequest.create = function create(properties) { + return new UpdateSessionEntityTypeRequest(properties); }; /** - * Encodes the specified BatchDeleteTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest.verify|verify} messages. + * Encodes the specified UpdateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest} message BatchDeleteTestCasesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest} message UpdateSessionEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchDeleteTestCasesRequest.encode = function encode(message, writer) { + UpdateSessionEntityTypeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.names != null && message.names.length) - for (var i = 0; i < message.names.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.names[i]); + if (message.sessionEntityType != null && Object.hasOwnProperty.call(message, "sessionEntityType")) + $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.encode(message.sessionEntityType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified BatchDeleteTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest.verify|verify} messages. + * Encodes the specified UpdateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest} message BatchDeleteTestCasesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest} message UpdateSessionEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchDeleteTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchDeleteTestCasesRequest message from the specified reader or buffer. + * Decodes an UpdateSessionEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchDeleteTestCasesRequest.decode = function decode(reader, length) { + UpdateSessionEntityTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.decode(reader, reader.uint32()); break; - case 3: - if (!(message.names && message.names.length)) - message.names = []; - message.names.push(reader.string()); + case 2: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -99300,129 +98937,126 @@ }; /** - * Decodes a BatchDeleteTestCasesRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateSessionEntityTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchDeleteTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateSessionEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchDeleteTestCasesRequest message. + * Verifies an UpdateSessionEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchDeleteTestCasesRequest.verify = function verify(message) { + UpdateSessionEntityTypeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.names != null && message.hasOwnProperty("names")) { - if (!Array.isArray(message.names)) - return "names: array expected"; - for (var i = 0; i < message.names.length; ++i) - if (!$util.isString(message.names[i])) - return "names: string[] expected"; + if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify(message.sessionEntityType); + if (error) + return "sessionEntityType." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } return null; }; /** - * Creates a BatchDeleteTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest */ - BatchDeleteTestCasesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest) + UpdateSessionEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.names) { - if (!Array.isArray(object.names)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest.names: array expected"); - message.names = []; - for (var i = 0; i < object.names.length; ++i) - message.names[i] = String(object.names[i]); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest(); + if (object.sessionEntityType != null) { + if (typeof object.sessionEntityType !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest.sessionEntityType: object expected"); + message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.fromObject(object.sessionEntityType); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from a BatchDeleteTestCasesRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateSessionEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest} message BatchDeleteTestCasesRequest + * @param {google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest} message UpdateSessionEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchDeleteTestCasesRequest.toObject = function toObject(message, options) { + UpdateSessionEntityTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.names = []; - if (options.defaults) - object.parent = ""; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.names && message.names.length) { - object.names = []; - for (var j = 0; j < message.names.length; ++j) - object.names[j] = message.names[j]; + if (options.defaults) { + object.sessionEntityType = null; + object.updateMask = null; } + if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) + object.sessionEntityType = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.toObject(message.sessionEntityType, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this BatchDeleteTestCasesRequest to JSON. + * Converts this UpdateSessionEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest * @instance * @returns {Object.} JSON object */ - BatchDeleteTestCasesRequest.prototype.toJSON = function toJSON() { + UpdateSessionEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BatchDeleteTestCasesRequest; + return UpdateSessionEntityTypeRequest; })(); - v3beta1.CreateTestCaseRequest = (function() { + v3beta1.DeleteSessionEntityTypeRequest = (function() { /** - * Properties of a CreateTestCaseRequest. + * Properties of a DeleteSessionEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ICreateTestCaseRequest - * @property {string|null} [parent] CreateTestCaseRequest parent - * @property {google.cloud.dialogflow.cx.v3beta1.ITestCase|null} [testCase] CreateTestCaseRequest testCase + * @interface IDeleteSessionEntityTypeRequest + * @property {string|null} [name] DeleteSessionEntityTypeRequest name */ /** - * Constructs a new CreateTestCaseRequest. + * Constructs a new DeleteSessionEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a CreateTestCaseRequest. - * @implements ICreateTestCaseRequest + * @classdesc Represents a DeleteSessionEntityTypeRequest. + * @implements IDeleteSessionEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest=} [properties] Properties to set */ - function CreateTestCaseRequest(properties) { + function DeleteSessionEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -99430,88 +99064,75 @@ } /** - * CreateTestCaseRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest - * @instance - */ - CreateTestCaseRequest.prototype.parent = ""; - - /** - * CreateTestCaseRequest testCase. - * @member {google.cloud.dialogflow.cx.v3beta1.ITestCase|null|undefined} testCase - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest + * DeleteSessionEntityTypeRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest * @instance */ - CreateTestCaseRequest.prototype.testCase = null; + DeleteSessionEntityTypeRequest.prototype.name = ""; /** - * Creates a new CreateTestCaseRequest instance using the specified properties. + * Creates a new DeleteSessionEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest} CreateTestCaseRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest instance */ - CreateTestCaseRequest.create = function create(properties) { - return new CreateTestCaseRequest(properties); + DeleteSessionEntityTypeRequest.create = function create(properties) { + return new DeleteSessionEntityTypeRequest(properties); }; /** - * Encodes the specified CreateTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest.verify|verify} messages. + * Encodes the specified DeleteSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest} message CreateTestCaseRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest} message DeleteSessionEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateTestCaseRequest.encode = function encode(message, writer) { + DeleteSessionEntityTypeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.testCase != null && Object.hasOwnProperty.call(message, "testCase")) - $root.google.cloud.dialogflow.cx.v3beta1.TestCase.encode(message.testCase, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified CreateTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest.verify|verify} messages. + * Encodes the specified DeleteSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest} message CreateTestCaseRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest} message DeleteSessionEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateTestCaseRequest message from the specified reader or buffer. + * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest} CreateTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateTestCaseRequest.decode = function decode(reader, length) { + DeleteSessionEntityTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: - message.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -99522,341 +99143,310 @@ }; /** - * Decodes a CreateTestCaseRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest} CreateTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateTestCaseRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteSessionEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateTestCaseRequest message. + * Verifies a DeleteSessionEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateTestCaseRequest.verify = function verify(message) { + DeleteSessionEntityTypeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.testCase != null && message.hasOwnProperty("testCase")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.verify(message.testCase); - if (error) - return "testCase." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a CreateTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest} CreateTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest */ - CreateTestCaseRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest) + DeleteSessionEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.testCase != null) { - if (typeof object.testCase !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest.testCase: object expected"); - message.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.fromObject(object.testCase); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a CreateTestCaseRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteSessionEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest} message CreateTestCaseRequest + * @param {google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest} message DeleteSessionEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateTestCaseRequest.toObject = function toObject(message, options) { + DeleteSessionEntityTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.testCase = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.testCase != null && message.hasOwnProperty("testCase")) - object.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.toObject(message.testCase, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CreateTestCaseRequest to JSON. + * Converts this DeleteSessionEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest * @instance * @returns {Object.} JSON object */ - CreateTestCaseRequest.prototype.toJSON = function toJSON() { + DeleteSessionEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateTestCaseRequest; + return DeleteSessionEntityTypeRequest; })(); - v3beta1.UpdateTestCaseRequest = (function() { + v3beta1.TransitionRouteGroups = (function() { /** - * Properties of an UpdateTestCaseRequest. + * Constructs a new TransitionRouteGroups service. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IUpdateTestCaseRequest - * @property {google.cloud.dialogflow.cx.v3beta1.ITestCase|null} [testCase] UpdateTestCaseRequest testCase - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateTestCaseRequest updateMask + * @classdesc Represents a TransitionRouteGroups + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ + function TransitionRouteGroups(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (TransitionRouteGroups.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = TransitionRouteGroups; /** - * Constructs a new UpdateTestCaseRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an UpdateTestCaseRequest. - * @implements IUpdateTestCaseRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest=} [properties] Properties to set + * Creates new TransitionRouteGroups service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {TransitionRouteGroups} RPC service. Useful where requests and/or responses are streamed. */ - function UpdateTestCaseRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + TransitionRouteGroups.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * UpdateTestCaseRequest testCase. - * @member {google.cloud.dialogflow.cx.v3beta1.ITestCase|null|undefined} testCase - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#listTransitionRouteGroups}. + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @typedef ListTransitionRouteGroupsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse} [response] ListTransitionRouteGroupsResponse + */ + + /** + * Calls ListTransitionRouteGroups. + * @function listTransitionRouteGroups + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest} request ListTransitionRouteGroupsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.ListTransitionRouteGroupsCallback} callback Node-style callback called with the error, if any, and ListTransitionRouteGroupsResponse + * @returns {undefined} + * @variation 1 */ - UpdateTestCaseRequest.prototype.testCase = null; + Object.defineProperty(TransitionRouteGroups.prototype.listTransitionRouteGroups = function listTransitionRouteGroups(request, callback) { + return this.rpcCall(listTransitionRouteGroups, $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse, request, callback); + }, "name", { value: "ListTransitionRouteGroups" }); /** - * UpdateTestCaseRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest + * Calls ListTransitionRouteGroups. + * @function listTransitionRouteGroups + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest} request ListTransitionRouteGroupsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - UpdateTestCaseRequest.prototype.updateMask = null; /** - * Creates a new UpdateTestCaseRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest} UpdateTestCaseRequest instance + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#getTransitionRouteGroup}. + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @typedef GetTransitionRouteGroupCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} [response] TransitionRouteGroup */ - UpdateTestCaseRequest.create = function create(properties) { - return new UpdateTestCaseRequest(properties); - }; /** - * Encodes the specified UpdateTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest} message UpdateTestCaseRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls GetTransitionRouteGroup. + * @function getTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest} request GetTransitionRouteGroupRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.GetTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and TransitionRouteGroup + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(TransitionRouteGroups.prototype.getTransitionRouteGroup = function getTransitionRouteGroup(request, callback) { + return this.rpcCall(getTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest, $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup, request, callback); + }, "name", { value: "GetTransitionRouteGroup" }); + + /** + * Calls GetTransitionRouteGroup. + * @function getTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest} request GetTransitionRouteGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#createTransitionRouteGroup}. + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @typedef CreateTransitionRouteGroupCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} [response] TransitionRouteGroup + */ + + /** + * Calls CreateTransitionRouteGroup. + * @function createTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest} request CreateTransitionRouteGroupRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.CreateTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and TransitionRouteGroup + * @returns {undefined} + * @variation 1 */ - UpdateTestCaseRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.testCase != null && Object.hasOwnProperty.call(message, "testCase")) - $root.google.cloud.dialogflow.cx.v3beta1.TestCase.encode(message.testCase, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + Object.defineProperty(TransitionRouteGroups.prototype.createTransitionRouteGroup = function createTransitionRouteGroup(request, callback) { + return this.rpcCall(createTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest, $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup, request, callback); + }, "name", { value: "CreateTransitionRouteGroup" }); /** - * Encodes the specified UpdateTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest} message UpdateTestCaseRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateTransitionRouteGroup. + * @function createTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest} request CreateTransitionRouteGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - UpdateTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes an UpdateTestCaseRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest} UpdateTestCaseRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#updateTransitionRouteGroup}. + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @typedef UpdateTransitionRouteGroupCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} [response] TransitionRouteGroup */ - UpdateTestCaseRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes an UpdateTestCaseRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest} UpdateTestCaseRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls UpdateTransitionRouteGroup. + * @function updateTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest} request UpdateTransitionRouteGroupRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.UpdateTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and TransitionRouteGroup + * @returns {undefined} + * @variation 1 */ - UpdateTestCaseRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(TransitionRouteGroups.prototype.updateTransitionRouteGroup = function updateTransitionRouteGroup(request, callback) { + return this.rpcCall(updateTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest, $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup, request, callback); + }, "name", { value: "UpdateTransitionRouteGroup" }); /** - * Verifies an UpdateTestCaseRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls UpdateTransitionRouteGroup. + * @function updateTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest} request UpdateTransitionRouteGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - UpdateTestCaseRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.testCase != null && message.hasOwnProperty("testCase")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.verify(message.testCase); - if (error) - return "testCase." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } - return null; - }; /** - * Creates an UpdateTestCaseRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest} UpdateTestCaseRequest + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#deleteTransitionRouteGroup}. + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @typedef DeleteTransitionRouteGroupCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - UpdateTestCaseRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest(); - if (object.testCase != null) { - if (typeof object.testCase !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest.testCase: object expected"); - message.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.fromObject(object.testCase); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } - return message; - }; /** - * Creates a plain object from an UpdateTestCaseRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest} message UpdateTestCaseRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls DeleteTransitionRouteGroup. + * @function deleteTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest} request DeleteTransitionRouteGroupRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.DeleteTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - UpdateTestCaseRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.testCase = null; - object.updateMask = null; - } - if (message.testCase != null && message.hasOwnProperty("testCase")) - object.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.toObject(message.testCase, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - return object; - }; + Object.defineProperty(TransitionRouteGroups.prototype.deleteTransitionRouteGroup = function deleteTransitionRouteGroup(request, callback) { + return this.rpcCall(deleteTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteTransitionRouteGroup" }); /** - * Converts this UpdateTestCaseRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest + * Calls DeleteTransitionRouteGroup. + * @function deleteTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups * @instance - * @returns {Object.} JSON object + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest} request DeleteTransitionRouteGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - UpdateTestCaseRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - return UpdateTestCaseRequest; + return TransitionRouteGroups; })(); - v3beta1.GetTestCaseRequest = (function() { + v3beta1.TransitionRouteGroup = (function() { /** - * Properties of a GetTestCaseRequest. + * Properties of a TransitionRouteGroup. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetTestCaseRequest - * @property {string|null} [name] GetTestCaseRequest name + * @interface ITransitionRouteGroup + * @property {string|null} [name] TransitionRouteGroup name + * @property {string|null} [displayName] TransitionRouteGroup displayName + * @property {Array.|null} [transitionRoutes] TransitionRouteGroup transitionRoutes */ /** - * Constructs a new GetTestCaseRequest. + * Constructs a new TransitionRouteGroup. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GetTestCaseRequest. - * @implements IGetTestCaseRequest + * @classdesc Represents a TransitionRouteGroup. + * @implements ITransitionRouteGroup * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup=} [properties] Properties to set */ - function GetTestCaseRequest(properties) { + function TransitionRouteGroup(properties) { + this.transitionRoutes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -99864,76 +99454,105 @@ } /** - * GetTestCaseRequest name. + * TransitionRouteGroup name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup * @instance */ - GetTestCaseRequest.prototype.name = ""; + TransitionRouteGroup.prototype.name = ""; /** - * Creates a new GetTestCaseRequest instance using the specified properties. + * TransitionRouteGroup displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * @instance + */ + TransitionRouteGroup.prototype.displayName = ""; + + /** + * TransitionRouteGroup transitionRoutes. + * @member {Array.} transitionRoutes + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * @instance + */ + TransitionRouteGroup.prototype.transitionRoutes = $util.emptyArray; + + /** + * Creates a new TransitionRouteGroup instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest} GetTestCaseRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} TransitionRouteGroup instance */ - GetTestCaseRequest.create = function create(properties) { - return new GetTestCaseRequest(properties); + TransitionRouteGroup.create = function create(properties) { + return new TransitionRouteGroup(properties); }; /** - * Encodes the specified GetTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest.verify|verify} messages. + * Encodes the specified TransitionRouteGroup message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest} message GetTestCaseRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup} message TransitionRouteGroup message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTestCaseRequest.encode = function encode(message, writer) { + TransitionRouteGroup.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.transitionRoutes != null && message.transitionRoutes.length) + for (var i = 0; i < message.transitionRoutes.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.encode(message.transitionRoutes[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest.verify|verify} messages. + * Encodes the specified TransitionRouteGroup message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest} message GetTestCaseRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup} message TransitionRouteGroup message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { + TransitionRouteGroup.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTestCaseRequest message from the specified reader or buffer. + * Decodes a TransitionRouteGroup message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest} GetTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} TransitionRouteGroup * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTestCaseRequest.decode = function decode(reader, length) { + TransitionRouteGroup.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; + case 2: + message.displayName = reader.string(); + break; + case 5: + if (!(message.transitionRoutes && message.transitionRoutes.length)) + message.transitionRoutes = []; + message.transitionRoutes.push($root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.decode(reader, reader.uint32())); + break; default: reader.skipType(tag & 7); break; @@ -99943,108 +99562,145 @@ }; /** - * Decodes a GetTestCaseRequest message from the specified reader or buffer, length delimited. + * Decodes a TransitionRouteGroup message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest} GetTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} TransitionRouteGroup * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTestCaseRequest.decodeDelimited = function decodeDelimited(reader) { + TransitionRouteGroup.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetTestCaseRequest message. + * Verifies a TransitionRouteGroup message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetTestCaseRequest.verify = function verify(message) { + TransitionRouteGroup.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.transitionRoutes != null && message.hasOwnProperty("transitionRoutes")) { + if (!Array.isArray(message.transitionRoutes)) + return "transitionRoutes: array expected"; + for (var i = 0; i < message.transitionRoutes.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.verify(message.transitionRoutes[i]); + if (error) + return "transitionRoutes." + error; + } + } return null; }; /** - * Creates a GetTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TransitionRouteGroup message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest} GetTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} TransitionRouteGroup */ - GetTestCaseRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest) + TransitionRouteGroup.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup(); if (object.name != null) message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.transitionRoutes) { + if (!Array.isArray(object.transitionRoutes)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.transitionRoutes: array expected"); + message.transitionRoutes = []; + for (var i = 0; i < object.transitionRoutes.length; ++i) { + if (typeof object.transitionRoutes[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.transitionRoutes: object expected"); + message.transitionRoutes[i] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.fromObject(object.transitionRoutes[i]); + } + } return message; }; /** - * Creates a plain object from a GetTestCaseRequest message. Also converts values to other types if specified. + * Creates a plain object from a TransitionRouteGroup message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest} message GetTestCaseRequest + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} message TransitionRouteGroup * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTestCaseRequest.toObject = function toObject(message, options) { + TransitionRouteGroup.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.arrays || options.defaults) + object.transitionRoutes = []; + if (options.defaults) { object.name = ""; + object.displayName = ""; + } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.transitionRoutes && message.transitionRoutes.length) { + object.transitionRoutes = []; + for (var j = 0; j < message.transitionRoutes.length; ++j) + object.transitionRoutes[j] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.toObject(message.transitionRoutes[j], options); + } return object; }; /** - * Converts this GetTestCaseRequest to JSON. + * Converts this TransitionRouteGroup to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup * @instance * @returns {Object.} JSON object */ - GetTestCaseRequest.prototype.toJSON = function toJSON() { + TransitionRouteGroup.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetTestCaseRequest; + return TransitionRouteGroup; })(); - v3beta1.RunTestCaseRequest = (function() { + v3beta1.ListTransitionRouteGroupsRequest = (function() { /** - * Properties of a RunTestCaseRequest. + * Properties of a ListTransitionRouteGroupsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IRunTestCaseRequest - * @property {string|null} [name] RunTestCaseRequest name - * @property {string|null} [environment] RunTestCaseRequest environment + * @interface IListTransitionRouteGroupsRequest + * @property {string|null} [parent] ListTransitionRouteGroupsRequest parent + * @property {number|null} [pageSize] ListTransitionRouteGroupsRequest pageSize + * @property {string|null} [pageToken] ListTransitionRouteGroupsRequest pageToken + * @property {string|null} [languageCode] ListTransitionRouteGroupsRequest languageCode */ /** - * Constructs a new RunTestCaseRequest. + * Constructs a new ListTransitionRouteGroupsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a RunTestCaseRequest. - * @implements IRunTestCaseRequest + * @classdesc Represents a ListTransitionRouteGroupsRequest. + * @implements IListTransitionRouteGroupsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest=} [properties] Properties to set */ - function RunTestCaseRequest(properties) { + function ListTransitionRouteGroupsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -100052,88 +99708,114 @@ } /** - * RunTestCaseRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest + * ListTransitionRouteGroupsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest * @instance */ - RunTestCaseRequest.prototype.name = ""; + ListTransitionRouteGroupsRequest.prototype.parent = ""; /** - * RunTestCaseRequest environment. - * @member {string} environment - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest + * ListTransitionRouteGroupsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest * @instance */ - RunTestCaseRequest.prototype.environment = ""; + ListTransitionRouteGroupsRequest.prototype.pageSize = 0; /** - * Creates a new RunTestCaseRequest instance using the specified properties. + * ListTransitionRouteGroupsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * @instance + */ + ListTransitionRouteGroupsRequest.prototype.pageToken = ""; + + /** + * ListTransitionRouteGroupsRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * @instance + */ + ListTransitionRouteGroupsRequest.prototype.languageCode = ""; + + /** + * Creates a new ListTransitionRouteGroupsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest} RunTestCaseRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest instance */ - RunTestCaseRequest.create = function create(properties) { - return new RunTestCaseRequest(properties); + ListTransitionRouteGroupsRequest.create = function create(properties) { + return new ListTransitionRouteGroupsRequest(properties); }; /** - * Encodes the specified RunTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest.verify|verify} messages. + * Encodes the specified ListTransitionRouteGroupsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest} message RunTestCaseRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest} message ListTransitionRouteGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunTestCaseRequest.encode = function encode(message, writer) { + ListTransitionRouteGroupsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.environment); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.languageCode); return writer; }; /** - * Encodes the specified RunTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest.verify|verify} messages. + * Encodes the specified ListTransitionRouteGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest} message RunTestCaseRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest} message ListTransitionRouteGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListTransitionRouteGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RunTestCaseRequest message from the specified reader or buffer. + * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest} RunTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunTestCaseRequest.decode = function decode(reader, length) { + ListTransitionRouteGroupsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); break; case 2: - message.environment = reader.string(); + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); + break; + case 4: + message.languageCode = reader.string(); break; default: reader.skipType(tag & 7); @@ -100144,116 +99826,134 @@ }; /** - * Decodes a RunTestCaseRequest message from the specified reader or buffer, length delimited. + * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest} RunTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunTestCaseRequest.decodeDelimited = function decodeDelimited(reader) { + ListTransitionRouteGroupsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RunTestCaseRequest message. + * Verifies a ListTransitionRouteGroupsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RunTestCaseRequest.verify = function verify(message) { + ListTransitionRouteGroupsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.environment != null && message.hasOwnProperty("environment")) - if (!$util.isString(message.environment)) - return "environment: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates a RunTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListTransitionRouteGroupsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest} RunTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest */ - RunTestCaseRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest) + ListTransitionRouteGroupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.environment != null) - message.environment = String(object.environment); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a RunTestCaseRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListTransitionRouteGroupsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest} message RunTestCaseRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest} message ListTransitionRouteGroupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RunTestCaseRequest.toObject = function toObject(message, options) { + ListTransitionRouteGroupsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.environment = ""; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.languageCode = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = message.environment; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this RunTestCaseRequest to JSON. + * Converts this ListTransitionRouteGroupsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest * @instance * @returns {Object.} JSON object */ - RunTestCaseRequest.prototype.toJSON = function toJSON() { + ListTransitionRouteGroupsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RunTestCaseRequest; + return ListTransitionRouteGroupsRequest; })(); - v3beta1.RunTestCaseResponse = (function() { + v3beta1.ListTransitionRouteGroupsResponse = (function() { /** - * Properties of a RunTestCaseResponse. + * Properties of a ListTransitionRouteGroupsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IRunTestCaseResponse - * @property {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null} [result] RunTestCaseResponse result + * @interface IListTransitionRouteGroupsResponse + * @property {Array.|null} [transitionRouteGroups] ListTransitionRouteGroupsResponse transitionRouteGroups + * @property {string|null} [nextPageToken] ListTransitionRouteGroupsResponse nextPageToken */ /** - * Constructs a new RunTestCaseResponse. + * Constructs a new ListTransitionRouteGroupsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a RunTestCaseResponse. - * @implements IRunTestCaseResponse + * @classdesc Represents a ListTransitionRouteGroupsResponse. + * @implements IListTransitionRouteGroupsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse=} [properties] Properties to set */ - function RunTestCaseResponse(properties) { + function ListTransitionRouteGroupsResponse(properties) { + this.transitionRouteGroups = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -100261,75 +99961,91 @@ } /** - * RunTestCaseResponse result. - * @member {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null|undefined} result - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse + * ListTransitionRouteGroupsResponse transitionRouteGroups. + * @member {Array.} transitionRouteGroups + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse * @instance */ - RunTestCaseResponse.prototype.result = null; + ListTransitionRouteGroupsResponse.prototype.transitionRouteGroups = $util.emptyArray; /** - * Creates a new RunTestCaseResponse instance using the specified properties. + * ListTransitionRouteGroupsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse + * @instance + */ + ListTransitionRouteGroupsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListTransitionRouteGroupsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse} RunTestCaseResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse instance */ - RunTestCaseResponse.create = function create(properties) { - return new RunTestCaseResponse(properties); + ListTransitionRouteGroupsResponse.create = function create(properties) { + return new ListTransitionRouteGroupsResponse(properties); }; /** - * Encodes the specified RunTestCaseResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse.verify|verify} messages. + * Encodes the specified ListTransitionRouteGroupsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse} message RunTestCaseResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse} message ListTransitionRouteGroupsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunTestCaseResponse.encode = function encode(message, writer) { + ListTransitionRouteGroupsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.transitionRouteGroups != null && message.transitionRouteGroups.length) + for (var i = 0; i < message.transitionRouteGroups.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.encode(message.transitionRouteGroups[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified RunTestCaseResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse.verify|verify} messages. + * Encodes the specified ListTransitionRouteGroupsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse} message RunTestCaseResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse} message ListTransitionRouteGroupsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunTestCaseResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListTransitionRouteGroupsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RunTestCaseResponse message from the specified reader or buffer. + * Decodes a ListTransitionRouteGroupsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse} RunTestCaseResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunTestCaseResponse.decode = function decode(reader, length) { + ListTransitionRouteGroupsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + if (!(message.transitionRouteGroups && message.transitionRouteGroups.length)) + message.transitionRouteGroups = []; + message.transitionRouteGroups.push($root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.decode(reader, reader.uint32())); + break; case 2: - message.result = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -100340,111 +100056,134 @@ }; /** - * Decodes a RunTestCaseResponse message from the specified reader or buffer, length delimited. + * Decodes a ListTransitionRouteGroupsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse} RunTestCaseResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunTestCaseResponse.decodeDelimited = function decodeDelimited(reader) { + ListTransitionRouteGroupsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RunTestCaseResponse message. + * Verifies a ListTransitionRouteGroupsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RunTestCaseResponse.verify = function verify(message) { + ListTransitionRouteGroupsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.result != null && message.hasOwnProperty("result")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.verify(message.result); - if (error) - return "result." + error; + if (message.transitionRouteGroups != null && message.hasOwnProperty("transitionRouteGroups")) { + if (!Array.isArray(message.transitionRouteGroups)) + return "transitionRouteGroups: array expected"; + for (var i = 0; i < message.transitionRouteGroups.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify(message.transitionRouteGroups[i]); + if (error) + return "transitionRouteGroups." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a RunTestCaseResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListTransitionRouteGroupsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse} RunTestCaseResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse */ - RunTestCaseResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse) + ListTransitionRouteGroupsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse(); - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse.result: object expected"); - message.result = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.fromObject(object.result); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse(); + if (object.transitionRouteGroups) { + if (!Array.isArray(object.transitionRouteGroups)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse.transitionRouteGroups: array expected"); + message.transitionRouteGroups = []; + for (var i = 0; i < object.transitionRouteGroups.length; ++i) { + if (typeof object.transitionRouteGroups[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse.transitionRouteGroups: object expected"); + message.transitionRouteGroups[i] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.fromObject(object.transitionRouteGroups[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a RunTestCaseResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListTransitionRouteGroupsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse} message RunTestCaseResponse + * @param {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse} message ListTransitionRouteGroupsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RunTestCaseResponse.toObject = function toObject(message, options) { + ListTransitionRouteGroupsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.transitionRouteGroups = []; if (options.defaults) - object.result = null; - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.toObject(message.result, options); + object.nextPageToken = ""; + if (message.transitionRouteGroups && message.transitionRouteGroups.length) { + object.transitionRouteGroups = []; + for (var j = 0; j < message.transitionRouteGroups.length; ++j) + object.transitionRouteGroups[j] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.toObject(message.transitionRouteGroups[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this RunTestCaseResponse to JSON. + * Converts this ListTransitionRouteGroupsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse * @instance * @returns {Object.} JSON object */ - RunTestCaseResponse.prototype.toJSON = function toJSON() { + ListTransitionRouteGroupsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RunTestCaseResponse; + return ListTransitionRouteGroupsResponse; })(); - v3beta1.RunTestCaseMetadata = (function() { + v3beta1.GetTransitionRouteGroupRequest = (function() { /** - * Properties of a RunTestCaseMetadata. + * Properties of a GetTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IRunTestCaseMetadata + * @interface IGetTransitionRouteGroupRequest + * @property {string|null} [name] GetTransitionRouteGroupRequest name + * @property {string|null} [languageCode] GetTransitionRouteGroupRequest languageCode */ /** - * Constructs a new RunTestCaseMetadata. + * Constructs a new GetTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a RunTestCaseMetadata. - * @implements IRunTestCaseMetadata + * @classdesc Represents a GetTransitionRouteGroupRequest. + * @implements IGetTransitionRouteGroupRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest=} [properties] Properties to set */ - function RunTestCaseMetadata(properties) { + function GetTransitionRouteGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -100452,63 +100191,89 @@ } /** - * Creates a new RunTestCaseMetadata instance using the specified properties. + * GetTransitionRouteGroupRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest + * @instance + */ + GetTransitionRouteGroupRequest.prototype.name = ""; + + /** + * GetTransitionRouteGroupRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest + * @instance + */ + GetTransitionRouteGroupRequest.prototype.languageCode = ""; + + /** + * Creates a new GetTransitionRouteGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata} RunTestCaseMetadata instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest instance */ - RunTestCaseMetadata.create = function create(properties) { - return new RunTestCaseMetadata(properties); + GetTransitionRouteGroupRequest.create = function create(properties) { + return new GetTransitionRouteGroupRequest(properties); }; /** - * Encodes the specified RunTestCaseMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata.verify|verify} messages. + * Encodes the specified GetTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata} message RunTestCaseMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest} message GetTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunTestCaseMetadata.encode = function encode(message, writer) { + GetTransitionRouteGroupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); return writer; }; /** - * Encodes the specified RunTestCaseMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata.verify|verify} messages. + * Encodes the specified GetTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata} message RunTestCaseMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest} message GetTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunTestCaseMetadata.encodeDelimited = function encodeDelimited(message, writer) { + GetTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RunTestCaseMetadata message from the specified reader or buffer. + * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata} RunTestCaseMetadata + * @returns {google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunTestCaseMetadata.decode = function decode(reader, length) { + GetTransitionRouteGroupRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.languageCode = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -100518,97 +100283,118 @@ }; /** - * Decodes a RunTestCaseMetadata message from the specified reader or buffer, length delimited. + * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata} RunTestCaseMetadata + * @returns {google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunTestCaseMetadata.decodeDelimited = function decodeDelimited(reader) { + GetTransitionRouteGroupRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RunTestCaseMetadata message. + * Verifies a GetTransitionRouteGroupRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RunTestCaseMetadata.verify = function verify(message) { + GetTransitionRouteGroupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates a RunTestCaseMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a GetTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata} RunTestCaseMetadata + * @returns {google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest */ - RunTestCaseMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata) + GetTransitionRouteGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest) return object; - return new $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + return message; }; /** - * Creates a plain object from a RunTestCaseMetadata message. Also converts values to other types if specified. + * Creates a plain object from a GetTransitionRouteGroupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata} message RunTestCaseMetadata + * @param {google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest} message GetTransitionRouteGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RunTestCaseMetadata.toObject = function toObject() { - return {}; + GetTransitionRouteGroupRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.languageCode = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + return object; }; /** - * Converts this RunTestCaseMetadata to JSON. + * Converts this GetTransitionRouteGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest * @instance * @returns {Object.} JSON object */ - RunTestCaseMetadata.prototype.toJSON = function toJSON() { + GetTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RunTestCaseMetadata; + return GetTransitionRouteGroupRequest; })(); - v3beta1.BatchRunTestCasesRequest = (function() { + v3beta1.CreateTransitionRouteGroupRequest = (function() { /** - * Properties of a BatchRunTestCasesRequest. + * Properties of a CreateTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IBatchRunTestCasesRequest - * @property {string|null} [parent] BatchRunTestCasesRequest parent - * @property {string|null} [environment] BatchRunTestCasesRequest environment - * @property {Array.|null} [testCases] BatchRunTestCasesRequest testCases + * @interface ICreateTransitionRouteGroupRequest + * @property {string|null} [parent] CreateTransitionRouteGroupRequest parent + * @property {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null} [transitionRouteGroup] CreateTransitionRouteGroupRequest transitionRouteGroup + * @property {string|null} [languageCode] CreateTransitionRouteGroupRequest languageCode */ /** - * Constructs a new BatchRunTestCasesRequest. + * Constructs a new CreateTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a BatchRunTestCasesRequest. - * @implements IBatchRunTestCasesRequest + * @classdesc Represents a CreateTransitionRouteGroupRequest. + * @implements ICreateTransitionRouteGroupRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest=} [properties] Properties to set */ - function BatchRunTestCasesRequest(properties) { - this.testCases = []; + function CreateTransitionRouteGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -100616,91 +100402,90 @@ } /** - * BatchRunTestCasesRequest parent. + * CreateTransitionRouteGroupRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest * @instance */ - BatchRunTestCasesRequest.prototype.parent = ""; + CreateTransitionRouteGroupRequest.prototype.parent = ""; /** - * BatchRunTestCasesRequest environment. - * @member {string} environment - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest + * CreateTransitionRouteGroupRequest transitionRouteGroup. + * @member {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null|undefined} transitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest * @instance */ - BatchRunTestCasesRequest.prototype.environment = ""; + CreateTransitionRouteGroupRequest.prototype.transitionRouteGroup = null; /** - * BatchRunTestCasesRequest testCases. - * @member {Array.} testCases - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest + * CreateTransitionRouteGroupRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest * @instance */ - BatchRunTestCasesRequest.prototype.testCases = $util.emptyArray; + CreateTransitionRouteGroupRequest.prototype.languageCode = ""; /** - * Creates a new BatchRunTestCasesRequest instance using the specified properties. + * Creates a new CreateTransitionRouteGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest} BatchRunTestCasesRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest instance */ - BatchRunTestCasesRequest.create = function create(properties) { - return new BatchRunTestCasesRequest(properties); + CreateTransitionRouteGroupRequest.create = function create(properties) { + return new CreateTransitionRouteGroupRequest(properties); }; /** - * Encodes the specified BatchRunTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest.verify|verify} messages. + * Encodes the specified CreateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest} message BatchRunTestCasesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest} message CreateTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchRunTestCasesRequest.encode = function encode(message, writer) { + CreateTransitionRouteGroupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.environment); - if (message.testCases != null && message.testCases.length) - for (var i = 0; i < message.testCases.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.testCases[i]); + if (message.transitionRouteGroup != null && Object.hasOwnProperty.call(message, "transitionRouteGroup")) + $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.encode(message.transitionRouteGroup, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); return writer; }; /** - * Encodes the specified BatchRunTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest.verify|verify} messages. + * Encodes the specified CreateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest} message BatchRunTestCasesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest} message CreateTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchRunTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchRunTestCasesRequest message from the specified reader or buffer. + * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest} BatchRunTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchRunTestCasesRequest.decode = function decode(reader, length) { + CreateTransitionRouteGroupRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -100708,12 +100493,10 @@ message.parent = reader.string(); break; case 2: - message.environment = reader.string(); + message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.decode(reader, reader.uint32()); break; case 3: - if (!(message.testCases && message.testCases.length)) - message.testCases = []; - message.testCases.push(reader.string()); + message.languageCode = reader.string(); break; default: reader.skipType(tag & 7); @@ -100724,138 +100507,131 @@ }; /** - * Decodes a BatchRunTestCasesRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest} BatchRunTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchRunTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { + CreateTransitionRouteGroupRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchRunTestCasesRequest message. + * Verifies a CreateTransitionRouteGroupRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchRunTestCasesRequest.verify = function verify(message) { + CreateTransitionRouteGroupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.environment != null && message.hasOwnProperty("environment")) - if (!$util.isString(message.environment)) - return "environment: string expected"; - if (message.testCases != null && message.hasOwnProperty("testCases")) { - if (!Array.isArray(message.testCases)) - return "testCases: array expected"; - for (var i = 0; i < message.testCases.length; ++i) - if (!$util.isString(message.testCases[i])) - return "testCases: string[] expected"; + if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify(message.transitionRouteGroup); + if (error) + return "transitionRouteGroup." + error; } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates a BatchRunTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest} BatchRunTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest */ - BatchRunTestCasesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest) + CreateTransitionRouteGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.environment != null) - message.environment = String(object.environment); - if (object.testCases) { - if (!Array.isArray(object.testCases)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest.testCases: array expected"); - message.testCases = []; - for (var i = 0; i < object.testCases.length; ++i) - message.testCases[i] = String(object.testCases[i]); + if (object.transitionRouteGroup != null) { + if (typeof object.transitionRouteGroup !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest.transitionRouteGroup: object expected"); + message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.fromObject(object.transitionRouteGroup); } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a BatchRunTestCasesRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateTransitionRouteGroupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest} message BatchRunTestCasesRequest + * @param {google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest} message CreateTransitionRouteGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchRunTestCasesRequest.toObject = function toObject(message, options) { + CreateTransitionRouteGroupRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.testCases = []; if (options.defaults) { object.parent = ""; - object.environment = ""; + object.transitionRouteGroup = null; + object.languageCode = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = message.environment; - if (message.testCases && message.testCases.length) { - object.testCases = []; - for (var j = 0; j < message.testCases.length; ++j) - object.testCases[j] = message.testCases[j]; - } + if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) + object.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.toObject(message.transitionRouteGroup, options); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this BatchRunTestCasesRequest to JSON. + * Converts this CreateTransitionRouteGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest * @instance * @returns {Object.} JSON object */ - BatchRunTestCasesRequest.prototype.toJSON = function toJSON() { + CreateTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BatchRunTestCasesRequest; + return CreateTransitionRouteGroupRequest; })(); - v3beta1.BatchRunTestCasesResponse = (function() { + v3beta1.UpdateTransitionRouteGroupRequest = (function() { /** - * Properties of a BatchRunTestCasesResponse. + * Properties of an UpdateTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IBatchRunTestCasesResponse - * @property {Array.|null} [results] BatchRunTestCasesResponse results + * @interface IUpdateTransitionRouteGroupRequest + * @property {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null} [transitionRouteGroup] UpdateTransitionRouteGroupRequest transitionRouteGroup + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateTransitionRouteGroupRequest updateMask + * @property {string|null} [languageCode] UpdateTransitionRouteGroupRequest languageCode */ /** - * Constructs a new BatchRunTestCasesResponse. + * Constructs a new UpdateTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a BatchRunTestCasesResponse. - * @implements IBatchRunTestCasesResponse + * @classdesc Represents an UpdateTransitionRouteGroupRequest. + * @implements IUpdateTransitionRouteGroupRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest=} [properties] Properties to set */ - function BatchRunTestCasesResponse(properties) { - this.results = []; + function UpdateTransitionRouteGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -100863,78 +100639,101 @@ } /** - * BatchRunTestCasesResponse results. - * @member {Array.} results - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse + * UpdateTransitionRouteGroupRequest transitionRouteGroup. + * @member {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null|undefined} transitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest * @instance */ - BatchRunTestCasesResponse.prototype.results = $util.emptyArray; + UpdateTransitionRouteGroupRequest.prototype.transitionRouteGroup = null; /** - * Creates a new BatchRunTestCasesResponse instance using the specified properties. + * UpdateTransitionRouteGroupRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest + * @instance + */ + UpdateTransitionRouteGroupRequest.prototype.updateMask = null; + + /** + * UpdateTransitionRouteGroupRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest + * @instance + */ + UpdateTransitionRouteGroupRequest.prototype.languageCode = ""; + + /** + * Creates a new UpdateTransitionRouteGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse} BatchRunTestCasesResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest instance */ - BatchRunTestCasesResponse.create = function create(properties) { - return new BatchRunTestCasesResponse(properties); + UpdateTransitionRouteGroupRequest.create = function create(properties) { + return new UpdateTransitionRouteGroupRequest(properties); }; /** - * Encodes the specified BatchRunTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse.verify|verify} messages. + * Encodes the specified UpdateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse} message BatchRunTestCasesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest} message UpdateTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchRunTestCasesResponse.encode = function encode(message, writer) { + UpdateTransitionRouteGroupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.results != null && message.results.length) - for (var i = 0; i < message.results.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.encode(message.results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.transitionRouteGroup != null && Object.hasOwnProperty.call(message, "transitionRouteGroup")) + $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.encode(message.transitionRouteGroup, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); return writer; }; /** - * Encodes the specified BatchRunTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse.verify|verify} messages. + * Encodes the specified UpdateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse} message BatchRunTestCasesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest} message UpdateTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchRunTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpdateTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchRunTestCasesResponse message from the specified reader or buffer. + * Decodes an UpdateTransitionRouteGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse} BatchRunTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchRunTestCasesResponse.decode = function decode(reader, length) { + UpdateTransitionRouteGroupRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.results && message.results.length)) - message.results = []; - message.results.push($root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.decode(reader, reader.uint32())); + message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.decode(reader, reader.uint32()); + break; + case 2: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + case 3: + message.languageCode = reader.string(); break; default: reader.skipType(tag & 7); @@ -100945,125 +100744,135 @@ }; /** - * Decodes a BatchRunTestCasesResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse} BatchRunTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchRunTestCasesResponse.decodeDelimited = function decodeDelimited(reader) { + UpdateTransitionRouteGroupRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchRunTestCasesResponse message. + * Verifies an UpdateTransitionRouteGroupRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchRunTestCasesResponse.verify = function verify(message) { + UpdateTransitionRouteGroupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.results != null && message.hasOwnProperty("results")) { - if (!Array.isArray(message.results)) - return "results: array expected"; - for (var i = 0; i < message.results.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.verify(message.results[i]); - if (error) - return "results." + error; - } + if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify(message.transitionRouteGroup); + if (error) + return "transitionRouteGroup." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates a BatchRunTestCasesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse} BatchRunTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest */ - BatchRunTestCasesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse) + UpdateTransitionRouteGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse(); - if (object.results) { - if (!Array.isArray(object.results)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse.results: array expected"); - message.results = []; - for (var i = 0; i < object.results.length; ++i) { - if (typeof object.results[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse.results: object expected"); - message.results[i] = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.fromObject(object.results[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest(); + if (object.transitionRouteGroup != null) { + if (typeof object.transitionRouteGroup !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest.transitionRouteGroup: object expected"); + message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.fromObject(object.transitionRouteGroup); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a BatchRunTestCasesResponse message. Also converts values to other types if specified. + * Creates a plain object from an UpdateTransitionRouteGroupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse} message BatchRunTestCasesResponse + * @param {google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest} message UpdateTransitionRouteGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchRunTestCasesResponse.toObject = function toObject(message, options) { + UpdateTransitionRouteGroupRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.results = []; - if (message.results && message.results.length) { - object.results = []; - for (var j = 0; j < message.results.length; ++j) - object.results[j] = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.toObject(message.results[j], options); + if (options.defaults) { + object.transitionRouteGroup = null; + object.updateMask = null; + object.languageCode = ""; } + if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) + object.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.toObject(message.transitionRouteGroup, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this BatchRunTestCasesResponse to JSON. + * Converts this UpdateTransitionRouteGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest * @instance * @returns {Object.} JSON object */ - BatchRunTestCasesResponse.prototype.toJSON = function toJSON() { + UpdateTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BatchRunTestCasesResponse; + return UpdateTransitionRouteGroupRequest; })(); - v3beta1.BatchRunTestCasesMetadata = (function() { + v3beta1.DeleteTransitionRouteGroupRequest = (function() { /** - * Properties of a BatchRunTestCasesMetadata. + * Properties of a DeleteTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IBatchRunTestCasesMetadata - * @property {Array.|null} [errors] BatchRunTestCasesMetadata errors + * @interface IDeleteTransitionRouteGroupRequest + * @property {string|null} [name] DeleteTransitionRouteGroupRequest name + * @property {boolean|null} [force] DeleteTransitionRouteGroupRequest force */ /** - * Constructs a new BatchRunTestCasesMetadata. + * Constructs a new DeleteTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a BatchRunTestCasesMetadata. - * @implements IBatchRunTestCasesMetadata + * @classdesc Represents a DeleteTransitionRouteGroupRequest. + * @implements IDeleteTransitionRouteGroupRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest=} [properties] Properties to set */ - function BatchRunTestCasesMetadata(properties) { - this.errors = []; + function DeleteTransitionRouteGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -101071,78 +100880,88 @@ } /** - * BatchRunTestCasesMetadata errors. - * @member {Array.} errors - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata + * DeleteTransitionRouteGroupRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest * @instance */ - BatchRunTestCasesMetadata.prototype.errors = $util.emptyArray; + DeleteTransitionRouteGroupRequest.prototype.name = ""; /** - * Creates a new BatchRunTestCasesMetadata instance using the specified properties. + * DeleteTransitionRouteGroupRequest force. + * @member {boolean} force + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest + * @instance + */ + DeleteTransitionRouteGroupRequest.prototype.force = false; + + /** + * Creates a new DeleteTransitionRouteGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest instance */ - BatchRunTestCasesMetadata.create = function create(properties) { - return new BatchRunTestCasesMetadata(properties); + DeleteTransitionRouteGroupRequest.create = function create(properties) { + return new DeleteTransitionRouteGroupRequest(properties); }; /** - * Encodes the specified BatchRunTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata.verify|verify} messages. + * Encodes the specified DeleteTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata} message BatchRunTestCasesMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest} message DeleteTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchRunTestCasesMetadata.encode = function encode(message, writer) { + DeleteTransitionRouteGroupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.errors != null && message.errors.length) - for (var i = 0; i < message.errors.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.TestError.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); return writer; }; /** - * Encodes the specified BatchRunTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata.verify|verify} messages. + * Encodes the specified DeleteTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata} message BatchRunTestCasesMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest} message DeleteTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchRunTestCasesMetadata.encodeDelimited = function encodeDelimited(message, writer) { + DeleteTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchRunTestCasesMetadata message from the specified reader or buffer. + * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchRunTestCasesMetadata.decode = function decode(reader, length) { + DeleteTransitionRouteGroupRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.errors && message.errors.length)) - message.errors = []; - message.errors.push($root.google.cloud.dialogflow.cx.v3beta1.TestError.decode(reader, reader.uint32())); + message.name = reader.string(); + break; + case 2: + message.force = reader.bool(); break; default: reader.skipType(tag & 7); @@ -101153,368 +100972,394 @@ }; /** - * Decodes a BatchRunTestCasesMetadata message from the specified reader or buffer, length delimited. + * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchRunTestCasesMetadata.decodeDelimited = function decodeDelimited(reader) { + DeleteTransitionRouteGroupRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchRunTestCasesMetadata message. + * Verifies a DeleteTransitionRouteGroupRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchRunTestCasesMetadata.verify = function verify(message) { + DeleteTransitionRouteGroupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.errors != null && message.hasOwnProperty("errors")) { - if (!Array.isArray(message.errors)) - return "errors: array expected"; - for (var i = 0; i < message.errors.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TestError.verify(message.errors[i]); - if (error) - return "errors." + error; - } - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; return null; }; /** - * Creates a BatchRunTestCasesMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest */ - BatchRunTestCasesMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata) + DeleteTransitionRouteGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata(); - if (object.errors) { - if (!Array.isArray(object.errors)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata.errors: array expected"); - message.errors = []; - for (var i = 0; i < object.errors.length; ++i) { - if (typeof object.errors[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata.errors: object expected"); - message.errors[i] = $root.google.cloud.dialogflow.cx.v3beta1.TestError.fromObject(object.errors[i]); - } - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.force != null) + message.force = Boolean(object.force); return message; }; /** - * Creates a plain object from a BatchRunTestCasesMetadata message. Also converts values to other types if specified. + * Creates a plain object from a DeleteTransitionRouteGroupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata} message BatchRunTestCasesMetadata + * @param {google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest} message DeleteTransitionRouteGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchRunTestCasesMetadata.toObject = function toObject(message, options) { + DeleteTransitionRouteGroupRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.errors = []; - if (message.errors && message.errors.length) { - object.errors = []; - for (var j = 0; j < message.errors.length; ++j) - object.errors[j] = $root.google.cloud.dialogflow.cx.v3beta1.TestError.toObject(message.errors[j], options); + if (options.defaults) { + object.name = ""; + object.force = false; } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; return object; }; /** - * Converts this BatchRunTestCasesMetadata to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata + * Converts this DeleteTransitionRouteGroupRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteTransitionRouteGroupRequest; + })(); + + v3beta1.Experiments = (function() { + + /** + * Constructs a new Experiments service. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents an Experiments + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function Experiments(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Experiments.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Experiments; + + /** + * Creates new Experiments service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {Experiments} RPC service. Useful where requests and/or responses are streamed. + */ + Experiments.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#listExperiments}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @typedef ListExperimentsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse} [response] ListExperimentsResponse + */ + + /** + * Calls ListExperiments. + * @function listExperiments + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest} request ListExperimentsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Experiments.ListExperimentsCallback} callback Node-style callback called with the error, if any, and ListExperimentsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Experiments.prototype.listExperiments = function listExperiments(request, callback) { + return this.rpcCall(listExperiments, $root.google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse, request, callback); + }, "name", { value: "ListExperiments" }); + + /** + * Calls ListExperiments. + * @function listExperiments + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest} request ListExperimentsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#getExperiment}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @typedef GetExperimentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment} [response] Experiment + */ + + /** + * Calls GetExperiment. + * @function getExperiment + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments * @instance - * @returns {Object.} JSON object + * @param {google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest} request GetExperimentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Experiments.GetExperimentCallback} callback Node-style callback called with the error, if any, and Experiment + * @returns {undefined} + * @variation 1 */ - BatchRunTestCasesMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return BatchRunTestCasesMetadata; - })(); + Object.defineProperty(Experiments.prototype.getExperiment = function getExperiment(request, callback) { + return this.rpcCall(getExperiment, $root.google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Experiment, request, callback); + }, "name", { value: "GetExperiment" }); - v3beta1.TestError = (function() { + /** + * Calls GetExperiment. + * @function getExperiment + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest} request GetExperimentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ /** - * Properties of a TestError. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ITestError - * @property {string|null} [testCase] TestError testCase - * @property {google.rpc.IStatus|null} [status] TestError status - * @property {google.protobuf.ITimestamp|null} [testTime] TestError testTime + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#createExperiment}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @typedef CreateExperimentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment} [response] Experiment */ /** - * Constructs a new TestError. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a TestError. - * @implements ITestError - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ITestError=} [properties] Properties to set + * Calls CreateExperiment. + * @function createExperiment + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest} request CreateExperimentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Experiments.CreateExperimentCallback} callback Node-style callback called with the error, if any, and Experiment + * @returns {undefined} + * @variation 1 */ - function TestError(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Object.defineProperty(Experiments.prototype.createExperiment = function createExperiment(request, callback) { + return this.rpcCall(createExperiment, $root.google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Experiment, request, callback); + }, "name", { value: "CreateExperiment" }); /** - * TestError testCase. - * @member {string} testCase - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError + * Calls CreateExperiment. + * @function createExperiment + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest} request CreateExperimentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - TestError.prototype.testCase = ""; /** - * TestError status. - * @member {google.rpc.IStatus|null|undefined} status - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#updateExperiment}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @typedef UpdateExperimentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment} [response] Experiment + */ + + /** + * Calls UpdateExperiment. + * @function updateExperiment + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest} request UpdateExperimentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Experiments.UpdateExperimentCallback} callback Node-style callback called with the error, if any, and Experiment + * @returns {undefined} + * @variation 1 */ - TestError.prototype.status = null; + Object.defineProperty(Experiments.prototype.updateExperiment = function updateExperiment(request, callback) { + return this.rpcCall(updateExperiment, $root.google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Experiment, request, callback); + }, "name", { value: "UpdateExperiment" }); /** - * TestError testTime. - * @member {google.protobuf.ITimestamp|null|undefined} testTime - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError + * Calls UpdateExperiment. + * @function updateExperiment + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest} request UpdateExperimentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - TestError.prototype.testTime = null; /** - * Creates a new TestError instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestError=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TestError} TestError instance + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#deleteExperiment}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @typedef DeleteExperimentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - TestError.create = function create(properties) { - return new TestError(properties); - }; /** - * Encodes the specified TestError message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestError.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestError} message TestError message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls DeleteExperiment. + * @function deleteExperiment + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest} request DeleteExperimentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Experiments.DeleteExperimentCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - TestError.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.testCase != null && Object.hasOwnProperty.call(message, "testCase")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.testCase); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.testTime != null && Object.hasOwnProperty.call(message, "testTime")) - $root.google.protobuf.Timestamp.encode(message.testTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; + Object.defineProperty(Experiments.prototype.deleteExperiment = function deleteExperiment(request, callback) { + return this.rpcCall(deleteExperiment, $root.google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteExperiment" }); /** - * Encodes the specified TestError message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestError.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestError} message TestError message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls DeleteExperiment. + * @function deleteExperiment + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest} request DeleteExperimentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - TestError.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a TestError message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.TestError} TestError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#startExperiment}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @typedef StartExperimentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment} [response] Experiment */ - TestError.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TestError(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.testCase = reader.string(); - break; - case 2: - message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; - case 3: - message.testTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a TestError message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TestError} TestError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls StartExperiment. + * @function startExperiment + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest} request StartExperimentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Experiments.StartExperimentCallback} callback Node-style callback called with the error, if any, and Experiment + * @returns {undefined} + * @variation 1 */ - TestError.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(Experiments.prototype.startExperiment = function startExperiment(request, callback) { + return this.rpcCall(startExperiment, $root.google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Experiment, request, callback); + }, "name", { value: "StartExperiment" }); /** - * Verifies a TestError message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls StartExperiment. + * @function startExperiment + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest} request StartExperimentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - TestError.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.testCase != null && message.hasOwnProperty("testCase")) - if (!$util.isString(message.testCase)) - return "testCase: string expected"; - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.google.rpc.Status.verify(message.status); - if (error) - return "status." + error; - } - if (message.testTime != null && message.hasOwnProperty("testTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.testTime); - if (error) - return "testTime." + error; - } - return null; - }; /** - * Creates a TestError message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TestError} TestError + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#stopExperiment}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @typedef StopExperimentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment} [response] Experiment */ - TestError.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TestError) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TestError(); - if (object.testCase != null) - message.testCase = String(object.testCase); - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestError.status: object expected"); - message.status = $root.google.rpc.Status.fromObject(object.status); - } - if (object.testTime != null) { - if (typeof object.testTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestError.testTime: object expected"); - message.testTime = $root.google.protobuf.Timestamp.fromObject(object.testTime); - } - return message; - }; /** - * Creates a plain object from a TestError message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TestError} message TestError - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls StopExperiment. + * @function stopExperiment + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest} request StopExperimentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Experiments.StopExperimentCallback} callback Node-style callback called with the error, if any, and Experiment + * @returns {undefined} + * @variation 1 */ - TestError.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.testCase = ""; - object.status = null; - object.testTime = null; - } - if (message.testCase != null && message.hasOwnProperty("testCase")) - object.testCase = message.testCase; - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.google.rpc.Status.toObject(message.status, options); - if (message.testTime != null && message.hasOwnProperty("testTime")) - object.testTime = $root.google.protobuf.Timestamp.toObject(message.testTime, options); - return object; - }; + Object.defineProperty(Experiments.prototype.stopExperiment = function stopExperiment(request, callback) { + return this.rpcCall(stopExperiment, $root.google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Experiment, request, callback); + }, "name", { value: "StopExperiment" }); /** - * Converts this TestError to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError + * Calls StopExperiment. + * @function stopExperiment + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments * @instance - * @returns {Object.} JSON object + * @param {google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest} request StopExperimentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - TestError.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - return TestError; + return Experiments; })(); - v3beta1.ImportTestCasesRequest = (function() { + v3beta1.Experiment = (function() { /** - * Properties of an ImportTestCasesRequest. + * Properties of an Experiment. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IImportTestCasesRequest - * @property {string|null} [parent] ImportTestCasesRequest parent - * @property {string|null} [gcsUri] ImportTestCasesRequest gcsUri - * @property {Uint8Array|null} [content] ImportTestCasesRequest content + * @interface IExperiment + * @property {string|null} [name] Experiment name + * @property {string|null} [displayName] Experiment displayName + * @property {string|null} [description] Experiment description + * @property {google.cloud.dialogflow.cx.v3beta1.Experiment.State|null} [state] Experiment state + * @property {google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition|null} [definition] Experiment definition + * @property {google.cloud.dialogflow.cx.v3beta1.Experiment.IResult|null} [result] Experiment result + * @property {google.protobuf.ITimestamp|null} [createTime] Experiment createTime + * @property {google.protobuf.ITimestamp|null} [startTime] Experiment startTime + * @property {google.protobuf.ITimestamp|null} [endTime] Experiment endTime + * @property {google.protobuf.ITimestamp|null} [lastUpdateTime] Experiment lastUpdateTime + * @property {google.protobuf.IDuration|null} [experimentLength] Experiment experimentLength + * @property {Array.|null} [variantsHistory] Experiment variantsHistory */ /** - * Constructs a new ImportTestCasesRequest. + * Constructs a new Experiment. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an ImportTestCasesRequest. - * @implements IImportTestCasesRequest + * @classdesc Represents an Experiment. + * @implements IExperiment * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IExperiment=} [properties] Properties to set */ - function ImportTestCasesRequest(properties) { + function Experiment(properties) { + this.variantsHistory = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -101522,115 +101367,221 @@ } /** - * ImportTestCasesRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest + * Experiment name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment * @instance */ - ImportTestCasesRequest.prototype.parent = ""; + Experiment.prototype.name = ""; /** - * ImportTestCasesRequest gcsUri. - * @member {string} gcsUri - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest + * Experiment displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment * @instance */ - ImportTestCasesRequest.prototype.gcsUri = ""; + Experiment.prototype.displayName = ""; /** - * ImportTestCasesRequest content. - * @member {Uint8Array} content - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest + * Experiment description. + * @member {string} description + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment * @instance */ - ImportTestCasesRequest.prototype.content = $util.newBuffer([]); + Experiment.prototype.description = ""; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Experiment state. + * @member {google.cloud.dialogflow.cx.v3beta1.Experiment.State} state + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @instance + */ + Experiment.prototype.state = 0; /** - * ImportTestCasesRequest source. - * @member {"gcsUri"|"content"|undefined} source - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest + * Experiment definition. + * @member {google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition|null|undefined} definition + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment * @instance */ - Object.defineProperty(ImportTestCasesRequest.prototype, "source", { - get: $util.oneOfGetter($oneOfFields = ["gcsUri", "content"]), - set: $util.oneOfSetter($oneOfFields) - }); + Experiment.prototype.definition = null; /** - * Creates a new ImportTestCasesRequest instance using the specified properties. + * Experiment result. + * @member {google.cloud.dialogflow.cx.v3beta1.Experiment.IResult|null|undefined} result + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @instance + */ + Experiment.prototype.result = null; + + /** + * Experiment createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @instance + */ + Experiment.prototype.createTime = null; + + /** + * Experiment startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @instance + */ + Experiment.prototype.startTime = null; + + /** + * Experiment endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @instance + */ + Experiment.prototype.endTime = null; + + /** + * Experiment lastUpdateTime. + * @member {google.protobuf.ITimestamp|null|undefined} lastUpdateTime + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @instance + */ + Experiment.prototype.lastUpdateTime = null; + + /** + * Experiment experimentLength. + * @member {google.protobuf.IDuration|null|undefined} experimentLength + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @instance + */ + Experiment.prototype.experimentLength = null; + + /** + * Experiment variantsHistory. + * @member {Array.} variantsHistory + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @instance + */ + Experiment.prototype.variantsHistory = $util.emptyArray; + + /** + * Creates a new Experiment instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest} ImportTestCasesRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IExperiment=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment} Experiment instance */ - ImportTestCasesRequest.create = function create(properties) { - return new ImportTestCasesRequest(properties); + Experiment.create = function create(properties) { + return new Experiment(properties); }; /** - * Encodes the specified ImportTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest.verify|verify} messages. + * Encodes the specified Experiment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest} message ImportTestCasesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IExperiment} message Experiment message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportTestCasesRequest.encode = function encode(message, writer) { + Experiment.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.gcsUri != null && Object.hasOwnProperty.call(message, "gcsUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.gcsUri); - if (message.content != null && Object.hasOwnProperty.call(message, "content")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.content); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state); + if (message.definition != null && Object.hasOwnProperty.call(message, "definition")) + $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.encode(message.definition, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.encode(message.result, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.lastUpdateTime != null && Object.hasOwnProperty.call(message, "lastUpdateTime")) + $root.google.protobuf.Timestamp.encode(message.lastUpdateTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.experimentLength != null && Object.hasOwnProperty.call(message, "experimentLength")) + $root.google.protobuf.Duration.encode(message.experimentLength, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.variantsHistory != null && message.variantsHistory.length) + for (var i = 0; i < message.variantsHistory.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.VariantsHistory.encode(message.variantsHistory[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); return writer; }; /** - * Encodes the specified ImportTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest.verify|verify} messages. + * Encodes the specified Experiment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest} message ImportTestCasesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IExperiment} message Experiment message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { + Experiment.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImportTestCasesRequest message from the specified reader or buffer. + * Decodes an Experiment message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest} ImportTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment} Experiment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportTestCasesRequest.decode = function decode(reader, length) { + Experiment.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.name = reader.string(); break; case 2: - message.gcsUri = reader.string(); + message.displayName = reader.string(); break; case 3: - message.content = reader.bytes(); + message.description = reader.string(); + break; + case 4: + message.state = reader.int32(); + break; + case 5: + message.definition = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.decode(reader, reader.uint32()); + break; + case 6: + message.result = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.decode(reader, reader.uint32()); + break; + case 7: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 8: + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 9: + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 10: + message.lastUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 11: + message.experimentLength = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 12: + if (!(message.variantsHistory && message.variantsHistory.length)) + message.variantsHistory = []; + message.variantsHistory.push($root.google.cloud.dialogflow.cx.v3beta1.VariantsHistory.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -101641,1310 +101592,1671 @@ }; /** - * Decodes an ImportTestCasesRequest message from the specified reader or buffer, length delimited. + * Decodes an Experiment message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest} ImportTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment} Experiment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { + Experiment.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ImportTestCasesRequest message. + * Verifies an Experiment message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ImportTestCasesRequest.verify = function verify(message) { + Experiment.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { - properties.source = 1; - if (!$util.isString(message.gcsUri)) - return "gcsUri: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.definition != null && message.hasOwnProperty("definition")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.verify(message.definition); + if (error) + return "definition." + error; } - if (message.content != null && message.hasOwnProperty("content")) { - if (properties.source === 1) - return "source: multiple values"; - properties.source = 1; - if (!(message.content && typeof message.content.length === "number" || $util.isString(message.content))) - return "content: buffer expected"; + if (message.result != null && message.hasOwnProperty("result")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.verify(message.result); + if (error) + return "result." + error; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.lastUpdateTime); + if (error) + return "lastUpdateTime." + error; + } + if (message.experimentLength != null && message.hasOwnProperty("experimentLength")) { + var error = $root.google.protobuf.Duration.verify(message.experimentLength); + if (error) + return "experimentLength." + error; + } + if (message.variantsHistory != null && message.hasOwnProperty("variantsHistory")) { + if (!Array.isArray(message.variantsHistory)) + return "variantsHistory: array expected"; + for (var i = 0; i < message.variantsHistory.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.VariantsHistory.verify(message.variantsHistory[i]); + if (error) + return "variantsHistory." + error; + } } return null; }; /** - * Creates an ImportTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an Experiment message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest} ImportTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment} Experiment */ - ImportTestCasesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest) + Experiment.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Experiment) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.gcsUri != null) - message.gcsUri = String(object.gcsUri); - if (object.content != null) - if (typeof object.content === "string") - $util.base64.decode(object.content, message.content = $util.newBuffer($util.base64.length(object.content)), 0); - else if (object.content.length) - message.content = object.content; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.description != null) + message.description = String(object.description); + switch (object.state) { + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "DRAFT": + case 1: + message.state = 1; + break; + case "RUNNING": + case 2: + message.state = 2; + break; + case "DONE": + case 3: + message.state = 3; + break; + } + if (object.definition != null) { + if (typeof object.definition !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.definition: object expected"); + message.definition = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.fromObject(object.definition); + } + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.result: object expected"); + message.result = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.fromObject(object.result); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + if (object.lastUpdateTime != null) { + if (typeof object.lastUpdateTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.lastUpdateTime: object expected"); + message.lastUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.lastUpdateTime); + } + if (object.experimentLength != null) { + if (typeof object.experimentLength !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.experimentLength: object expected"); + message.experimentLength = $root.google.protobuf.Duration.fromObject(object.experimentLength); + } + if (object.variantsHistory) { + if (!Array.isArray(object.variantsHistory)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.variantsHistory: array expected"); + message.variantsHistory = []; + for (var i = 0; i < object.variantsHistory.length; ++i) { + if (typeof object.variantsHistory[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.variantsHistory: object expected"); + message.variantsHistory[i] = $root.google.cloud.dialogflow.cx.v3beta1.VariantsHistory.fromObject(object.variantsHistory[i]); + } + } return message; }; /** - * Creates a plain object from an ImportTestCasesRequest message. Also converts values to other types if specified. + * Creates a plain object from an Experiment message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest} message ImportTestCasesRequest + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment} message Experiment * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportTestCasesRequest.toObject = function toObject(message, options) { + Experiment.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.parent = ""; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { - object.gcsUri = message.gcsUri; - if (options.oneofs) - object.source = "gcsUri"; + if (options.arrays || options.defaults) + object.variantsHistory = []; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.description = ""; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.definition = null; + object.result = null; + object.createTime = null; + object.startTime = null; + object.endTime = null; + object.lastUpdateTime = null; + object.experimentLength = null; } - if (message.content != null && message.hasOwnProperty("content")) { - object.content = options.bytes === String ? $util.base64.encode(message.content, 0, message.content.length) : options.bytes === Array ? Array.prototype.slice.call(message.content) : message.content; - if (options.oneofs) - object.source = "content"; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.Experiment.State[message.state] : message.state; + if (message.definition != null && message.hasOwnProperty("definition")) + object.definition = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.toObject(message.definition, options); + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.toObject(message.result, options); + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) + object.lastUpdateTime = $root.google.protobuf.Timestamp.toObject(message.lastUpdateTime, options); + if (message.experimentLength != null && message.hasOwnProperty("experimentLength")) + object.experimentLength = $root.google.protobuf.Duration.toObject(message.experimentLength, options); + if (message.variantsHistory && message.variantsHistory.length) { + object.variantsHistory = []; + for (var j = 0; j < message.variantsHistory.length; ++j) + object.variantsHistory[j] = $root.google.cloud.dialogflow.cx.v3beta1.VariantsHistory.toObject(message.variantsHistory[j], options); } return object; }; /** - * Converts this ImportTestCasesRequest to JSON. + * Converts this Experiment to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment * @instance * @returns {Object.} JSON object */ - ImportTestCasesRequest.prototype.toJSON = function toJSON() { + Experiment.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ImportTestCasesRequest; - })(); + Experiment.Definition = (function() { - v3beta1.ImportTestCasesResponse = (function() { + /** + * Properties of a Definition. + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @interface IDefinition + * @property {string|null} [condition] Definition condition + * @property {google.cloud.dialogflow.cx.v3beta1.IVersionVariants|null} [versionVariants] Definition versionVariants + */ - /** - * Properties of an ImportTestCasesResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IImportTestCasesResponse - * @property {Array.|null} [names] ImportTestCasesResponse names - */ + /** + * Constructs a new Definition. + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @classdesc Represents a Definition. + * @implements IDefinition + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition=} [properties] Properties to set + */ + function Definition(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new ImportTestCasesResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an ImportTestCasesResponse. - * @implements IImportTestCasesResponse - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse=} [properties] Properties to set - */ - function ImportTestCasesResponse(properties) { - this.names = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Definition condition. + * @member {string} condition + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition + * @instance + */ + Definition.prototype.condition = ""; - /** - * ImportTestCasesResponse names. - * @member {Array.} names - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse - * @instance - */ - ImportTestCasesResponse.prototype.names = $util.emptyArray; + /** + * Definition versionVariants. + * @member {google.cloud.dialogflow.cx.v3beta1.IVersionVariants|null|undefined} versionVariants + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition + * @instance + */ + Definition.prototype.versionVariants = null; - /** - * Creates a new ImportTestCasesResponse instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse} ImportTestCasesResponse instance - */ - ImportTestCasesResponse.create = function create(properties) { - return new ImportTestCasesResponse(properties); - }; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Encodes the specified ImportTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse} message ImportTestCasesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ImportTestCasesResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.names != null && message.names.length) - for (var i = 0; i < message.names.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.names[i]); - return writer; - }; + /** + * Definition variants. + * @member {"versionVariants"|undefined} variants + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition + * @instance + */ + Object.defineProperty(Definition.prototype, "variants", { + get: $util.oneOfGetter($oneOfFields = ["versionVariants"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Encodes the specified ImportTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse} message ImportTestCasesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ImportTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new Definition instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Definition} Definition instance + */ + Definition.create = function create(properties) { + return new Definition(properties); + }; - /** - * Decodes an ImportTestCasesResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse} ImportTestCasesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ImportTestCasesResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.names && message.names.length)) - message.names = []; - message.names.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Encodes the specified Definition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition} message Definition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Definition.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.condition != null && Object.hasOwnProperty.call(message, "condition")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.condition); + if (message.versionVariants != null && Object.hasOwnProperty.call(message, "versionVariants")) + $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.encode(message.versionVariants, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Definition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition} message Definition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Definition.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Definition message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Definition} Definition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Definition.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.condition = reader.string(); + break; + case 2: + message.versionVariants = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes an ImportTestCasesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse} ImportTestCasesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ImportTestCasesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a Definition message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Definition} Definition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Definition.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies an ImportTestCasesResponse message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ImportTestCasesResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.names != null && message.hasOwnProperty("names")) { - if (!Array.isArray(message.names)) - return "names: array expected"; - for (var i = 0; i < message.names.length; ++i) - if (!$util.isString(message.names[i])) - return "names: string[] expected"; - } - return null; - }; + /** + * Verifies a Definition message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Definition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.condition != null && message.hasOwnProperty("condition")) + if (!$util.isString(message.condition)) + return "condition: string expected"; + if (message.versionVariants != null && message.hasOwnProperty("versionVariants")) { + properties.variants = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.verify(message.versionVariants); + if (error) + return "versionVariants." + error; + } + } + return null; + }; - /** - * Creates an ImportTestCasesResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse} ImportTestCasesResponse - */ - ImportTestCasesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse) + /** + * Creates a Definition message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Definition} Definition + */ + Definition.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition(); + if (object.condition != null) + message.condition = String(object.condition); + if (object.versionVariants != null) { + if (typeof object.versionVariants !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.versionVariants: object expected"); + message.versionVariants = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.fromObject(object.versionVariants); + } + return message; + }; + + /** + * Creates a plain object from a Definition message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Definition} message Definition + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Definition.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.condition = ""; + if (message.condition != null && message.hasOwnProperty("condition")) + object.condition = message.condition; + if (message.versionVariants != null && message.hasOwnProperty("versionVariants")) { + object.versionVariants = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.toObject(message.versionVariants, options); + if (options.oneofs) + object.variants = "versionVariants"; + } return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse(); - if (object.names) { - if (!Array.isArray(object.names)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse.names: array expected"); - message.names = []; - for (var i = 0; i < object.names.length; ++i) - message.names[i] = String(object.names[i]); - } - return message; - }; + }; - /** - * Creates a plain object from an ImportTestCasesResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse} message ImportTestCasesResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ImportTestCasesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.names = []; - if (message.names && message.names.length) { - object.names = []; - for (var j = 0; j < message.names.length; ++j) - object.names[j] = message.names[j]; - } - return object; - }; + /** + * Converts this Definition to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition + * @instance + * @returns {Object.} JSON object + */ + Definition.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this ImportTestCasesResponse to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse - * @instance - * @returns {Object.} JSON object - */ - ImportTestCasesResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return Definition; + })(); - return ImportTestCasesResponse; - })(); + Experiment.Result = (function() { - v3beta1.ImportTestCasesMetadata = (function() { + /** + * Properties of a Result. + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @interface IResult + * @property {Array.|null} [versionMetrics] Result versionMetrics + * @property {google.protobuf.ITimestamp|null} [lastUpdateTime] Result lastUpdateTime + */ - /** - * Properties of an ImportTestCasesMetadata. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IImportTestCasesMetadata - * @property {Array.|null} [errors] ImportTestCasesMetadata errors - */ + /** + * Constructs a new Result. + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @classdesc Represents a Result. + * @implements IResult + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.IResult=} [properties] Properties to set + */ + function Result(properties) { + this.versionMetrics = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new ImportTestCasesMetadata. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an ImportTestCasesMetadata. - * @implements IImportTestCasesMetadata - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata=} [properties] Properties to set - */ - function ImportTestCasesMetadata(properties) { - this.errors = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Result versionMetrics. + * @member {Array.} versionMetrics + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @instance + */ + Result.prototype.versionMetrics = $util.emptyArray; - /** - * ImportTestCasesMetadata errors. - * @member {Array.} errors - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata - * @instance - */ - ImportTestCasesMetadata.prototype.errors = $util.emptyArray; + /** + * Result lastUpdateTime. + * @member {google.protobuf.ITimestamp|null|undefined} lastUpdateTime + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @instance + */ + Result.prototype.lastUpdateTime = null; - /** - * Creates a new ImportTestCasesMetadata instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata} ImportTestCasesMetadata instance - */ - ImportTestCasesMetadata.create = function create(properties) { - return new ImportTestCasesMetadata(properties); - }; + /** + * Creates a new Result instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.IResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result} Result instance + */ + Result.create = function create(properties) { + return new Result(properties); + }; - /** - * Encodes the specified ImportTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata} message ImportTestCasesMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ImportTestCasesMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.errors != null && message.errors.length) - for (var i = 0; i < message.errors.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.TestCaseError.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified Result message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.IResult} message Result message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Result.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.versionMetrics != null && message.versionMetrics.length) + for (var i = 0; i < message.versionMetrics.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.encode(message.versionMetrics[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.lastUpdateTime != null && Object.hasOwnProperty.call(message, "lastUpdateTime")) + $root.google.protobuf.Timestamp.encode(message.lastUpdateTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified ImportTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata} message ImportTestCasesMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ImportTestCasesMetadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Result message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.IResult} message Result message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Result.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes an ImportTestCasesMetadata message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata} ImportTestCasesMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ImportTestCasesMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.errors && message.errors.length)) - message.errors = []; - message.errors.push($root.google.cloud.dialogflow.cx.v3beta1.TestCaseError.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Decodes a Result message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result} Result + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Result.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.versionMetrics && message.versionMetrics.length)) + message.versionMetrics = []; + message.versionMetrics.push($root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.decode(reader, reader.uint32())); + break; + case 2: + message.lastUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes an ImportTestCasesMetadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata} ImportTestCasesMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ImportTestCasesMetadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a Result message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result} Result + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Result.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies an ImportTestCasesMetadata message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ImportTestCasesMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.errors != null && message.hasOwnProperty("errors")) { - if (!Array.isArray(message.errors)) - return "errors: array expected"; - for (var i = 0; i < message.errors.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseError.verify(message.errors[i]); + /** + * Verifies a Result message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Result.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.versionMetrics != null && message.hasOwnProperty("versionMetrics")) { + if (!Array.isArray(message.versionMetrics)) + return "versionMetrics: array expected"; + for (var i = 0; i < message.versionMetrics.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.verify(message.versionMetrics[i]); + if (error) + return "versionMetrics." + error; + } + } + if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.lastUpdateTime); if (error) - return "errors." + error; + return "lastUpdateTime." + error; + } + return null; + }; + + /** + * Creates a Result message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result} Result + */ + Result.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result(); + if (object.versionMetrics) { + if (!Array.isArray(object.versionMetrics)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.Result.versionMetrics: array expected"); + message.versionMetrics = []; + for (var i = 0; i < object.versionMetrics.length; ++i) { + if (typeof object.versionMetrics[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.Result.versionMetrics: object expected"); + message.versionMetrics[i] = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.fromObject(object.versionMetrics[i]); + } + } + if (object.lastUpdateTime != null) { + if (typeof object.lastUpdateTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.Result.lastUpdateTime: object expected"); + message.lastUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.lastUpdateTime); } - } - return null; - }; + return message; + }; - /** - * Creates an ImportTestCasesMetadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata} ImportTestCasesMetadata - */ - ImportTestCasesMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata(); - if (object.errors) { - if (!Array.isArray(object.errors)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata.errors: array expected"); - message.errors = []; - for (var i = 0; i < object.errors.length; ++i) { - if (typeof object.errors[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata.errors: object expected"); - message.errors[i] = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseError.fromObject(object.errors[i]); + /** + * Creates a plain object from a Result message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result} message Result + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Result.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.versionMetrics = []; + if (options.defaults) + object.lastUpdateTime = null; + if (message.versionMetrics && message.versionMetrics.length) { + object.versionMetrics = []; + for (var j = 0; j < message.versionMetrics.length; ++j) + object.versionMetrics[j] = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.toObject(message.versionMetrics[j], options); } - } - return message; - }; + if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) + object.lastUpdateTime = $root.google.protobuf.Timestamp.toObject(message.lastUpdateTime, options); + return object; + }; - /** - * Creates a plain object from an ImportTestCasesMetadata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata} message ImportTestCasesMetadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ImportTestCasesMetadata.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.errors = []; - if (message.errors && message.errors.length) { - object.errors = []; - for (var j = 0; j < message.errors.length; ++j) - object.errors[j] = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseError.toObject(message.errors[j], options); - } - return object; - }; + /** + * Converts this Result to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @instance + * @returns {Object.} JSON object + */ + Result.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this ImportTestCasesMetadata to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata - * @instance - * @returns {Object.} JSON object - */ - ImportTestCasesMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Result.ConfidenceInterval = (function() { - return ImportTestCasesMetadata; - })(); + /** + * Properties of a ConfidenceInterval. + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @interface IConfidenceInterval + * @property {number|null} [confidenceLevel] ConfidenceInterval confidenceLevel + * @property {number|null} [ratio] ConfidenceInterval ratio + * @property {number|null} [lowerBound] ConfidenceInterval lowerBound + * @property {number|null} [upperBound] ConfidenceInterval upperBound + */ - v3beta1.TestCaseError = (function() { + /** + * Constructs a new ConfidenceInterval. + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @classdesc Represents a ConfidenceInterval. + * @implements IConfidenceInterval + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval=} [properties] Properties to set + */ + function ConfidenceInterval(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Properties of a TestCaseError. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ITestCaseError - * @property {google.cloud.dialogflow.cx.v3beta1.ITestCase|null} [testCase] TestCaseError testCase - * @property {google.rpc.IStatus|null} [status] TestCaseError status - */ + /** + * ConfidenceInterval confidenceLevel. + * @member {number} confidenceLevel + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval + * @instance + */ + ConfidenceInterval.prototype.confidenceLevel = 0; - /** - * Constructs a new TestCaseError. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a TestCaseError. - * @implements ITestCaseError - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseError=} [properties] Properties to set - */ - function TestCaseError(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * ConfidenceInterval ratio. + * @member {number} ratio + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval + * @instance + */ + ConfidenceInterval.prototype.ratio = 0; - /** - * TestCaseError testCase. - * @member {google.cloud.dialogflow.cx.v3beta1.ITestCase|null|undefined} testCase - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError - * @instance - */ - TestCaseError.prototype.testCase = null; + /** + * ConfidenceInterval lowerBound. + * @member {number} lowerBound + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval + * @instance + */ + ConfidenceInterval.prototype.lowerBound = 0; - /** - * TestCaseError status. - * @member {google.rpc.IStatus|null|undefined} status - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError - * @instance - */ - TestCaseError.prototype.status = null; + /** + * ConfidenceInterval upperBound. + * @member {number} upperBound + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval + * @instance + */ + ConfidenceInterval.prototype.upperBound = 0; - /** - * Creates a new TestCaseError instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseError=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseError} TestCaseError instance - */ - TestCaseError.create = function create(properties) { - return new TestCaseError(properties); - }; + /** + * Creates a new ConfidenceInterval instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval} ConfidenceInterval instance + */ + ConfidenceInterval.create = function create(properties) { + return new ConfidenceInterval(properties); + }; - /** - * Encodes the specified TestCaseError message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCaseError.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseError} message TestCaseError message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TestCaseError.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.testCase != null && Object.hasOwnProperty.call(message, "testCase")) - $root.google.cloud.dialogflow.cx.v3beta1.TestCase.encode(message.testCase, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified ConfidenceInterval message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval} message ConfidenceInterval message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConfidenceInterval.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.confidenceLevel != null && Object.hasOwnProperty.call(message, "confidenceLevel")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.confidenceLevel); + if (message.ratio != null && Object.hasOwnProperty.call(message, "ratio")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.ratio); + if (message.lowerBound != null && Object.hasOwnProperty.call(message, "lowerBound")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.lowerBound); + if (message.upperBound != null && Object.hasOwnProperty.call(message, "upperBound")) + writer.uint32(/* id 4, wireType 1 =*/33).double(message.upperBound); + return writer; + }; - /** - * Encodes the specified TestCaseError message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCaseError.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseError} message TestCaseError message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TestCaseError.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ConfidenceInterval message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval} message ConfidenceInterval message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConfidenceInterval.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a TestCaseError message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseError} TestCaseError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TestCaseError.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TestCaseError(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.decode(reader, reader.uint32()); - break; - case 2: - message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Decodes a ConfidenceInterval message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval} ConfidenceInterval + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConfidenceInterval.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.confidenceLevel = reader.double(); + break; + case 2: + message.ratio = reader.double(); + break; + case 3: + message.lowerBound = reader.double(); + break; + case 4: + message.upperBound = reader.double(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Decodes a TestCaseError message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseError} TestCaseError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TestCaseError.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a ConfidenceInterval message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval} ConfidenceInterval + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConfidenceInterval.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a TestCaseError message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TestCaseError.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.testCase != null && message.hasOwnProperty("testCase")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.verify(message.testCase); - if (error) - return "testCase." + error; - } - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.google.rpc.Status.verify(message.status); - if (error) - return "status." + error; - } - return null; - }; + /** + * Verifies a ConfidenceInterval message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConfidenceInterval.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.confidenceLevel != null && message.hasOwnProperty("confidenceLevel")) + if (typeof message.confidenceLevel !== "number") + return "confidenceLevel: number expected"; + if (message.ratio != null && message.hasOwnProperty("ratio")) + if (typeof message.ratio !== "number") + return "ratio: number expected"; + if (message.lowerBound != null && message.hasOwnProperty("lowerBound")) + if (typeof message.lowerBound !== "number") + return "lowerBound: number expected"; + if (message.upperBound != null && message.hasOwnProperty("upperBound")) + if (typeof message.upperBound !== "number") + return "upperBound: number expected"; + return null; + }; - /** - * Creates a TestCaseError message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseError} TestCaseError - */ - TestCaseError.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TestCaseError) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TestCaseError(); - if (object.testCase != null) { - if (typeof object.testCase !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCaseError.testCase: object expected"); - message.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.fromObject(object.testCase); - } - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCaseError.status: object expected"); - message.status = $root.google.rpc.Status.fromObject(object.status); - } - return message; - }; + /** + * Creates a ConfidenceInterval message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval} ConfidenceInterval + */ + ConfidenceInterval.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval(); + if (object.confidenceLevel != null) + message.confidenceLevel = Number(object.confidenceLevel); + if (object.ratio != null) + message.ratio = Number(object.ratio); + if (object.lowerBound != null) + message.lowerBound = Number(object.lowerBound); + if (object.upperBound != null) + message.upperBound = Number(object.upperBound); + return message; + }; - /** - * Creates a plain object from a TestCaseError message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TestCaseError} message TestCaseError - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TestCaseError.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.testCase = null; - object.status = null; - } - if (message.testCase != null && message.hasOwnProperty("testCase")) - object.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.toObject(message.testCase, options); - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.google.rpc.Status.toObject(message.status, options); - return object; - }; + /** + * Creates a plain object from a ConfidenceInterval message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval} message ConfidenceInterval + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ConfidenceInterval.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.confidenceLevel = 0; + object.ratio = 0; + object.lowerBound = 0; + object.upperBound = 0; + } + if (message.confidenceLevel != null && message.hasOwnProperty("confidenceLevel")) + object.confidenceLevel = options.json && !isFinite(message.confidenceLevel) ? String(message.confidenceLevel) : message.confidenceLevel; + if (message.ratio != null && message.hasOwnProperty("ratio")) + object.ratio = options.json && !isFinite(message.ratio) ? String(message.ratio) : message.ratio; + if (message.lowerBound != null && message.hasOwnProperty("lowerBound")) + object.lowerBound = options.json && !isFinite(message.lowerBound) ? String(message.lowerBound) : message.lowerBound; + if (message.upperBound != null && message.hasOwnProperty("upperBound")) + object.upperBound = options.json && !isFinite(message.upperBound) ? String(message.upperBound) : message.upperBound; + return object; + }; - /** - * Converts this TestCaseError to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError - * @instance - * @returns {Object.} JSON object - */ - TestCaseError.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this ConfidenceInterval to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval + * @instance + * @returns {Object.} JSON object + */ + ConfidenceInterval.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return TestCaseError; - })(); + return ConfidenceInterval; + })(); - v3beta1.ExportTestCasesRequest = (function() { + Result.Metric = (function() { - /** - * Properties of an ExportTestCasesRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IExportTestCasesRequest - * @property {string|null} [parent] ExportTestCasesRequest parent - * @property {string|null} [gcsUri] ExportTestCasesRequest gcsUri - * @property {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat|null} [dataFormat] ExportTestCasesRequest dataFormat - * @property {string|null} [filter] ExportTestCasesRequest filter - */ + /** + * Properties of a Metric. + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @interface IMetric + * @property {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType|null} [type] Metric type + * @property {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType|null} [countType] Metric countType + * @property {number|null} [ratio] Metric ratio + * @property {number|null} [count] Metric count + * @property {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval|null} [confidenceInterval] Metric confidenceInterval + */ - /** - * Constructs a new ExportTestCasesRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an ExportTestCasesRequest. - * @implements IExportTestCasesRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest=} [properties] Properties to set - */ - function ExportTestCasesRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new Metric. + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @classdesc Represents a Metric. + * @implements IMetric + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric=} [properties] Properties to set + */ + function Metric(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * ExportTestCasesRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest - * @instance - */ - ExportTestCasesRequest.prototype.parent = ""; + /** + * Metric type. + * @member {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType} type + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric + * @instance + */ + Metric.prototype.type = 0; - /** - * ExportTestCasesRequest gcsUri. - * @member {string} gcsUri - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest - * @instance - */ - ExportTestCasesRequest.prototype.gcsUri = ""; + /** + * Metric countType. + * @member {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType} countType + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric + * @instance + */ + Metric.prototype.countType = 0; - /** - * ExportTestCasesRequest dataFormat. - * @member {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat} dataFormat - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest - * @instance - */ - ExportTestCasesRequest.prototype.dataFormat = 0; + /** + * Metric ratio. + * @member {number} ratio + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric + * @instance + */ + Metric.prototype.ratio = 0; - /** - * ExportTestCasesRequest filter. - * @member {string} filter - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest - * @instance - */ - ExportTestCasesRequest.prototype.filter = ""; + /** + * Metric count. + * @member {number} count + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric + * @instance + */ + Metric.prototype.count = 0; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Metric confidenceInterval. + * @member {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval|null|undefined} confidenceInterval + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric + * @instance + */ + Metric.prototype.confidenceInterval = null; - /** - * ExportTestCasesRequest destination. - * @member {"gcsUri"|undefined} destination - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest - * @instance - */ - Object.defineProperty(ExportTestCasesRequest.prototype, "destination", { - get: $util.oneOfGetter($oneOfFields = ["gcsUri"]), - set: $util.oneOfSetter($oneOfFields) - }); + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Creates a new ExportTestCasesRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest} ExportTestCasesRequest instance - */ - ExportTestCasesRequest.create = function create(properties) { - return new ExportTestCasesRequest(properties); - }; + /** + * Metric value. + * @member {"ratio"|"count"|undefined} value + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric + * @instance + */ + Object.defineProperty(Metric.prototype, "value", { + get: $util.oneOfGetter($oneOfFields = ["ratio", "count"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Encodes the specified ExportTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest} message ExportTestCasesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExportTestCasesRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.gcsUri != null && Object.hasOwnProperty.call(message, "gcsUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.gcsUri); - if (message.dataFormat != null && Object.hasOwnProperty.call(message, "dataFormat")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.dataFormat); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); - return writer; - }; + /** + * Creates a new Metric instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric} Metric instance + */ + Metric.create = function create(properties) { + return new Metric(properties); + }; - /** - * Encodes the specified ExportTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest} message ExportTestCasesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExportTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Metric message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric} message Metric message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Metric.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.ratio != null && Object.hasOwnProperty.call(message, "ratio")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.ratio); + if (message.confidenceInterval != null && Object.hasOwnProperty.call(message, "confidenceInterval")) + $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.encode(message.confidenceInterval, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.count != null && Object.hasOwnProperty.call(message, "count")) + writer.uint32(/* id 4, wireType 1 =*/33).double(message.count); + if (message.countType != null && Object.hasOwnProperty.call(message, "countType")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.countType); + return writer; + }; - /** - * Decodes an ExportTestCasesRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest} ExportTestCasesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExportTestCasesRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.gcsUri = reader.string(); - break; - case 3: - message.dataFormat = reader.int32(); - break; - case 4: - message.filter = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified Metric message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric} message Metric message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Metric.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes an ExportTestCasesRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest} ExportTestCasesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExportTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a Metric message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric} Metric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Metric.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = reader.int32(); + break; + case 5: + message.countType = reader.int32(); + break; + case 2: + message.ratio = reader.double(); + break; + case 4: + message.count = reader.double(); + break; + case 3: + message.confidenceInterval = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Verifies an ExportTestCasesRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExportTestCasesRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { - properties.destination = 1; - if (!$util.isString(message.gcsUri)) - return "gcsUri: string expected"; - } - if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) - switch (message.dataFormat) { - default: - return "dataFormat: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - return null; - }; + /** + * Decodes a Metric message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric} Metric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Metric.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Metric message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Metric.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.countType != null && message.hasOwnProperty("countType")) + switch (message.countType) { + default: + return "countType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.ratio != null && message.hasOwnProperty("ratio")) { + properties.value = 1; + if (typeof message.ratio !== "number") + return "ratio: number expected"; + } + if (message.count != null && message.hasOwnProperty("count")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (typeof message.count !== "number") + return "count: number expected"; + } + if (message.confidenceInterval != null && message.hasOwnProperty("confidenceInterval")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.verify(message.confidenceInterval); + if (error) + return "confidenceInterval." + error; + } + return null; + }; + + /** + * Creates a Metric message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric} Metric + */ + Metric.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric(); + switch (object.type) { + case "METRIC_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "CONTAINED_SESSION_NO_CALLBACK_RATE": + case 1: + message.type = 1; + break; + case "LIVE_AGENT_HANDOFF_RATE": + case 2: + message.type = 2; + break; + case "CALLBACK_SESSION_RATE": + case 3: + message.type = 3; + break; + case "ABANDONED_SESSION_RATE": + case 4: + message.type = 4; + break; + case "SESSION_END_RATE": + case 5: + message.type = 5; + break; + } + switch (object.countType) { + case "COUNT_TYPE_UNSPECIFIED": + case 0: + message.countType = 0; + break; + case "TOTAL_NO_MATCH_COUNT": + case 1: + message.countType = 1; + break; + case "TOTAL_TURN_COUNT": + case 2: + message.countType = 2; + break; + case "AVERAGE_TURN_COUNT": + case 3: + message.countType = 3; + break; + } + if (object.ratio != null) + message.ratio = Number(object.ratio); + if (object.count != null) + message.count = Number(object.count); + if (object.confidenceInterval != null) { + if (typeof object.confidenceInterval !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.confidenceInterval: object expected"); + message.confidenceInterval = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.fromObject(object.confidenceInterval); + } + return message; + }; - /** - * Creates an ExportTestCasesRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest} ExportTestCasesRequest - */ - ExportTestCasesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.gcsUri != null) - message.gcsUri = String(object.gcsUri); - switch (object.dataFormat) { - case "DATA_FORMAT_UNSPECIFIED": - case 0: - message.dataFormat = 0; - break; - case "BLOB": - case 1: - message.dataFormat = 1; - break; - case "JSON": - case 2: - message.dataFormat = 2; - break; - } - if (object.filter != null) - message.filter = String(object.filter); - return message; - }; + /** + * Creates a plain object from a Metric message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric} message Metric + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Metric.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.type = options.enums === String ? "METRIC_UNSPECIFIED" : 0; + object.confidenceInterval = null; + object.countType = options.enums === String ? "COUNT_TYPE_UNSPECIFIED" : 0; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType[message.type] : message.type; + if (message.ratio != null && message.hasOwnProperty("ratio")) { + object.ratio = options.json && !isFinite(message.ratio) ? String(message.ratio) : message.ratio; + if (options.oneofs) + object.value = "ratio"; + } + if (message.confidenceInterval != null && message.hasOwnProperty("confidenceInterval")) + object.confidenceInterval = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.toObject(message.confidenceInterval, options); + if (message.count != null && message.hasOwnProperty("count")) { + object.count = options.json && !isFinite(message.count) ? String(message.count) : message.count; + if (options.oneofs) + object.value = "count"; + } + if (message.countType != null && message.hasOwnProperty("countType")) + object.countType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType[message.countType] : message.countType; + return object; + }; - /** - * Creates a plain object from an ExportTestCasesRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest} message ExportTestCasesRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ExportTestCasesRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.dataFormat = options.enums === String ? "DATA_FORMAT_UNSPECIFIED" : 0; - object.filter = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { - object.gcsUri = message.gcsUri; - if (options.oneofs) - object.destination = "gcsUri"; - } - if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) - object.dataFormat = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat[message.dataFormat] : message.dataFormat; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - return object; - }; + /** + * Converts this Metric to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric + * @instance + * @returns {Object.} JSON object + */ + Metric.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this ExportTestCasesRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest - * @instance - * @returns {Object.} JSON object - */ - ExportTestCasesRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return Metric; + })(); - /** - * DataFormat enum. - * @name google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat - * @enum {number} - * @property {number} DATA_FORMAT_UNSPECIFIED=0 DATA_FORMAT_UNSPECIFIED value - * @property {number} BLOB=1 BLOB value - * @property {number} JSON=2 JSON value - */ - ExportTestCasesRequest.DataFormat = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DATA_FORMAT_UNSPECIFIED"] = 0; - values[valuesById[1] = "BLOB"] = 1; - values[valuesById[2] = "JSON"] = 2; - return values; - })(); + Result.VersionMetrics = (function() { - return ExportTestCasesRequest; - })(); + /** + * Properties of a VersionMetrics. + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @interface IVersionMetrics + * @property {string|null} [version] VersionMetrics version + * @property {Array.|null} [metrics] VersionMetrics metrics + * @property {number|null} [sessionCount] VersionMetrics sessionCount + */ - v3beta1.ExportTestCasesResponse = (function() { + /** + * Constructs a new VersionMetrics. + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @classdesc Represents a VersionMetrics. + * @implements IVersionMetrics + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics=} [properties] Properties to set + */ + function VersionMetrics(properties) { + this.metrics = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Properties of an ExportTestCasesResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IExportTestCasesResponse - * @property {string|null} [gcsUri] ExportTestCasesResponse gcsUri - * @property {Uint8Array|null} [content] ExportTestCasesResponse content - */ + /** + * VersionMetrics version. + * @member {string} version + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics + * @instance + */ + VersionMetrics.prototype.version = ""; - /** - * Constructs a new ExportTestCasesResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an ExportTestCasesResponse. - * @implements IExportTestCasesResponse - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse=} [properties] Properties to set - */ - function ExportTestCasesResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * VersionMetrics metrics. + * @member {Array.} metrics + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics + * @instance + */ + VersionMetrics.prototype.metrics = $util.emptyArray; - /** - * ExportTestCasesResponse gcsUri. - * @member {string} gcsUri - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse - * @instance - */ - ExportTestCasesResponse.prototype.gcsUri = ""; + /** + * VersionMetrics sessionCount. + * @member {number} sessionCount + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics + * @instance + */ + VersionMetrics.prototype.sessionCount = 0; - /** - * ExportTestCasesResponse content. - * @member {Uint8Array} content - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse - * @instance - */ - ExportTestCasesResponse.prototype.content = $util.newBuffer([]); + /** + * Creates a new VersionMetrics instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics} VersionMetrics instance + */ + VersionMetrics.create = function create(properties) { + return new VersionMetrics(properties); + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Encodes the specified VersionMetrics message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics} message VersionMetrics message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VersionMetrics.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); + if (message.metrics != null && message.metrics.length) + for (var i = 0; i < message.metrics.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.encode(message.metrics[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.sessionCount != null && Object.hasOwnProperty.call(message, "sessionCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.sessionCount); + return writer; + }; - /** - * ExportTestCasesResponse destination. - * @member {"gcsUri"|"content"|undefined} destination - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse - * @instance - */ - Object.defineProperty(ExportTestCasesResponse.prototype, "destination", { - get: $util.oneOfGetter($oneOfFields = ["gcsUri", "content"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Encodes the specified VersionMetrics message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics} message VersionMetrics message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VersionMetrics.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a new ExportTestCasesResponse instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse} ExportTestCasesResponse instance - */ - ExportTestCasesResponse.create = function create(properties) { - return new ExportTestCasesResponse(properties); - }; + /** + * Decodes a VersionMetrics message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics} VersionMetrics + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VersionMetrics.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.version = reader.string(); + break; + case 2: + if (!(message.metrics && message.metrics.length)) + message.metrics = []; + message.metrics.push($root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.decode(reader, reader.uint32())); + break; + case 3: + message.sessionCount = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified ExportTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse} message ExportTestCasesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExportTestCasesResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.gcsUri != null && Object.hasOwnProperty.call(message, "gcsUri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.gcsUri); - if (message.content != null && Object.hasOwnProperty.call(message, "content")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.content); - return writer; - }; + /** + * Decodes a VersionMetrics message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics} VersionMetrics + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VersionMetrics.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified ExportTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse} message ExportTestCasesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExportTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Verifies a VersionMetrics message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VersionMetrics.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.metrics != null && message.hasOwnProperty("metrics")) { + if (!Array.isArray(message.metrics)) + return "metrics: array expected"; + for (var i = 0; i < message.metrics.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.verify(message.metrics[i]); + if (error) + return "metrics." + error; + } + } + if (message.sessionCount != null && message.hasOwnProperty("sessionCount")) + if (!$util.isInteger(message.sessionCount)) + return "sessionCount: integer expected"; + return null; + }; - /** - * Decodes an ExportTestCasesResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse} ExportTestCasesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExportTestCasesResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.gcsUri = reader.string(); - break; - case 2: - message.content = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a VersionMetrics message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics} VersionMetrics + */ + VersionMetrics.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics(); + if (object.version != null) + message.version = String(object.version); + if (object.metrics) { + if (!Array.isArray(object.metrics)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.metrics: array expected"); + message.metrics = []; + for (var i = 0; i < object.metrics.length; ++i) { + if (typeof object.metrics[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.metrics: object expected"); + message.metrics[i] = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.fromObject(object.metrics[i]); + } + } + if (object.sessionCount != null) + message.sessionCount = object.sessionCount | 0; + return message; + }; - /** - * Decodes an ExportTestCasesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse} ExportTestCasesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExportTestCasesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a plain object from a VersionMetrics message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics} message VersionMetrics + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VersionMetrics.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.metrics = []; + if (options.defaults) { + object.version = ""; + object.sessionCount = 0; + } + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + if (message.metrics && message.metrics.length) { + object.metrics = []; + for (var j = 0; j < message.metrics.length; ++j) + object.metrics[j] = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.toObject(message.metrics[j], options); + } + if (message.sessionCount != null && message.hasOwnProperty("sessionCount")) + object.sessionCount = message.sessionCount; + return object; + }; + + /** + * Converts this VersionMetrics to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics + * @instance + * @returns {Object.} JSON object + */ + VersionMetrics.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Verifies an ExportTestCasesResponse message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExportTestCasesResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { - properties.destination = 1; - if (!$util.isString(message.gcsUri)) - return "gcsUri: string expected"; - } - if (message.content != null && message.hasOwnProperty("content")) { - if (properties.destination === 1) - return "destination: multiple values"; - properties.destination = 1; - if (!(message.content && typeof message.content.length === "number" || $util.isString(message.content))) - return "content: buffer expected"; - } - return null; - }; + return VersionMetrics; + })(); - /** - * Creates an ExportTestCasesResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse} ExportTestCasesResponse - */ - ExportTestCasesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse(); - if (object.gcsUri != null) - message.gcsUri = String(object.gcsUri); - if (object.content != null) - if (typeof object.content === "string") - $util.base64.decode(object.content, message.content = $util.newBuffer($util.base64.length(object.content)), 0); - else if (object.content.length) - message.content = object.content; - return message; - }; + /** + * MetricType enum. + * @name google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType + * @enum {number} + * @property {number} METRIC_UNSPECIFIED=0 METRIC_UNSPECIFIED value + * @property {number} CONTAINED_SESSION_NO_CALLBACK_RATE=1 CONTAINED_SESSION_NO_CALLBACK_RATE value + * @property {number} LIVE_AGENT_HANDOFF_RATE=2 LIVE_AGENT_HANDOFF_RATE value + * @property {number} CALLBACK_SESSION_RATE=3 CALLBACK_SESSION_RATE value + * @property {number} ABANDONED_SESSION_RATE=4 ABANDONED_SESSION_RATE value + * @property {number} SESSION_END_RATE=5 SESSION_END_RATE value + */ + Result.MetricType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "METRIC_UNSPECIFIED"] = 0; + values[valuesById[1] = "CONTAINED_SESSION_NO_CALLBACK_RATE"] = 1; + values[valuesById[2] = "LIVE_AGENT_HANDOFF_RATE"] = 2; + values[valuesById[3] = "CALLBACK_SESSION_RATE"] = 3; + values[valuesById[4] = "ABANDONED_SESSION_RATE"] = 4; + values[valuesById[5] = "SESSION_END_RATE"] = 5; + return values; + })(); - /** - * Creates a plain object from an ExportTestCasesResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse} message ExportTestCasesResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ExportTestCasesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { - object.gcsUri = message.gcsUri; - if (options.oneofs) - object.destination = "gcsUri"; - } - if (message.content != null && message.hasOwnProperty("content")) { - object.content = options.bytes === String ? $util.base64.encode(message.content, 0, message.content.length) : options.bytes === Array ? Array.prototype.slice.call(message.content) : message.content; - if (options.oneofs) - object.destination = "content"; - } - return object; - }; + /** + * CountType enum. + * @name google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType + * @enum {number} + * @property {number} COUNT_TYPE_UNSPECIFIED=0 COUNT_TYPE_UNSPECIFIED value + * @property {number} TOTAL_NO_MATCH_COUNT=1 TOTAL_NO_MATCH_COUNT value + * @property {number} TOTAL_TURN_COUNT=2 TOTAL_TURN_COUNT value + * @property {number} AVERAGE_TURN_COUNT=3 AVERAGE_TURN_COUNT value + */ + Result.CountType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "COUNT_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "TOTAL_NO_MATCH_COUNT"] = 1; + values[valuesById[2] = "TOTAL_TURN_COUNT"] = 2; + values[valuesById[3] = "AVERAGE_TURN_COUNT"] = 3; + return values; + })(); + + return Result; + })(); /** - * Converts this ExportTestCasesResponse to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse - * @instance - * @returns {Object.} JSON object + * State enum. + * @name google.cloud.dialogflow.cx.v3beta1.Experiment.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} DRAFT=1 DRAFT value + * @property {number} RUNNING=2 RUNNING value + * @property {number} DONE=3 DONE value */ - ExportTestCasesResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Experiment.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "DRAFT"] = 1; + values[valuesById[2] = "RUNNING"] = 2; + values[valuesById[3] = "DONE"] = 3; + return values; + })(); - return ExportTestCasesResponse; + return Experiment; })(); - v3beta1.ExportTestCasesMetadata = (function() { + v3beta1.VersionVariants = (function() { /** - * Properties of an ExportTestCasesMetadata. + * Properties of a VersionVariants. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IExportTestCasesMetadata + * @interface IVersionVariants + * @property {Array.|null} [variants] VersionVariants variants */ /** - * Constructs a new ExportTestCasesMetadata. + * Constructs a new VersionVariants. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an ExportTestCasesMetadata. - * @implements IExportTestCasesMetadata + * @classdesc Represents a VersionVariants. + * @implements IVersionVariants * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IVersionVariants=} [properties] Properties to set */ - function ExportTestCasesMetadata(properties) { + function VersionVariants(properties) { + this.variants = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -102952,63 +103264,79 @@ } /** - * Creates a new ExportTestCasesMetadata instance using the specified properties. + * VersionVariants variants. + * @member {Array.} variants + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants + * @instance + */ + VersionVariants.prototype.variants = $util.emptyArray; + + /** + * Creates a new VersionVariants instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata} ExportTestCasesMetadata instance + * @param {google.cloud.dialogflow.cx.v3beta1.IVersionVariants=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.VersionVariants} VersionVariants instance */ - ExportTestCasesMetadata.create = function create(properties) { - return new ExportTestCasesMetadata(properties); + VersionVariants.create = function create(properties) { + return new VersionVariants(properties); }; /** - * Encodes the specified ExportTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata.verify|verify} messages. + * Encodes the specified VersionVariants message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VersionVariants.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata} message ExportTestCasesMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IVersionVariants} message VersionVariants message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportTestCasesMetadata.encode = function encode(message, writer) { + VersionVariants.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.variants != null && message.variants.length) + for (var i = 0; i < message.variants.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant.encode(message.variants[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExportTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata.verify|verify} messages. + * Encodes the specified VersionVariants message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VersionVariants.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata} message ExportTestCasesMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IVersionVariants} message VersionVariants message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportTestCasesMetadata.encodeDelimited = function encodeDelimited(message, writer) { + VersionVariants.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportTestCasesMetadata message from the specified reader or buffer. + * Decodes a VersionVariants message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata} ExportTestCasesMetadata + * @returns {google.cloud.dialogflow.cx.v3beta1.VersionVariants} VersionVariants * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportTestCasesMetadata.decode = function decode(reader, length) { + VersionVariants.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + if (!(message.variants && message.variants.length)) + message.variants = []; + message.variants.push($root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant.decode(reader, reader.uint32())); + break; default: reader.skipType(tag & 7); break; @@ -103018,350 +103346,357 @@ }; /** - * Decodes an ExportTestCasesMetadata message from the specified reader or buffer, length delimited. + * Decodes a VersionVariants message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata} ExportTestCasesMetadata + * @returns {google.cloud.dialogflow.cx.v3beta1.VersionVariants} VersionVariants * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportTestCasesMetadata.decodeDelimited = function decodeDelimited(reader) { + VersionVariants.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportTestCasesMetadata message. + * Verifies a VersionVariants message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportTestCasesMetadata.verify = function verify(message) { + VersionVariants.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.variants != null && message.hasOwnProperty("variants")) { + if (!Array.isArray(message.variants)) + return "variants: array expected"; + for (var i = 0; i < message.variants.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant.verify(message.variants[i]); + if (error) + return "variants." + error; + } + } return null; }; /** - * Creates an ExportTestCasesMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a VersionVariants message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata} ExportTestCasesMetadata + * @returns {google.cloud.dialogflow.cx.v3beta1.VersionVariants} VersionVariants */ - ExportTestCasesMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata) + VersionVariants.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants) return object; - return new $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants(); + if (object.variants) { + if (!Array.isArray(object.variants)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.VersionVariants.variants: array expected"); + message.variants = []; + for (var i = 0; i < object.variants.length; ++i) { + if (typeof object.variants[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.VersionVariants.variants: object expected"); + message.variants[i] = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant.fromObject(object.variants[i]); + } + } + return message; }; /** - * Creates a plain object from an ExportTestCasesMetadata message. Also converts values to other types if specified. + * Creates a plain object from a VersionVariants message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata} message ExportTestCasesMetadata + * @param {google.cloud.dialogflow.cx.v3beta1.VersionVariants} message VersionVariants * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportTestCasesMetadata.toObject = function toObject() { - return {}; + VersionVariants.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.variants = []; + if (message.variants && message.variants.length) { + object.variants = []; + for (var j = 0; j < message.variants.length; ++j) + object.variants[j] = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant.toObject(message.variants[j], options); + } + return object; }; /** - * Converts this ExportTestCasesMetadata to JSON. + * Converts this VersionVariants to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants * @instance * @returns {Object.} JSON object */ - ExportTestCasesMetadata.prototype.toJSON = function toJSON() { + VersionVariants.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ExportTestCasesMetadata; - })(); - - v3beta1.ListTestCaseResultsRequest = (function() { - - /** - * Properties of a ListTestCaseResultsRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListTestCaseResultsRequest - * @property {string|null} [parent] ListTestCaseResultsRequest parent - * @property {number|null} [pageSize] ListTestCaseResultsRequest pageSize - * @property {string|null} [pageToken] ListTestCaseResultsRequest pageToken - * @property {string|null} [filter] ListTestCaseResultsRequest filter - */ - - /** - * Constructs a new ListTestCaseResultsRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListTestCaseResultsRequest. - * @implements IListTestCaseResultsRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest=} [properties] Properties to set - */ - function ListTestCaseResultsRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + VersionVariants.Variant = (function() { - /** - * ListTestCaseResultsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest - * @instance - */ - ListTestCaseResultsRequest.prototype.parent = ""; + /** + * Properties of a Variant. + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants + * @interface IVariant + * @property {string|null} [version] Variant version + * @property {number|null} [trafficAllocation] Variant trafficAllocation + * @property {boolean|null} [isControlGroup] Variant isControlGroup + */ - /** - * ListTestCaseResultsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest - * @instance - */ - ListTestCaseResultsRequest.prototype.pageSize = 0; + /** + * Constructs a new Variant. + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants + * @classdesc Represents a Variant. + * @implements IVariant + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant=} [properties] Properties to set + */ + function Variant(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * ListTestCaseResultsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest - * @instance - */ - ListTestCaseResultsRequest.prototype.pageToken = ""; + /** + * Variant version. + * @member {string} version + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant + * @instance + */ + Variant.prototype.version = ""; - /** - * ListTestCaseResultsRequest filter. - * @member {string} filter - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest - * @instance - */ - ListTestCaseResultsRequest.prototype.filter = ""; + /** + * Variant trafficAllocation. + * @member {number} trafficAllocation + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant + * @instance + */ + Variant.prototype.trafficAllocation = 0; - /** - * Creates a new ListTestCaseResultsRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest} ListTestCaseResultsRequest instance - */ - ListTestCaseResultsRequest.create = function create(properties) { - return new ListTestCaseResultsRequest(properties); - }; + /** + * Variant isControlGroup. + * @member {boolean} isControlGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant + * @instance + */ + Variant.prototype.isControlGroup = false; - /** - * Encodes the specified ListTestCaseResultsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest} message ListTestCaseResultsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListTestCaseResultsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); - return writer; - }; + /** + * Creates a new Variant instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant} Variant instance + */ + Variant.create = function create(properties) { + return new Variant(properties); + }; - /** - * Encodes the specified ListTestCaseResultsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest} message ListTestCaseResultsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListTestCaseResultsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Variant message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant} message Variant message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Variant.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); + if (message.trafficAllocation != null && Object.hasOwnProperty.call(message, "trafficAllocation")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.trafficAllocation); + if (message.isControlGroup != null && Object.hasOwnProperty.call(message, "isControlGroup")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isControlGroup); + return writer; + }; - /** - * Decodes a ListTestCaseResultsRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest} ListTestCaseResultsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListTestCaseResultsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); - break; - case 4: - message.filter = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Encodes the specified Variant message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant} message Variant message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Variant.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Variant message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant} Variant + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Variant.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.version = reader.string(); + break; + case 2: + message.trafficAllocation = reader.float(); + break; + case 3: + message.isControlGroup = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a ListTestCaseResultsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest} ListTestCaseResultsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListTestCaseResultsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a Variant message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant} Variant + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Variant.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a ListTestCaseResultsRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListTestCaseResultsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - return null; - }; + /** + * Verifies a Variant message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Variant.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.trafficAllocation != null && message.hasOwnProperty("trafficAllocation")) + if (typeof message.trafficAllocation !== "number") + return "trafficAllocation: number expected"; + if (message.isControlGroup != null && message.hasOwnProperty("isControlGroup")) + if (typeof message.isControlGroup !== "boolean") + return "isControlGroup: boolean expected"; + return null; + }; - /** - * Creates a ListTestCaseResultsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest} ListTestCaseResultsRequest - */ - ListTestCaseResultsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest) + /** + * Creates a Variant message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant} Variant + */ + Variant.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant(); + if (object.version != null) + message.version = String(object.version); + if (object.trafficAllocation != null) + message.trafficAllocation = Number(object.trafficAllocation); + if (object.isControlGroup != null) + message.isControlGroup = Boolean(object.isControlGroup); + return message; + }; + + /** + * Creates a plain object from a Variant message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant} message Variant + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Variant.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.version = ""; + object.trafficAllocation = 0; + object.isControlGroup = false; + } + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + if (message.trafficAllocation != null && message.hasOwnProperty("trafficAllocation")) + object.trafficAllocation = options.json && !isFinite(message.trafficAllocation) ? String(message.trafficAllocation) : message.trafficAllocation; + if (message.isControlGroup != null && message.hasOwnProperty("isControlGroup")) + object.isControlGroup = message.isControlGroup; return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.filter != null) - message.filter = String(object.filter); - return message; - }; + }; - /** - * Creates a plain object from a ListTestCaseResultsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest} message ListTestCaseResultsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListTestCaseResultsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - return object; - }; + /** + * Converts this Variant to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant + * @instance + * @returns {Object.} JSON object + */ + Variant.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this ListTestCaseResultsRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest - * @instance - * @returns {Object.} JSON object - */ - ListTestCaseResultsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return Variant; + })(); - return ListTestCaseResultsRequest; + return VersionVariants; })(); - v3beta1.ListTestCaseResultsResponse = (function() { + v3beta1.VariantsHistory = (function() { /** - * Properties of a ListTestCaseResultsResponse. + * Properties of a VariantsHistory. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListTestCaseResultsResponse - * @property {Array.|null} [testCaseResults] ListTestCaseResultsResponse testCaseResults - * @property {string|null} [nextPageToken] ListTestCaseResultsResponse nextPageToken + * @interface IVariantsHistory + * @property {google.cloud.dialogflow.cx.v3beta1.IVersionVariants|null} [versionVariants] VariantsHistory versionVariants + * @property {google.protobuf.ITimestamp|null} [updateTime] VariantsHistory updateTime */ /** - * Constructs a new ListTestCaseResultsResponse. + * Constructs a new VariantsHistory. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListTestCaseResultsResponse. - * @implements IListTestCaseResultsResponse + * @classdesc Represents a VariantsHistory. + * @implements IVariantsHistory * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IVariantsHistory=} [properties] Properties to set */ - function ListTestCaseResultsResponse(properties) { - this.testCaseResults = []; + function VariantsHistory(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -103369,91 +103704,102 @@ } /** - * ListTestCaseResultsResponse testCaseResults. - * @member {Array.} testCaseResults - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse + * VariantsHistory versionVariants. + * @member {google.cloud.dialogflow.cx.v3beta1.IVersionVariants|null|undefined} versionVariants + * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory * @instance */ - ListTestCaseResultsResponse.prototype.testCaseResults = $util.emptyArray; + VariantsHistory.prototype.versionVariants = null; /** - * ListTestCaseResultsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse + * VariantsHistory updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory * @instance */ - ListTestCaseResultsResponse.prototype.nextPageToken = ""; + VariantsHistory.prototype.updateTime = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Creates a new ListTestCaseResultsResponse instance using the specified properties. + * VariantsHistory variants. + * @member {"versionVariants"|undefined} variants + * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory + * @instance + */ + Object.defineProperty(VariantsHistory.prototype, "variants", { + get: $util.oneOfGetter($oneOfFields = ["versionVariants"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new VariantsHistory instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse} ListTestCaseResultsResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.IVariantsHistory=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.VariantsHistory} VariantsHistory instance */ - ListTestCaseResultsResponse.create = function create(properties) { - return new ListTestCaseResultsResponse(properties); + VariantsHistory.create = function create(properties) { + return new VariantsHistory(properties); }; /** - * Encodes the specified ListTestCaseResultsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse.verify|verify} messages. + * Encodes the specified VariantsHistory message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VariantsHistory.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse} message ListTestCaseResultsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IVariantsHistory} message VariantsHistory message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTestCaseResultsResponse.encode = function encode(message, writer) { + VariantsHistory.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.testCaseResults != null && message.testCaseResults.length) - for (var i = 0; i < message.testCaseResults.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.encode(message.testCaseResults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.versionVariants != null && Object.hasOwnProperty.call(message, "versionVariants")) + $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.encode(message.versionVariants, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListTestCaseResultsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse.verify|verify} messages. + * Encodes the specified VariantsHistory message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VariantsHistory.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse} message ListTestCaseResultsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IVariantsHistory} message VariantsHistory message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTestCaseResultsResponse.encodeDelimited = function encodeDelimited(message, writer) { + VariantsHistory.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTestCaseResultsResponse message from the specified reader or buffer. + * Decodes a VariantsHistory message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse} ListTestCaseResultsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.VariantsHistory} VariantsHistory * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTestCaseResultsResponse.decode = function decode(reader, length) { + VariantsHistory.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.VariantsHistory(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.testCaseResults && message.testCaseResults.length)) - message.testCaseResults = []; - message.testCaseResults.push($root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.decode(reader, reader.uint32())); + message.versionVariants = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.decode(reader, reader.uint32()); break; case 2: - message.nextPageToken = reader.string(); + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -103464,352 +103810,365 @@ }; /** - * Decodes a ListTestCaseResultsResponse message from the specified reader or buffer, length delimited. + * Decodes a VariantsHistory message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse} ListTestCaseResultsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.VariantsHistory} VariantsHistory * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTestCaseResultsResponse.decodeDelimited = function decodeDelimited(reader) { + VariantsHistory.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTestCaseResultsResponse message. + * Verifies a VariantsHistory message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTestCaseResultsResponse.verify = function verify(message) { + VariantsHistory.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.testCaseResults != null && message.hasOwnProperty("testCaseResults")) { - if (!Array.isArray(message.testCaseResults)) - return "testCaseResults: array expected"; - for (var i = 0; i < message.testCaseResults.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.verify(message.testCaseResults[i]); + var properties = {}; + if (message.versionVariants != null && message.hasOwnProperty("versionVariants")) { + properties.variants = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.verify(message.versionVariants); if (error) - return "testCaseResults." + error; + return "versionVariants." + error; } } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } return null; }; /** - * Creates a ListTestCaseResultsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VariantsHistory message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse} ListTestCaseResultsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.VariantsHistory} VariantsHistory */ - ListTestCaseResultsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse) + VariantsHistory.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.VariantsHistory) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse(); - if (object.testCaseResults) { - if (!Array.isArray(object.testCaseResults)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse.testCaseResults: array expected"); - message.testCaseResults = []; - for (var i = 0; i < object.testCaseResults.length; ++i) { - if (typeof object.testCaseResults[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse.testCaseResults: object expected"); - message.testCaseResults[i] = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.fromObject(object.testCaseResults[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.VariantsHistory(); + if (object.versionVariants != null) { + if (typeof object.versionVariants !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.VariantsHistory.versionVariants: object expected"); + message.versionVariants = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.fromObject(object.versionVariants); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.VariantsHistory.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListTestCaseResultsResponse message. Also converts values to other types if specified. + * Creates a plain object from a VariantsHistory message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse} message ListTestCaseResultsResponse + * @param {google.cloud.dialogflow.cx.v3beta1.VariantsHistory} message VariantsHistory * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTestCaseResultsResponse.toObject = function toObject(message, options) { + VariantsHistory.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.testCaseResults = []; if (options.defaults) - object.nextPageToken = ""; - if (message.testCaseResults && message.testCaseResults.length) { - object.testCaseResults = []; - for (var j = 0; j < message.testCaseResults.length; ++j) - object.testCaseResults[j] = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.toObject(message.testCaseResults[j], options); + object.updateTime = null; + if (message.versionVariants != null && message.hasOwnProperty("versionVariants")) { + object.versionVariants = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.toObject(message.versionVariants, options); + if (options.oneofs) + object.variants = "versionVariants"; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); return object; }; /** - * Converts this ListTestCaseResultsResponse to JSON. + * Converts this VariantsHistory to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory * @instance * @returns {Object.} JSON object */ - ListTestCaseResultsResponse.prototype.toJSON = function toJSON() { + VariantsHistory.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListTestCaseResultsResponse; - })(); - - /** - * TestResult enum. - * @name google.cloud.dialogflow.cx.v3beta1.TestResult - * @enum {number} - * @property {number} TEST_RESULT_UNSPECIFIED=0 TEST_RESULT_UNSPECIFIED value - * @property {number} PASSED=1 PASSED value - * @property {number} FAILED=2 FAILED value - */ - v3beta1.TestResult = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TEST_RESULT_UNSPECIFIED"] = 0; - values[valuesById[1] = "PASSED"] = 1; - values[valuesById[2] = "FAILED"] = 2; - return values; + return VariantsHistory; })(); - v3beta1.TransitionRouteGroups = (function() { + v3beta1.ListExperimentsRequest = (function() { /** - * Constructs a new TransitionRouteGroups service. + * Properties of a ListExperimentsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a TransitionRouteGroups - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function TransitionRouteGroups(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (TransitionRouteGroups.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = TransitionRouteGroups; - - /** - * Creates new TransitionRouteGroups service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {TransitionRouteGroups} RPC service. Useful where requests and/or responses are streamed. - */ - TransitionRouteGroups.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#listTransitionRouteGroups}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups - * @typedef ListTransitionRouteGroupsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse} [response] ListTransitionRouteGroupsResponse + * @interface IListExperimentsRequest + * @property {string|null} [parent] ListExperimentsRequest parent + * @property {number|null} [pageSize] ListExperimentsRequest pageSize + * @property {string|null} [pageToken] ListExperimentsRequest pageToken */ /** - * Calls ListTransitionRouteGroups. - * @function listTransitionRouteGroups - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest} request ListTransitionRouteGroupsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.ListTransitionRouteGroupsCallback} callback Node-style callback called with the error, if any, and ListTransitionRouteGroupsResponse - * @returns {undefined} - * @variation 1 + * Constructs a new ListExperimentsRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a ListExperimentsRequest. + * @implements IListExperimentsRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest=} [properties] Properties to set */ - Object.defineProperty(TransitionRouteGroups.prototype.listTransitionRouteGroups = function listTransitionRouteGroups(request, callback) { - return this.rpcCall(listTransitionRouteGroups, $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse, request, callback); - }, "name", { value: "ListTransitionRouteGroups" }); + function ListExperimentsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls ListTransitionRouteGroups. - * @function listTransitionRouteGroups - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * ListExperimentsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest} request ListTransitionRouteGroupsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#getTransitionRouteGroup}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups - * @typedef GetTransitionRouteGroupCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} [response] TransitionRouteGroup */ + ListExperimentsRequest.prototype.parent = ""; /** - * Calls GetTransitionRouteGroup. - * @function getTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * ListExperimentsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest} request GetTransitionRouteGroupRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.GetTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and TransitionRouteGroup - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(TransitionRouteGroups.prototype.getTransitionRouteGroup = function getTransitionRouteGroup(request, callback) { - return this.rpcCall(getTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest, $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup, request, callback); - }, "name", { value: "GetTransitionRouteGroup" }); + ListExperimentsRequest.prototype.pageSize = 0; /** - * Calls GetTransitionRouteGroup. - * @function getTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * ListExperimentsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest} request GetTransitionRouteGroupRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + ListExperimentsRequest.prototype.pageToken = ""; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#createTransitionRouteGroup}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups - * @typedef CreateTransitionRouteGroupCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} [response] TransitionRouteGroup + * Creates a new ListExperimentsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest} ListExperimentsRequest instance */ + ListExperimentsRequest.create = function create(properties) { + return new ListExperimentsRequest(properties); + }; /** - * Calls CreateTransitionRouteGroup. - * @function createTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest} request CreateTransitionRouteGroupRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.CreateTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and TransitionRouteGroup - * @returns {undefined} - * @variation 1 + * Encodes the specified ListExperimentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest} message ListExperimentsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(TransitionRouteGroups.prototype.createTransitionRouteGroup = function createTransitionRouteGroup(request, callback) { - return this.rpcCall(createTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest, $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup, request, callback); - }, "name", { value: "CreateTransitionRouteGroup" }); + ListExperimentsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + return writer; + }; /** - * Calls CreateTransitionRouteGroup. - * @function createTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest} request CreateTransitionRouteGroupRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified ListExperimentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest} message ListExperimentsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + ListExperimentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#updateTransitionRouteGroup}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups - * @typedef UpdateTransitionRouteGroupCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} [response] TransitionRouteGroup + * Decodes a ListExperimentsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest} ListExperimentsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + ListExperimentsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls UpdateTransitionRouteGroup. - * @function updateTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest} request UpdateTransitionRouteGroupRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.UpdateTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and TransitionRouteGroup - * @returns {undefined} - * @variation 1 + * Decodes a ListExperimentsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest} ListExperimentsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(TransitionRouteGroups.prototype.updateTransitionRouteGroup = function updateTransitionRouteGroup(request, callback) { - return this.rpcCall(updateTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest, $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup, request, callback); - }, "name", { value: "UpdateTransitionRouteGroup" }); + ListExperimentsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls UpdateTransitionRouteGroup. - * @function updateTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest} request UpdateTransitionRouteGroupRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a ListExperimentsRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + ListExperimentsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + return null; + }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#deleteTransitionRouteGroup}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups - * @typedef DeleteTransitionRouteGroupCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Creates a ListExperimentsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest} ListExperimentsRequest */ + ListExperimentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + return message; + }; /** - * Calls DeleteTransitionRouteGroup. - * @function deleteTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest} request DeleteTransitionRouteGroupRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.DeleteTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * Creates a plain object from a ListExperimentsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest} message ListExperimentsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(TransitionRouteGroups.prototype.deleteTransitionRouteGroup = function deleteTransitionRouteGroup(request, callback) { - return this.rpcCall(deleteTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteTransitionRouteGroup" }); + ListExperimentsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + return object; + }; /** - * Calls DeleteTransitionRouteGroup. - * @function deleteTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * Converts this ListExperimentsRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest} request DeleteTransitionRouteGroupRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + ListExperimentsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return TransitionRouteGroups; + return ListExperimentsRequest; })(); - v3beta1.TransitionRouteGroup = (function() { + v3beta1.ListExperimentsResponse = (function() { /** - * Properties of a TransitionRouteGroup. + * Properties of a ListExperimentsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ITransitionRouteGroup - * @property {string|null} [name] TransitionRouteGroup name - * @property {string|null} [displayName] TransitionRouteGroup displayName - * @property {Array.|null} [transitionRoutes] TransitionRouteGroup transitionRoutes + * @interface IListExperimentsResponse + * @property {Array.|null} [experiments] ListExperimentsResponse experiments + * @property {string|null} [nextPageToken] ListExperimentsResponse nextPageToken */ /** - * Constructs a new TransitionRouteGroup. + * Constructs a new ListExperimentsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a TransitionRouteGroup. - * @implements ITransitionRouteGroup + * @classdesc Represents a ListExperimentsResponse. + * @implements IListExperimentsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsResponse=} [properties] Properties to set */ - function TransitionRouteGroup(properties) { - this.transitionRoutes = []; + function ListExperimentsResponse(properties) { + this.experiments = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -103817,104 +104176,91 @@ } /** - * TransitionRouteGroup name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup - * @instance - */ - TransitionRouteGroup.prototype.name = ""; - - /** - * TransitionRouteGroup displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * ListExperimentsResponse experiments. + * @member {Array.} experiments + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse * @instance */ - TransitionRouteGroup.prototype.displayName = ""; + ListExperimentsResponse.prototype.experiments = $util.emptyArray; /** - * TransitionRouteGroup transitionRoutes. - * @member {Array.} transitionRoutes - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * ListExperimentsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse * @instance */ - TransitionRouteGroup.prototype.transitionRoutes = $util.emptyArray; + ListExperimentsResponse.prototype.nextPageToken = ""; /** - * Creates a new TransitionRouteGroup instance using the specified properties. + * Creates a new ListExperimentsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} TransitionRouteGroup instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse} ListExperimentsResponse instance */ - TransitionRouteGroup.create = function create(properties) { - return new TransitionRouteGroup(properties); + ListExperimentsResponse.create = function create(properties) { + return new ListExperimentsResponse(properties); }; /** - * Encodes the specified TransitionRouteGroup message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify|verify} messages. + * Encodes the specified ListExperimentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup} message TransitionRouteGroup message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsResponse} message ListExperimentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TransitionRouteGroup.encode = function encode(message, writer) { + ListExperimentsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.transitionRoutes != null && message.transitionRoutes.length) - for (var i = 0; i < message.transitionRoutes.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.encode(message.transitionRoutes[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.experiments != null && message.experiments.length) + for (var i = 0; i < message.experiments.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Experiment.encode(message.experiments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified TransitionRouteGroup message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify|verify} messages. + * Encodes the specified ListExperimentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup} message TransitionRouteGroup message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsResponse} message ListExperimentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TransitionRouteGroup.encodeDelimited = function encodeDelimited(message, writer) { + ListExperimentsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TransitionRouteGroup message from the specified reader or buffer. + * Decodes a ListExperimentsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} TransitionRouteGroup + * @returns {google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse} ListExperimentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TransitionRouteGroup.decode = function decode(reader, length) { + ListExperimentsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.experiments && message.experiments.length)) + message.experiments = []; + message.experiments.push($root.google.cloud.dialogflow.cx.v3beta1.Experiment.decode(reader, reader.uint32())); break; case 2: - message.displayName = reader.string(); - break; - case 5: - if (!(message.transitionRoutes && message.transitionRoutes.length)) - message.transitionRoutes = []; - message.transitionRoutes.push($root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.decode(reader, reader.uint32())); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -103925,145 +104271,133 @@ }; /** - * Decodes a TransitionRouteGroup message from the specified reader or buffer, length delimited. + * Decodes a ListExperimentsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} TransitionRouteGroup + * @returns {google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse} ListExperimentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TransitionRouteGroup.decodeDelimited = function decodeDelimited(reader) { + ListExperimentsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TransitionRouteGroup message. + * Verifies a ListExperimentsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TransitionRouteGroup.verify = function verify(message) { + ListExperimentsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.transitionRoutes != null && message.hasOwnProperty("transitionRoutes")) { - if (!Array.isArray(message.transitionRoutes)) - return "transitionRoutes: array expected"; - for (var i = 0; i < message.transitionRoutes.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.verify(message.transitionRoutes[i]); + if (message.experiments != null && message.hasOwnProperty("experiments")) { + if (!Array.isArray(message.experiments)) + return "experiments: array expected"; + for (var i = 0; i < message.experiments.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.verify(message.experiments[i]); if (error) - return "transitionRoutes." + error; + return "experiments." + error; } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a TransitionRouteGroup message from a plain object. Also converts values to their respective internal types. + * Creates a ListExperimentsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} TransitionRouteGroup + * @returns {google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse} ListExperimentsResponse */ - TransitionRouteGroup.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup) + ListExperimentsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.transitionRoutes) { - if (!Array.isArray(object.transitionRoutes)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.transitionRoutes: array expected"); - message.transitionRoutes = []; - for (var i = 0; i < object.transitionRoutes.length; ++i) { - if (typeof object.transitionRoutes[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.transitionRoutes: object expected"); - message.transitionRoutes[i] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.fromObject(object.transitionRoutes[i]); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse(); + if (object.experiments) { + if (!Array.isArray(object.experiments)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse.experiments: array expected"); + message.experiments = []; + for (var i = 0; i < object.experiments.length; ++i) { + if (typeof object.experiments[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse.experiments: object expected"); + message.experiments[i] = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.fromObject(object.experiments[i]); } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a TransitionRouteGroup message. Also converts values to other types if specified. + * Creates a plain object from a ListExperimentsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} message TransitionRouteGroup + * @param {google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse} message ListExperimentsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TransitionRouteGroup.toObject = function toObject(message, options) { + ListExperimentsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.transitionRoutes = []; - if (options.defaults) { - object.name = ""; - object.displayName = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.transitionRoutes && message.transitionRoutes.length) { - object.transitionRoutes = []; - for (var j = 0; j < message.transitionRoutes.length; ++j) - object.transitionRoutes[j] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.toObject(message.transitionRoutes[j], options); + object.experiments = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.experiments && message.experiments.length) { + object.experiments = []; + for (var j = 0; j < message.experiments.length; ++j) + object.experiments[j] = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.toObject(message.experiments[j], options); } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this TransitionRouteGroup to JSON. + * Converts this ListExperimentsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse * @instance * @returns {Object.} JSON object */ - TransitionRouteGroup.prototype.toJSON = function toJSON() { + ListExperimentsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TransitionRouteGroup; + return ListExperimentsResponse; })(); - v3beta1.ListTransitionRouteGroupsRequest = (function() { + v3beta1.GetExperimentRequest = (function() { /** - * Properties of a ListTransitionRouteGroupsRequest. + * Properties of a GetExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListTransitionRouteGroupsRequest - * @property {string|null} [parent] ListTransitionRouteGroupsRequest parent - * @property {number|null} [pageSize] ListTransitionRouteGroupsRequest pageSize - * @property {string|null} [pageToken] ListTransitionRouteGroupsRequest pageToken - * @property {string|null} [languageCode] ListTransitionRouteGroupsRequest languageCode + * @interface IGetExperimentRequest + * @property {string|null} [name] GetExperimentRequest name */ /** - * Constructs a new ListTransitionRouteGroupsRequest. + * Constructs a new GetExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListTransitionRouteGroupsRequest. - * @implements IListTransitionRouteGroupsRequest + * @classdesc Represents a GetExperimentRequest. + * @implements IGetExperimentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest=} [properties] Properties to set */ - function ListTransitionRouteGroupsRequest(properties) { + function GetExperimentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -104071,114 +104405,75 @@ } /** - * ListTransitionRouteGroupsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest - * @instance - */ - ListTransitionRouteGroupsRequest.prototype.parent = ""; - - /** - * ListTransitionRouteGroupsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest - * @instance - */ - ListTransitionRouteGroupsRequest.prototype.pageSize = 0; - - /** - * ListTransitionRouteGroupsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest - * @instance - */ - ListTransitionRouteGroupsRequest.prototype.pageToken = ""; - - /** - * ListTransitionRouteGroupsRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * GetExperimentRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest * @instance */ - ListTransitionRouteGroupsRequest.prototype.languageCode = ""; + GetExperimentRequest.prototype.name = ""; /** - * Creates a new ListTransitionRouteGroupsRequest instance using the specified properties. + * Creates a new GetExperimentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest} GetExperimentRequest instance */ - ListTransitionRouteGroupsRequest.create = function create(properties) { - return new ListTransitionRouteGroupsRequest(properties); + GetExperimentRequest.create = function create(properties) { + return new GetExperimentRequest(properties); }; /** - * Encodes the specified ListTransitionRouteGroupsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest.verify|verify} messages. + * Encodes the specified GetExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest} message ListTransitionRouteGroupsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest} message GetExperimentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTransitionRouteGroupsRequest.encode = function encode(message, writer) { + GetExperimentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.languageCode); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListTransitionRouteGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest.verify|verify} messages. + * Encodes the specified GetExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest} message ListTransitionRouteGroupsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest} message GetExperimentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTransitionRouteGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer. + * Decodes a GetExperimentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest} GetExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTransitionRouteGroupsRequest.decode = function decode(reader, length) { + GetExperimentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); - break; - case 4: - message.languageCode = reader.string(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -104189,134 +104484,108 @@ }; /** - * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetExperimentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest} GetExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTransitionRouteGroupsRequest.decodeDelimited = function decodeDelimited(reader) { + GetExperimentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTransitionRouteGroupsRequest message. + * Verifies a GetExperimentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTransitionRouteGroupsRequest.verify = function verify(message) { + GetExperimentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListTransitionRouteGroupsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetExperimentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest} GetExperimentRequest */ - ListTransitionRouteGroupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest) + GetExperimentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListTransitionRouteGroupsRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetExperimentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest} message ListTransitionRouteGroupsRequest + * @param {google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest} message GetExperimentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTransitionRouteGroupsRequest.toObject = function toObject(message, options) { + GetExperimentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.languageCode = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListTransitionRouteGroupsRequest to JSON. + * Converts this GetExperimentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest * @instance * @returns {Object.} JSON object */ - ListTransitionRouteGroupsRequest.prototype.toJSON = function toJSON() { + GetExperimentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListTransitionRouteGroupsRequest; + return GetExperimentRequest; })(); - v3beta1.ListTransitionRouteGroupsResponse = (function() { + v3beta1.CreateExperimentRequest = (function() { /** - * Properties of a ListTransitionRouteGroupsResponse. + * Properties of a CreateExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListTransitionRouteGroupsResponse - * @property {Array.|null} [transitionRouteGroups] ListTransitionRouteGroupsResponse transitionRouteGroups - * @property {string|null} [nextPageToken] ListTransitionRouteGroupsResponse nextPageToken + * @interface ICreateExperimentRequest + * @property {string|null} [parent] CreateExperimentRequest parent + * @property {google.cloud.dialogflow.cx.v3beta1.IExperiment|null} [experiment] CreateExperimentRequest experiment */ /** - * Constructs a new ListTransitionRouteGroupsResponse. + * Constructs a new CreateExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListTransitionRouteGroupsResponse. - * @implements IListTransitionRouteGroupsResponse + * @classdesc Represents a CreateExperimentRequest. + * @implements ICreateExperimentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest=} [properties] Properties to set */ - function ListTransitionRouteGroupsResponse(properties) { - this.transitionRouteGroups = []; + function CreateExperimentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -104324,91 +104593,88 @@ } /** - * ListTransitionRouteGroupsResponse transitionRouteGroups. - * @member {Array.} transitionRouteGroups - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse + * CreateExperimentRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest * @instance */ - ListTransitionRouteGroupsResponse.prototype.transitionRouteGroups = $util.emptyArray; + CreateExperimentRequest.prototype.parent = ""; /** - * ListTransitionRouteGroupsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse + * CreateExperimentRequest experiment. + * @member {google.cloud.dialogflow.cx.v3beta1.IExperiment|null|undefined} experiment + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest * @instance */ - ListTransitionRouteGroupsResponse.prototype.nextPageToken = ""; + CreateExperimentRequest.prototype.experiment = null; /** - * Creates a new ListTransitionRouteGroupsResponse instance using the specified properties. + * Creates a new CreateExperimentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest} CreateExperimentRequest instance */ - ListTransitionRouteGroupsResponse.create = function create(properties) { - return new ListTransitionRouteGroupsResponse(properties); + CreateExperimentRequest.create = function create(properties) { + return new CreateExperimentRequest(properties); }; /** - * Encodes the specified ListTransitionRouteGroupsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse.verify|verify} messages. + * Encodes the specified CreateExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse} message ListTransitionRouteGroupsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest} message CreateExperimentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTransitionRouteGroupsResponse.encode = function encode(message, writer) { + CreateExperimentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.transitionRouteGroups != null && message.transitionRouteGroups.length) - for (var i = 0; i < message.transitionRouteGroups.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.encode(message.transitionRouteGroups[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.experiment != null && Object.hasOwnProperty.call(message, "experiment")) + $root.google.cloud.dialogflow.cx.v3beta1.Experiment.encode(message.experiment, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListTransitionRouteGroupsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse.verify|verify} messages. + * Encodes the specified CreateExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse} message ListTransitionRouteGroupsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest} message CreateExperimentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTransitionRouteGroupsResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTransitionRouteGroupsResponse message from the specified reader or buffer. + * Decodes a CreateExperimentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest} CreateExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTransitionRouteGroupsResponse.decode = function decode(reader, length) { + CreateExperimentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.transitionRouteGroups && message.transitionRouteGroups.length)) - message.transitionRouteGroups = []; - message.transitionRouteGroups.push($root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.decode(reader, reader.uint32())); + message.parent = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + message.experiment = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -104419,134 +104685,122 @@ }; /** - * Decodes a ListTransitionRouteGroupsResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateExperimentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest} CreateExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTransitionRouteGroupsResponse.decodeDelimited = function decodeDelimited(reader) { + CreateExperimentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTransitionRouteGroupsResponse message. + * Verifies a CreateExperimentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTransitionRouteGroupsResponse.verify = function verify(message) { + CreateExperimentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.transitionRouteGroups != null && message.hasOwnProperty("transitionRouteGroups")) { - if (!Array.isArray(message.transitionRouteGroups)) - return "transitionRouteGroups: array expected"; - for (var i = 0; i < message.transitionRouteGroups.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify(message.transitionRouteGroups[i]); - if (error) - return "transitionRouteGroups." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.experiment != null && message.hasOwnProperty("experiment")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.verify(message.experiment); + if (error) + return "experiment." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListTransitionRouteGroupsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateExperimentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest} CreateExperimentRequest */ - ListTransitionRouteGroupsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse) + CreateExperimentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse(); - if (object.transitionRouteGroups) { - if (!Array.isArray(object.transitionRouteGroups)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse.transitionRouteGroups: array expected"); - message.transitionRouteGroups = []; - for (var i = 0; i < object.transitionRouteGroups.length; ++i) { - if (typeof object.transitionRouteGroups[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse.transitionRouteGroups: object expected"); - message.transitionRouteGroups[i] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.fromObject(object.transitionRouteGroups[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.experiment != null) { + if (typeof object.experiment !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest.experiment: object expected"); + message.experiment = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.fromObject(object.experiment); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListTransitionRouteGroupsResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateExperimentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse} message ListTransitionRouteGroupsResponse + * @param {google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest} message CreateExperimentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTransitionRouteGroupsResponse.toObject = function toObject(message, options) { + CreateExperimentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.transitionRouteGroups = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.transitionRouteGroups && message.transitionRouteGroups.length) { - object.transitionRouteGroups = []; - for (var j = 0; j < message.transitionRouteGroups.length; ++j) - object.transitionRouteGroups[j] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.toObject(message.transitionRouteGroups[j], options); + if (options.defaults) { + object.parent = ""; + object.experiment = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.experiment != null && message.hasOwnProperty("experiment")) + object.experiment = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.toObject(message.experiment, options); return object; }; /** - * Converts this ListTransitionRouteGroupsResponse to JSON. + * Converts this CreateExperimentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest * @instance * @returns {Object.} JSON object */ - ListTransitionRouteGroupsResponse.prototype.toJSON = function toJSON() { + CreateExperimentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListTransitionRouteGroupsResponse; + return CreateExperimentRequest; })(); - v3beta1.GetTransitionRouteGroupRequest = (function() { + v3beta1.UpdateExperimentRequest = (function() { /** - * Properties of a GetTransitionRouteGroupRequest. + * Properties of an UpdateExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetTransitionRouteGroupRequest - * @property {string|null} [name] GetTransitionRouteGroupRequest name - * @property {string|null} [languageCode] GetTransitionRouteGroupRequest languageCode + * @interface IUpdateExperimentRequest + * @property {google.cloud.dialogflow.cx.v3beta1.IExperiment|null} [experiment] UpdateExperimentRequest experiment + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateExperimentRequest updateMask */ /** - * Constructs a new GetTransitionRouteGroupRequest. + * Constructs a new UpdateExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GetTransitionRouteGroupRequest. - * @implements IGetTransitionRouteGroupRequest + * @classdesc Represents an UpdateExperimentRequest. + * @implements IUpdateExperimentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest=} [properties] Properties to set */ - function GetTransitionRouteGroupRequest(properties) { + function UpdateExperimentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -104554,88 +104808,88 @@ } /** - * GetTransitionRouteGroupRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest + * UpdateExperimentRequest experiment. + * @member {google.cloud.dialogflow.cx.v3beta1.IExperiment|null|undefined} experiment + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest * @instance */ - GetTransitionRouteGroupRequest.prototype.name = ""; + UpdateExperimentRequest.prototype.experiment = null; /** - * GetTransitionRouteGroupRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest + * UpdateExperimentRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest * @instance */ - GetTransitionRouteGroupRequest.prototype.languageCode = ""; + UpdateExperimentRequest.prototype.updateMask = null; /** - * Creates a new GetTransitionRouteGroupRequest instance using the specified properties. + * Creates a new UpdateExperimentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest} UpdateExperimentRequest instance */ - GetTransitionRouteGroupRequest.create = function create(properties) { - return new GetTransitionRouteGroupRequest(properties); + UpdateExperimentRequest.create = function create(properties) { + return new UpdateExperimentRequest(properties); }; /** - * Encodes the specified GetTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest.verify|verify} messages. + * Encodes the specified UpdateExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest} message GetTransitionRouteGroupRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest} message UpdateExperimentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTransitionRouteGroupRequest.encode = function encode(message, writer) { + UpdateExperimentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); + if (message.experiment != null && Object.hasOwnProperty.call(message, "experiment")) + $root.google.cloud.dialogflow.cx.v3beta1.Experiment.encode(message.experiment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest.verify|verify} messages. + * Encodes the specified UpdateExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest} message GetTransitionRouteGroupRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest} message UpdateExperimentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer. + * Decodes an UpdateExperimentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest} UpdateExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTransitionRouteGroupRequest.decode = function decode(reader, length) { + UpdateExperimentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.experiment = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.decode(reader, reader.uint32()); break; case 2: - message.languageCode = reader.string(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -104646,118 +104900,126 @@ }; /** - * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateExperimentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest} UpdateExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTransitionRouteGroupRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateExperimentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetTransitionRouteGroupRequest message. + * Verifies an UpdateExperimentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetTransitionRouteGroupRequest.verify = function verify(message) { + UpdateExperimentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; + if (message.experiment != null && message.hasOwnProperty("experiment")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.verify(message.experiment); + if (error) + return "experiment." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } return null; }; /** - * Creates a GetTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateExperimentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest} UpdateExperimentRequest */ - GetTransitionRouteGroupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest) + UpdateExperimentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest(); + if (object.experiment != null) { + if (typeof object.experiment !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest.experiment: object expected"); + message.experiment = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.fromObject(object.experiment); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; /** - * Creates a plain object from a GetTransitionRouteGroupRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateExperimentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest} message GetTransitionRouteGroupRequest + * @param {google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest} message UpdateExperimentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTransitionRouteGroupRequest.toObject = function toObject(message, options) { + UpdateExperimentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.languageCode = ""; + object.experiment = null; + object.updateMask = null; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; + if (message.experiment != null && message.hasOwnProperty("experiment")) + object.experiment = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.toObject(message.experiment, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this GetTransitionRouteGroupRequest to JSON. + * Converts this UpdateExperimentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest * @instance * @returns {Object.} JSON object */ - GetTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { + UpdateExperimentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetTransitionRouteGroupRequest; + return UpdateExperimentRequest; })(); - v3beta1.CreateTransitionRouteGroupRequest = (function() { + v3beta1.DeleteExperimentRequest = (function() { /** - * Properties of a CreateTransitionRouteGroupRequest. + * Properties of a DeleteExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ICreateTransitionRouteGroupRequest - * @property {string|null} [parent] CreateTransitionRouteGroupRequest parent - * @property {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null} [transitionRouteGroup] CreateTransitionRouteGroupRequest transitionRouteGroup - * @property {string|null} [languageCode] CreateTransitionRouteGroupRequest languageCode + * @interface IDeleteExperimentRequest + * @property {string|null} [name] DeleteExperimentRequest name */ /** - * Constructs a new CreateTransitionRouteGroupRequest. + * Constructs a new DeleteExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a CreateTransitionRouteGroupRequest. - * @implements ICreateTransitionRouteGroupRequest + * @classdesc Represents a DeleteExperimentRequest. + * @implements IDeleteExperimentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest=} [properties] Properties to set */ - function CreateTransitionRouteGroupRequest(properties) { + function DeleteExperimentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -104765,101 +105027,75 @@ } /** - * CreateTransitionRouteGroupRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest - * @instance - */ - CreateTransitionRouteGroupRequest.prototype.parent = ""; - - /** - * CreateTransitionRouteGroupRequest transitionRouteGroup. - * @member {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null|undefined} transitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest - * @instance - */ - CreateTransitionRouteGroupRequest.prototype.transitionRouteGroup = null; - - /** - * CreateTransitionRouteGroupRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest + * DeleteExperimentRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest * @instance */ - CreateTransitionRouteGroupRequest.prototype.languageCode = ""; + DeleteExperimentRequest.prototype.name = ""; /** - * Creates a new CreateTransitionRouteGroupRequest instance using the specified properties. + * Creates a new DeleteExperimentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest} DeleteExperimentRequest instance */ - CreateTransitionRouteGroupRequest.create = function create(properties) { - return new CreateTransitionRouteGroupRequest(properties); + DeleteExperimentRequest.create = function create(properties) { + return new DeleteExperimentRequest(properties); }; /** - * Encodes the specified CreateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest.verify|verify} messages. + * Encodes the specified DeleteExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest} message CreateTransitionRouteGroupRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest} message DeleteExperimentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateTransitionRouteGroupRequest.encode = function encode(message, writer) { + DeleteExperimentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.transitionRouteGroup != null && Object.hasOwnProperty.call(message, "transitionRouteGroup")) - $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.encode(message.transitionRouteGroup, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified CreateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest.verify|verify} messages. + * Encodes the specified DeleteExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest} message CreateTransitionRouteGroupRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest} message DeleteExperimentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer. + * Decodes a DeleteExperimentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest} DeleteExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateTransitionRouteGroupRequest.decode = function decode(reader, length) { + DeleteExperimentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: - message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.decode(reader, reader.uint32()); - break; - case 3: - message.languageCode = reader.string(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -104870,131 +105106,107 @@ }; /** - * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteExperimentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest} DeleteExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateTransitionRouteGroupRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteExperimentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateTransitionRouteGroupRequest message. + * Verifies a DeleteExperimentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateTransitionRouteGroupRequest.verify = function verify(message) { + DeleteExperimentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify(message.transitionRouteGroup); - if (error) - return "transitionRouteGroup." + error; - } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a CreateTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteExperimentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest} DeleteExperimentRequest */ - CreateTransitionRouteGroupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest) + DeleteExperimentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.transitionRouteGroup != null) { - if (typeof object.transitionRouteGroup !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest.transitionRouteGroup: object expected"); - message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.fromObject(object.transitionRouteGroup); - } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a CreateTransitionRouteGroupRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteExperimentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest} message CreateTransitionRouteGroupRequest + * @param {google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest} message DeleteExperimentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateTransitionRouteGroupRequest.toObject = function toObject(message, options) { + DeleteExperimentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.transitionRouteGroup = null; - object.languageCode = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) - object.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.toObject(message.transitionRouteGroup, options); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CreateTransitionRouteGroupRequest to JSON. + * Converts this DeleteExperimentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest * @instance * @returns {Object.} JSON object */ - CreateTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { + DeleteExperimentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateTransitionRouteGroupRequest; + return DeleteExperimentRequest; })(); - v3beta1.UpdateTransitionRouteGroupRequest = (function() { + v3beta1.StartExperimentRequest = (function() { /** - * Properties of an UpdateTransitionRouteGroupRequest. + * Properties of a StartExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IUpdateTransitionRouteGroupRequest - * @property {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null} [transitionRouteGroup] UpdateTransitionRouteGroupRequest transitionRouteGroup - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateTransitionRouteGroupRequest updateMask - * @property {string|null} [languageCode] UpdateTransitionRouteGroupRequest languageCode + * @interface IStartExperimentRequest + * @property {string|null} [name] StartExperimentRequest name */ /** - * Constructs a new UpdateTransitionRouteGroupRequest. + * Constructs a new StartExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an UpdateTransitionRouteGroupRequest. - * @implements IUpdateTransitionRouteGroupRequest + * @classdesc Represents a StartExperimentRequest. + * @implements IStartExperimentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest=} [properties] Properties to set */ - function UpdateTransitionRouteGroupRequest(properties) { + function StartExperimentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -105002,101 +105214,75 @@ } /** - * UpdateTransitionRouteGroupRequest transitionRouteGroup. - * @member {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null|undefined} transitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest - * @instance - */ - UpdateTransitionRouteGroupRequest.prototype.transitionRouteGroup = null; - - /** - * UpdateTransitionRouteGroupRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest - * @instance - */ - UpdateTransitionRouteGroupRequest.prototype.updateMask = null; - - /** - * UpdateTransitionRouteGroupRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest + * StartExperimentRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest * @instance */ - UpdateTransitionRouteGroupRequest.prototype.languageCode = ""; + StartExperimentRequest.prototype.name = ""; /** - * Creates a new UpdateTransitionRouteGroupRequest instance using the specified properties. + * Creates a new StartExperimentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest} StartExperimentRequest instance */ - UpdateTransitionRouteGroupRequest.create = function create(properties) { - return new UpdateTransitionRouteGroupRequest(properties); + StartExperimentRequest.create = function create(properties) { + return new StartExperimentRequest(properties); }; /** - * Encodes the specified UpdateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest.verify|verify} messages. + * Encodes the specified StartExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest} message UpdateTransitionRouteGroupRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest} message StartExperimentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateTransitionRouteGroupRequest.encode = function encode(message, writer) { + StartExperimentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.transitionRouteGroup != null && Object.hasOwnProperty.call(message, "transitionRouteGroup")) - $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.encode(message.transitionRouteGroup, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified UpdateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest.verify|verify} messages. + * Encodes the specified StartExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest} message UpdateTransitionRouteGroupRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest} message StartExperimentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + StartExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateTransitionRouteGroupRequest message from the specified reader or buffer. + * Decodes a StartExperimentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest} StartExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateTransitionRouteGroupRequest.decode = function decode(reader, length) { + StartExperimentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - case 3: - message.languageCode = reader.string(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -105107,135 +105293,107 @@ }; /** - * Decodes an UpdateTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. + * Decodes a StartExperimentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest} StartExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateTransitionRouteGroupRequest.decodeDelimited = function decodeDelimited(reader) { + StartExperimentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateTransitionRouteGroupRequest message. + * Verifies a StartExperimentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateTransitionRouteGroupRequest.verify = function verify(message) { + StartExperimentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify(message.transitionRouteGroup); - if (error) - return "transitionRouteGroup." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an UpdateTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StartExperimentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest} StartExperimentRequest */ - UpdateTransitionRouteGroupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest) + StartExperimentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest(); - if (object.transitionRouteGroup != null) { - if (typeof object.transitionRouteGroup !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest.transitionRouteGroup: object expected"); - message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.fromObject(object.transitionRouteGroup); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an UpdateTransitionRouteGroupRequest message. Also converts values to other types if specified. + * Creates a plain object from a StartExperimentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest} message UpdateTransitionRouteGroupRequest + * @param {google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest} message StartExperimentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateTransitionRouteGroupRequest.toObject = function toObject(message, options) { + StartExperimentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.transitionRouteGroup = null; - object.updateMask = null; - object.languageCode = ""; - } - if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) - object.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.toObject(message.transitionRouteGroup, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this UpdateTransitionRouteGroupRequest to JSON. + * Converts this StartExperimentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest * @instance * @returns {Object.} JSON object */ - UpdateTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { + StartExperimentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateTransitionRouteGroupRequest; + return StartExperimentRequest; })(); - v3beta1.DeleteTransitionRouteGroupRequest = (function() { + v3beta1.StopExperimentRequest = (function() { /** - * Properties of a DeleteTransitionRouteGroupRequest. + * Properties of a StopExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDeleteTransitionRouteGroupRequest - * @property {string|null} [name] DeleteTransitionRouteGroupRequest name - * @property {boolean|null} [force] DeleteTransitionRouteGroupRequest force + * @interface IStopExperimentRequest + * @property {string|null} [name] StopExperimentRequest name */ /** - * Constructs a new DeleteTransitionRouteGroupRequest. + * Constructs a new StopExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DeleteTransitionRouteGroupRequest. - * @implements IDeleteTransitionRouteGroupRequest + * @classdesc Represents a StopExperimentRequest. + * @implements IStopExperimentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest=} [properties] Properties to set */ - function DeleteTransitionRouteGroupRequest(properties) { + function StopExperimentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -105243,89 +105401,76 @@ } /** - * DeleteTransitionRouteGroupRequest name. + * StopExperimentRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest - * @instance - */ - DeleteTransitionRouteGroupRequest.prototype.name = ""; - - /** - * DeleteTransitionRouteGroupRequest force. - * @member {boolean} force - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest * @instance */ - DeleteTransitionRouteGroupRequest.prototype.force = false; + StopExperimentRequest.prototype.name = ""; /** - * Creates a new DeleteTransitionRouteGroupRequest instance using the specified properties. + * Creates a new StopExperimentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest} StopExperimentRequest instance */ - DeleteTransitionRouteGroupRequest.create = function create(properties) { - return new DeleteTransitionRouteGroupRequest(properties); + StopExperimentRequest.create = function create(properties) { + return new StopExperimentRequest(properties); }; /** - * Encodes the specified DeleteTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest.verify|verify} messages. + * Encodes the specified StopExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest} message DeleteTransitionRouteGroupRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest} message StopExperimentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteTransitionRouteGroupRequest.encode = function encode(message, writer) { + StopExperimentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); return writer; }; /** - * Encodes the specified DeleteTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest.verify|verify} messages. + * Encodes the specified StopExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest} message DeleteTransitionRouteGroupRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest} message StopExperimentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + StopExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer. + * Decodes a StopExperimentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest} StopExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteTransitionRouteGroupRequest.decode = function decode(reader, length) { + StopExperimentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; - case 2: - message.force = reader.bool(); - break; default: reader.skipType(tag & 7); break; @@ -105335,96 +105480,87 @@ }; /** - * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. + * Decodes a StopExperimentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest} StopExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteTransitionRouteGroupRequest.decodeDelimited = function decodeDelimited(reader) { + StopExperimentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteTransitionRouteGroupRequest message. + * Verifies a StopExperimentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteTransitionRouteGroupRequest.verify = function verify(message) { + StopExperimentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; return null; }; /** - * Creates a DeleteTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StopExperimentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest} StopExperimentRequest */ - DeleteTransitionRouteGroupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest) + StopExperimentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest(); if (object.name != null) message.name = String(object.name); - if (object.force != null) - message.force = Boolean(object.force); return message; }; /** - * Creates a plain object from a DeleteTransitionRouteGroupRequest message. Also converts values to other types if specified. + * Creates a plain object from a StopExperimentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest} message DeleteTransitionRouteGroupRequest + * @param {google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest} message StopExperimentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteTransitionRouteGroupRequest.toObject = function toObject(message, options) { + StopExperimentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { + if (options.defaults) object.name = ""; - object.force = false; - } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; return object; }; /** - * Converts this DeleteTransitionRouteGroupRequest to JSON. + * Converts this StopExperimentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest * @instance * @returns {Object.} JSON object */ - DeleteTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { + StopExperimentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteTransitionRouteGroupRequest; + return StopExperimentRequest; })(); v3beta1.Versions = (function() { diff --git a/packages/google-cloud-dialogflow-cx/protos/protos.json b/packages/google-cloud-dialogflow-cx/protos/protos.json index 9375094f474..1aa860d715f 100644 --- a/packages/google-cloud-dialogflow-cx/protos/protos.json +++ b/packages/google-cloud-dialogflow-cx/protos/protos.json @@ -436,6 +436,19 @@ "agentContent": { "type": "bytes", "id": 3 + }, + "restoreOption": { + "type": "RestoreOption", + "id": 5 + } + }, + "nested": { + "RestoreOption": { + "values": { + "RESTORE_OPTION_UNSPECIFIED": 0, + "KEEP": 1, + "FALLBACK": 2 + } } } }, @@ -2431,23 +2444,23 @@ } } }, - "Experiments": { + "TestCases": { "options": { "(google.api.default_host)": "dialogflow.googleapis.com", "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" }, "methods": { - "ListExperiments": { - "requestType": "ListExperimentsRequest", - "responseType": "ListExperimentsResponse", + "ListTestCases": { + "requestType": "ListTestCasesRequest", + "responseType": "ListTestCasesResponse", "options": { - "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*/environments/*}/experiments", + "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*}/testCases", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3/{parent=projects/*/locations/*/agents/*/environments/*}/experiments" + "get": "/v3/{parent=projects/*/locations/*/agents/*}/testCases" } }, { @@ -2455,17 +2468,37 @@ } ] }, - "GetExperiment": { - "requestType": "GetExperimentRequest", - "responseType": "Experiment", + "BatchDeleteTestCases": { + "requestType": "BatchDeleteTestCasesRequest", + "responseType": "google.protobuf.Empty", "options": { - "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}", + "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*}/testCases:batchDelete", + "(google.api.http).body": "*", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v3/{parent=projects/*/locations/*/agents/*}/testCases:batchDelete", + "body": "*" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "GetTestCase": { + "requestType": "GetTestCaseRequest", + "responseType": "TestCase", + "options": { + "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*/testCases/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}" + "get": "/v3/{name=projects/*/locations/*/agents/*/testCases/*}" } }, { @@ -2473,354 +2506,581 @@ } ] }, - "CreateExperiment": { - "requestType": "CreateExperimentRequest", - "responseType": "Experiment", + "CreateTestCase": { + "requestType": "CreateTestCaseRequest", + "responseType": "TestCase", "options": { - "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*/environments/*}/experiments", - "(google.api.http).body": "experiment", - "(google.api.method_signature)": "parent,experiment" + "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*}/testCases", + "(google.api.http).body": "test_case", + "(google.api.method_signature)": "parent,test_case" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v3/{parent=projects/*/locations/*/agents/*/environments/*}/experiments", - "body": "experiment" + "post": "/v3/{parent=projects/*/locations/*/agents/*}/testCases", + "body": "test_case" } }, { - "(google.api.method_signature)": "parent,experiment" + "(google.api.method_signature)": "parent,test_case" } ] }, - "UpdateExperiment": { - "requestType": "UpdateExperimentRequest", - "responseType": "Experiment", + "UpdateTestCase": { + "requestType": "UpdateTestCaseRequest", + "responseType": "TestCase", "options": { - "(google.api.http).patch": "/v3/{experiment.name=projects/*/locations/*/agents/*/environments/*/experiments/*}", - "(google.api.http).body": "experiment", - "(google.api.method_signature)": "experiment,update_mask" + "(google.api.http).patch": "/v3/{test_case.name=projects/*/locations/*/agents/*/testCases/*}", + "(google.api.http).body": "test_case", + "(google.api.method_signature)": "test_case,update_mask" }, "parsedOptions": [ { "(google.api.http)": { - "patch": "/v3/{experiment.name=projects/*/locations/*/agents/*/environments/*/experiments/*}", - "body": "experiment" + "patch": "/v3/{test_case.name=projects/*/locations/*/agents/*/testCases/*}", + "body": "test_case" } }, { - "(google.api.method_signature)": "experiment,update_mask" + "(google.api.method_signature)": "test_case,update_mask" } ] }, - "DeleteExperiment": { - "requestType": "DeleteExperimentRequest", - "responseType": "google.protobuf.Empty", + "RunTestCase": { + "requestType": "RunTestCaseRequest", + "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).delete": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}", - "(google.api.method_signature)": "name" + "(google.api.http).post": "/v3/{name=projects/*/locations/*/agents/*/testCases/*}:run", + "(google.api.http).body": "*", + "(google.longrunning.operation_info).response_type": "RunTestCaseResponse", + "(google.longrunning.operation_info).metadata_type": "RunTestCaseMetadata" }, "parsedOptions": [ { "(google.api.http)": { - "delete": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}" + "post": "/v3/{name=projects/*/locations/*/agents/*/testCases/*}:run", + "body": "*" } }, { - "(google.api.method_signature)": "name" + "(google.longrunning.operation_info)": { + "response_type": "RunTestCaseResponse", + "metadata_type": "RunTestCaseMetadata" + } } ] }, - "StartExperiment": { - "requestType": "StartExperimentRequest", - "responseType": "Experiment", + "BatchRunTestCases": { + "requestType": "BatchRunTestCasesRequest", + "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).post": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:start", + "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*}/testCases:batchRun", "(google.api.http).body": "*", - "(google.api.method_signature)": "name" + "(google.longrunning.operation_info).response_type": "BatchRunTestCasesResponse", + "(google.longrunning.operation_info).metadata_type": "BatchRunTestCasesMetadata" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:start", + "post": "/v3/{parent=projects/*/locations/*/agents/*}/testCases:batchRun", "body": "*" } }, { - "(google.api.method_signature)": "name" + "(google.longrunning.operation_info)": { + "response_type": "BatchRunTestCasesResponse", + "metadata_type": "BatchRunTestCasesMetadata" + } } ] }, - "StopExperiment": { - "requestType": "StopExperimentRequest", - "responseType": "Experiment", + "CalculateCoverage": { + "requestType": "CalculateCoverageRequest", + "responseType": "CalculateCoverageResponse", "options": { - "(google.api.http).post": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:stop", + "(google.api.http).get": "/v3/{agent=projects/*/locations/*/agents/*}/testCases:calculateCoverage" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v3/{agent=projects/*/locations/*/agents/*}/testCases:calculateCoverage" + } + } + ] + }, + "ImportTestCases": { + "requestType": "ImportTestCasesRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*}/testCases:import", "(google.api.http).body": "*", - "(google.api.method_signature)": "name" + "(google.longrunning.operation_info).response_type": "ImportTestCasesResponse", + "(google.longrunning.operation_info).metadata_type": "ImportTestCasesMetadata" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:stop", + "post": "/v3/{parent=projects/*/locations/*/agents/*}/testCases:import", "body": "*" } }, { - "(google.api.method_signature)": "name" + "(google.longrunning.operation_info)": { + "response_type": "ImportTestCasesResponse", + "metadata_type": "ImportTestCasesMetadata" + } + } + ] + }, + "ExportTestCases": { + "requestType": "ExportTestCasesRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*}/testCases:export", + "(google.api.http).body": "*", + "(google.longrunning.operation_info).response_type": "ExportTestCasesResponse", + "(google.longrunning.operation_info).metadata_type": "ExportTestCasesMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v3/{parent=projects/*/locations/*/agents/*}/testCases:export", + "body": "*" + } + }, + { + "(google.longrunning.operation_info)": { + "response_type": "ExportTestCasesResponse", + "metadata_type": "ExportTestCasesMetadata" + } + } + ] + }, + "ListTestCaseResults": { + "requestType": "ListTestCaseResultsRequest", + "responseType": "ListTestCaseResultsResponse", + "options": { + "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*/testCases/*}/results", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v3/{parent=projects/*/locations/*/agents/*/testCases/*}/results" + } + }, + { + "(google.api.method_signature)": "parent" } ] } } }, - "Experiment": { + "TestCase": { "options": { - "(google.api.resource).type": "dialogflow.googleapis.com/Experiment", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/experiments/{experiment}" + "(google.api.resource).type": "dialogflow.googleapis.com/TestCase", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/testCases/{test_case}" }, "fields": { "name": { "type": "string", "id": 1 }, + "tags": { + "rule": "repeated", + "type": "string", + "id": 2 + }, "displayName": { "type": "string", - "id": 2, + "id": 3, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "description": { + "notes": { "type": "string", - "id": 3 - }, - "state": { - "type": "State", "id": 4 }, - "definition": { - "type": "Definition", - "id": 5 + "testConfig": { + "type": "TestConfig", + "id": 13 }, - "result": { - "type": "Result", - "id": 6 + "testCaseConversationTurns": { + "rule": "repeated", + "type": "ConversationTurn", + "id": 5 }, - "createTime": { + "creationTime": { "type": "google.protobuf.Timestamp", - "id": 7 + "id": 10, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, - "startTime": { - "type": "google.protobuf.Timestamp", - "id": 8 + "lastTestResult": { + "type": "TestCaseResult", + "id": 12 + } + } + }, + "TestCaseResult": { + "options": { + "(google.api.resource).type": "dialogflow.googleapis.com/TestCaseResult", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/testCases/{test_case}/results/{result}" + }, + "fields": { + "name": { + "type": "string", + "id": 1 }, - "endTime": { - "type": "google.protobuf.Timestamp", - "id": 9 + "environment": { + "type": "string", + "id": 2, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Environment" + } }, - "lastUpdateTime": { - "type": "google.protobuf.Timestamp", - "id": 10 + "conversationTurns": { + "rule": "repeated", + "type": "ConversationTurn", + "id": 3 }, - "experimentLength": { - "type": "google.protobuf.Duration", - "id": 11 + "testResult": { + "type": "TestResult", + "id": 4 }, - "variantsHistory": { + "testTime": { + "type": "google.protobuf.Timestamp", + "id": 5 + } + } + }, + "TestConfig": { + "fields": { + "trackingParameters": { "rule": "repeated", - "type": "VariantsHistory", - "id": 12 + "type": "string", + "id": 1 + }, + "flow": { + "type": "string", + "id": 2, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Flow" + } + } + } + }, + "ConversationTurn": { + "fields": { + "userInput": { + "type": "UserInput", + "id": 1 + }, + "virtualAgentOutput": { + "type": "VirtualAgentOutput", + "id": 2 } }, "nested": { - "Definition": { - "oneofs": { - "variants": { - "oneof": [ - "versionVariants" - ] - } - }, + "UserInput": { "fields": { - "condition": { - "type": "string", - "id": 1 + "input": { + "type": "QueryInput", + "id": 5 }, - "versionVariants": { - "type": "VersionVariants", + "injectedParameters": { + "type": "google.protobuf.Struct", "id": 2 + }, + "isWebhookEnabled": { + "type": "bool", + "id": 3 } } }, - "Result": { + "VirtualAgentOutput": { "fields": { - "versionMetrics": { - "rule": "repeated", - "type": "VersionMetrics", - "id": 1 + "sessionParameters": { + "type": "google.protobuf.Struct", + "id": 4 }, - "lastUpdateTime": { - "type": "google.protobuf.Timestamp", - "id": 2 - } - }, - "nested": { - "ConfidenceInterval": { - "fields": { - "confidenceLevel": { - "type": "double", - "id": 1 - }, - "ratio": { - "type": "double", - "id": 2 - }, - "lowerBound": { - "type": "double", - "id": 3 - }, - "upperBound": { - "type": "double", - "id": 4 - } + "differences": { + "rule": "repeated", + "type": "TestRunDifference", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "Metric": { - "oneofs": { - "value": { - "oneof": [ - "ratio", - "count" - ] - } - }, - "fields": { - "type": { - "type": "MetricType", - "id": 1 - }, - "countType": { - "type": "CountType", - "id": 5 - }, - "ratio": { - "type": "double", - "id": 2 - }, - "count": { - "type": "double", - "id": 4 - }, - "confidenceInterval": { - "type": "ConfidenceInterval", - "id": 3 - } + "diagnosticInfo": { + "type": "google.protobuf.Struct", + "id": 6, + "options": { + "(google.api.field_behavior)": "INPUT_ONLY" } }, - "VersionMetrics": { - "fields": { - "version": { - "type": "string", - "id": 1, - "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" - } - }, - "metrics": { - "rule": "repeated", - "type": "Metric", - "id": 2 - }, - "sessionCount": { - "type": "int32", - "id": 3 - } - } + "triggeredIntent": { + "type": "Intent", + "id": 7 }, - "MetricType": { - "values": { - "METRIC_UNSPECIFIED": 0, - "CONTAINED_SESSION_NO_CALLBACK_RATE": 1, - "LIVE_AGENT_HANDOFF_RATE": 2, - "CALLBACK_SESSION_RATE": 3, - "ABANDONED_SESSION_RATE": 4, - "SESSION_END_RATE": 5 - } + "currentPage": { + "type": "Page", + "id": 8 }, - "CountType": { - "values": { - "COUNT_TYPE_UNSPECIFIED": 0, - "TOTAL_NO_MATCH_COUNT": 1, - "TOTAL_TURN_COUNT": 2, - "AVERAGE_TURN_COUNT": 3 - } + "textResponses": { + "rule": "repeated", + "type": "ResponseMessage.Text", + "id": 9 + }, + "status": { + "type": "google.rpc.Status", + "id": 10 } } + } + } + }, + "TestRunDifference": { + "fields": { + "type": { + "type": "DiffType", + "id": 1 }, - "State": { + "description": { + "type": "string", + "id": 2 + } + }, + "nested": { + "DiffType": { "values": { - "STATE_UNSPECIFIED": 0, - "DRAFT": 1, - "RUNNING": 2, - "DONE": 3 + "DIFF_TYPE_UNSPECIFIED": 0, + "INTENT": 1, + "PAGE": 2, + "PARAMETERS": 3, + "UTTERANCE": 4 } } } }, - "VersionVariants": { + "TransitionCoverage": { "fields": { - "variants": { + "transitions": { "rule": "repeated", - "type": "Variant", + "type": "Transition", "id": 1 + }, + "coverageScore": { + "type": "float", + "id": 2 } }, "nested": { - "Variant": { + "TransitionNode": { + "oneofs": { + "kind": { + "oneof": [ + "page", + "flow" + ] + } + }, "fields": { - "version": { - "type": "string", + "page": { + "type": "Page", "id": 1 }, - "trafficAllocation": { - "type": "float", + "flow": { + "type": "Flow", "id": 2 - }, - "isControlGroup": { - "type": "bool", - "id": 3 + } + } + }, + "Transition": { + "oneofs": { + "detail": { + "oneof": [ + "transitionRoute", + "eventHandler" + ] + } + }, + "fields": { + "source": { + "type": "TransitionNode", + "id": 1 + }, + "index": { + "type": "int32", + "id": 4 + }, + "target": { + "type": "TransitionNode", + "id": 2 + }, + "covered": { + "type": "bool", + "id": 3 + }, + "transitionRoute": { + "type": "TransitionRoute", + "id": 5 + }, + "eventHandler": { + "type": "EventHandler", + "id": 6 } } } } }, - "VariantsHistory": { + "TransitionRouteGroupCoverage": { + "fields": { + "coverages": { + "rule": "repeated", + "type": "Coverage", + "id": 1 + }, + "coverageScore": { + "type": "float", + "id": 2 + } + }, + "nested": { + "Coverage": { + "fields": { + "routeGroup": { + "type": "TransitionRouteGroup", + "id": 1 + }, + "transitions": { + "rule": "repeated", + "type": "Transition", + "id": 2 + }, + "coverageScore": { + "type": "float", + "id": 3 + } + }, + "nested": { + "Transition": { + "fields": { + "transitionRoute": { + "type": "TransitionRoute", + "id": 1 + }, + "covered": { + "type": "bool", + "id": 2 + } + } + } + } + } + } + }, + "IntentCoverage": { + "fields": { + "intents": { + "rule": "repeated", + "type": "Intent", + "id": 1 + }, + "coverageScore": { + "type": "float", + "id": 2 + } + }, + "nested": { + "Intent": { + "fields": { + "intent": { + "type": "string", + "id": 1, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Intent" + } + }, + "covered": { + "type": "bool", + "id": 2 + } + } + } + } + }, + "CalculateCoverageRequest": { + "fields": { + "agent": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Agent" + } + }, + "type": { + "type": "CoverageType", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + }, + "nested": { + "CoverageType": { + "values": { + "COVERAGE_TYPE_UNSPECIFIED": 0, + "INTENT": 1, + "PAGE_TRANSITION": 2, + "TRANSITION_ROUTE_GROUP": 3 + } + } + } + }, + "CalculateCoverageResponse": { "oneofs": { - "variants": { + "coverageType": { "oneof": [ - "versionVariants" + "intentCoverage", + "transitionCoverage", + "routeGroupCoverage" ] } }, "fields": { - "versionVariants": { - "type": "VersionVariants", - "id": 1 + "agent": { + "type": "string", + "id": 5, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Agent" + } }, - "updateTime": { - "type": "google.protobuf.Timestamp", + "intentCoverage": { + "type": "IntentCoverage", "id": 2 + }, + "transitionCoverage": { + "type": "TransitionCoverage", + "id": 4 + }, + "routeGroupCoverage": { + "type": "TransitionRouteGroupCoverage", + "id": 6 } } }, - "ListExperimentsRequest": { + "ListTestCasesRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Experiment" + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/TestCase" } }, "pageSize": { @@ -2830,14 +3090,27 @@ "pageToken": { "type": "string", "id": 3 + }, + "view": { + "type": "TestCaseView", + "id": 4 + } + }, + "nested": { + "TestCaseView": { + "values": { + "TEST_CASE_VIEW_UNSPECIFIED": 0, + "BASIC": 1, + "FULL": 2 + } } } }, - "ListExperimentsResponse": { + "ListTestCasesResponse": { "fields": { - "experiments": { + "testCases": { "rule": "repeated", - "type": "Experiment", + "type": "TestCase", "id": 1 }, "nextPageToken": { @@ -2846,30 +3119,39 @@ } } }, - "GetExperimentRequest": { + "BatchDeleteTestCasesRequest": { "fields": { - "name": { + "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/TestCase" + } + }, + "names": { + "rule": "repeated", + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/TestCase" } } } }, - "CreateExperimentRequest": { + "CreateTestCaseRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Experiment" + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/TestCase" } }, - "experiment": { - "type": "Experiment", + "testCase": { + "type": "TestCase", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -2877,10 +3159,10 @@ } } }, - "UpdateExperimentRequest": { + "UpdateTestCaseRequest": { "fields": { - "experiment": { - "type": "Experiment", + "testCase": { + "type": "TestCase", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -2895,40 +3177,281 @@ } } }, - "DeleteExperimentRequest": { + "GetTestCaseRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/TestCase" } } } }, - "StartExperimentRequest": { + "RunTestCaseRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/TestCase" + } + }, + "environment": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Environment" } } } }, - "StopExperimentRequest": { + "RunTestCaseResponse": { "fields": { - "name": { + "result": { + "type": "TestCaseResult", + "id": 2 + } + } + }, + "RunTestCaseMetadata": { + "fields": {} + }, + "BatchRunTestCasesRequest": { + "fields": { + "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/TestCase" } - } + }, + "environment": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Environment" + } + }, + "testCases": { + "rule": "repeated", + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/TestCase" + } + } + } + }, + "BatchRunTestCasesResponse": { + "fields": { + "results": { + "rule": "repeated", + "type": "TestCaseResult", + "id": 1 + } + } + }, + "BatchRunTestCasesMetadata": { + "fields": { + "errors": { + "rule": "repeated", + "type": "TestError", + "id": 1 + } + } + }, + "TestError": { + "fields": { + "testCase": { + "type": "string", + "id": 1, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/TestCase" + } + }, + "status": { + "type": "google.rpc.Status", + "id": 2 + }, + "testTime": { + "type": "google.protobuf.Timestamp", + "id": 3 + } + } + }, + "ImportTestCasesRequest": { + "oneofs": { + "source": { + "oneof": [ + "gcsUri", + "content" + ] + } + }, + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/TestCase" + } + }, + "gcsUri": { + "type": "string", + "id": 2 + }, + "content": { + "type": "bytes", + "id": 3 + } + } + }, + "ImportTestCasesResponse": { + "fields": { + "names": { + "rule": "repeated", + "type": "string", + "id": 1, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/TestCase" + } + } + } + }, + "ImportTestCasesMetadata": { + "fields": { + "errors": { + "rule": "repeated", + "type": "TestCaseError", + "id": 1 + } + } + }, + "TestCaseError": { + "fields": { + "testCase": { + "type": "TestCase", + "id": 1 + }, + "status": { + "type": "google.rpc.Status", + "id": 2 + } + } + }, + "ExportTestCasesRequest": { + "oneofs": { + "destination": { + "oneof": [ + "gcsUri" + ] + } + }, + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/TestCase" + } + }, + "gcsUri": { + "type": "string", + "id": 2 + }, + "dataFormat": { + "type": "DataFormat", + "id": 3 + }, + "filter": { + "type": "string", + "id": 4 + } + }, + "nested": { + "DataFormat": { + "values": { + "DATA_FORMAT_UNSPECIFIED": 0, + "BLOB": 1, + "JSON": 2 + } + } + } + }, + "ExportTestCasesResponse": { + "oneofs": { + "destination": { + "oneof": [ + "gcsUri", + "content" + ] + } + }, + "fields": { + "gcsUri": { + "type": "string", + "id": 1 + }, + "content": { + "type": "bytes", + "id": 2 + } + } + }, + "ExportTestCasesMetadata": { + "fields": {} + }, + "ListTestCaseResultsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/TestCaseResult" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + }, + "filter": { + "type": "string", + "id": 4 + } + } + }, + "ListTestCaseResultsResponse": { + "fields": { + "testCaseResults": { + "rule": "repeated", + "type": "TestCaseResult", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "TestResult": { + "values": { + "TEST_RESULT_UNSPECIFIED": 0, + "PASSED": 1, + "FAILED": 2 } }, "Intents": { @@ -3269,492 +3792,226 @@ "INTENT_VIEW_FULL": 2 } }, - "SecuritySettingsService": { + "Sessions": { "options": { "(google.api.default_host)": "dialogflow.googleapis.com", "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" }, "methods": { - "CreateSecuritySettings": { - "requestType": "CreateSecuritySettingsRequest", - "responseType": "SecuritySettings", + "DetectIntent": { + "requestType": "DetectIntentRequest", + "responseType": "DetectIntentResponse", "options": { - "(google.api.http).post": "/v3/{parent=projects/*/locations/*}/securitySettings", - "(google.api.http).body": "security_settings", - "(google.api.method_signature)": "parent,security_settings" + "(google.api.http).post": "/v3/{session=projects/*/locations/*/agents/*/sessions/*}:detectIntent", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v3/{session=projects/*/locations/*/agents/*/environments/*/sessions/*}:detectIntent", + "(google.api.http).additional_bindings.body": "*" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v3/{parent=projects/*/locations/*}/securitySettings", - "body": "security_settings" + "post": "/v3/{session=projects/*/locations/*/agents/*/sessions/*}:detectIntent", + "body": "*", + "additional_bindings": { + "post": "/v3/{session=projects/*/locations/*/agents/*/environments/*/sessions/*}:detectIntent", + "body": "*" + } } - }, - { - "(google.api.method_signature)": "parent,security_settings" } ] }, - "GetSecuritySettings": { - "requestType": "GetSecuritySettingsRequest", - "responseType": "SecuritySettings", - "options": { - "(google.api.http).get": "/v3/{name=projects/*/locations/*/securitySettings/*}", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v3/{name=projects/*/locations/*/securitySettings/*}" - } - }, - { - "(google.api.method_signature)": "name" - } - ] - }, - "UpdateSecuritySettings": { - "requestType": "UpdateSecuritySettingsRequest", - "responseType": "SecuritySettings", - "options": { - "(google.api.http).patch": "/v3/{security_settings.name=projects/*/locations/*/securitySettings/*}", - "(google.api.http).body": "security_settings", - "(google.api.method_signature)": "security_settings,update_mask" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "patch": "/v3/{security_settings.name=projects/*/locations/*/securitySettings/*}", - "body": "security_settings" - } - }, - { - "(google.api.method_signature)": "security_settings,update_mask" - } - ] + "StreamingDetectIntent": { + "requestType": "StreamingDetectIntentRequest", + "requestStream": true, + "responseType": "StreamingDetectIntentResponse", + "responseStream": true }, - "ListSecuritySettings": { - "requestType": "ListSecuritySettingsRequest", - "responseType": "ListSecuritySettingsResponse", + "MatchIntent": { + "requestType": "MatchIntentRequest", + "responseType": "MatchIntentResponse", "options": { - "(google.api.http).get": "/v3/{parent=projects/*/locations/*}/securitySettings", - "(google.api.method_signature)": "parent" + "(google.api.http).post": "/v3/{session=projects/*/locations/*/agents/*/sessions/*}:matchIntent", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v3/{session=projects/*/locations/*/agents/*/environments/*/sessions/*}:matchIntent", + "(google.api.http).additional_bindings.body": "*" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3/{parent=projects/*/locations/*}/securitySettings" + "post": "/v3/{session=projects/*/locations/*/agents/*/sessions/*}:matchIntent", + "body": "*", + "additional_bindings": { + "post": "/v3/{session=projects/*/locations/*/agents/*/environments/*/sessions/*}:matchIntent", + "body": "*" + } } - }, - { - "(google.api.method_signature)": "parent" } ] }, - "DeleteSecuritySettings": { - "requestType": "DeleteSecuritySettingsRequest", - "responseType": "google.protobuf.Empty", + "FulfillIntent": { + "requestType": "FulfillIntentRequest", + "responseType": "FulfillIntentResponse", "options": { - "(google.api.http).delete": "/v3/{name=projects/*/locations/*/securitySettings/*}", - "(google.api.method_signature)": "name" + "(google.api.http).post": "/v3/{match_intent_request.session=projects/*/locations/*/agents/*/sessions/*}:fulfillIntent", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v3/{match_intent_request.session=projects/*/locations/*/agents/*/environments/*/sessions/*}:fulfillIntent", + "(google.api.http).additional_bindings.body": "*" }, "parsedOptions": [ { "(google.api.http)": { - "delete": "/v3/{name=projects/*/locations/*/securitySettings/*}" + "post": "/v3/{match_intent_request.session=projects/*/locations/*/agents/*/sessions/*}:fulfillIntent", + "body": "*", + "additional_bindings": { + "post": "/v3/{match_intent_request.session=projects/*/locations/*/agents/*/environments/*/sessions/*}:fulfillIntent", + "body": "*" + } } - }, - { - "(google.api.method_signature)": "name" } ] } } }, - "GetSecuritySettingsRequest": { + "DetectIntentRequest": { "fields": { - "name": { + "session": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/SecuritySettings" - } - } - } - }, - "UpdateSecuritySettingsRequest": { - "fields": { - "securitySettings": { - "type": "SecuritySettings", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Session" } }, - "updateMask": { - "type": "google.protobuf.FieldMask", - "id": 2, + "queryParams": { + "type": "QueryParameters", + "id": 2 + }, + "queryInput": { + "type": "QueryInput", + "id": 3, "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "outputAudioConfig": { + "type": "OutputAudioConfig", + "id": 4 } } }, - "ListSecuritySettingsRequest": { + "DetectIntentResponse": { "fields": { - "parent": { + "responseId": { "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/SecuritySettings" - } + "id": 1 }, - "pageSize": { - "type": "int32", + "queryResult": { + "type": "QueryResult", "id": 2 }, - "pageToken": { - "type": "string", - "id": 3 - } - } - }, - "ListSecuritySettingsResponse": { - "fields": { - "securitySettings": { - "rule": "repeated", - "type": "SecuritySettings", - "id": 1 + "outputAudio": { + "type": "bytes", + "id": 4 }, - "nextPageToken": { - "type": "string", - "id": 2 + "outputAudioConfig": { + "type": "OutputAudioConfig", + "id": 5 } } }, - "CreateSecuritySettingsRequest": { + "StreamingDetectIntentRequest": { "fields": { - "parent": { + "session": { "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/SecuritySettings" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Session" } }, - "securitySettings": { - "type": "SecuritySettings", - "id": 2, + "queryParams": { + "type": "QueryParameters", + "id": 2 + }, + "queryInput": { + "type": "QueryInput", + "id": 3, "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "outputAudioConfig": { + "type": "OutputAudioConfig", + "id": 4 } } }, - "DeleteSecuritySettingsRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/SecuritySettings" - } - } - } - }, - "SecuritySettings": { - "options": { - "(google.api.resource).type": "dialogflow.googleapis.com/SecuritySettings", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/securitySettings/{security_settings}" - }, + "StreamingDetectIntentResponse": { "oneofs": { - "dataRetention": { + "response": { "oneof": [ - "retentionWindowDays" + "recognitionResult", + "detectIntentResponse" ] } }, "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } + "recognitionResult": { + "type": "StreamingRecognitionResult", + "id": 1 }, - "displayName": { + "detectIntentResponse": { + "type": "DetectIntentResponse", + "id": 2 + } + } + }, + "StreamingRecognitionResult": { + "fields": { + "messageType": { + "type": "MessageType", + "id": 1 + }, + "transcript": { "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } + "id": 2 }, - "redactionStrategy": { - "type": "RedactionStrategy", + "isFinal": { + "type": "bool", "id": 3 }, - "redactionScope": { - "type": "RedactionScope", + "confidence": { + "type": "float", "id": 4 }, - "inspectTemplate": { - "type": "string", - "id": 9 - }, - "retentionWindowDays": { - "type": "int32", + "stability": { + "type": "float", "id": 6 }, - "purgeDataTypes": { + "speechWordInfo": { "rule": "repeated", - "type": "PurgeDataType", + "type": "SpeechWordInfo", + "id": 7 + }, + "speechEndOffset": { + "type": "google.protobuf.Duration", "id": 8 } }, "nested": { - "RedactionStrategy": { + "MessageType": { "values": { - "REDACTION_STRATEGY_UNSPECIFIED": 0, - "REDACT_WITH_SERVICE": 1 + "MESSAGE_TYPE_UNSPECIFIED": 0, + "TRANSCRIPT": 1, + "END_OF_SINGLE_UTTERANCE": 2 } - }, - "RedactionScope": { - "values": { - "REDACTION_SCOPE_UNSPECIFIED": 0, - "REDACT_DISK_STORAGE": 2 - } - }, - "PurgeDataType": { - "values": { - "PURGE_DATA_TYPE_UNSPECIFIED": 0, - "DIALOGFLOW_HISTORY": 1 - } - } - } - }, - "Sessions": { - "options": { - "(google.api.default_host)": "dialogflow.googleapis.com", - "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" - }, - "methods": { - "DetectIntent": { - "requestType": "DetectIntentRequest", - "responseType": "DetectIntentResponse", - "options": { - "(google.api.http).post": "/v3/{session=projects/*/locations/*/agents/*/sessions/*}:detectIntent", - "(google.api.http).body": "*", - "(google.api.http).additional_bindings.post": "/v3/{session=projects/*/locations/*/agents/*/environments/*/sessions/*}:detectIntent", - "(google.api.http).additional_bindings.body": "*" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v3/{session=projects/*/locations/*/agents/*/sessions/*}:detectIntent", - "body": "*", - "additional_bindings": { - "post": "/v3/{session=projects/*/locations/*/agents/*/environments/*/sessions/*}:detectIntent", - "body": "*" - } - } - } - ] - }, - "StreamingDetectIntent": { - "requestType": "StreamingDetectIntentRequest", - "requestStream": true, - "responseType": "StreamingDetectIntentResponse", - "responseStream": true - }, - "MatchIntent": { - "requestType": "MatchIntentRequest", - "responseType": "MatchIntentResponse", - "options": { - "(google.api.http).post": "/v3/{session=projects/*/locations/*/agents/*/sessions/*}:matchIntent", - "(google.api.http).body": "*", - "(google.api.http).additional_bindings.post": "/v3/{session=projects/*/locations/*/agents/*/environments/*/sessions/*}:matchIntent", - "(google.api.http).additional_bindings.body": "*" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v3/{session=projects/*/locations/*/agents/*/sessions/*}:matchIntent", - "body": "*", - "additional_bindings": { - "post": "/v3/{session=projects/*/locations/*/agents/*/environments/*/sessions/*}:matchIntent", - "body": "*" - } - } - } - ] - }, - "FulfillIntent": { - "requestType": "FulfillIntentRequest", - "responseType": "FulfillIntentResponse", - "options": { - "(google.api.http).post": "/v3/{match_intent_request.session=projects/*/locations/*/agents/*/sessions/*}:fulfillIntent", - "(google.api.http).body": "*", - "(google.api.http).additional_bindings.post": "/v3/{match_intent_request.session=projects/*/locations/*/agents/*/environments/*/sessions/*}:fulfillIntent", - "(google.api.http).additional_bindings.body": "*" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v3/{match_intent_request.session=projects/*/locations/*/agents/*/sessions/*}:fulfillIntent", - "body": "*", - "additional_bindings": { - "post": "/v3/{match_intent_request.session=projects/*/locations/*/agents/*/environments/*/sessions/*}:fulfillIntent", - "body": "*" - } - } - } - ] - } - } - }, - "DetectIntentRequest": { - "fields": { - "session": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Session" - } - }, - "queryParams": { - "type": "QueryParameters", - "id": 2 - }, - "queryInput": { - "type": "QueryInput", - "id": 3, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "outputAudioConfig": { - "type": "OutputAudioConfig", - "id": 4 - } - } - }, - "DetectIntentResponse": { - "fields": { - "responseId": { - "type": "string", - "id": 1 - }, - "queryResult": { - "type": "QueryResult", - "id": 2 - }, - "outputAudio": { - "type": "bytes", - "id": 4 - }, - "outputAudioConfig": { - "type": "OutputAudioConfig", - "id": 5 - } - } - }, - "StreamingDetectIntentRequest": { - "fields": { - "session": { - "type": "string", - "id": 1, - "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Session" - } - }, - "queryParams": { - "type": "QueryParameters", - "id": 2 - }, - "queryInput": { - "type": "QueryInput", - "id": 3, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "outputAudioConfig": { - "type": "OutputAudioConfig", - "id": 4 - } - } - }, - "StreamingDetectIntentResponse": { - "oneofs": { - "response": { - "oneof": [ - "recognitionResult", - "detectIntentResponse" - ] - } - }, - "fields": { - "recognitionResult": { - "type": "StreamingRecognitionResult", - "id": 1 - }, - "detectIntentResponse": { - "type": "DetectIntentResponse", - "id": 2 - } - } - }, - "StreamingRecognitionResult": { - "fields": { - "messageType": { - "type": "MessageType", - "id": 1 - }, - "transcript": { - "type": "string", - "id": 2 - }, - "isFinal": { - "type": "bool", - "id": 3 - }, - "confidence": { - "type": "float", - "id": 4 - }, - "stability": { - "type": "float", - "id": 6 - }, - "speechWordInfo": { - "rule": "repeated", - "type": "SpeechWordInfo", - "id": 7 - }, - "speechEndOffset": { - "type": "google.protobuf.Duration", - "id": 8 - } - }, - "nested": { - "MessageType": { - "values": { - "MESSAGE_TYPE_UNSPECIFIED": 0, - "TRANSCRIPT": 1, - "END_OF_SINGLE_UTTERANCE": 2 - } - } - } - }, - "QueryParameters": { - "fields": { - "timeZone": { - "type": "string", - "id": 1 + } + } + }, + "QueryParameters": { + "fields": { + "timeZone": { + "type": "string", + "id": 1 }, "geoLocation": { "type": "google.type.LatLng", @@ -3773,6 +4030,10 @@ "type": "google.protobuf.Struct", "id": 5 }, + "disableWebhook": { + "type": "bool", + "id": 7 + }, "analyzeQueryTextSentiment": { "type": "bool", "id": 8 @@ -4374,23 +4635,23 @@ } } }, - "TestCases": { + "TransitionRouteGroups": { "options": { "(google.api.default_host)": "dialogflow.googleapis.com", "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" }, "methods": { - "ListTestCases": { - "requestType": "ListTestCasesRequest", - "responseType": "ListTestCasesResponse", + "ListTransitionRouteGroups": { + "requestType": "ListTransitionRouteGroupsRequest", + "responseType": "ListTransitionRouteGroupsResponse", "options": { - "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*}/testCases", + "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroups", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3/{parent=projects/*/locations/*/agents/*}/testCases" + "get": "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroups" } }, { @@ -4398,37 +4659,17 @@ } ] }, - "BatchDeleteTestCases": { - "requestType": "BatchDeleteTestCasesRequest", - "responseType": "google.protobuf.Empty", - "options": { - "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*}/testCases:batchDelete", - "(google.api.http).body": "*", - "(google.api.method_signature)": "parent" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v3/{parent=projects/*/locations/*/agents/*}/testCases:batchDelete", - "body": "*" - } - }, - { - "(google.api.method_signature)": "parent" - } - ] - }, - "GetTestCase": { - "requestType": "GetTestCaseRequest", - "responseType": "TestCase", + "GetTransitionRouteGroup": { + "requestType": "GetTransitionRouteGroupRequest", + "responseType": "TransitionRouteGroup", "options": { - "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*/testCases/*}", + "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3/{name=projects/*/locations/*/agents/*/testCases/*}" + "get": "/v3/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}" } }, { @@ -4436,652 +4677,640 @@ } ] }, - "CreateTestCase": { - "requestType": "CreateTestCaseRequest", - "responseType": "TestCase", - "options": { - "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*}/testCases", - "(google.api.http).body": "test_case", - "(google.api.method_signature)": "parent,test_case" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v3/{parent=projects/*/locations/*/agents/*}/testCases", - "body": "test_case" - } - }, - { - "(google.api.method_signature)": "parent,test_case" - } - ] - }, - "UpdateTestCase": { - "requestType": "UpdateTestCaseRequest", - "responseType": "TestCase", - "options": { - "(google.api.http).patch": "/v3/{test_case.name=projects/*/locations/*/agents/*/testCases/*}", - "(google.api.http).body": "test_case", - "(google.api.method_signature)": "test_case,update_mask" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "patch": "/v3/{test_case.name=projects/*/locations/*/agents/*/testCases/*}", - "body": "test_case" - } - }, - { - "(google.api.method_signature)": "test_case,update_mask" - } - ] - }, - "RunTestCase": { - "requestType": "RunTestCaseRequest", - "responseType": "google.longrunning.Operation", - "options": { - "(google.api.http).post": "/v3/{name=projects/*/locations/*/agents/*/testCases/*}:run", - "(google.api.http).body": "*", - "(google.longrunning.operation_info).response_type": "RunTestCaseResponse", - "(google.longrunning.operation_info).metadata_type": "RunTestCaseMetadata" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v3/{name=projects/*/locations/*/agents/*/testCases/*}:run", - "body": "*" - } - }, - { - "(google.longrunning.operation_info)": { - "response_type": "RunTestCaseResponse", - "metadata_type": "RunTestCaseMetadata" - } - } - ] - }, - "BatchRunTestCases": { - "requestType": "BatchRunTestCasesRequest", - "responseType": "google.longrunning.Operation", - "options": { - "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*}/testCases:batchRun", - "(google.api.http).body": "*", - "(google.longrunning.operation_info).response_type": "BatchRunTestCasesResponse", - "(google.longrunning.operation_info).metadata_type": "BatchRunTestCasesMetadata" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v3/{parent=projects/*/locations/*/agents/*}/testCases:batchRun", - "body": "*" - } - }, - { - "(google.longrunning.operation_info)": { - "response_type": "BatchRunTestCasesResponse", - "metadata_type": "BatchRunTestCasesMetadata" - } - } - ] - }, - "CalculateCoverage": { - "requestType": "CalculateCoverageRequest", - "responseType": "CalculateCoverageResponse", - "options": { - "(google.api.http).get": "/v3/{agent=projects/*/locations/*/agents/*}/testCases:calculateCoverage" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v3/{agent=projects/*/locations/*/agents/*}/testCases:calculateCoverage" - } - } - ] - }, - "ImportTestCases": { - "requestType": "ImportTestCasesRequest", - "responseType": "google.longrunning.Operation", + "CreateTransitionRouteGroup": { + "requestType": "CreateTransitionRouteGroupRequest", + "responseType": "TransitionRouteGroup", "options": { - "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*}/testCases:import", - "(google.api.http).body": "*", - "(google.longrunning.operation_info).response_type": "ImportTestCasesResponse", - "(google.longrunning.operation_info).metadata_type": "ImportTestCasesMetadata" + "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroups", + "(google.api.http).body": "transition_route_group", + "(google.api.method_signature)": "parent,transition_route_group" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v3/{parent=projects/*/locations/*/agents/*}/testCases:import", - "body": "*" + "post": "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroups", + "body": "transition_route_group" } }, { - "(google.longrunning.operation_info)": { - "response_type": "ImportTestCasesResponse", - "metadata_type": "ImportTestCasesMetadata" - } + "(google.api.method_signature)": "parent,transition_route_group" } ] }, - "ExportTestCases": { - "requestType": "ExportTestCasesRequest", - "responseType": "google.longrunning.Operation", + "UpdateTransitionRouteGroup": { + "requestType": "UpdateTransitionRouteGroupRequest", + "responseType": "TransitionRouteGroup", "options": { - "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*}/testCases:export", - "(google.api.http).body": "*", - "(google.longrunning.operation_info).response_type": "ExportTestCasesResponse", - "(google.longrunning.operation_info).metadata_type": "ExportTestCasesMetadata" + "(google.api.http).patch": "/v3/{transition_route_group.name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}", + "(google.api.http).body": "transition_route_group", + "(google.api.method_signature)": "transition_route_group,update_mask" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v3/{parent=projects/*/locations/*/agents/*}/testCases:export", - "body": "*" + "patch": "/v3/{transition_route_group.name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}", + "body": "transition_route_group" } }, { - "(google.longrunning.operation_info)": { - "response_type": "ExportTestCasesResponse", - "metadata_type": "ExportTestCasesMetadata" - } + "(google.api.method_signature)": "transition_route_group,update_mask" } ] }, - "ListTestCaseResults": { - "requestType": "ListTestCaseResultsRequest", - "responseType": "ListTestCaseResultsResponse", + "DeleteTransitionRouteGroup": { + "requestType": "DeleteTransitionRouteGroupRequest", + "responseType": "google.protobuf.Empty", "options": { - "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*/testCases/*}/results", - "(google.api.method_signature)": "parent" + "(google.api.http).delete": "/v3/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}", + "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3/{parent=projects/*/locations/*/agents/*/testCases/*}/results" + "delete": "/v3/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}" } }, { - "(google.api.method_signature)": "parent" + "(google.api.method_signature)": "name" } ] } } }, - "TestCase": { + "TransitionRouteGroup": { "options": { - "(google.api.resource).type": "dialogflow.googleapis.com/TestCase", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/testCases/{test_case}" + "(google.api.resource).type": "dialogflow.googleapis.com/TransitionRouteGroup", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/transitionRouteGroups/{transition_route_group}" }, "fields": { "name": { "type": "string", "id": 1 }, - "tags": { - "rule": "repeated", - "type": "string", - "id": 2 - }, "displayName": { "type": "string", - "id": 3, + "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "notes": { - "type": "string", - "id": 4 - }, - "testConfig": { - "type": "TestConfig", - "id": 13 - }, - "testCaseConversationTurns": { + "transitionRoutes": { "rule": "repeated", - "type": "ConversationTurn", + "type": "TransitionRoute", "id": 5 - }, - "creationTime": { - "type": "google.protobuf.Timestamp", - "id": 10, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "lastTestResult": { - "type": "TestCaseResult", - "id": 12 } } }, - "TestCaseResult": { - "options": { - "(google.api.resource).type": "dialogflow.googleapis.com/TestCaseResult", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/testCases/{test_case}/results/{result}" - }, + "ListTransitionRouteGroupsRequest": { "fields": { - "name": { - "type": "string", - "id": 1 - }, - "environment": { + "parent": { "type": "string", - "id": 2, + "id": 1, "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Environment" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/TransitionRouteGroup" } }, - "conversationTurns": { - "rule": "repeated", - "type": "ConversationTurn", + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", "id": 3 }, - "testResult": { - "type": "TestResult", + "languageCode": { + "type": "string", "id": 4 - }, - "testTime": { - "type": "google.protobuf.Timestamp", - "id": 5 } } }, - "TestConfig": { + "ListTransitionRouteGroupsResponse": { "fields": { - "trackingParameters": { + "transitionRouteGroups": { "rule": "repeated", - "type": "string", + "type": "TransitionRouteGroup", "id": 1 }, - "flow": { + "nextPageToken": { "type": "string", - "id": 2, - "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Flow" - } + "id": 2 } } }, - "ConversationTurn": { + "GetTransitionRouteGroupRequest": { "fields": { - "userInput": { - "type": "UserInput", - "id": 1 + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/TransitionRouteGroup" + } }, - "virtualAgentOutput": { - "type": "VirtualAgentOutput", + "languageCode": { + "type": "string", "id": 2 } - }, - "nested": { - "UserInput": { - "fields": { - "input": { - "type": "QueryInput", - "id": 5 - }, - "injectedParameters": { - "type": "google.protobuf.Struct", - "id": 2 - }, - "isWebhookEnabled": { - "type": "bool", - "id": 3 - } + } + }, + "CreateTransitionRouteGroupRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/TransitionRouteGroup" } }, - "VirtualAgentOutput": { - "fields": { - "sessionParameters": { - "type": "google.protobuf.Struct", - "id": 4 - }, - "differences": { - "rule": "repeated", - "type": "TestRunDifference", - "id": 5, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "diagnosticInfo": { - "type": "google.protobuf.Struct", - "id": 6, - "options": { - "(google.api.field_behavior)": "INPUT_ONLY" - } - }, - "triggeredIntent": { - "type": "Intent", - "id": 7 - }, - "currentPage": { - "type": "Page", - "id": 8 - }, - "textResponses": { - "rule": "repeated", - "type": "ResponseMessage.Text", - "id": 9 - }, - "status": { - "type": "google.rpc.Status", - "id": 10 - } + "transitionRouteGroup": { + "type": "TransitionRouteGroup", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" } + }, + "languageCode": { + "type": "string", + "id": 3 } } }, - "TestRunDifference": { + "UpdateTransitionRouteGroupRequest": { "fields": { - "type": { - "type": "DiffType", - "id": 1 + "transitionRouteGroup": { + "type": "TransitionRouteGroup", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, - "description": { - "type": "string", + "updateMask": { + "type": "google.protobuf.FieldMask", "id": 2 - } - }, - "nested": { - "DiffType": { - "values": { - "DIFF_TYPE_UNSPECIFIED": 0, - "INTENT": 1, - "PAGE": 2, - "PARAMETERS": 3, - "UTTERANCE": 4 - } + }, + "languageCode": { + "type": "string", + "id": 3 } } }, - "TransitionCoverage": { + "DeleteTransitionRouteGroupRequest": { "fields": { - "transitions": { - "rule": "repeated", - "type": "Transition", - "id": 1 + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/TransitionRouteGroup" + } }, - "coverageScore": { - "type": "float", + "force": { + "type": "bool", "id": 2 } + } + }, + "Experiments": { + "options": { + "(google.api.default_host)": "dialogflow.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" }, - "nested": { - "TransitionNode": { - "oneofs": { - "kind": { - "oneof": [ - "page", - "flow" - ] - } + "methods": { + "ListExperiments": { + "requestType": "ListExperimentsRequest", + "responseType": "ListExperimentsResponse", + "options": { + "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*/environments/*}/experiments", + "(google.api.method_signature)": "parent" }, - "fields": { - "page": { - "type": "Page", - "id": 1 + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v3/{parent=projects/*/locations/*/agents/*/environments/*}/experiments" + } }, - "flow": { - "type": "Flow", - "id": 2 + { + "(google.api.method_signature)": "parent" } - } + ] }, - "Transition": { - "oneofs": { - "detail": { - "oneof": [ - "transitionRoute", - "eventHandler" - ] - } + "GetExperiment": { + "requestType": "GetExperimentRequest", + "responseType": "Experiment", + "options": { + "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}", + "(google.api.method_signature)": "name" }, - "fields": { - "source": { - "type": "TransitionNode", - "id": 1 - }, - "index": { - "type": "int32", - "id": 4 - }, - "target": { - "type": "TransitionNode", - "id": 2 - }, - "covered": { - "type": "bool", - "id": 3 - }, - "transitionRoute": { - "type": "TransitionRoute", - "id": 5 + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}" + } }, - "eventHandler": { - "type": "EventHandler", - "id": 6 + { + "(google.api.method_signature)": "name" } - } - } - } - }, - "TransitionRouteGroupCoverage": { - "fields": { - "coverages": { - "rule": "repeated", - "type": "Coverage", - "id": 1 + ] }, - "coverageScore": { - "type": "float", - "id": 2 - } - }, - "nested": { - "Coverage": { - "fields": { - "routeGroup": { - "type": "TransitionRouteGroup", - "id": 1 - }, - "transitions": { - "rule": "repeated", - "type": "Transition", - "id": 2 + "CreateExperiment": { + "requestType": "CreateExperimentRequest", + "responseType": "Experiment", + "options": { + "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*/environments/*}/experiments", + "(google.api.http).body": "experiment", + "(google.api.method_signature)": "parent,experiment" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v3/{parent=projects/*/locations/*/agents/*/environments/*}/experiments", + "body": "experiment" + } }, - "coverageScore": { - "type": "float", - "id": 3 + { + "(google.api.method_signature)": "parent,experiment" } + ] + }, + "UpdateExperiment": { + "requestType": "UpdateExperimentRequest", + "responseType": "Experiment", + "options": { + "(google.api.http).patch": "/v3/{experiment.name=projects/*/locations/*/agents/*/environments/*/experiments/*}", + "(google.api.http).body": "experiment", + "(google.api.method_signature)": "experiment,update_mask" }, - "nested": { - "Transition": { - "fields": { - "transitionRoute": { - "type": "TransitionRoute", - "id": 1 - }, - "covered": { - "type": "bool", - "id": 2 - } + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v3/{experiment.name=projects/*/locations/*/agents/*/environments/*/experiments/*}", + "body": "experiment" } + }, + { + "(google.api.method_signature)": "experiment,update_mask" } - } - } - } - }, - "IntentCoverage": { - "fields": { - "intents": { - "rule": "repeated", - "type": "Intent", - "id": 1 + ] }, - "coverageScore": { - "type": "float", - "id": 2 - } - }, - "nested": { - "Intent": { - "fields": { - "intent": { - "type": "string", - "id": 1, - "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Intent" + "DeleteExperiment": { + "requestType": "DeleteExperimentRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}" } }, - "covered": { - "type": "bool", - "id": 2 + { + "(google.api.method_signature)": "name" } - } - } - } - }, - "CalculateCoverageRequest": { - "fields": { - "agent": { - "type": "string", - "id": 3, + ] + }, + "StartExperiment": { + "requestType": "StartExperimentRequest", + "responseType": "Experiment", "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Agent" - } + "(google.api.http).post": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:start", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:start", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, - "type": { - "type": "CoverageType", - "id": 2, + "StopExperiment": { + "requestType": "StopExperimentRequest", + "responseType": "Experiment", "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - }, - "nested": { - "CoverageType": { - "values": { - "COVERAGE_TYPE_UNSPECIFIED": 0, - "INTENT": 1, - "PAGE_TRANSITION": 2, - "TRANSITION_ROUTE_GROUP": 3 - } + "(google.api.http).post": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:stop", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:stop", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name" + } + ] } } }, - "CalculateCoverageResponse": { - "oneofs": { - "coverageType": { - "oneof": [ - "intentCoverage", - "transitionCoverage", - "routeGroupCoverage" - ] - } + "Experiment": { + "options": { + "(google.api.resource).type": "dialogflow.googleapis.com/Experiment", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/experiments/{experiment}" }, "fields": { - "agent": { + "name": { "type": "string", - "id": 5, + "id": 1 + }, + "displayName": { + "type": "string", + "id": 2, "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Agent" + "(google.api.field_behavior)": "REQUIRED" } }, - "intentCoverage": { - "type": "IntentCoverage", - "id": 2 + "description": { + "type": "string", + "id": 3 }, - "transitionCoverage": { - "type": "TransitionCoverage", + "state": { + "type": "State", "id": 4 }, - "routeGroupCoverage": { - "type": "TransitionRouteGroupCoverage", + "definition": { + "type": "Definition", + "id": 5 + }, + "result": { + "type": "Result", "id": 6 - } - } - }, - "ListTestCasesRequest": { - "fields": { - "parent": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/TestCase" - } }, - "pageSize": { - "type": "int32", - "id": 2 + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 7 }, - "pageToken": { - "type": "string", - "id": 3 + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 8 }, - "view": { - "type": "TestCaseView", - "id": 4 + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 9 + }, + "lastUpdateTime": { + "type": "google.protobuf.Timestamp", + "id": 10 + }, + "experimentLength": { + "type": "google.protobuf.Duration", + "id": 11 + }, + "variantsHistory": { + "rule": "repeated", + "type": "VariantsHistory", + "id": 12 } }, "nested": { - "TestCaseView": { - "values": { - "TEST_CASE_VIEW_UNSPECIFIED": 0, - "BASIC": 1, - "FULL": 2 - } - } - } - }, - "ListTestCasesResponse": { - "fields": { - "testCases": { - "rule": "repeated", - "type": "TestCase", - "id": 1 - }, - "nextPageToken": { - "type": "string", - "id": 2 + "Definition": { + "oneofs": { + "variants": { + "oneof": [ + "versionVariants" + ] + } + }, + "fields": { + "condition": { + "type": "string", + "id": 1 + }, + "versionVariants": { + "type": "VersionVariants", + "id": 2 + } + } + }, + "Result": { + "fields": { + "versionMetrics": { + "rule": "repeated", + "type": "VersionMetrics", + "id": 1 + }, + "lastUpdateTime": { + "type": "google.protobuf.Timestamp", + "id": 2 + } + }, + "nested": { + "ConfidenceInterval": { + "fields": { + "confidenceLevel": { + "type": "double", + "id": 1 + }, + "ratio": { + "type": "double", + "id": 2 + }, + "lowerBound": { + "type": "double", + "id": 3 + }, + "upperBound": { + "type": "double", + "id": 4 + } + } + }, + "Metric": { + "oneofs": { + "value": { + "oneof": [ + "ratio", + "count" + ] + } + }, + "fields": { + "type": { + "type": "MetricType", + "id": 1 + }, + "countType": { + "type": "CountType", + "id": 5 + }, + "ratio": { + "type": "double", + "id": 2 + }, + "count": { + "type": "double", + "id": 4 + }, + "confidenceInterval": { + "type": "ConfidenceInterval", + "id": 3 + } + } + }, + "VersionMetrics": { + "fields": { + "version": { + "type": "string", + "id": 1, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" + } + }, + "metrics": { + "rule": "repeated", + "type": "Metric", + "id": 2 + }, + "sessionCount": { + "type": "int32", + "id": 3 + } + } + }, + "MetricType": { + "values": { + "METRIC_UNSPECIFIED": 0, + "CONTAINED_SESSION_NO_CALLBACK_RATE": 1, + "LIVE_AGENT_HANDOFF_RATE": 2, + "CALLBACK_SESSION_RATE": 3, + "ABANDONED_SESSION_RATE": 4, + "SESSION_END_RATE": 5 + } + }, + "CountType": { + "values": { + "COUNT_TYPE_UNSPECIFIED": 0, + "TOTAL_NO_MATCH_COUNT": 1, + "TOTAL_TURN_COUNT": 2, + "AVERAGE_TURN_COUNT": 3 + } + } + } + }, + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "DRAFT": 1, + "RUNNING": 2, + "DONE": 3 + } } } }, - "BatchDeleteTestCasesRequest": { + "VersionVariants": { + "fields": { + "variants": { + "rule": "repeated", + "type": "Variant", + "id": 1 + } + }, + "nested": { + "Variant": { + "fields": { + "version": { + "type": "string", + "id": 1 + }, + "trafficAllocation": { + "type": "float", + "id": 2 + }, + "isControlGroup": { + "type": "bool", + "id": 3 + } + } + } + } + }, + "VariantsHistory": { + "oneofs": { + "variants": { + "oneof": [ + "versionVariants" + ] + } + }, + "fields": { + "versionVariants": { + "type": "VersionVariants", + "id": 1 + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 2 + } + } + }, + "ListExperimentsRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/TestCase" + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Experiment" } }, - "names": { + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListExperimentsResponse": { + "fields": { + "experiments": { "rule": "repeated", + "type": "Experiment", + "id": 1 + }, + "nextPageToken": { "type": "string", - "id": 3, + "id": 2 + } + } + }, + "GetExperimentRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/TestCase" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" } } } }, - "CreateTestCaseRequest": { + "CreateExperimentRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/TestCase" + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Experiment" } }, - "testCase": { - "type": "TestCase", + "experiment": { + "type": "Experiment", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -5089,10 +5318,10 @@ } } }, - "UpdateTestCaseRequest": { + "UpdateExperimentRequest": { "fields": { - "testCase": { - "type": "TestCase", + "experiment": { + "type": "Experiment", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -5107,300 +5336,325 @@ } } }, - "GetTestCaseRequest": { + "DeleteExperimentRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/TestCase" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" } } } }, - "RunTestCaseRequest": { + "StartExperimentRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/TestCase" - } - }, - "environment": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "OPTIONAL", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Environment" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" } } } }, - "RunTestCaseResponse": { - "fields": { - "result": { - "type": "TestCaseResult", - "id": 2 - } - } - }, - "RunTestCaseMetadata": { - "fields": {} - }, - "BatchRunTestCasesRequest": { + "StopExperimentRequest": { "fields": { - "parent": { + "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/TestCase" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" } + } + } + }, + "SecuritySettingsService": { + "options": { + "(google.api.default_host)": "dialogflow.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" + }, + "methods": { + "CreateSecuritySettings": { + "requestType": "CreateSecuritySettingsRequest", + "responseType": "SecuritySettings", + "options": { + "(google.api.http).post": "/v3/{parent=projects/*/locations/*}/securitySettings", + "(google.api.http).body": "security_settings", + "(google.api.method_signature)": "parent,security_settings" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v3/{parent=projects/*/locations/*}/securitySettings", + "body": "security_settings" + } + }, + { + "(google.api.method_signature)": "parent,security_settings" + } + ] }, - "environment": { - "type": "string", - "id": 2, + "GetSecuritySettings": { + "requestType": "GetSecuritySettingsRequest", + "responseType": "SecuritySettings", "options": { - "(google.api.field_behavior)": "OPTIONAL", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Environment" - } + "(google.api.http).get": "/v3/{name=projects/*/locations/*/securitySettings/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v3/{name=projects/*/locations/*/securitySettings/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, - "testCases": { - "rule": "repeated", - "type": "string", - "id": 3, + "UpdateSecuritySettings": { + "requestType": "UpdateSecuritySettingsRequest", + "responseType": "SecuritySettings", "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/TestCase" - } - } - } - }, - "BatchRunTestCasesResponse": { - "fields": { - "results": { - "rule": "repeated", - "type": "TestCaseResult", - "id": 1 + "(google.api.http).patch": "/v3/{security_settings.name=projects/*/locations/*/securitySettings/*}", + "(google.api.http).body": "security_settings", + "(google.api.method_signature)": "security_settings,update_mask" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v3/{security_settings.name=projects/*/locations/*/securitySettings/*}", + "body": "security_settings" + } + }, + { + "(google.api.method_signature)": "security_settings,update_mask" + } + ] + }, + "ListSecuritySettings": { + "requestType": "ListSecuritySettingsRequest", + "responseType": "ListSecuritySettingsResponse", + "options": { + "(google.api.http).get": "/v3/{parent=projects/*/locations/*}/securitySettings", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v3/{parent=projects/*/locations/*}/securitySettings" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "DeleteSecuritySettings": { + "requestType": "DeleteSecuritySettingsRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v3/{name=projects/*/locations/*/securitySettings/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v3/{name=projects/*/locations/*/securitySettings/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] } } }, - "BatchRunTestCasesMetadata": { + "GetSecuritySettingsRequest": { "fields": { - "errors": { - "rule": "repeated", - "type": "TestError", - "id": 1 + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/SecuritySettings" + } } } }, - "TestError": { + "UpdateSecuritySettingsRequest": { "fields": { - "testCase": { - "type": "string", + "securitySettings": { + "type": "SecuritySettings", "id": 1, "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/TestCase" + "(google.api.field_behavior)": "REQUIRED" } }, - "status": { - "type": "google.rpc.Status", - "id": 2 - }, - "testTime": { - "type": "google.protobuf.Timestamp", - "id": 3 + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "ImportTestCasesRequest": { - "oneofs": { - "source": { - "oneof": [ - "gcsUri", - "content" - ] - } - }, + "ListSecuritySettingsRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/TestCase" + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/SecuritySettings" } }, - "gcsUri": { - "type": "string", + "pageSize": { + "type": "int32", "id": 2 }, - "content": { - "type": "bytes", + "pageToken": { + "type": "string", "id": 3 } } }, - "ImportTestCasesResponse": { + "ListSecuritySettingsResponse": { "fields": { - "names": { + "securitySettings": { "rule": "repeated", + "type": "SecuritySettings", + "id": 1 + }, + "nextPageToken": { "type": "string", - "id": 1, - "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/TestCase" - } + "id": 2 } } }, - "ImportTestCasesMetadata": { + "CreateSecuritySettingsRequest": { "fields": { - "errors": { - "rule": "repeated", - "type": "TestCaseError", - "id": 1 + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/SecuritySettings" + } + }, + "securitySettings": { + "type": "SecuritySettings", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "TestCaseError": { + "DeleteSecuritySettingsRequest": { "fields": { - "testCase": { - "type": "TestCase", - "id": 1 - }, - "status": { - "type": "google.rpc.Status", - "id": 2 + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/SecuritySettings" + } } } }, - "ExportTestCasesRequest": { + "SecuritySettings": { + "options": { + "(google.api.resource).type": "dialogflow.googleapis.com/SecuritySettings", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/securitySettings/{security_settings}" + }, "oneofs": { - "destination": { + "dataRetention": { "oneof": [ - "gcsUri" + "retentionWindowDays" ] } }, "fields": { - "parent": { + "name": { "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/TestCase" + "(google.api.field_behavior)": "REQUIRED" } }, - "gcsUri": { + "displayName": { "type": "string", - "id": 2 + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, - "dataFormat": { - "type": "DataFormat", + "redactionStrategy": { + "type": "RedactionStrategy", "id": 3 }, - "filter": { - "type": "string", + "redactionScope": { + "type": "RedactionScope", "id": 4 - } - }, - "nested": { - "DataFormat": { - "values": { - "DATA_FORMAT_UNSPECIFIED": 0, - "BLOB": 1, - "JSON": 2 - } - } - } - }, - "ExportTestCasesResponse": { - "oneofs": { - "destination": { - "oneof": [ - "gcsUri", - "content" - ] - } - }, - "fields": { - "gcsUri": { - "type": "string", - "id": 1 }, - "content": { - "type": "bytes", - "id": 2 - } - } - }, - "ExportTestCasesMetadata": { - "fields": {} - }, - "ListTestCaseResultsRequest": { - "fields": { - "parent": { + "inspectTemplate": { "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/TestCaseResult" - } + "id": 9 }, - "pageSize": { + "retentionWindowDays": { "type": "int32", - "id": 2 - }, - "pageToken": { - "type": "string", - "id": 3 + "id": 6 }, - "filter": { - "type": "string", - "id": 4 - } - } - }, - "ListTestCaseResultsResponse": { - "fields": { - "testCaseResults": { + "purgeDataTypes": { "rule": "repeated", - "type": "TestCaseResult", - "id": 1 + "type": "PurgeDataType", + "id": 8 + } + }, + "nested": { + "RedactionStrategy": { + "values": { + "REDACTION_STRATEGY_UNSPECIFIED": 0, + "REDACT_WITH_SERVICE": 1 + } }, - "nextPageToken": { - "type": "string", - "id": 2 + "RedactionScope": { + "values": { + "REDACTION_SCOPE_UNSPECIFIED": 0, + "REDACT_DISK_STORAGE": 2 + } + }, + "PurgeDataType": { + "values": { + "PURGE_DATA_TYPE_UNSPECIFIED": 0, + "DIALOGFLOW_HISTORY": 1 + } } } }, - "TestResult": { - "values": { - "TEST_RESULT_UNSPECIFIED": 0, - "PASSED": 1, - "FAILED": 2 - } - }, - "TransitionRouteGroups": { + "Versions": { "options": { "(google.api.default_host)": "dialogflow.googleapis.com", "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" }, "methods": { - "ListTransitionRouteGroups": { - "requestType": "ListTransitionRouteGroupsRequest", - "responseType": "ListTransitionRouteGroupsResponse", + "ListVersions": { + "requestType": "ListVersionsRequest", + "responseType": "ListVersionsResponse", "options": { - "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroups", + "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroups" + "get": "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions" } }, { @@ -5408,17 +5662,17 @@ } ] }, - "GetTransitionRouteGroup": { - "requestType": "GetTransitionRouteGroupRequest", - "responseType": "TransitionRouteGroup", + "GetVersion": { + "requestType": "GetVersionRequest", + "responseType": "Version", "options": { - "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}", + "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}" + "get": "/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}" } }, { @@ -5426,70 +5680,117 @@ } ] }, - "CreateTransitionRouteGroup": { - "requestType": "CreateTransitionRouteGroupRequest", - "responseType": "TransitionRouteGroup", + "CreateVersion": { + "requestType": "CreateVersionRequest", + "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroups", - "(google.api.http).body": "transition_route_group", - "(google.api.method_signature)": "parent,transition_route_group" + "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions", + "(google.api.http).body": "version", + "(google.api.method_signature)": "parent,version", + "(google.longrunning.operation_info).response_type": "Version", + "(google.longrunning.operation_info).metadata_type": "CreateVersionOperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroups", - "body": "transition_route_group" + "post": "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions", + "body": "version" } }, { - "(google.api.method_signature)": "parent,transition_route_group" + "(google.api.method_signature)": "parent,version" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "Version", + "metadata_type": "CreateVersionOperationMetadata" + } } ] }, - "UpdateTransitionRouteGroup": { - "requestType": "UpdateTransitionRouteGroupRequest", - "responseType": "TransitionRouteGroup", + "UpdateVersion": { + "requestType": "UpdateVersionRequest", + "responseType": "Version", "options": { - "(google.api.http).patch": "/v3/{transition_route_group.name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}", - "(google.api.http).body": "transition_route_group", - "(google.api.method_signature)": "transition_route_group,update_mask" + "(google.api.http).patch": "/v3/{version.name=projects/*/locations/*/agents/*/flows/*/versions/*}", + "(google.api.http).body": "version", + "(google.api.method_signature)": "version,update_mask" }, "parsedOptions": [ { "(google.api.http)": { - "patch": "/v3/{transition_route_group.name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}", - "body": "transition_route_group" + "patch": "/v3/{version.name=projects/*/locations/*/agents/*/flows/*/versions/*}", + "body": "version" } }, { - "(google.api.method_signature)": "transition_route_group,update_mask" + "(google.api.method_signature)": "version,update_mask" } ] }, - "DeleteTransitionRouteGroup": { - "requestType": "DeleteTransitionRouteGroupRequest", + "DeleteVersion": { + "requestType": "DeleteVersionRequest", "responseType": "google.protobuf.Empty", "options": { - "(google.api.http).delete": "/v3/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}", + "(google.api.http).delete": "/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "delete": "/v3/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}" + "delete": "/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "LoadVersion": { + "requestType": "LoadVersionRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}:load", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name", + "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", + "(google.longrunning.operation_info).metadata_type": "google.protobuf.Struct" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}:load", + "body": "*" } }, { "(google.api.method_signature)": "name" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "google.protobuf.Empty", + "metadata_type": "google.protobuf.Struct" + } } ] } } }, - "TransitionRouteGroup": { + "CreateVersionOperationMetadata": { + "fields": { + "version": { + "type": "string", + "id": 1, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" + } + } + } + }, + "Version": { "options": { - "(google.api.resource).type": "dialogflow.googleapis.com/TransitionRouteGroup", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/transitionRouteGroups/{transition_route_group}" + "(google.api.resource).type": "dialogflow.googleapis.com/Version", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/versions/{version}" }, "fields": { "name": { @@ -5503,21 +5804,51 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "transitionRoutes": { - "rule": "repeated", - "type": "TransitionRoute", - "id": 5 + "description": { + "type": "string", + "id": 3 + }, + "nluSettings": { + "type": "NluSettings", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "state": { + "type": "State", + "id": 6, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + }, + "nested": { + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "RUNNING": 1, + "SUCCEEDED": 2, + "FAILED": 3 + } } } }, - "ListTransitionRouteGroupsRequest": { + "ListVersionsRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/TransitionRouteGroup" + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Version" } }, "pageSize": { @@ -5527,18 +5858,14 @@ "pageToken": { "type": "string", "id": 3 - }, - "languageCode": { - "type": "string", - "id": 4 } } }, - "ListTransitionRouteGroupsResponse": { + "ListVersionsResponse": { "fields": { - "transitionRouteGroups": { + "versions": { "rule": "repeated", - "type": "TransitionRouteGroup", + "type": "Version", "id": 1 }, "nextPageToken": { @@ -5547,49 +5874,41 @@ } } }, - "GetTransitionRouteGroupRequest": { + "GetVersionRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/TransitionRouteGroup" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" } - }, - "languageCode": { - "type": "string", - "id": 2 } } }, - "CreateTransitionRouteGroupRequest": { + "CreateVersionRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/TransitionRouteGroup" + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Version" } }, - "transitionRouteGroup": { - "type": "TransitionRouteGroup", + "version": { + "type": "Version", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } - }, - "languageCode": { - "type": "string", - "id": 3 } } }, - "UpdateTransitionRouteGroupRequest": { + "UpdateVersionRequest": { "fields": { - "transitionRouteGroup": { - "type": "TransitionRouteGroup", + "version": { + "type": "Version", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -5597,47 +5916,58 @@ }, "updateMask": { "type": "google.protobuf.FieldMask", - "id": 2 - }, - "languageCode": { + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "DeleteVersionRequest": { + "fields": { + "name": { "type": "string", - "id": 3 + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" + } } } }, - "DeleteTransitionRouteGroupRequest": { + "LoadVersionRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/TransitionRouteGroup" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" } }, - "force": { + "allowOverrideAgentResources": { "type": "bool", "id": 2 } } }, - "Versions": { + "Webhooks": { "options": { "(google.api.default_host)": "dialogflow.googleapis.com", "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" }, "methods": { - "ListVersions": { - "requestType": "ListVersionsRequest", - "responseType": "ListVersionsResponse", + "ListWebhooks": { + "requestType": "ListWebhooksRequest", + "responseType": "ListWebhooksResponse", "options": { - "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions", + "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*}/webhooks", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions" + "get": "/v3/{parent=projects/*/locations/*/agents/*}/webhooks" } }, { @@ -5645,17 +5975,17 @@ } ] }, - "GetVersion": { - "requestType": "GetVersionRequest", - "responseType": "Version", + "GetWebhook": { + "requestType": "GetWebhookRequest", + "responseType": "Webhook", "options": { - "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}", + "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*/webhooks/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}" + "get": "/v3/{name=projects/*/locations/*/agents/*/webhooks/*}" } }, { @@ -5663,117 +5993,77 @@ } ] }, - "CreateVersion": { - "requestType": "CreateVersionRequest", - "responseType": "google.longrunning.Operation", + "CreateWebhook": { + "requestType": "CreateWebhookRequest", + "responseType": "Webhook", "options": { - "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions", - "(google.api.http).body": "version", - "(google.api.method_signature)": "parent,version", - "(google.longrunning.operation_info).response_type": "Version", - "(google.longrunning.operation_info).metadata_type": "CreateVersionOperationMetadata" + "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*}/webhooks", + "(google.api.http).body": "webhook", + "(google.api.method_signature)": "parent,webhook" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions", - "body": "version" + "post": "/v3/{parent=projects/*/locations/*/agents/*}/webhooks", + "body": "webhook" } }, { - "(google.api.method_signature)": "parent,version" - }, - { - "(google.longrunning.operation_info)": { - "response_type": "Version", - "metadata_type": "CreateVersionOperationMetadata" - } + "(google.api.method_signature)": "parent,webhook" } ] }, - "UpdateVersion": { - "requestType": "UpdateVersionRequest", - "responseType": "Version", + "UpdateWebhook": { + "requestType": "UpdateWebhookRequest", + "responseType": "Webhook", "options": { - "(google.api.http).patch": "/v3/{version.name=projects/*/locations/*/agents/*/flows/*/versions/*}", - "(google.api.http).body": "version", - "(google.api.method_signature)": "version,update_mask" + "(google.api.http).patch": "/v3/{webhook.name=projects/*/locations/*/agents/*/webhooks/*}", + "(google.api.http).body": "webhook", + "(google.api.method_signature)": "webhook,update_mask" }, "parsedOptions": [ { "(google.api.http)": { - "patch": "/v3/{version.name=projects/*/locations/*/agents/*/flows/*/versions/*}", - "body": "version" + "patch": "/v3/{webhook.name=projects/*/locations/*/agents/*/webhooks/*}", + "body": "webhook" } }, { - "(google.api.method_signature)": "version,update_mask" + "(google.api.method_signature)": "webhook,update_mask" } ] }, - "DeleteVersion": { - "requestType": "DeleteVersionRequest", + "DeleteWebhook": { + "requestType": "DeleteWebhookRequest", "responseType": "google.protobuf.Empty", "options": { - "(google.api.http).delete": "/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}", + "(google.api.http).delete": "/v3/{name=projects/*/locations/*/agents/*/webhooks/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "delete": "/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}" - } - }, - { - "(google.api.method_signature)": "name" - } - ] - }, - "LoadVersion": { - "requestType": "LoadVersionRequest", - "responseType": "google.longrunning.Operation", - "options": { - "(google.api.http).post": "/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}:load", - "(google.api.http).body": "*", - "(google.api.method_signature)": "name", - "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", - "(google.longrunning.operation_info).metadata_type": "google.protobuf.Struct" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}:load", - "body": "*" + "delete": "/v3/{name=projects/*/locations/*/agents/*/webhooks/*}" } }, { "(google.api.method_signature)": "name" - }, - { - "(google.longrunning.operation_info)": { - "response_type": "google.protobuf.Empty", - "metadata_type": "google.protobuf.Struct" - } } ] } } }, - "CreateVersionOperationMetadata": { - "fields": { - "version": { - "type": "string", - "id": 1, - "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" - } - } - } - }, - "Version": { + "Webhook": { "options": { - "(google.api.resource).type": "dialogflow.googleapis.com/Version", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/versions/{version}" + "(google.api.resource).type": "dialogflow.googleapis.com/Webhook", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/webhooks/{webhook}" + }, + "oneofs": { + "webhook": { + "oneof": [ + "genericWebService" + ] + } }, "fields": { "name": { @@ -5787,51 +6077,60 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "description": { - "type": "string", - "id": 3 - }, - "nluSettings": { - "type": "NluSettings", - "id": 4, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } + "genericWebService": { + "type": "GenericWebService", + "id": 4 }, - "createTime": { - "type": "google.protobuf.Timestamp", - "id": 5, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } + "timeout": { + "type": "google.protobuf.Duration", + "id": 6 }, - "state": { - "type": "State", - "id": 6, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } + "disabled": { + "type": "bool", + "id": 5 } }, "nested": { - "State": { - "values": { - "STATE_UNSPECIFIED": 0, - "RUNNING": 1, - "SUCCEEDED": 2, - "FAILED": 3 + "GenericWebService": { + "fields": { + "uri": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "username": { + "type": "string", + "id": 2, + "options": { + "deprecated": true + } + }, + "password": { + "type": "string", + "id": 3, + "options": { + "deprecated": true + } + }, + "requestHeaders": { + "keyType": "string", + "type": "string", + "id": 4 + } } } } }, - "ListVersionsRequest": { + "ListWebhooksRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Version" + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Webhook" } }, "pageSize": { @@ -5844,11 +6143,11 @@ } } }, - "ListVersionsResponse": { + "ListWebhooksResponse": { "fields": { - "versions": { + "webhooks": { "rule": "repeated", - "type": "Version", + "type": "Webhook", "id": 1 }, "nextPageToken": { @@ -5857,30 +6156,30 @@ } } }, - "GetVersionRequest": { + "GetWebhookRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Webhook" } } } }, - "CreateVersionRequest": { + "CreateWebhookRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Version" + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Webhook" } }, - "version": { - "type": "Version", + "webhook": { + "type": "Webhook", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -5888,10 +6187,10 @@ } } }, - "UpdateVersionRequest": { + "UpdateWebhookRequest": { "fields": { - "version": { - "type": "Version", + "webhook": { + "type": "Webhook", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -5899,526 +6198,244 @@ }, "updateMask": { "type": "google.protobuf.FieldMask", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } + "id": 2 } } }, - "DeleteVersionRequest": { + "DeleteWebhookRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Webhook" } + }, + "force": { + "type": "bool", + "id": 2 } } }, - "LoadVersionRequest": { + "WebhookRequest": { "fields": { - "name": { + "detectIntentResponseId": { "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" - } + "id": 1 }, - "allowOverrideAgentResources": { - "type": "bool", - "id": 2 + "fulfillmentInfo": { + "type": "FulfillmentInfo", + "id": 6 + }, + "intentInfo": { + "type": "IntentInfo", + "id": 3 + }, + "pageInfo": { + "type": "PageInfo", + "id": 4 + }, + "sessionInfo": { + "type": "SessionInfo", + "id": 5 + }, + "messages": { + "rule": "repeated", + "type": "ResponseMessage", + "id": 7 + }, + "payload": { + "type": "google.protobuf.Struct", + "id": 8 + }, + "sentimentAnalysisResult": { + "type": "SentimentAnalysisResult", + "id": 9 } - } - }, - "Webhooks": { - "options": { - "(google.api.default_host)": "dialogflow.googleapis.com", - "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" }, - "methods": { - "ListWebhooks": { - "requestType": "ListWebhooksRequest", - "responseType": "ListWebhooksResponse", - "options": { - "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*}/webhooks", - "(google.api.method_signature)": "parent" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v3/{parent=projects/*/locations/*/agents/*}/webhooks" - } - }, - { - "(google.api.method_signature)": "parent" + "nested": { + "FulfillmentInfo": { + "fields": { + "tag": { + "type": "string", + "id": 1 } - ] + } }, - "GetWebhook": { - "requestType": "GetWebhookRequest", - "responseType": "Webhook", - "options": { - "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*/webhooks/*}", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v3/{name=projects/*/locations/*/agents/*/webhooks/*}" + "IntentInfo": { + "fields": { + "lastMatchedIntent": { + "type": "string", + "id": 1, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Intent" } }, - { - "(google.api.method_signature)": "name" - } - ] - }, - "CreateWebhook": { - "requestType": "CreateWebhookRequest", - "responseType": "Webhook", - "options": { - "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*}/webhooks", - "(google.api.http).body": "webhook", - "(google.api.method_signature)": "parent,webhook" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v3/{parent=projects/*/locations/*/agents/*}/webhooks", - "body": "webhook" - } + "displayName": { + "type": "string", + "id": 3 }, - { - "(google.api.method_signature)": "parent,webhook" + "parameters": { + "keyType": "string", + "type": "IntentParameterValue", + "id": 2 + }, + "confidence": { + "type": "float", + "id": 4 } - ] - }, - "UpdateWebhook": { - "requestType": "UpdateWebhookRequest", - "responseType": "Webhook", - "options": { - "(google.api.http).patch": "/v3/{webhook.name=projects/*/locations/*/agents/*/webhooks/*}", - "(google.api.http).body": "webhook", - "(google.api.method_signature)": "webhook,update_mask" }, - "parsedOptions": [ - { - "(google.api.http)": { - "patch": "/v3/{webhook.name=projects/*/locations/*/agents/*/webhooks/*}", - "body": "webhook" + "nested": { + "IntentParameterValue": { + "fields": { + "originalValue": { + "type": "string", + "id": 1 + }, + "resolvedValue": { + "type": "google.protobuf.Value", + "id": 2 + } } - }, - { - "(google.api.method_signature)": "webhook,update_mask" } - ] + } }, - "DeleteWebhook": { - "requestType": "DeleteWebhookRequest", - "responseType": "google.protobuf.Empty", - "options": { - "(google.api.http).delete": "/v3/{name=projects/*/locations/*/agents/*/webhooks/*}", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "delete": "/v3/{name=projects/*/locations/*/agents/*/webhooks/*}" - } + "SentimentAnalysisResult": { + "fields": { + "score": { + "type": "float", + "id": 1 }, - { - "(google.api.method_signature)": "name" + "magnitude": { + "type": "float", + "id": 2 } - ] + } } } }, - "Webhook": { - "options": { - "(google.api.resource).type": "dialogflow.googleapis.com/Webhook", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/webhooks/{webhook}" - }, + "WebhookResponse": { "oneofs": { - "webhook": { + "transition": { "oneof": [ - "genericWebService" + "targetPage", + "targetFlow" ] } }, "fields": { - "name": { - "type": "string", + "fulfillmentResponse": { + "type": "FulfillmentResponse", "id": 1 }, - "displayName": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } + "pageInfo": { + "type": "PageInfo", + "id": 2 }, - "genericWebService": { - "type": "GenericWebService", + "sessionInfo": { + "type": "SessionInfo", + "id": 3 + }, + "payload": { + "type": "google.protobuf.Struct", "id": 4 }, - "timeout": { - "type": "google.protobuf.Duration", - "id": 6 + "targetPage": { + "type": "string", + "id": 5, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Page" + } }, - "disabled": { - "type": "bool", - "id": 5 - } + "targetFlow": { + "type": "string", + "id": 6, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Flow" + } + } }, "nested": { - "GenericWebService": { + "FulfillmentResponse": { "fields": { - "uri": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "username": { - "type": "string", - "id": 2, - "options": { - "deprecated": true - } + "messages": { + "rule": "repeated", + "type": "ResponseMessage", + "id": 1 }, - "password": { - "type": "string", - "id": 3, - "options": { - "deprecated": true + "mergeBehavior": { + "type": "MergeBehavior", + "id": 2 + } + }, + "nested": { + "MergeBehavior": { + "values": { + "MERGE_BEHAVIOR_UNSPECIFIED": 0, + "APPEND": 1, + "REPLACE": 2 } - }, - "requestHeaders": { - "keyType": "string", - "type": "string", - "id": 4 } } } } }, - "ListWebhooksRequest": { - "fields": { - "parent": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Webhook" - } - }, - "pageSize": { - "type": "int32", - "id": 2 - }, - "pageToken": { - "type": "string", - "id": 3 - } - } - }, - "ListWebhooksResponse": { - "fields": { - "webhooks": { - "rule": "repeated", - "type": "Webhook", - "id": 1 - }, - "nextPageToken": { - "type": "string", - "id": 2 - } - } - }, - "GetWebhookRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Webhook" - } - } - } - }, - "CreateWebhookRequest": { - "fields": { - "parent": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Webhook" - } - }, - "webhook": { - "type": "Webhook", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "UpdateWebhookRequest": { - "fields": { - "webhook": { - "type": "Webhook", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "updateMask": { - "type": "google.protobuf.FieldMask", - "id": 2 - } - } - }, - "DeleteWebhookRequest": { + "PageInfo": { "fields": { - "name": { + "currentPage": { "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Webhook" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Page" } }, - "force": { - "type": "bool", - "id": 2 - } - } - }, - "WebhookRequest": { - "fields": { - "detectIntentResponseId": { - "type": "string", - "id": 1 - }, - "fulfillmentInfo": { - "type": "FulfillmentInfo", - "id": 6 - }, - "intentInfo": { - "type": "IntentInfo", + "formInfo": { + "type": "FormInfo", "id": 3 - }, - "pageInfo": { - "type": "PageInfo", - "id": 4 - }, - "sessionInfo": { - "type": "SessionInfo", - "id": 5 - }, - "messages": { - "rule": "repeated", - "type": "ResponseMessage", - "id": 7 - }, - "payload": { - "type": "google.protobuf.Struct", - "id": 8 - }, - "sentimentAnalysisResult": { - "type": "SentimentAnalysisResult", - "id": 9 } }, "nested": { - "FulfillmentInfo": { - "fields": { - "tag": { - "type": "string", - "id": 1 - } - } - }, - "IntentInfo": { + "FormInfo": { "fields": { - "lastMatchedIntent": { - "type": "string", - "id": 1, - "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Intent" - } - }, - "displayName": { - "type": "string", - "id": 3 - }, - "parameters": { - "keyType": "string", - "type": "IntentParameterValue", + "parameterInfo": { + "rule": "repeated", + "type": "ParameterInfo", "id": 2 - }, - "confidence": { - "type": "float", - "id": 4 } }, "nested": { - "IntentParameterValue": { + "ParameterInfo": { "fields": { - "originalValue": { + "displayName": { "type": "string", "id": 1 }, - "resolvedValue": { - "type": "google.protobuf.Value", + "required": { + "type": "bool", "id": 2 - } - } - } - } - }, - "SentimentAnalysisResult": { - "fields": { - "score": { - "type": "float", - "id": 1 - }, - "magnitude": { - "type": "float", - "id": 2 - } - } - } - } - }, - "WebhookResponse": { - "oneofs": { - "transition": { - "oneof": [ - "targetPage", - "targetFlow" - ] - } - }, - "fields": { - "fulfillmentResponse": { - "type": "FulfillmentResponse", - "id": 1 - }, - "pageInfo": { - "type": "PageInfo", - "id": 2 - }, - "sessionInfo": { - "type": "SessionInfo", - "id": 3 - }, - "payload": { - "type": "google.protobuf.Struct", - "id": 4 - }, - "targetPage": { - "type": "string", - "id": 5, - "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Page" - } - }, - "targetFlow": { - "type": "string", - "id": 6, - "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Flow" - } - } - }, - "nested": { - "FulfillmentResponse": { - "fields": { - "messages": { - "rule": "repeated", - "type": "ResponseMessage", - "id": 1 - }, - "mergeBehavior": { - "type": "MergeBehavior", - "id": 2 - } - }, - "nested": { - "MergeBehavior": { - "values": { - "MERGE_BEHAVIOR_UNSPECIFIED": 0, - "APPEND": 1, - "REPLACE": 2 - } - } - } - } - } - }, - "PageInfo": { - "fields": { - "currentPage": { - "type": "string", - "id": 1, - "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Page" - } - }, - "formInfo": { - "type": "FormInfo", - "id": 3 - } - }, - "nested": { - "FormInfo": { - "fields": { - "parameterInfo": { - "rule": "repeated", - "type": "ParameterInfo", - "id": 2 - } - }, - "nested": { - "ParameterInfo": { - "fields": { - "displayName": { - "type": "string", - "id": 1 - }, - "required": { - "type": "bool", - "id": 2 - }, - "state": { - "type": "ParameterState", - "id": 3 - }, - "value": { - "type": "google.protobuf.Value", - "id": 4 - }, - "justCollected": { - "type": "bool", - "id": 5 - } - }, - "nested": { - "ParameterState": { - "values": { - "PARAMETER_STATE_UNSPECIFIED": 0, - "EMPTY": 1, - "INVALID": 2, - "FILLED": 3 - } + }, + "state": { + "type": "ParameterState", + "id": 3 + }, + "value": { + "type": "google.protobuf.Value", + "id": 4 + }, + "justCollected": { + "type": "bool", + "id": 5 + } + }, + "nested": { + "ParameterState": { + "values": { + "PARAMETER_STATE_UNSPECIFIED": 0, + "EMPTY": 1, + "INVALID": 2, + "FILLED": 3 + } } } } @@ -6872,6 +6889,19 @@ "agentContent": { "type": "bytes", "id": 3 + }, + "restoreOption": { + "type": "RestoreOption", + "id": 5 + } + }, + "nested": { + "RestoreOption": { + "values": { + "RESTORE_OPTION_UNSPECIFIED": 0, + "KEEP": 1, + "FALLBACK": 2 + } } } }, @@ -9133,23 +9163,23 @@ } } }, - "Experiments": { + "TestCases": { "options": { "(google.api.default_host)": "dialogflow.googleapis.com", "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" }, "methods": { - "ListExperiments": { - "requestType": "ListExperimentsRequest", - "responseType": "ListExperimentsResponse", + "ListTestCases": { + "requestType": "ListTestCasesRequest", + "responseType": "ListTestCasesResponse", "options": { - "(google.api.http).get": "/v3beta1/{parent=projects/*/locations/*/agents/*/environments/*}/experiments", + "(google.api.http).get": "/v3beta1/{parent=projects/*/locations/*/agents/*}/testCases", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{parent=projects/*/locations/*/agents/*/environments/*}/experiments" + "get": "/v3beta1/{parent=projects/*/locations/*/agents/*}/testCases" } }, { @@ -9157,421 +9187,690 @@ } ] }, - "GetExperiment": { - "requestType": "GetExperimentRequest", - "responseType": "Experiment", + "BatchDeleteTestCases": { + "requestType": "BatchDeleteTestCasesRequest", + "responseType": "google.protobuf.Empty", "options": { - "(google.api.http).get": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}", - "(google.api.method_signature)": "name" + "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/testCases:batchDelete", + "(google.api.http).body": "*", + "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}" + "post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/testCases:batchDelete", + "body": "*" } }, { - "(google.api.method_signature)": "name" + "(google.api.method_signature)": "parent" } ] }, - "CreateExperiment": { - "requestType": "CreateExperimentRequest", - "responseType": "Experiment", + "GetTestCase": { + "requestType": "GetTestCaseRequest", + "responseType": "TestCase", "options": { - "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*/environments/*}/experiments", - "(google.api.http).body": "experiment", - "(google.api.method_signature)": "parent,experiment" + "(google.api.http).get": "/v3beta1/{name=projects/*/locations/*/agents/*/testCases/*}", + "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v3beta1/{parent=projects/*/locations/*/agents/*/environments/*}/experiments", - "body": "experiment" + "get": "/v3beta1/{name=projects/*/locations/*/agents/*/testCases/*}" } }, { - "(google.api.method_signature)": "parent,experiment" + "(google.api.method_signature)": "name" } ] }, - "UpdateExperiment": { - "requestType": "UpdateExperimentRequest", - "responseType": "Experiment", + "CreateTestCase": { + "requestType": "CreateTestCaseRequest", + "responseType": "TestCase", "options": { - "(google.api.http).patch": "/v3beta1/{experiment.name=projects/*/locations/*/agents/*/environments/*/experiments/*}", - "(google.api.http).body": "experiment", - "(google.api.method_signature)": "experiment,update_mask" + "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/testCases", + "(google.api.http).body": "test_case", + "(google.api.method_signature)": "parent,test_case" }, "parsedOptions": [ { "(google.api.http)": { - "patch": "/v3beta1/{experiment.name=projects/*/locations/*/agents/*/environments/*/experiments/*}", - "body": "experiment" + "post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/testCases", + "body": "test_case" } }, { - "(google.api.method_signature)": "experiment,update_mask" + "(google.api.method_signature)": "parent,test_case" } ] }, - "DeleteExperiment": { - "requestType": "DeleteExperimentRequest", - "responseType": "google.protobuf.Empty", + "UpdateTestCase": { + "requestType": "UpdateTestCaseRequest", + "responseType": "TestCase", "options": { - "(google.api.http).delete": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}", - "(google.api.method_signature)": "name" + "(google.api.http).patch": "/v3beta1/{test_case.name=projects/*/locations/*/agents/*/testCases/*}", + "(google.api.http).body": "test_case", + "(google.api.method_signature)": "test_case,update_mask" }, "parsedOptions": [ { "(google.api.http)": { - "delete": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}" + "patch": "/v3beta1/{test_case.name=projects/*/locations/*/agents/*/testCases/*}", + "body": "test_case" } }, { - "(google.api.method_signature)": "name" + "(google.api.method_signature)": "test_case,update_mask" } ] }, - "StartExperiment": { - "requestType": "StartExperimentRequest", - "responseType": "Experiment", + "RunTestCase": { + "requestType": "RunTestCaseRequest", + "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).post": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:start", + "(google.api.http).post": "/v3beta1/{name=projects/*/locations/*/agents/*/testCases/*}:run", "(google.api.http).body": "*", - "(google.api.method_signature)": "name" + "(google.longrunning.operation_info).response_type": "RunTestCaseResponse", + "(google.longrunning.operation_info).metadata_type": "RunTestCaseMetadata" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:start", + "post": "/v3beta1/{name=projects/*/locations/*/agents/*/testCases/*}:run", "body": "*" } }, { - "(google.api.method_signature)": "name" + "(google.longrunning.operation_info)": { + "response_type": "RunTestCaseResponse", + "metadata_type": "RunTestCaseMetadata" + } } ] }, - "StopExperiment": { - "requestType": "StopExperimentRequest", - "responseType": "Experiment", + "BatchRunTestCases": { + "requestType": "BatchRunTestCasesRequest", + "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).post": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:stop", + "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/testCases:batchRun", "(google.api.http).body": "*", - "(google.api.method_signature)": "name" + "(google.longrunning.operation_info).response_type": "BatchRunTestCasesResponse", + "(google.longrunning.operation_info).metadata_type": "BatchRunTestCasesMetadata" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:stop", + "post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/testCases:batchRun", "body": "*" } }, { - "(google.api.method_signature)": "name" + "(google.longrunning.operation_info)": { + "response_type": "BatchRunTestCasesResponse", + "metadata_type": "BatchRunTestCasesMetadata" + } } ] - } - } - }, - "Experiment": { - "options": { - "(google.api.resource).type": "dialogflow.googleapis.com/Experiment", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/experiments/{experiment}" - }, - "fields": { - "name": { - "type": "string", - "id": 1 }, - "displayName": { - "type": "string", - "id": 2, - "options": { + "CalculateCoverage": { + "requestType": "CalculateCoverageRequest", + "responseType": "CalculateCoverageResponse", + "options": { + "(google.api.http).get": "/v3beta1/{agent=projects/*/locations/*/agents/*}/testCases:calculateCoverage" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v3beta1/{agent=projects/*/locations/*/agents/*}/testCases:calculateCoverage" + } + } + ] + }, + "ImportTestCases": { + "requestType": "ImportTestCasesRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/testCases:import", + "(google.api.http).body": "*", + "(google.longrunning.operation_info).response_type": "ImportTestCasesResponse", + "(google.longrunning.operation_info).metadata_type": "ImportTestCasesMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/testCases:import", + "body": "*" + } + }, + { + "(google.longrunning.operation_info)": { + "response_type": "ImportTestCasesResponse", + "metadata_type": "ImportTestCasesMetadata" + } + } + ] + }, + "ExportTestCases": { + "requestType": "ExportTestCasesRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/testCases:export", + "(google.api.http).body": "*", + "(google.longrunning.operation_info).response_type": "ExportTestCasesResponse", + "(google.longrunning.operation_info).metadata_type": "ExportTestCasesMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/testCases:export", + "body": "*" + } + }, + { + "(google.longrunning.operation_info)": { + "response_type": "ExportTestCasesResponse", + "metadata_type": "ExportTestCasesMetadata" + } + } + ] + }, + "ListTestCaseResults": { + "requestType": "ListTestCaseResultsRequest", + "responseType": "ListTestCaseResultsResponse", + "options": { + "(google.api.http).get": "/v3beta1/{parent=projects/*/locations/*/agents/*/testCases/*}/results", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v3beta1/{parent=projects/*/locations/*/agents/*/testCases/*}/results" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + } + } + }, + "TestCase": { + "options": { + "(google.api.resource).type": "dialogflow.googleapis.com/TestCase", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/testCases/{test_case}" + }, + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "tags": { + "rule": "repeated", + "type": "string", + "id": 2 + }, + "displayName": { + "type": "string", + "id": 3, + "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "description": { + "notes": { "type": "string", - "id": 3 - }, - "state": { - "type": "State", "id": 4 }, - "definition": { - "type": "Definition", - "id": 5 + "testConfig": { + "type": "TestConfig", + "id": 13 }, - "result": { - "type": "Result", - "id": 6 + "testCaseConversationTurns": { + "rule": "repeated", + "type": "ConversationTurn", + "id": 5 }, - "createTime": { + "creationTime": { "type": "google.protobuf.Timestamp", - "id": 7 + "id": 10, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, - "startTime": { - "type": "google.protobuf.Timestamp", - "id": 8 + "lastTestResult": { + "type": "TestCaseResult", + "id": 12 + } + } + }, + "TestCaseResult": { + "options": { + "(google.api.resource).type": "dialogflow.googleapis.com/TestCaseResult", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/testCases/{test_case}/results/{result}" + }, + "fields": { + "name": { + "type": "string", + "id": 1 }, - "endTime": { - "type": "google.protobuf.Timestamp", - "id": 9 + "environment": { + "type": "string", + "id": 2, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Environment" + } }, - "lastUpdateTime": { - "type": "google.protobuf.Timestamp", - "id": 10 + "conversationTurns": { + "rule": "repeated", + "type": "ConversationTurn", + "id": 3 }, - "experimentLength": { - "type": "google.protobuf.Duration", - "id": 11 + "testResult": { + "type": "TestResult", + "id": 4 }, - "variantsHistory": { + "testTime": { + "type": "google.protobuf.Timestamp", + "id": 5 + } + } + }, + "TestConfig": { + "fields": { + "trackingParameters": { "rule": "repeated", - "type": "VariantsHistory", - "id": 12 + "type": "string", + "id": 1 + }, + "flow": { + "type": "string", + "id": 2, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Flow" + } + } + } + }, + "ConversationTurn": { + "fields": { + "userInput": { + "type": "UserInput", + "id": 1 + }, + "virtualAgentOutput": { + "type": "VirtualAgentOutput", + "id": 2 } }, "nested": { - "Definition": { - "oneofs": { - "variants": { - "oneof": [ - "versionVariants" - ] - } - }, + "UserInput": { "fields": { - "condition": { - "type": "string", - "id": 1 + "input": { + "type": "QueryInput", + "id": 5 }, - "versionVariants": { - "type": "VersionVariants", + "injectedParameters": { + "type": "google.protobuf.Struct", "id": 2 + }, + "isWebhookEnabled": { + "type": "bool", + "id": 3 } } }, - "Result": { + "VirtualAgentOutput": { "fields": { - "versionMetrics": { + "sessionParameters": { + "type": "google.protobuf.Struct", + "id": 4 + }, + "differences": { "rule": "repeated", - "type": "VersionMetrics", - "id": 1 + "type": "TestRunDifference", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, - "lastUpdateTime": { - "type": "google.protobuf.Timestamp", - "id": 2 - } - }, - "nested": { - "ConfidenceInterval": { - "fields": { - "confidenceLevel": { - "type": "double", - "id": 1 - }, - "ratio": { - "type": "double", - "id": 2 - }, - "lowerBound": { - "type": "double", - "id": 3 - }, - "upperBound": { - "type": "double", - "id": 4 - } + "diagnosticInfo": { + "type": "google.protobuf.Struct", + "id": 6, + "options": { + "(google.api.field_behavior)": "INPUT_ONLY" } }, - "Metric": { - "oneofs": { - "value": { - "oneof": [ - "ratio", - "count" - ] - } - }, - "fields": { - "type": { - "type": "MetricType", - "id": 1 - }, - "countType": { - "type": "CountType", - "id": 5 - }, - "ratio": { - "type": "double", - "id": 2 - }, - "count": { - "type": "double", - "id": 4 - }, - "confidenceInterval": { - "type": "ConfidenceInterval", - "id": 3 - } - } + "triggeredIntent": { + "type": "Intent", + "id": 7 }, - "VersionMetrics": { - "fields": { - "version": { - "type": "string", - "id": 1, - "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" - } - }, - "metrics": { - "rule": "repeated", - "type": "Metric", - "id": 2 - }, - "sessionCount": { - "type": "int32", - "id": 3 - } - } + "currentPage": { + "type": "Page", + "id": 8 }, - "MetricType": { - "values": { - "METRIC_UNSPECIFIED": 0, - "CONTAINED_SESSION_NO_CALLBACK_RATE": 1, - "LIVE_AGENT_HANDOFF_RATE": 2, - "CALLBACK_SESSION_RATE": 3, - "ABANDONED_SESSION_RATE": 4, - "SESSION_END_RATE": 5 - } + "textResponses": { + "rule": "repeated", + "type": "ResponseMessage.Text", + "id": 9 }, - "CountType": { - "values": { - "COUNT_TYPE_UNSPECIFIED": 0, - "TOTAL_NO_MATCH_COUNT": 1, - "TOTAL_TURN_COUNT": 2, - "AVERAGE_TURN_COUNT": 3 - } + "status": { + "type": "google.rpc.Status", + "id": 10 } } + } + } + }, + "TestRunDifference": { + "fields": { + "type": { + "type": "DiffType", + "id": 1 }, - "State": { + "description": { + "type": "string", + "id": 2 + } + }, + "nested": { + "DiffType": { "values": { - "STATE_UNSPECIFIED": 0, - "DRAFT": 1, - "RUNNING": 2, - "DONE": 3 + "DIFF_TYPE_UNSPECIFIED": 0, + "INTENT": 1, + "PAGE": 2, + "PARAMETERS": 3, + "UTTERANCE": 4 } } } }, - "VersionVariants": { + "TransitionCoverage": { "fields": { - "variants": { + "transitions": { "rule": "repeated", - "type": "Variant", + "type": "Transition", "id": 1 + }, + "coverageScore": { + "type": "float", + "id": 2 } }, "nested": { - "Variant": { + "TransitionNode": { + "oneofs": { + "kind": { + "oneof": [ + "page", + "flow" + ] + } + }, "fields": { - "version": { - "type": "string", + "page": { + "type": "Page", "id": 1 }, - "trafficAllocation": { - "type": "float", + "flow": { + "type": "Flow", "id": 2 + } + } + }, + "Transition": { + "oneofs": { + "detail": { + "oneof": [ + "transitionRoute", + "eventHandler" + ] + } + }, + "fields": { + "source": { + "type": "TransitionNode", + "id": 1 }, - "isControlGroup": { + "index": { + "type": "int32", + "id": 4 + }, + "target": { + "type": "TransitionNode", + "id": 2 + }, + "covered": { "type": "bool", "id": 3 + }, + "transitionRoute": { + "type": "TransitionRoute", + "id": 5 + }, + "eventHandler": { + "type": "EventHandler", + "id": 6 } } } } }, - "VariantsHistory": { - "oneofs": { - "variants": { - "oneof": [ - "versionVariants" - ] - } - }, + "TransitionRouteGroupCoverage": { "fields": { - "versionVariants": { - "type": "VersionVariants", + "coverages": { + "rule": "repeated", + "type": "Coverage", "id": 1 }, - "updateTime": { - "type": "google.protobuf.Timestamp", + "coverageScore": { + "type": "float", "id": 2 } - } - }, - "ListExperimentsRequest": { - "fields": { - "parent": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Experiment" + }, + "nested": { + "Coverage": { + "fields": { + "routeGroup": { + "type": "TransitionRouteGroup", + "id": 1 + }, + "transitions": { + "rule": "repeated", + "type": "Transition", + "id": 2 + }, + "coverageScore": { + "type": "float", + "id": 3 + } + }, + "nested": { + "Transition": { + "fields": { + "transitionRoute": { + "type": "TransitionRoute", + "id": 1 + }, + "covered": { + "type": "bool", + "id": 2 + } + } + } } - }, - "pageSize": { - "type": "int32", - "id": 2 - }, - "pageToken": { - "type": "string", - "id": 3 } } }, - "ListExperimentsResponse": { + "IntentCoverage": { "fields": { - "experiments": { + "intents": { "rule": "repeated", - "type": "Experiment", + "type": "Intent", "id": 1 }, - "nextPageToken": { - "type": "string", + "coverageScore": { + "type": "float", "id": 2 } - } - }, - "GetExperimentRequest": { + }, + "nested": { + "Intent": { + "fields": { + "intent": { + "type": "string", + "id": 1, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Intent" + } + }, + "covered": { + "type": "bool", + "id": 2 + } + } + } + } + }, + "CalculateCoverageRequest": { "fields": { - "name": { + "agent": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Agent" + } + }, + "type": { + "type": "CoverageType", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + }, + "nested": { + "CoverageType": { + "values": { + "COVERAGE_TYPE_UNSPECIFIED": 0, + "INTENT": 1, + "PAGE_TRANSITION": 2, + "TRANSITION_ROUTE_GROUP": 3 + } + } + } + }, + "CalculateCoverageResponse": { + "oneofs": { + "coverageType": { + "oneof": [ + "intentCoverage", + "transitionCoverage", + "routeGroupCoverage" + ] + } + }, + "fields": { + "agent": { + "type": "string", + "id": 5, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Agent" + } + }, + "intentCoverage": { + "type": "IntentCoverage", + "id": 2 + }, + "transitionCoverage": { + "type": "TransitionCoverage", + "id": 4 + }, + "routeGroupCoverage": { + "type": "TransitionRouteGroupCoverage", + "id": 6 + } + } + }, + "ListTestCasesRequest": { + "fields": { + "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/TestCase" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + }, + "view": { + "type": "TestCaseView", + "id": 4 + } + }, + "nested": { + "TestCaseView": { + "values": { + "TEST_CASE_VIEW_UNSPECIFIED": 0, + "BASIC": 1, + "FULL": 2 } } } }, - "CreateExperimentRequest": { + "ListTestCasesResponse": { + "fields": { + "testCases": { + "rule": "repeated", + "type": "TestCase", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "BatchDeleteTestCasesRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Experiment" + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/TestCase" } }, - "experiment": { - "type": "Experiment", + "names": { + "rule": "repeated", + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/TestCase" + } + } + } + }, + "CreateTestCaseRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/TestCase" + } + }, + "testCase": { + "type": "TestCase", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -9579,10 +9878,10 @@ } } }, - "UpdateExperimentRequest": { + "UpdateTestCaseRequest": { "fields": { - "experiment": { - "type": "Experiment", + "testCase": { + "type": "TestCase", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -9597,70 +9896,311 @@ } } }, - "DeleteExperimentRequest": { + "GetTestCaseRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/TestCase" } } } }, - "StartExperimentRequest": { + "RunTestCaseRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/TestCase" + } + }, + "environment": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Environment" } } } }, - "StopExperimentRequest": { + "RunTestCaseResponse": { "fields": { - "name": { + "result": { + "type": "TestCaseResult", + "id": 2 + } + } + }, + "RunTestCaseMetadata": { + "fields": {} + }, + "BatchRunTestCasesRequest": { + "fields": { + "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/TestCase" + } + }, + "environment": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Environment" + } + }, + "testCases": { + "rule": "repeated", + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/TestCase" } } } }, - "Intents": { - "options": { - "(google.api.default_host)": "dialogflow.googleapis.com", - "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" - }, - "methods": { - "ListIntents": { - "requestType": "ListIntentsRequest", - "responseType": "ListIntentsResponse", + "BatchRunTestCasesResponse": { + "fields": { + "results": { + "rule": "repeated", + "type": "TestCaseResult", + "id": 1 + } + } + }, + "BatchRunTestCasesMetadata": { + "fields": { + "errors": { + "rule": "repeated", + "type": "TestError", + "id": 1 + } + } + }, + "TestError": { + "fields": { + "testCase": { + "type": "string", + "id": 1, "options": { - "(google.api.http).get": "/v3beta1/{parent=projects/*/locations/*/agents/*}/intents", - "(google.api.method_signature)": "parent" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v3beta1/{parent=projects/*/locations/*/agents/*}/intents" - } - }, - { - "(google.api.method_signature)": "parent" - } - ] + "(google.api.resource_reference).type": "dialogflow.googleapis.com/TestCase" + } }, - "GetIntent": { - "requestType": "GetIntentRequest", - "responseType": "Intent", - "options": { + "status": { + "type": "google.rpc.Status", + "id": 2 + }, + "testTime": { + "type": "google.protobuf.Timestamp", + "id": 3 + } + } + }, + "ImportTestCasesRequest": { + "oneofs": { + "source": { + "oneof": [ + "gcsUri", + "content" + ] + } + }, + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/TestCase" + } + }, + "gcsUri": { + "type": "string", + "id": 2 + }, + "content": { + "type": "bytes", + "id": 3 + } + } + }, + "ImportTestCasesResponse": { + "fields": { + "names": { + "rule": "repeated", + "type": "string", + "id": 1, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/TestCase" + } + } + } + }, + "ImportTestCasesMetadata": { + "fields": { + "errors": { + "rule": "repeated", + "type": "TestCaseError", + "id": 1 + } + } + }, + "TestCaseError": { + "fields": { + "testCase": { + "type": "TestCase", + "id": 1 + }, + "status": { + "type": "google.rpc.Status", + "id": 2 + } + } + }, + "ExportTestCasesRequest": { + "oneofs": { + "destination": { + "oneof": [ + "gcsUri" + ] + } + }, + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/TestCase" + } + }, + "gcsUri": { + "type": "string", + "id": 2 + }, + "dataFormat": { + "type": "DataFormat", + "id": 3 + }, + "filter": { + "type": "string", + "id": 4 + } + }, + "nested": { + "DataFormat": { + "values": { + "DATA_FORMAT_UNSPECIFIED": 0, + "BLOB": 1, + "JSON": 2 + } + } + } + }, + "ExportTestCasesResponse": { + "oneofs": { + "destination": { + "oneof": [ + "gcsUri", + "content" + ] + } + }, + "fields": { + "gcsUri": { + "type": "string", + "id": 1 + }, + "content": { + "type": "bytes", + "id": 2 + } + } + }, + "ExportTestCasesMetadata": { + "fields": {} + }, + "ListTestCaseResultsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/TestCaseResult" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + }, + "filter": { + "type": "string", + "id": 4 + } + } + }, + "ListTestCaseResultsResponse": { + "fields": { + "testCaseResults": { + "rule": "repeated", + "type": "TestCaseResult", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "TestResult": { + "values": { + "TEST_RESULT_UNSPECIFIED": 0, + "PASSED": 1, + "FAILED": 2 + } + }, + "Intents": { + "options": { + "(google.api.default_host)": "dialogflow.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" + }, + "methods": { + "ListIntents": { + "requestType": "ListIntentsRequest", + "responseType": "ListIntentsResponse", + "options": { + "(google.api.http).get": "/v3beta1/{parent=projects/*/locations/*/agents/*}/intents", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v3beta1/{parent=projects/*/locations/*/agents/*}/intents" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "GetIntent": { + "requestType": "GetIntentRequest", + "responseType": "Intent", + "options": { "(google.api.http).get": "/v3beta1/{name=projects/*/locations/*/agents/*/intents/*}", "(google.api.method_signature)": "name" }, @@ -10814,23 +11354,23 @@ } } }, - "TestCases": { + "TransitionRouteGroups": { "options": { "(google.api.default_host)": "dialogflow.googleapis.com", "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" }, "methods": { - "ListTestCases": { - "requestType": "ListTestCasesRequest", - "responseType": "ListTestCasesResponse", + "ListTransitionRouteGroups": { + "requestType": "ListTransitionRouteGroupsRequest", + "responseType": "ListTransitionRouteGroupsResponse", "options": { - "(google.api.http).get": "/v3beta1/{parent=projects/*/locations/*/agents/*}/testCases", + "(google.api.http).get": "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroups", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{parent=projects/*/locations/*/agents/*}/testCases" + "get": "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroups" } }, { @@ -10838,1126 +11378,609 @@ } ] }, - "BatchDeleteTestCases": { - "requestType": "BatchDeleteTestCasesRequest", - "responseType": "google.protobuf.Empty", + "GetTransitionRouteGroup": { + "requestType": "GetTransitionRouteGroupRequest", + "responseType": "TransitionRouteGroup", "options": { - "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/testCases:batchDelete", - "(google.api.http).body": "*", - "(google.api.method_signature)": "parent" + "(google.api.http).get": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}", + "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/testCases:batchDelete", - "body": "*" + "get": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}" } }, { - "(google.api.method_signature)": "parent" + "(google.api.method_signature)": "name" } ] }, - "GetTestCase": { - "requestType": "GetTestCaseRequest", - "responseType": "TestCase", + "CreateTransitionRouteGroup": { + "requestType": "CreateTransitionRouteGroupRequest", + "responseType": "TransitionRouteGroup", "options": { - "(google.api.http).get": "/v3beta1/{name=projects/*/locations/*/agents/*/testCases/*}", - "(google.api.method_signature)": "name" + "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroups", + "(google.api.http).body": "transition_route_group", + "(google.api.method_signature)": "parent,transition_route_group" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{name=projects/*/locations/*/agents/*/testCases/*}" + "post": "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroups", + "body": "transition_route_group" } }, { - "(google.api.method_signature)": "name" + "(google.api.method_signature)": "parent,transition_route_group" } ] }, - "CreateTestCase": { - "requestType": "CreateTestCaseRequest", - "responseType": "TestCase", + "UpdateTransitionRouteGroup": { + "requestType": "UpdateTransitionRouteGroupRequest", + "responseType": "TransitionRouteGroup", "options": { - "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/testCases", - "(google.api.http).body": "test_case", - "(google.api.method_signature)": "parent,test_case" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/testCases", - "body": "test_case" - } - }, - { - "(google.api.method_signature)": "parent,test_case" - } - ] - }, - "UpdateTestCase": { - "requestType": "UpdateTestCaseRequest", - "responseType": "TestCase", - "options": { - "(google.api.http).patch": "/v3beta1/{test_case.name=projects/*/locations/*/agents/*/testCases/*}", - "(google.api.http).body": "test_case", - "(google.api.method_signature)": "test_case,update_mask" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "patch": "/v3beta1/{test_case.name=projects/*/locations/*/agents/*/testCases/*}", - "body": "test_case" - } - }, - { - "(google.api.method_signature)": "test_case,update_mask" - } - ] - }, - "RunTestCase": { - "requestType": "RunTestCaseRequest", - "responseType": "google.longrunning.Operation", - "options": { - "(google.api.http).post": "/v3beta1/{name=projects/*/locations/*/agents/*/testCases/*}:run", - "(google.api.http).body": "*", - "(google.longrunning.operation_info).response_type": "RunTestCaseResponse", - "(google.longrunning.operation_info).metadata_type": "RunTestCaseMetadata" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v3beta1/{name=projects/*/locations/*/agents/*/testCases/*}:run", - "body": "*" - } - }, - { - "(google.longrunning.operation_info)": { - "response_type": "RunTestCaseResponse", - "metadata_type": "RunTestCaseMetadata" - } - } - ] - }, - "BatchRunTestCases": { - "requestType": "BatchRunTestCasesRequest", - "responseType": "google.longrunning.Operation", - "options": { - "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/testCases:batchRun", - "(google.api.http).body": "*", - "(google.longrunning.operation_info).response_type": "BatchRunTestCasesResponse", - "(google.longrunning.operation_info).metadata_type": "BatchRunTestCasesMetadata" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/testCases:batchRun", - "body": "*" - } - }, - { - "(google.longrunning.operation_info)": { - "response_type": "BatchRunTestCasesResponse", - "metadata_type": "BatchRunTestCasesMetadata" - } - } - ] - }, - "CalculateCoverage": { - "requestType": "CalculateCoverageRequest", - "responseType": "CalculateCoverageResponse", - "options": { - "(google.api.http).get": "/v3beta1/{agent=projects/*/locations/*/agents/*}/testCases:calculateCoverage" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v3beta1/{agent=projects/*/locations/*/agents/*}/testCases:calculateCoverage" - } - } - ] - }, - "ImportTestCases": { - "requestType": "ImportTestCasesRequest", - "responseType": "google.longrunning.Operation", - "options": { - "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/testCases:import", - "(google.api.http).body": "*", - "(google.longrunning.operation_info).response_type": "ImportTestCasesResponse", - "(google.longrunning.operation_info).metadata_type": "ImportTestCasesMetadata" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/testCases:import", - "body": "*" - } - }, - { - "(google.longrunning.operation_info)": { - "response_type": "ImportTestCasesResponse", - "metadata_type": "ImportTestCasesMetadata" - } - } - ] - }, - "ExportTestCases": { - "requestType": "ExportTestCasesRequest", - "responseType": "google.longrunning.Operation", - "options": { - "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/testCases:export", - "(google.api.http).body": "*", - "(google.longrunning.operation_info).response_type": "ExportTestCasesResponse", - "(google.longrunning.operation_info).metadata_type": "ExportTestCasesMetadata" + "(google.api.http).patch": "/v3beta1/{transition_route_group.name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}", + "(google.api.http).body": "transition_route_group", + "(google.api.method_signature)": "transition_route_group,update_mask" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/testCases:export", - "body": "*" + "patch": "/v3beta1/{transition_route_group.name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}", + "body": "transition_route_group" } }, { - "(google.longrunning.operation_info)": { - "response_type": "ExportTestCasesResponse", - "metadata_type": "ExportTestCasesMetadata" - } + "(google.api.method_signature)": "transition_route_group,update_mask" } ] }, - "ListTestCaseResults": { - "requestType": "ListTestCaseResultsRequest", - "responseType": "ListTestCaseResultsResponse", + "DeleteTransitionRouteGroup": { + "requestType": "DeleteTransitionRouteGroupRequest", + "responseType": "google.protobuf.Empty", "options": { - "(google.api.http).get": "/v3beta1/{parent=projects/*/locations/*/agents/*/testCases/*}/results", - "(google.api.method_signature)": "parent" + "(google.api.http).delete": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}", + "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{parent=projects/*/locations/*/agents/*/testCases/*}/results" + "delete": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}" } }, { - "(google.api.method_signature)": "parent" + "(google.api.method_signature)": "name" } ] } } }, - "TestCase": { + "TransitionRouteGroup": { "options": { - "(google.api.resource).type": "dialogflow.googleapis.com/TestCase", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/testCases/{test_case}" + "(google.api.resource).type": "dialogflow.googleapis.com/TransitionRouteGroup", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/transitionRouteGroups/{transition_route_group}" }, "fields": { "name": { "type": "string", "id": 1 }, - "tags": { - "rule": "repeated", - "type": "string", - "id": 2 - }, "displayName": { "type": "string", - "id": 3, + "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "notes": { - "type": "string", - "id": 4 - }, - "testConfig": { - "type": "TestConfig", - "id": 13 - }, - "testCaseConversationTurns": { + "transitionRoutes": { "rule": "repeated", - "type": "ConversationTurn", + "type": "TransitionRoute", "id": 5 - }, - "creationTime": { - "type": "google.protobuf.Timestamp", - "id": 10, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "lastTestResult": { - "type": "TestCaseResult", - "id": 12 } } }, - "TestCaseResult": { - "options": { - "(google.api.resource).type": "dialogflow.googleapis.com/TestCaseResult", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/testCases/{test_case}/results/{result}" - }, + "ListTransitionRouteGroupsRequest": { "fields": { - "name": { - "type": "string", - "id": 1 - }, - "environment": { + "parent": { "type": "string", - "id": 2, + "id": 1, "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Environment" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/TransitionRouteGroup" } }, - "conversationTurns": { - "rule": "repeated", - "type": "ConversationTurn", + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", "id": 3 }, - "testResult": { - "type": "TestResult", + "languageCode": { + "type": "string", "id": 4 - }, - "testTime": { - "type": "google.protobuf.Timestamp", - "id": 5 } } }, - "TestConfig": { + "ListTransitionRouteGroupsResponse": { "fields": { - "trackingParameters": { + "transitionRouteGroups": { "rule": "repeated", - "type": "string", + "type": "TransitionRouteGroup", "id": 1 }, - "flow": { + "nextPageToken": { "type": "string", - "id": 2, - "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Flow" - } + "id": 2 } } }, - "ConversationTurn": { + "GetTransitionRouteGroupRequest": { "fields": { - "userInput": { - "type": "UserInput", - "id": 1 + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/TransitionRouteGroup" + } }, - "virtualAgentOutput": { - "type": "VirtualAgentOutput", + "languageCode": { + "type": "string", "id": 2 } - }, - "nested": { - "UserInput": { - "fields": { - "input": { - "type": "QueryInput", - "id": 5 - }, - "injectedParameters": { - "type": "google.protobuf.Struct", - "id": 2 - }, - "isWebhookEnabled": { - "type": "bool", - "id": 3 - } + } + }, + "CreateTransitionRouteGroupRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/TransitionRouteGroup" } }, - "VirtualAgentOutput": { - "fields": { - "sessionParameters": { - "type": "google.protobuf.Struct", - "id": 4 - }, - "differences": { - "rule": "repeated", - "type": "TestRunDifference", - "id": 5, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "diagnosticInfo": { - "type": "google.protobuf.Struct", - "id": 6, - "options": { - "(google.api.field_behavior)": "INPUT_ONLY" - } - }, - "triggeredIntent": { - "type": "Intent", - "id": 7 - }, - "currentPage": { - "type": "Page", - "id": 8 - }, - "textResponses": { - "rule": "repeated", - "type": "ResponseMessage.Text", - "id": 9 - }, - "status": { - "type": "google.rpc.Status", - "id": 10 - } + "transitionRouteGroup": { + "type": "TransitionRouteGroup", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" } + }, + "languageCode": { + "type": "string", + "id": 3 } } }, - "TestRunDifference": { + "UpdateTransitionRouteGroupRequest": { "fields": { - "type": { - "type": "DiffType", - "id": 1 + "transitionRouteGroup": { + "type": "TransitionRouteGroup", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, - "description": { - "type": "string", + "updateMask": { + "type": "google.protobuf.FieldMask", "id": 2 - } - }, - "nested": { - "DiffType": { - "values": { - "DIFF_TYPE_UNSPECIFIED": 0, - "INTENT": 1, - "PAGE": 2, - "PARAMETERS": 3, - "UTTERANCE": 4 - } + }, + "languageCode": { + "type": "string", + "id": 3 } } }, - "TransitionCoverage": { + "DeleteTransitionRouteGroupRequest": { "fields": { - "transitions": { - "rule": "repeated", - "type": "Transition", - "id": 1 + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/TransitionRouteGroup" + } }, - "coverageScore": { - "type": "float", + "force": { + "type": "bool", "id": 2 } + } + }, + "Experiments": { + "options": { + "(google.api.default_host)": "dialogflow.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" }, - "nested": { - "TransitionNode": { - "oneofs": { - "kind": { - "oneof": [ - "page", - "flow" - ] - } + "methods": { + "ListExperiments": { + "requestType": "ListExperimentsRequest", + "responseType": "ListExperimentsResponse", + "options": { + "(google.api.http).get": "/v3beta1/{parent=projects/*/locations/*/agents/*/environments/*}/experiments", + "(google.api.method_signature)": "parent" }, - "fields": { - "page": { - "type": "Page", - "id": 1 + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v3beta1/{parent=projects/*/locations/*/agents/*/environments/*}/experiments" + } }, - "flow": { - "type": "Flow", - "id": 2 + { + "(google.api.method_signature)": "parent" } - } + ] }, - "Transition": { - "oneofs": { - "detail": { - "oneof": [ - "transitionRoute", - "eventHandler" - ] - } + "GetExperiment": { + "requestType": "GetExperimentRequest", + "responseType": "Experiment", + "options": { + "(google.api.http).get": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}", + "(google.api.method_signature)": "name" }, - "fields": { - "source": { - "type": "TransitionNode", - "id": 1 - }, - "index": { - "type": "int32", - "id": 4 - }, - "target": { - "type": "TransitionNode", - "id": 2 - }, - "covered": { - "type": "bool", - "id": 3 - }, - "transitionRoute": { - "type": "TransitionRoute", - "id": 5 + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}" + } }, - "eventHandler": { - "type": "EventHandler", - "id": 6 + { + "(google.api.method_signature)": "name" } - } - } - } - }, - "TransitionRouteGroupCoverage": { - "fields": { - "coverages": { - "rule": "repeated", - "type": "Coverage", - "id": 1 + ] }, - "coverageScore": { - "type": "float", - "id": 2 - } - }, - "nested": { - "Coverage": { - "fields": { - "routeGroup": { - "type": "TransitionRouteGroup", - "id": 1 - }, - "transitions": { - "rule": "repeated", - "type": "Transition", - "id": 2 + "CreateExperiment": { + "requestType": "CreateExperimentRequest", + "responseType": "Experiment", + "options": { + "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*/environments/*}/experiments", + "(google.api.http).body": "experiment", + "(google.api.method_signature)": "parent,experiment" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v3beta1/{parent=projects/*/locations/*/agents/*/environments/*}/experiments", + "body": "experiment" + } }, - "coverageScore": { - "type": "float", - "id": 3 + { + "(google.api.method_signature)": "parent,experiment" } + ] + }, + "UpdateExperiment": { + "requestType": "UpdateExperimentRequest", + "responseType": "Experiment", + "options": { + "(google.api.http).patch": "/v3beta1/{experiment.name=projects/*/locations/*/agents/*/environments/*/experiments/*}", + "(google.api.http).body": "experiment", + "(google.api.method_signature)": "experiment,update_mask" }, - "nested": { - "Transition": { - "fields": { - "transitionRoute": { - "type": "TransitionRoute", - "id": 1 - }, - "covered": { - "type": "bool", - "id": 2 - } + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v3beta1/{experiment.name=projects/*/locations/*/agents/*/environments/*/experiments/*}", + "body": "experiment" } + }, + { + "(google.api.method_signature)": "experiment,update_mask" } - } - } - } - }, - "IntentCoverage": { - "fields": { - "intents": { - "rule": "repeated", - "type": "Intent", - "id": 1 + ] }, - "coverageScore": { - "type": "float", - "id": 2 - } - }, - "nested": { - "Intent": { - "fields": { - "intent": { - "type": "string", - "id": 1, - "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Intent" + "DeleteExperiment": { + "requestType": "DeleteExperimentRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}" } }, - "covered": { - "type": "bool", - "id": 2 + { + "(google.api.method_signature)": "name" } - } - } - } - }, - "CalculateCoverageRequest": { - "fields": { - "agent": { - "type": "string", - "id": 3, + ] + }, + "StartExperiment": { + "requestType": "StartExperimentRequest", + "responseType": "Experiment", "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Agent" - } + "(google.api.http).post": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:start", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:start", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, - "type": { - "type": "CoverageType", - "id": 2, + "StopExperiment": { + "requestType": "StopExperimentRequest", + "responseType": "Experiment", "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - }, - "nested": { - "CoverageType": { - "values": { - "COVERAGE_TYPE_UNSPECIFIED": 0, - "INTENT": 1, - "PAGE_TRANSITION": 2, - "TRANSITION_ROUTE_GROUP": 3 - } + "(google.api.http).post": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:stop", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:stop", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name" + } + ] } } }, - "CalculateCoverageResponse": { - "oneofs": { - "coverageType": { - "oneof": [ - "intentCoverage", - "transitionCoverage", - "routeGroupCoverage" - ] - } + "Experiment": { + "options": { + "(google.api.resource).type": "dialogflow.googleapis.com/Experiment", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/experiments/{experiment}" }, "fields": { - "agent": { + "name": { "type": "string", - "id": 5, + "id": 1 + }, + "displayName": { + "type": "string", + "id": 2, "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Agent" + "(google.api.field_behavior)": "REQUIRED" } }, - "intentCoverage": { - "type": "IntentCoverage", - "id": 2 + "description": { + "type": "string", + "id": 3 }, - "transitionCoverage": { - "type": "TransitionCoverage", + "state": { + "type": "State", "id": 4 }, - "routeGroupCoverage": { - "type": "TransitionRouteGroupCoverage", + "definition": { + "type": "Definition", + "id": 5 + }, + "result": { + "type": "Result", "id": 6 - } - } - }, - "ListTestCasesRequest": { - "fields": { - "parent": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/TestCase" - } }, - "pageSize": { - "type": "int32", - "id": 2 + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 7 }, - "pageToken": { - "type": "string", - "id": 3 + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 8 }, - "view": { - "type": "TestCaseView", - "id": 4 + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 9 + }, + "lastUpdateTime": { + "type": "google.protobuf.Timestamp", + "id": 10 + }, + "experimentLength": { + "type": "google.protobuf.Duration", + "id": 11 + }, + "variantsHistory": { + "rule": "repeated", + "type": "VariantsHistory", + "id": 12 } }, "nested": { - "TestCaseView": { - "values": { - "TEST_CASE_VIEW_UNSPECIFIED": 0, - "BASIC": 1, - "FULL": 2 - } - } - } - }, - "ListTestCasesResponse": { - "fields": { - "testCases": { - "rule": "repeated", - "type": "TestCase", - "id": 1 - }, - "nextPageToken": { - "type": "string", - "id": 2 - } - } - }, - "BatchDeleteTestCasesRequest": { - "fields": { - "parent": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/TestCase" + "Definition": { + "oneofs": { + "variants": { + "oneof": [ + "versionVariants" + ] + } + }, + "fields": { + "condition": { + "type": "string", + "id": 1 + }, + "versionVariants": { + "type": "VersionVariants", + "id": 2 + } } }, - "names": { - "rule": "repeated", - "type": "string", - "id": 3, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/TestCase" - } - } - } - }, - "CreateTestCaseRequest": { - "fields": { - "parent": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/TestCase" - } - }, - "testCase": { - "type": "TestCase", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "UpdateTestCaseRequest": { - "fields": { - "testCase": { - "type": "TestCase", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "updateMask": { - "type": "google.protobuf.FieldMask", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "GetTestCaseRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/TestCase" - } - } - } - }, - "RunTestCaseRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/TestCase" - } - }, - "environment": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "OPTIONAL", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Environment" - } - } - } - }, - "RunTestCaseResponse": { - "fields": { - "result": { - "type": "TestCaseResult", - "id": 2 - } - } - }, - "RunTestCaseMetadata": { - "fields": {} - }, - "BatchRunTestCasesRequest": { - "fields": { - "parent": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/TestCase" - } - }, - "environment": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "OPTIONAL", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Environment" - } - }, - "testCases": { - "rule": "repeated", - "type": "string", - "id": 3, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/TestCase" - } - } - } - }, - "BatchRunTestCasesResponse": { - "fields": { - "results": { - "rule": "repeated", - "type": "TestCaseResult", - "id": 1 - } - } - }, - "BatchRunTestCasesMetadata": { - "fields": { - "errors": { - "rule": "repeated", - "type": "TestError", - "id": 1 - } - } - }, - "TestError": { - "fields": { - "testCase": { - "type": "string", - "id": 1, - "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/TestCase" - } - }, - "status": { - "type": "google.rpc.Status", - "id": 2 - }, - "testTime": { - "type": "google.protobuf.Timestamp", - "id": 3 - } - } - }, - "ImportTestCasesRequest": { - "oneofs": { - "source": { - "oneof": [ - "gcsUri", - "content" - ] - } - }, - "fields": { - "parent": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/TestCase" - } - }, - "gcsUri": { - "type": "string", - "id": 2 - }, - "content": { - "type": "bytes", - "id": 3 - } - } - }, - "ImportTestCasesResponse": { - "fields": { - "names": { - "rule": "repeated", - "type": "string", - "id": 1, - "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/TestCase" - } - } - } - }, - "ImportTestCasesMetadata": { - "fields": { - "errors": { - "rule": "repeated", - "type": "TestCaseError", - "id": 1 - } - } - }, - "TestCaseError": { - "fields": { - "testCase": { - "type": "TestCase", - "id": 1 - }, - "status": { - "type": "google.rpc.Status", - "id": 2 - } - } - }, - "ExportTestCasesRequest": { - "oneofs": { - "destination": { - "oneof": [ - "gcsUri" - ] - } - }, - "fields": { - "parent": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/TestCase" - } - }, - "gcsUri": { - "type": "string", - "id": 2 - }, - "dataFormat": { - "type": "DataFormat", - "id": 3 - }, - "filter": { - "type": "string", - "id": 4 - } - }, - "nested": { - "DataFormat": { - "values": { - "DATA_FORMAT_UNSPECIFIED": 0, - "BLOB": 1, - "JSON": 2 - } - } - } - }, - "ExportTestCasesResponse": { - "oneofs": { - "destination": { - "oneof": [ - "gcsUri", - "content" - ] - } - }, - "fields": { - "gcsUri": { - "type": "string", - "id": 1 - }, - "content": { - "type": "bytes", - "id": 2 - } - } - }, - "ExportTestCasesMetadata": { - "fields": {} - }, - "ListTestCaseResultsRequest": { - "fields": { - "parent": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/TestCaseResult" + "Result": { + "fields": { + "versionMetrics": { + "rule": "repeated", + "type": "VersionMetrics", + "id": 1 + }, + "lastUpdateTime": { + "type": "google.protobuf.Timestamp", + "id": 2 + } + }, + "nested": { + "ConfidenceInterval": { + "fields": { + "confidenceLevel": { + "type": "double", + "id": 1 + }, + "ratio": { + "type": "double", + "id": 2 + }, + "lowerBound": { + "type": "double", + "id": 3 + }, + "upperBound": { + "type": "double", + "id": 4 + } + } + }, + "Metric": { + "oneofs": { + "value": { + "oneof": [ + "ratio", + "count" + ] + } + }, + "fields": { + "type": { + "type": "MetricType", + "id": 1 + }, + "countType": { + "type": "CountType", + "id": 5 + }, + "ratio": { + "type": "double", + "id": 2 + }, + "count": { + "type": "double", + "id": 4 + }, + "confidenceInterval": { + "type": "ConfidenceInterval", + "id": 3 + } + } + }, + "VersionMetrics": { + "fields": { + "version": { + "type": "string", + "id": 1, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" + } + }, + "metrics": { + "rule": "repeated", + "type": "Metric", + "id": 2 + }, + "sessionCount": { + "type": "int32", + "id": 3 + } + } + }, + "MetricType": { + "values": { + "METRIC_UNSPECIFIED": 0, + "CONTAINED_SESSION_NO_CALLBACK_RATE": 1, + "LIVE_AGENT_HANDOFF_RATE": 2, + "CALLBACK_SESSION_RATE": 3, + "ABANDONED_SESSION_RATE": 4, + "SESSION_END_RATE": 5 + } + }, + "CountType": { + "values": { + "COUNT_TYPE_UNSPECIFIED": 0, + "TOTAL_NO_MATCH_COUNT": 1, + "TOTAL_TURN_COUNT": 2, + "AVERAGE_TURN_COUNT": 3 + } + } } }, - "pageSize": { - "type": "int32", - "id": 2 - }, - "pageToken": { - "type": "string", - "id": 3 - }, - "filter": { - "type": "string", - "id": 4 + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "DRAFT": 1, + "RUNNING": 2, + "DONE": 3 + } } } }, - "ListTestCaseResultsResponse": { + "VersionVariants": { "fields": { - "testCaseResults": { + "variants": { "rule": "repeated", - "type": "TestCaseResult", + "type": "Variant", "id": 1 - }, - "nextPageToken": { - "type": "string", - "id": 2 } - } - }, - "TestResult": { - "values": { - "TEST_RESULT_UNSPECIFIED": 0, - "PASSED": 1, - "FAILED": 2 - } - }, - "TransitionRouteGroups": { - "options": { - "(google.api.default_host)": "dialogflow.googleapis.com", - "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" }, - "methods": { - "ListTransitionRouteGroups": { - "requestType": "ListTransitionRouteGroupsRequest", - "responseType": "ListTransitionRouteGroupsResponse", - "options": { - "(google.api.http).get": "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroups", - "(google.api.method_signature)": "parent" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroups" - } - }, - { - "(google.api.method_signature)": "parent" - } - ] - }, - "GetTransitionRouteGroup": { - "requestType": "GetTransitionRouteGroupRequest", - "responseType": "TransitionRouteGroup", - "options": { - "(google.api.http).get": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}" - } - }, - { - "(google.api.method_signature)": "name" - } - ] - }, - "CreateTransitionRouteGroup": { - "requestType": "CreateTransitionRouteGroupRequest", - "responseType": "TransitionRouteGroup", - "options": { - "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroups", - "(google.api.http).body": "transition_route_group", - "(google.api.method_signature)": "parent,transition_route_group" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroups", - "body": "transition_route_group" - } - }, - { - "(google.api.method_signature)": "parent,transition_route_group" - } - ] - }, - "UpdateTransitionRouteGroup": { - "requestType": "UpdateTransitionRouteGroupRequest", - "responseType": "TransitionRouteGroup", - "options": { - "(google.api.http).patch": "/v3beta1/{transition_route_group.name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}", - "(google.api.http).body": "transition_route_group", - "(google.api.method_signature)": "transition_route_group,update_mask" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "patch": "/v3beta1/{transition_route_group.name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}", - "body": "transition_route_group" - } + "nested": { + "Variant": { + "fields": { + "version": { + "type": "string", + "id": 1 }, - { - "(google.api.method_signature)": "transition_route_group,update_mask" - } - ] - }, - "DeleteTransitionRouteGroup": { - "requestType": "DeleteTransitionRouteGroupRequest", - "responseType": "google.protobuf.Empty", - "options": { - "(google.api.http).delete": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "delete": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}" - } + "trafficAllocation": { + "type": "float", + "id": 2 }, - { - "(google.api.method_signature)": "name" + "isControlGroup": { + "type": "bool", + "id": 3 } - ] + } } } }, - "TransitionRouteGroup": { - "options": { - "(google.api.resource).type": "dialogflow.googleapis.com/TransitionRouteGroup", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/transitionRouteGroups/{transition_route_group}" + "VariantsHistory": { + "oneofs": { + "variants": { + "oneof": [ + "versionVariants" + ] + } }, "fields": { - "name": { - "type": "string", + "versionVariants": { + "type": "VersionVariants", "id": 1 }, - "displayName": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "transitionRoutes": { - "rule": "repeated", - "type": "TransitionRoute", - "id": 5 + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 2 } } }, - "ListTransitionRouteGroupsRequest": { + "ListExperimentsRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/TransitionRouteGroup" + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Experiment" } }, "pageSize": { @@ -11967,18 +11990,14 @@ "pageToken": { "type": "string", "id": 3 - }, - "languageCode": { - "type": "string", - "id": 4 } } }, - "ListTransitionRouteGroupsResponse": { + "ListExperimentsResponse": { "fields": { - "transitionRouteGroups": { + "experiments": { "rule": "repeated", - "type": "TransitionRouteGroup", + "type": "Experiment", "id": 1 }, "nextPageToken": { @@ -11987,49 +12006,41 @@ } } }, - "GetTransitionRouteGroupRequest": { + "GetExperimentRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/TransitionRouteGroup" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" } - }, - "languageCode": { - "type": "string", - "id": 2 } } }, - "CreateTransitionRouteGroupRequest": { + "CreateExperimentRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/TransitionRouteGroup" + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Experiment" } }, - "transitionRouteGroup": { - "type": "TransitionRouteGroup", + "experiment": { + "type": "Experiment", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } - }, - "languageCode": { - "type": "string", - "id": 3 } } }, - "UpdateTransitionRouteGroupRequest": { + "UpdateExperimentRequest": { "fields": { - "transitionRouteGroup": { - "type": "TransitionRouteGroup", + "experiment": { + "type": "Experiment", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -12037,27 +12048,46 @@ }, "updateMask": { "type": "google.protobuf.FieldMask", - "id": 2 - }, - "languageCode": { + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "DeleteExperimentRequest": { + "fields": { + "name": { "type": "string", - "id": 3 + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" + } } } }, - "DeleteTransitionRouteGroupRequest": { + "StartExperimentRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/TransitionRouteGroup" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" + } + } + } + }, + "StopExperimentRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" } - }, - "force": { - "type": "bool", - "id": 2 } } }, diff --git a/packages/google-cloud-dialogflow-cx/src/v3/agents_client.ts b/packages/google-cloud-dialogflow-cx/src/v3/agents_client.ts index dd7e86d1f4a..43b3104166f 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/agents_client.ts +++ b/packages/google-cloud-dialogflow-cx/src/v3/agents_client.ts @@ -1198,6 +1198,8 @@ export class AgentsClient { * `gs:///`. * @param {Buffer} request.agentContent * Uncompressed raw byte content for agent. + * @param {google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption} request.restoreOption + * Agent restore mode. If not specified, `KEEP` is assumed. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/agents_client.ts b/packages/google-cloud-dialogflow-cx/src/v3beta1/agents_client.ts index 9de518ffb4b..2d9d01e79b4 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/agents_client.ts +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/agents_client.ts @@ -1210,6 +1210,8 @@ export class AgentsClient { * `gs:///`. * @param {Buffer} request.agentContent * Uncompressed raw byte content for agent. + * @param {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.RestoreOption} request.restoreOption + * Agent restore mode. If not specified, `KEEP` is assumed. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. diff --git a/packages/google-cloud-dialogflow-cx/synth.metadata b/packages/google-cloud-dialogflow-cx/synth.metadata index 0f73af5a354..75abd94cddd 100644 --- a/packages/google-cloud-dialogflow-cx/synth.metadata +++ b/packages/google-cloud-dialogflow-cx/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-dialogflow-cx.git", - "sha": "e55908cd0056b1c0b5b0a1ccf9d417ed5f66e733" + "sha": "3b1b674bbddbcb26fa607f9dc16db6c43752c371" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "718eadce2fcaa3c4246ab56b6a507096cb100950", - "internalRef": "359860671" + "sha": "3e9b231b098d514c9a51ba8c59e416f45837b195", + "internalRef": "362453138" } }, { diff --git a/packages/google-cloud-dialogflow-cx/webpack.config.js b/packages/google-cloud-dialogflow-cx/webpack.config.js index a51f659c427..e86754bbef8 100644 --- a/packages/google-cloud-dialogflow-cx/webpack.config.js +++ b/packages/google-cloud-dialogflow-cx/webpack.config.js @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License.